public final class Fulfillment extends com.google.protobuf.GeneratedMessageV3 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 type
google.cloud.dialogflow.cx.v3.Fulfillment| Modifier and Type | Class and Description |
|---|---|
static class |
Fulfillment.Builder
A fulfillment can do one or more of the following actions at the same time:
* Generate rich message responses.
|
static class |
Fulfillment.ConditionalCases
A list of cascading if-else conditions.
|
static interface |
Fulfillment.ConditionalCasesOrBuilder |
static class |
Fulfillment.SetParameterAction
Setting a parameter value.
|
static interface |
Fulfillment.SetParameterActionOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
CONDITIONAL_CASES_FIELD_NUMBER |
static int |
MESSAGES_FIELD_NUMBER |
static int |
RETURN_PARTIAL_RESPONSES_FIELD_NUMBER |
static int |
SET_PARAMETER_ACTIONS_FIELD_NUMBER |
static int |
TAG_FIELD_NUMBER |
static int |
WEBHOOK_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Fulfillment.ConditionalCases |
getConditionalCases(int index)
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.
|
static Fulfillment |
getDefaultInstance() |
Fulfillment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ResponseMessage |
getMessages(int index)
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.
|
com.google.protobuf.Parser<Fulfillment> |
getParserForType() |
boolean |
getReturnPartialResponses()
Whether Dialogflow should return currently queued fulfillment response
messages in streaming APIs.
|
int |
getSerializedSize() |
Fulfillment.SetParameterAction |
getSetParameterActions(int index)
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getWebhook()
The webhook to call.
|
com.google.protobuf.ByteString |
getWebhookBytes()
The webhook to call.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Fulfillment.Builder |
newBuilder() |
static Fulfillment.Builder |
newBuilder(Fulfillment prototype) |
Fulfillment.Builder |
newBuilderForType() |
protected Fulfillment.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Fulfillment |
parseDelimitedFrom(InputStream input) |
static Fulfillment |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment |
parseFrom(byte[] data) |
static Fulfillment |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment |
parseFrom(ByteBuffer data) |
static Fulfillment |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment |
parseFrom(com.google.protobuf.ByteString data) |
static Fulfillment |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Fulfillment |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Fulfillment |
parseFrom(InputStream input) |
static Fulfillment |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Fulfillment> |
parser() |
Fulfillment.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MESSAGES_FIELD_NUMBER
public static final int WEBHOOK_FIELD_NUMBER
public static final int RETURN_PARTIAL_RESPONSES_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
public static final int SET_PARAMETER_ACTIONS_FIELD_NUMBER
public static final int CONDITIONAL_CASES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<ResponseMessage> getMessagesList()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;getMessagesList in interface FulfillmentOrBuilderpublic List<? extends ResponseMessageOrBuilder> getMessagesOrBuilderList()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;getMessagesOrBuilderList in interface FulfillmentOrBuilderpublic int getMessagesCount()
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;getMessagesCount in interface FulfillmentOrBuilderpublic ResponseMessage getMessages(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;getMessages in interface FulfillmentOrBuilderpublic ResponseMessageOrBuilder getMessagesOrBuilder(int index)
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3.ResponseMessage messages = 1;getMessagesOrBuilder in interface FulfillmentOrBuilderpublic 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) = { ... }getWebhook in interface FulfillmentOrBuilderpublic 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) = { ... }getWebhookBytes in interface FulfillmentOrBuilderpublic 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;getReturnPartialResponses in interface FulfillmentOrBuilderpublic 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;getTag in interface FulfillmentOrBuilderpublic 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;getTagBytes in interface FulfillmentOrBuilderpublic List<Fulfillment.SetParameterAction> getSetParameterActionsList()
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;
getSetParameterActionsList in interface FulfillmentOrBuilderpublic List<? extends Fulfillment.SetParameterActionOrBuilder> getSetParameterActionsOrBuilderList()
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;
getSetParameterActionsOrBuilderList in interface FulfillmentOrBuilderpublic int getSetParameterActionsCount()
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;
getSetParameterActionsCount in interface FulfillmentOrBuilderpublic Fulfillment.SetParameterAction getSetParameterActions(int index)
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;
getSetParameterActions in interface FulfillmentOrBuilderpublic Fulfillment.SetParameterActionOrBuilder getSetParameterActionsOrBuilder(int index)
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.SetParameterAction set_parameter_actions = 4;
getSetParameterActionsOrBuilder in interface FulfillmentOrBuilderpublic List<Fulfillment.ConditionalCases> getConditionalCasesList()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
getConditionalCasesList in interface FulfillmentOrBuilderpublic List<? extends Fulfillment.ConditionalCasesOrBuilder> getConditionalCasesOrBuilderList()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
getConditionalCasesOrBuilderList in interface FulfillmentOrBuilderpublic int getConditionalCasesCount()
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
getConditionalCasesCount in interface FulfillmentOrBuilderpublic Fulfillment.ConditionalCases getConditionalCases(int index)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
getConditionalCases in interface FulfillmentOrBuilderpublic Fulfillment.ConditionalCasesOrBuilder getConditionalCasesOrBuilder(int index)
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases conditional_cases = 5;
getConditionalCasesOrBuilder in interface FulfillmentOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Fulfillment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Fulfillment parseFrom(InputStream input) throws IOException
IOExceptionpublic static Fulfillment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fulfillment parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Fulfillment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Fulfillment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Fulfillment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Fulfillment.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Fulfillment.Builder newBuilder()
public static Fulfillment.Builder newBuilder(Fulfillment prototype)
public Fulfillment.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Fulfillment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Fulfillment getDefaultInstance()
public static com.google.protobuf.Parser<Fulfillment> parser()
public com.google.protobuf.Parser<Fulfillment> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Fulfillment getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.