Class Fulfillment
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.Fulfillment
- All Implemented Interfaces:
FulfillmentOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class Fulfillment
extends com.google.protobuf.GeneratedMessage
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.v3beta1.Page] or [Form][google.cloud.dialogflow.cx.v3beta1.Form] lifecycle. For example, when a [DetectIntentRequest][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.QueryResult] in the returning [DetectIntentResponse][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse], call the webhook (for example, to load user data from a database), or both.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Fulfillment- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fulfillment can do one or more of the following actions at the same time: * Generate rich message responsesstatic final classA list of cascading if-else conditions.static interfacestatic final classGenerator settings used by the LLM to generate a text response.static interfacestatic final classSetting a parameter value.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanHierarchical advanced settings for this fulfillment.Hierarchical advanced settings for this fulfillment.getConditionalCases(int index) Conditional cases for this fulfillment.intConditional cases for this fulfillment.Conditional cases for this fulfillment.getConditionalCasesOrBuilder(int index) Conditional cases for this fulfillment.List<? extends Fulfillment.ConditionalCasesOrBuilder>Conditional cases for this fulfillment.static Fulfillmentstatic final com.google.protobuf.Descriptors.DescriptorbooleanIf the flag is true, the agent will utilize LLM to generate a text response.getGenerators(int index) A list of Generators to be called during this fulfillment.intA list of Generators to be called during this fulfillment.A list of Generators to be called during this fulfillment.getGeneratorsOrBuilder(int index) A list of Generators to be called during this fulfillment.List<? extends Fulfillment.GeneratorSettingsOrBuilder>A list of Generators to be called during this fulfillment.getMessages(int index) The list of rich message responses to present to the user.intThe list of rich message responses to present to the user.The list of rich message responses to present to the user.getMessagesOrBuilder(int index) The list of rich message responses to present to the user.List<? extends ResponseMessageOrBuilder>The list of rich message responses to present to the user.com.google.protobuf.Parser<Fulfillment>booleanWhether Dialogflow should return currently queued fulfillment response messages in streaming APIs.intgetSetParameterActions(int index) Set parameter values before executing the webhook.intSet parameter values before executing the webhook.Set parameter values before executing the webhook.getSetParameterActionsOrBuilder(int index) Set parameter values before executing the webhook.List<? extends Fulfillment.SetParameterActionOrBuilder>Set parameter values before executing the webhook.getTag()The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called.com.google.protobuf.ByteStringThe value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called.The webhook to call.com.google.protobuf.ByteStringThe webhook to call.booleanHierarchical advanced settings for this fulfillment.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Fulfillment.Builderstatic Fulfillment.BuildernewBuilder(Fulfillment prototype) protected Fulfillment.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static FulfillmentparseDelimitedFrom(InputStream input) static FulfillmentparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FulfillmentparseFrom(byte[] data) static FulfillmentparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FulfillmentparseFrom(com.google.protobuf.ByteString data) static FulfillmentparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FulfillmentparseFrom(com.google.protobuf.CodedInputStream input) static FulfillmentparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FulfillmentparseFrom(InputStream input) static FulfillmentparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FulfillmentparseFrom(ByteBuffer data) static FulfillmentparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Fulfillment>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER- See Also:
-
WEBHOOK_FIELD_NUMBER
public static final int WEBHOOK_FIELD_NUMBER- See Also:
-
RETURN_PARTIAL_RESPONSES_FIELD_NUMBER
public static final int RETURN_PARTIAL_RESPONSES_FIELD_NUMBER- See Also:
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER- See Also:
-
SET_PARAMETER_ACTIONS_FIELD_NUMBER
public static final int SET_PARAMETER_ACTIONS_FIELD_NUMBER- See Also:
-
CONDITIONAL_CASES_FIELD_NUMBER
public static final int CONDITIONAL_CASES_FIELD_NUMBER- See Also:
-
ADVANCED_SETTINGS_FIELD_NUMBER
public static final int ADVANCED_SETTINGS_FIELD_NUMBER- See Also:
-
ENABLE_GENERATIVE_FALLBACK_FIELD_NUMBER
public static final int ENABLE_GENERATIVE_FALLBACK_FIELD_NUMBER- See Also:
-
GENERATORS_FIELD_NUMBER
public static final int GENERATORS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getMessagesList
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;- Specified by:
getMessagesListin interfaceFulfillmentOrBuilder
-
getMessagesOrBuilderList
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;- Specified by:
getMessagesOrBuilderListin interfaceFulfillmentOrBuilder
-
getMessagesCount
public int getMessagesCount()The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;- Specified by:
getMessagesCountin interfaceFulfillmentOrBuilder
-
getMessages
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;- Specified by:
getMessagesin interfaceFulfillmentOrBuilder
-
getMessagesOrBuilder
The list of rich message responses to present to the user.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage messages = 1;- Specified by:
getMessagesOrBuilderin interfaceFulfillmentOrBuilder
-
getWebhook
The webhook to call. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
string webhook = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getWebhookin interfaceFulfillmentOrBuilder- Returns:
- The webhook.
-
getWebhookBytes
public com.google.protobuf.ByteString getWebhookBytes()The webhook to call. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/webhooks/<WebhookID>`.
string webhook = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getWebhookBytesin interfaceFulfillmentOrBuilder- Returns:
- The bytes for webhook.
-
getReturnPartialResponses
public boolean getReturnPartialResponses()Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
bool return_partial_responses = 8;- Specified by:
getReturnPartialResponsesin interfaceFulfillmentOrBuilder- Returns:
- The returnPartialResponses.
-
getTag
The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called. The tag is typically used by the webhook service to identify which fulfillment is being called, but it could be used for other purposes. This field is required if `webhook` is specified.
string tag = 3;- Specified by:
getTagin interfaceFulfillmentOrBuilder- Returns:
- The tag.
-
getTagBytes
public com.google.protobuf.ByteString getTagBytes()The value of this field will be populated in the [WebhookRequest][google.cloud.dialogflow.cx.v3beta1.WebhookRequest] `fulfillmentInfo.tag` field by Dialogflow when the associated webhook is called. The tag is typically used by the webhook service to identify which fulfillment is being called, but it could be used for other purposes. This field is required if `webhook` is specified.
string tag = 3;- Specified by:
getTagBytesin interfaceFulfillmentOrBuilder- Returns:
- The bytes for tag.
-
getSetParameterActionsList
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsListin interfaceFulfillmentOrBuilder
-
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;- Specified by:
getSetParameterActionsOrBuilderListin interfaceFulfillmentOrBuilder
-
getSetParameterActionsCount
public int getSetParameterActionsCount()Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsCountin interfaceFulfillmentOrBuilder
-
getSetParameterActions
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsin interfaceFulfillmentOrBuilder
-
getSetParameterActionsOrBuilder
Set parameter values before executing the webhook.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.SetParameterAction set_parameter_actions = 4;- Specified by:
getSetParameterActionsOrBuilderin interfaceFulfillmentOrBuilder
-
getConditionalCasesList
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesListin interfaceFulfillmentOrBuilder
-
getConditionalCasesOrBuilderList
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesOrBuilderListin interfaceFulfillmentOrBuilder
-
getConditionalCasesCount
public int getConditionalCasesCount()Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesCountin interfaceFulfillmentOrBuilder
-
getConditionalCases
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesin interfaceFulfillmentOrBuilder
-
getConditionalCasesOrBuilder
Conditional cases for this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases conditional_cases = 5;- Specified by:
getConditionalCasesOrBuilderin interfaceFulfillmentOrBuilder
-
hasAdvancedSettings
public boolean hasAdvancedSettings()Hierarchical advanced settings for this fulfillment. The settings exposed at the lower level overrides the settings exposed at the higher level.
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;- Specified by:
hasAdvancedSettingsin interfaceFulfillmentOrBuilder- Returns:
- Whether the advancedSettings field is set.
-
getAdvancedSettings
Hierarchical advanced settings for this fulfillment. The settings exposed at the lower level overrides the settings exposed at the higher level.
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;- Specified by:
getAdvancedSettingsin interfaceFulfillmentOrBuilder- Returns:
- The advancedSettings.
-
getAdvancedSettingsOrBuilder
Hierarchical advanced settings for this fulfillment. The settings exposed at the lower level overrides the settings exposed at the higher level.
.google.cloud.dialogflow.cx.v3beta1.AdvancedSettings advanced_settings = 7;- Specified by:
getAdvancedSettingsOrBuilderin interfaceFulfillmentOrBuilder
-
getEnableGenerativeFallback
public boolean getEnableGenerativeFallback()If the flag is true, the agent will utilize LLM to generate a text response. If LLM generation fails, the defined [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the fulfillment will be respected. This flag is only useful for fulfillments associated with no-match event handlers.
bool enable_generative_fallback = 12;- Specified by:
getEnableGenerativeFallbackin interfaceFulfillmentOrBuilder- Returns:
- The enableGenerativeFallback.
-
getGeneratorsList
A list of Generators to be called during this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;- Specified by:
getGeneratorsListin interfaceFulfillmentOrBuilder
-
getGeneratorsOrBuilderList
A list of Generators to be called during this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;- Specified by:
getGeneratorsOrBuilderListin interfaceFulfillmentOrBuilder
-
getGeneratorsCount
public int getGeneratorsCount()A list of Generators to be called during this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;- Specified by:
getGeneratorsCountin interfaceFulfillmentOrBuilder
-
getGenerators
A list of Generators to be called during this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;- Specified by:
getGeneratorsin interfaceFulfillmentOrBuilder
-
getGeneratorsOrBuilder
A list of Generators to be called during this fulfillment.
repeated .google.cloud.dialogflow.cx.v3beta1.Fulfillment.GeneratorSettings generators = 13;- Specified by:
getGeneratorsOrBuilderin interfaceFulfillmentOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Fulfillment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fulfillment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fulfillment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fulfillment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fulfillment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Fulfillment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Fulfillment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Fulfillment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Fulfillment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Fulfillment.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-