Class Fulfillment.Builder (0.29.0)

public static final class Fulfillment.Builder extends 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 or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page's entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both.

Protobuf type google.cloud.dialogflow.cx.v3beta1.Fulfillment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllConditionalCases(Iterable<? extends Fulfillment.ConditionalCases> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases>
Returns
Type Description
Fulfillment.Builder

addAllMessages(Iterable<? extends ResponseMessage> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage>
Returns
Type Description
Fulfillment.Builder

addAllSetParameterActions(Iterable<? extends Fulfillment.SetParameterAction> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction>
Returns
Type Description
Fulfillment.Builder

addConditionalCases(Fulfillment.ConditionalCases value)

public Fulfillment.Builder addConditionalCases(Fulfillment.ConditionalCases value)

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
Name Description
value Fulfillment.ConditionalCases
Returns
Type Description
Fulfillment.Builder

addConditionalCases(Fulfillment.ConditionalCases.Builder builderForValue)

public Fulfillment.Builder addConditionalCases(Fulfillment.ConditionalCases.Builder builderForValue)

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
Name Description
builderForValue Fulfillment.ConditionalCases.Builder
Returns
Type Description
Fulfillment.Builder

addConditionalCases(int index, Fulfillment.ConditionalCases value)

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;

Parameters
Name Description
index int
value Fulfillment.ConditionalCases
Returns
Type Description
Fulfillment.Builder

addConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Fulfillment.ConditionalCases.Builder
Returns
Type Description
Fulfillment.Builder

addConditionalCasesBuilder()

public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder()

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Returns
Type Description
Fulfillment.ConditionalCases.Builder

addConditionalCasesBuilder(int index)

public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder(int index)

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.ConditionalCases.Builder

addMessages(ResponseMessage value)

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;

Parameter
Name Description
value ResponseMessage
Returns
Type Description
Fulfillment.Builder

addMessages(ResponseMessage.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ResponseMessage.Builder
Returns
Type Description
Fulfillment.Builder

addMessages(int index, ResponseMessage value)

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;

Parameters
Name Description
index int
value ResponseMessage
Returns
Type Description
Fulfillment.Builder

addMessages(int index, ResponseMessage.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ResponseMessage.Builder
Returns
Type Description
Fulfillment.Builder

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;

Returns
Type Description
ResponseMessage.Builder

addMessagesBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Fulfillment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Fulfillment.Builder
Overrides

addSetParameterActions(Fulfillment.SetParameterAction value)

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;

Parameter
Name Description
value Fulfillment.SetParameterAction
Returns
Type Description
Fulfillment.Builder

addSetParameterActions(Fulfillment.SetParameterAction.Builder builderForValue)

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;

Parameter
Name Description
builderForValue Fulfillment.SetParameterAction.Builder
Returns
Type Description
Fulfillment.Builder

addSetParameterActions(int index, Fulfillment.SetParameterAction value)

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;

Parameters
Name Description
index int
value Fulfillment.SetParameterAction
Returns
Type Description
Fulfillment.Builder

addSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Fulfillment.SetParameterAction.Builder
Returns
Type Description
Fulfillment.Builder

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;

Returns
Type Description
Fulfillment.SetParameterAction.Builder

addSetParameterActionsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.SetParameterAction.Builder

build()

public Fulfillment build()
Returns
Type Description
Fulfillment

buildPartial()

public Fulfillment buildPartial()
Returns
Type Description
Fulfillment

clear()

public Fulfillment.Builder clear()
Returns
Type Description
Fulfillment.Builder
Overrides

clearConditionalCases()

public Fulfillment.Builder clearConditionalCases()

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Returns
Type Description
Fulfillment.Builder

clearField(Descriptors.FieldDescriptor field)

public Fulfillment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Fulfillment.Builder
Overrides

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;

Returns
Type Description
Fulfillment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Fulfillment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Fulfillment.Builder
Overrides

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
Type Description
Fulfillment.Builder

This builder for chaining.

clearSetParameterActions()

public Fulfillment.Builder clearSetParameterActions()

Set parameter values before executing the webhook.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;

Returns
Type Description
Fulfillment.Builder

clearTag()

public Fulfillment.Builder clearTag()

The value of this field will be populated in the 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
Type Description
Fulfillment.Builder

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
Type Description
Fulfillment.Builder

This builder for chaining.

clone()

public Fulfillment.Builder clone()
Returns
Type Description
Fulfillment.Builder
Overrides

getConditionalCases(int index)

public Fulfillment.ConditionalCases getConditionalCases(int index)

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.ConditionalCases

getConditionalCasesBuilder(int index)

public Fulfillment.ConditionalCases.Builder getConditionalCasesBuilder(int index)

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.ConditionalCases.Builder

getConditionalCasesBuilderList()

public List<Fulfillment.ConditionalCases.Builder> getConditionalCasesBuilderList()

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Returns
Type Description
List<Builder>

getConditionalCasesCount()

public int getConditionalCasesCount()

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Returns
Type Description
int

getConditionalCasesList()

public List<Fulfillment.ConditionalCases> getConditionalCasesList()

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Returns
Type Description
List<ConditionalCases>

getConditionalCasesOrBuilder(int index)

public Fulfillment.ConditionalCasesOrBuilder getConditionalCasesOrBuilder(int index)

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.ConditionalCasesOrBuilder

getConditionalCasesOrBuilderList()

public List<? extends Fulfillment.ConditionalCasesOrBuilder> getConditionalCasesOrBuilderList()

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder>

getDefaultInstanceForType()

public Fulfillment getDefaultInstanceForType()
Returns
Type Description
Fulfillment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMessages(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage

getMessagesBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessage.Builder

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;

Returns
Type Description
List<Builder>

getMessagesCount()

public int getMessagesCount()

The list of rich message responses to present to the user.

repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;

Returns
Type Description
int

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;

Returns
Type Description
List<ResponseMessage>

getMessagesOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
ResponseMessageOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.ResponseMessageOrBuilder>

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;

Returns
Type Description
boolean

The returnPartialResponses.

getSetParameterActions(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.SetParameterAction

getSetParameterActionsBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.SetParameterAction.Builder

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;

Returns
Type Description
List<Builder>

getSetParameterActionsCount()

public int getSetParameterActionsCount()

Set parameter values before executing the webhook.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;

Returns
Type Description
int

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;

Returns
Type Description
List<SetParameterAction>

getSetParameterActionsOrBuilder(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.SetParameterActionOrBuilder

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;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterActionOrBuilder>

getTag()

public String getTag()

The value of this field will be populated in the 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
Type Description
String

The tag.

getTagBytes()

public ByteString getTagBytes()

The value of this field will be populated in the 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
Type Description
ByteString

The bytes for tag.

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) = { ... }

Returns
Type Description
String

The webhook.

getWebhookBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for webhook.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Fulfillment other)

public Fulfillment.Builder mergeFrom(Fulfillment other)
Parameter
Name Description
other Fulfillment
Returns
Type Description
Fulfillment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Fulfillment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Fulfillment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Fulfillment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Fulfillment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Fulfillment.Builder
Overrides

removeConditionalCases(int index)

public Fulfillment.Builder removeConditionalCases(int index)

Conditional cases for this fulfillment.

repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.Builder

removeMessages(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.Builder

removeSetParameterActions(int index)

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;

Parameter
Name Description
index int
Returns
Type Description
Fulfillment.Builder

setConditionalCases(int index, Fulfillment.ConditionalCases value)

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;

Parameters
Name Description
index int
value Fulfillment.ConditionalCases
Returns
Type Description
Fulfillment.Builder

setConditionalCases(int index, Fulfillment.ConditionalCases.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Fulfillment.ConditionalCases.Builder
Returns
Type Description
Fulfillment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Fulfillment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Fulfillment.Builder
Overrides

setMessages(int index, ResponseMessage value)

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;

Parameters
Name Description
index int
value ResponseMessage
Returns
Type Description
Fulfillment.Builder

setMessages(int index, ResponseMessage.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue ResponseMessage.Builder
Returns
Type Description
Fulfillment.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Fulfillment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Fulfillment.Builder
Overrides

setReturnPartialResponses(boolean value)

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;

Parameter
Name Description
value boolean

The returnPartialResponses to set.

Returns
Type Description
Fulfillment.Builder

This builder for chaining.

setSetParameterActions(int index, Fulfillment.SetParameterAction value)

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;

Parameters
Name Description
index int
value Fulfillment.SetParameterAction
Returns
Type Description
Fulfillment.Builder

setSetParameterActions(int index, Fulfillment.SetParameterAction.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue Fulfillment.SetParameterAction.Builder
Returns
Type Description
Fulfillment.Builder

setTag(String value)

public Fulfillment.Builder setTag(String value)

The value of this field will be populated in the 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;

Parameter
Name Description
value String

The tag to set.

Returns
Type Description
Fulfillment.Builder

This builder for chaining.

setTagBytes(ByteString value)

public Fulfillment.Builder setTagBytes(ByteString value)

The value of this field will be populated in the 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;

Parameter
Name Description
value ByteString

The bytes for tag to set.

Returns
Type Description
Fulfillment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Fulfillment.Builder
Overrides

setWebhook(String value)

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) = { ... }

Parameter
Name Description
value String

The webhook to set.

Returns
Type Description
Fulfillment.Builder

This builder for chaining.

setWebhookBytes(ByteString value)

public Fulfillment.Builder setWebhookBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for webhook to set.

Returns
Type Description
Fulfillment.Builder

This builder for chaining.