public final class Fulfillment extends com.google.protobuf.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.v2beta1.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 |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| 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 |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Fulfillment |
getDefaultInstance() |
Fulfillment |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
The human-readable name of the fulfillment, unique within the agent.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The human-readable name of the fulfillment, unique within the agent.
|
boolean |
getEnabled()
Whether fulfillment is enabled.
|
Fulfillment.Feature |
getFeatures(int index)
The field defines whether the fulfillment is enabled for certain features.
|
int |
getFeaturesCount()
The field defines whether the fulfillment is enabled for certain features.
|
List<Fulfillment.Feature> |
getFeaturesList()
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.FeatureOrBuilder |
getFeaturesOrBuilder(int index)
The field defines whether the fulfillment is enabled for certain features.
|
List<? extends Fulfillment.FeatureOrBuilder> |
getFeaturesOrBuilderList()
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.FulfillmentCase |
getFulfillmentCase() |
Fulfillment.GenericWebService |
getGenericWebService()
Configuration for a generic web service.
|
Fulfillment.GenericWebServiceOrBuilder |
getGenericWebServiceOrBuilder()
Configuration for a generic web service.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
com.google.protobuf.Parser<Fulfillment> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasGenericWebService()
Configuration for a generic web service.
|
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, makeMutableCopy, 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 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(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 Fulfillment.FulfillmentCase getFulfillmentCase()
getFulfillmentCase in interface FulfillmentOrBuilderpublic 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 FulfillmentOrBuilderpublic com.google.protobuf.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 FulfillmentOrBuilderpublic String getDisplayName()
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;getDisplayName in interface FulfillmentOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
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;getDisplayNameBytes in interface FulfillmentOrBuilderpublic boolean hasGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
hasGenericWebService in interface FulfillmentOrBuilderpublic Fulfillment.GenericWebService getGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
getGenericWebService in interface FulfillmentOrBuilderpublic Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
getGenericWebServiceOrBuilder in interface FulfillmentOrBuilderpublic boolean getEnabled()
Whether fulfillment is enabled.
bool enabled = 4;getEnabled in interface FulfillmentOrBuilderpublic List<Fulfillment.Feature> getFeaturesList()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;getFeaturesList in interface FulfillmentOrBuilderpublic List<? extends Fulfillment.FeatureOrBuilder> getFeaturesOrBuilderList()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;getFeaturesOrBuilderList in interface FulfillmentOrBuilderpublic int getFeaturesCount()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;getFeaturesCount in interface FulfillmentOrBuilderpublic Fulfillment.Feature getFeatures(int index)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;getFeatures in interface FulfillmentOrBuilderpublic Fulfillment.FeatureOrBuilder getFeaturesOrBuilder(int index)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;getFeaturesOrBuilder 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 © 2023 Google LLC. All rights reserved.