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.Builder
addAllConditionalCases(Iterable<? extends Fulfillment.ConditionalCases> values)
Conditional cases for this fulfillment.Fulfillment.Builder
addAllMessages(Iterable<? extends ResponseMessage> values)
The list of rich message responses to present to the user.Fulfillment.Builder
addAllSetParameterActions(Iterable<? extends Fulfillment.SetParameterAction> values)
Set parameter values before executing the webhook.Fulfillment.Builder
addConditionalCases(int index, Fulfillment.ConditionalCases value)
Conditional cases for this fulfillment.Fulfillment.Builder
addConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)
Conditional cases for this fulfillment.Fulfillment.Builder
addConditionalCases(Fulfillment.ConditionalCases value)
Conditional cases for this fulfillment.Fulfillment.Builder
addConditionalCases(Fulfillment.ConditionalCases.Builder builderForValue)
Conditional cases for this fulfillment.Fulfillment.ConditionalCases.Builder
addConditionalCasesBuilder()
Conditional cases for this fulfillment.Fulfillment.ConditionalCases.Builder
addConditionalCasesBuilder(int index)
Conditional cases for this fulfillment.Fulfillment.Builder
addMessages(int index, ResponseMessage value)
The list of rich message responses to present to the user.Fulfillment.Builder
addMessages(int index, ResponseMessage.Builder builderForValue)
The list of rich message responses to present to the user.Fulfillment.Builder
addMessages(ResponseMessage value)
The list of rich message responses to present to the user.Fulfillment.Builder
addMessages(ResponseMessage.Builder builderForValue)
The list of rich message responses to present to the user.ResponseMessage.Builder
addMessagesBuilder()
The list of rich message responses to present to the user.ResponseMessage.Builder
addMessagesBuilder(int index)
The list of rich message responses to present to the user.Fulfillment.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Fulfillment.Builder
addSetParameterActions(int index, Fulfillment.SetParameterAction value)
Set parameter values before executing the webhook.Fulfillment.Builder
addSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)
Set parameter values before executing the webhook.Fulfillment.Builder
addSetParameterActions(Fulfillment.SetParameterAction value)
Set parameter values before executing the webhook.Fulfillment.Builder
addSetParameterActions(Fulfillment.SetParameterAction.Builder builderForValue)
Set parameter values before executing the webhook.Fulfillment.SetParameterAction.Builder
addSetParameterActionsBuilder()
Set parameter values before executing the webhook.Fulfillment.SetParameterAction.Builder
addSetParameterActionsBuilder(int index)
Set parameter values before executing the webhook.Fulfillment
build()
Fulfillment
buildPartial()
Fulfillment.Builder
clear()
Fulfillment.Builder
clearConditionalCases()
Conditional cases for this fulfillment.Fulfillment.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Fulfillment.Builder
clearMessages()
The list of rich message responses to present to the user.Fulfillment.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Fulfillment.Builder
clearReturnPartialResponses()
Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs.Fulfillment.Builder
clearSetParameterActions()
Set parameter values before executing the webhook.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.Fulfillment.Builder
clearWebhook()
The webhook to call.Fulfillment.Builder
clone()
Fulfillment.ConditionalCases
getConditionalCases(int index)
Conditional cases for this fulfillment.Fulfillment.ConditionalCases.Builder
getConditionalCasesBuilder(int index)
Conditional cases for this fulfillment.List<Fulfillment.ConditionalCases.Builder>
getConditionalCasesBuilderList()
Conditional cases for this fulfillment.int
getConditionalCasesCount()
Conditional cases for this fulfillment.List<Fulfillment.ConditionalCases>
getConditionalCasesList()
Conditional cases for this fulfillment.Fulfillment.ConditionalCasesOrBuilder
getConditionalCasesOrBuilder(int index)
Conditional cases for this fulfillment.List<? extends Fulfillment.ConditionalCasesOrBuilder>
getConditionalCasesOrBuilderList()
Conditional cases for this fulfillment.Fulfillment
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ResponseMessage
getMessages(int index)
The list of rich message responses to present to the user.ResponseMessage.Builder
getMessagesBuilder(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.int
getMessagesCount()
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.ResponseMessageOrBuilder
getMessagesOrBuilder(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.boolean
getReturnPartialResponses()
Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs.Fulfillment.SetParameterAction
getSetParameterActions(int index)
Set parameter values before executing the webhook.Fulfillment.SetParameterAction.Builder
getSetParameterActionsBuilder(int index)
Set parameter values before executing the webhook.List<Fulfillment.SetParameterAction.Builder>
getSetParameterActionsBuilderList()
Set parameter values before executing the webhook.int
getSetParameterActionsCount()
Set parameter values before executing the webhook.List<Fulfillment.SetParameterAction>
getSetParameterActionsList()
Set parameter values before executing the webhook.Fulfillment.SetParameterActionOrBuilder
getSetParameterActionsOrBuilder(int index)
Set parameter values before executing the webhook.List<? extends Fulfillment.SetParameterActionOrBuilder>
getSetParameterActionsOrBuilderList()
Set parameter values before executing the webhook.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.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.String
getWebhook()
The webhook to call.com.google.protobuf.ByteString
getWebhookBytes()
The webhook to call.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Fulfillment.Builder
mergeFrom(Fulfillment other)
Fulfillment.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Fulfillment.Builder
mergeFrom(com.google.protobuf.Message other)
Fulfillment.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Fulfillment.Builder
removeConditionalCases(int index)
Conditional cases for this fulfillment.Fulfillment.Builder
removeMessages(int index)
The list of rich message responses to present to the user.Fulfillment.Builder
removeSetParameterActions(int index)
Set parameter values before executing the webhook.Fulfillment.Builder
setConditionalCases(int index, Fulfillment.ConditionalCases value)
Conditional cases for this fulfillment.Fulfillment.Builder
setConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)
Conditional cases for this fulfillment.Fulfillment.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Fulfillment.Builder
setMessages(int index, ResponseMessage value)
The list of rich message responses to present to the user.Fulfillment.Builder
setMessages(int index, ResponseMessage.Builder builderForValue)
The list of rich message responses to present to the user.Fulfillment.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Fulfillment.Builder
setReturnPartialResponses(boolean value)
Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs.Fulfillment.Builder
setSetParameterActions(int index, Fulfillment.SetParameterAction value)
Set parameter values before executing the webhook.Fulfillment.Builder
setSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)
Set parameter values before executing the webhook.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.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.Fulfillment.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Fulfillment.Builder
setWebhook(String value)
The webhook to call.Fulfillment.Builder
setWebhookBytes(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
clear
public Fulfillment.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
getDefaultInstanceForType
public Fulfillment getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Fulfillment build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Fulfillment buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Fulfillment.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
setField
public Fulfillment.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
clearField
public Fulfillment.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
clearOneof
public Fulfillment.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
setRepeatedField
public Fulfillment.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
addRepeatedField
public Fulfillment.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
mergeFrom
public Fulfillment.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Fulfillment.Builder>
-
mergeFrom
public Fulfillment.Builder mergeFrom(Fulfillment other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getMessagesList
in 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:
getMessagesCount
in 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:
getMessages
in 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:
getMessagesOrBuilder
in 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:
getMessagesOrBuilderList
in 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:
getWebhook
in 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:
getWebhookBytes
in 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:
getReturnPartialResponses
in 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:
getTag
in 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:
getTagBytes
in 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:
getSetParameterActionsList
in 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:
getSetParameterActionsCount
in 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:
getSetParameterActions
in 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:
getSetParameterActionsOrBuilder
in 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:
getSetParameterActionsOrBuilderList
in 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:
getConditionalCasesList
in interfaceFulfillmentOrBuilder
-
getConditionalCasesCount
public int getConditionalCasesCount()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
- Specified by:
getConditionalCasesCount
in 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:
getConditionalCases
in 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:
getConditionalCasesOrBuilder
in 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:
getConditionalCasesOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
mergeUnknownFields
public final Fulfillment.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Fulfillment.Builder>
-
-