public final class Fulfillment extends GeneratedMessageV3 implements FulfillmentOrBuilder
By default, your agent responds to a matched intent with a static response. As an alternative, you can provide a more dynamic response by using fulfillment. When you enable fulfillment for an intent, Dialogflow responds to that intent by calling a service that you define. For example, if an end-user wants to schedule a haircut on Friday, your service can check your database and respond to the end-user with availability information for Friday. For more information, see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/fulfillment-overview).Protobuf type
google.cloud.dialogflow.v2.Fulfillment
Modifier and Type | Class and Description |
---|---|
static class |
Fulfillment.Builder
By default, your agent responds to a matched intent with a static response.
|
static class |
Fulfillment.Feature
Whether fulfillment is enabled for the specific feature.
|
static interface |
Fulfillment.FeatureOrBuilder |
static class |
Fulfillment.FulfillmentCase |
static class |
Fulfillment.GenericWebService
Represents configuration for a generic web service.
|
static interface |
Fulfillment.GenericWebServiceOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
ENABLED_FIELD_NUMBER |
static int |
FEATURES_FIELD_NUMBER |
static int |
GENERIC_WEB_SERVICE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int GENERIC_WEB_SERVICE_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public Fulfillment.FulfillmentCase getFulfillmentCase()
getFulfillmentCase
in interface FulfillmentOrBuilder
public String getName()
Required. The unique identifier of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` This field is not used for Fulfillment in an Environment.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getName
in interface FulfillmentOrBuilder
public ByteString getNameBytes()
Required. The unique identifier of the fulfillment. Supported formats: - `projects/<Project ID>/agent/fulfillment` - `projects/<Project ID>/locations/<Location ID>/agent/fulfillment` This field is not used for Fulfillment in an Environment.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
getNameBytes
in interface FulfillmentOrBuilder
public String getDisplayName()
Optional. The human-readable name of the fulfillment, unique within the agent. This field is not used for Fulfillment in an Environment.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
getDisplayName
in interface FulfillmentOrBuilder
public ByteString getDisplayNameBytes()
Optional. The human-readable name of the fulfillment, unique within the agent. This field is not used for Fulfillment in an Environment.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
getDisplayNameBytes
in interface FulfillmentOrBuilder
public boolean hasGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
hasGenericWebService
in interface FulfillmentOrBuilder
public Fulfillment.GenericWebService getGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
getGenericWebService
in interface FulfillmentOrBuilder
public Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
getGenericWebServiceOrBuilder
in interface FulfillmentOrBuilder
public boolean getEnabled()
Optional. Whether fulfillment is enabled.
bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
getEnabled
in interface FulfillmentOrBuilder
public List<Fulfillment.Feature> getFeaturesList()
Optional. The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL];
getFeaturesList
in interface FulfillmentOrBuilder
public List<? extends Fulfillment.FeatureOrBuilder> getFeaturesOrBuilderList()
Optional. The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL];
getFeaturesOrBuilderList
in interface FulfillmentOrBuilder
public int getFeaturesCount()
Optional. The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL];
getFeaturesCount
in interface FulfillmentOrBuilder
public Fulfillment.Feature getFeatures(int index)
Optional. The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL];
getFeatures
in interface FulfillmentOrBuilder
public Fulfillment.FeatureOrBuilder getFeaturesOrBuilder(int index)
Optional. The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2.Fulfillment.Feature features = 5 [(.google.api.field_behavior) = OPTIONAL];
getFeaturesOrBuilder
in interface FulfillmentOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static Fulfillment parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static Fulfillment parseFrom(InputStream input) throws IOException
IOException
public static Fulfillment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Fulfillment parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Fulfillment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Fulfillment parseFrom(CodedInputStream input) throws IOException
IOException
public static Fulfillment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Fulfillment.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static Fulfillment.Builder newBuilder()
public static Fulfillment.Builder newBuilder(Fulfillment prototype)
public Fulfillment.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected Fulfillment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static Fulfillment getDefaultInstance()
public static Parser<Fulfillment> parser()
public Parser<Fulfillment> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public Fulfillment getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.