Class Fulfillment.Builder (0.14.1)

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.v3.Fulfillment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v3.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases>
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage>
Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction>
Returns
TypeDescription
Fulfillment.Builder

addConditionalCases(Fulfillment.ConditionalCases value)

public Fulfillment.Builder addConditionalCases(Fulfillment.ConditionalCases value)

Conditional cases for this fulfillment.

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

Parameter
NameDescription
valueFulfillment.ConditionalCases
Returns
TypeDescription
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.v3.Fulfillment.ConditionalCases conditional_cases = 5;

Parameter
NameDescription
builderForValueFulfillment.ConditionalCases.Builder
Returns
TypeDescription
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.v3.Fulfillment.ConditionalCases conditional_cases = 5;

Parameters
NameDescription
indexint
valueFulfillment.ConditionalCases
Returns
TypeDescription
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.v3.Fulfillment.ConditionalCases conditional_cases = 5;

Parameters
NameDescription
indexint
builderForValueFulfillment.ConditionalCases.Builder
Returns
TypeDescription
Fulfillment.Builder

addConditionalCasesBuilder()

public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder()

Conditional cases for this fulfillment.

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

Returns
TypeDescription
Fulfillment.ConditionalCases.Builder

addConditionalCasesBuilder(int index)

public Fulfillment.ConditionalCases.Builder addConditionalCasesBuilder(int index)

Conditional cases for this fulfillment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
valueResponseMessage
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
builderForValueResponseMessage.Builder
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
Fulfillment.Builder

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;

Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Fulfillment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameter
NameDescription
valueFulfillment.SetParameterAction
Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameter
NameDescription
builderForValueFulfillment.SetParameterAction.Builder
Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameters
NameDescription
indexint
valueFulfillment.SetParameterAction
Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameters
NameDescription
indexint
builderForValueFulfillment.SetParameterAction.Builder
Returns
TypeDescription
Fulfillment.Builder

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;

Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.SetParameterAction.Builder

build()

public Fulfillment build()
Returns
TypeDescription
Fulfillment

buildPartial()

public Fulfillment buildPartial()
Returns
TypeDescription
Fulfillment

clear()

public Fulfillment.Builder clear()
Returns
TypeDescription
Fulfillment.Builder
Overrides

clearConditionalCases()

public Fulfillment.Builder clearConditionalCases()

Conditional cases for this fulfillment.

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

Returns
TypeDescription
Fulfillment.Builder

clearField(Descriptors.FieldDescriptor field)

public Fulfillment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Fulfillment.Builder
Overrides

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;

Returns
TypeDescription
Fulfillment.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Fulfillment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
Fulfillment.Builder

This builder for chaining.

clearSetParameterActions()

public Fulfillment.Builder clearSetParameterActions()

Set parameter values before executing the webhook.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Fulfillment.Builder

This builder for chaining.

clone()

public Fulfillment.Builder clone()
Returns
TypeDescription
Fulfillment.Builder
Overrides

getConditionalCases(int index)

public Fulfillment.ConditionalCases getConditionalCases(int index)

Conditional cases for this fulfillment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.ConditionalCases

getConditionalCasesBuilder(int index)

public Fulfillment.ConditionalCases.Builder getConditionalCasesBuilder(int index)

Conditional cases for this fulfillment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.ConditionalCases.Builder

getConditionalCasesBuilderList()

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

Conditional cases for this fulfillment.

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

Returns
TypeDescription
List<Builder>

getConditionalCasesCount()

public int getConditionalCasesCount()

Conditional cases for this fulfillment.

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

Returns
TypeDescription
int

getConditionalCasesList()

public List<Fulfillment.ConditionalCases> getConditionalCasesList()

Conditional cases for this fulfillment.

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

Returns
TypeDescription
List<ConditionalCases>

getConditionalCasesOrBuilder(int index)

public Fulfillment.ConditionalCasesOrBuilder getConditionalCasesOrBuilder(int index)

Conditional cases for this fulfillment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.ConditionalCasesOrBuilder

getConditionalCasesOrBuilderList()

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

Conditional cases for this fulfillment.

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

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCasesOrBuilder>

getDefaultInstanceForType()

public Fulfillment getDefaultInstanceForType()
Returns
TypeDescription
Fulfillment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Builder

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;

Returns
TypeDescription
List<Builder>

getMessagesCount()

public int getMessagesCount()

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

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

Returns
TypeDescription
int

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;

Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessageOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.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
TypeDescription
boolean

The returnPartialResponses.

getSetParameterActions(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.SetParameterAction

getSetParameterActionsBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.SetParameterAction.Builder

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;

Returns
TypeDescription
List<Builder>

getSetParameterActionsCount()

public int getSetParameterActionsCount()

Set parameter values before executing the webhook.

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

Returns
TypeDescription
int

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;

Returns
TypeDescription
List<SetParameterAction>

getSetParameterActionsOrBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.SetParameterActionOrBuilder

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;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for webhook.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Fulfillment other)

public Fulfillment.Builder mergeFrom(Fulfillment other)
Parameter
NameDescription
otherFulfillment
Returns
TypeDescription
Fulfillment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Fulfillment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Fulfillment.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Fulfillment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Fulfillment.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Fulfillment.Builder
Overrides

removeConditionalCases(int index)

public Fulfillment.Builder removeConditionalCases(int index)

Conditional cases for this fulfillment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.Builder

removeSetParameterActions(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v3.Fulfillment.ConditionalCases conditional_cases = 5;

Parameters
NameDescription
indexint
valueFulfillment.ConditionalCases
Returns
TypeDescription
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.v3.Fulfillment.ConditionalCases conditional_cases = 5;

Parameters
NameDescription
indexint
builderForValueFulfillment.ConditionalCases.Builder
Returns
TypeDescription
Fulfillment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Fulfillment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameters
NameDescription
indexint
valueResponseMessage
Returns
TypeDescription
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.v3.ResponseMessage messages = 1;

Parameters
NameDescription
indexint
builderForValueResponseMessage.Builder
Returns
TypeDescription
Fulfillment.Builder

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

public Fulfillment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueboolean

The returnPartialResponses to set.

Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameters
NameDescription
indexint
valueFulfillment.SetParameterAction
Returns
TypeDescription
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.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;

Parameters
NameDescription
indexint
builderForValueFulfillment.SetParameterAction.Builder
Returns
TypeDescription
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
NameDescription
valueString

The tag to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for tag to set.

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The webhook to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for webhook to set.

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.