Send feedback
Class Fulfillment (4.8.5)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.8.5 keyboard_arrow_down
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 .
Protobuf type google.cloud.dialogflow.v2beta1.Fulfillment
Static Fields
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
ENABLED_FIELD_NUMBER
public static final int ENABLED_FIELD_NUMBER
Field Value
FEATURES_FIELD_NUMBER
public static final int FEATURES_FIELD_NUMBER
Field Value
GENERIC_WEB_SERVICE_FIELD_NUMBER
public static final int GENERIC_WEB_SERVICE_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Fulfillment getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static Fulfillment . Builder newBuilder ()
Returns
newBuilder(Fulfillment prototype)
public static Fulfillment . Builder newBuilder ( Fulfillment prototype )
Parameter
Returns
public static Fulfillment parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Fulfillment parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Fulfillment parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Fulfillment parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Fulfillment parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Fulfillment parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Fulfillment parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static Fulfillment parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static Fulfillment parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static Fulfillment parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Fulfillment parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Fulfillment parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<Fulfillment> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Fulfillment getDefaultInstanceForType ()
Returns
getDisplayName()
public 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;
Returns
Type Description String The displayName.
getDisplayNameBytes()
public 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;
Returns
Type Description ByteString The bytes for displayName.
getEnabled()
public boolean getEnabled ()
Whether fulfillment is enabled.
bool enabled = 4;
Returns
getFeatures(int index)
public 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;
Parameter
Returns
getFeaturesCount()
public int getFeaturesCount ()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
Returns
getFeaturesList()
public List<Fulfillment . Feature > getFeaturesList ()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
Returns
getFeaturesOrBuilder(int index)
public 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;
Parameter
Returns
getFeaturesOrBuilderList()
public 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;
Returns
Type Description List <? extends com.google.cloud.dialogflow.v2beta1.Fulfillment.FeatureOrBuilder >
getFulfillmentCase()
public Fulfillment . FulfillmentCase getFulfillmentCase ()
Returns
getGenericWebService()
public Fulfillment . GenericWebService getGenericWebService ()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
Returns
getGenericWebServiceOrBuilder()
public Fulfillment . GenericWebServiceOrBuilder getGenericWebServiceOrBuilder ()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
Returns
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];
Returns
Type Description String The name.
getNameBytes()
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];
Returns
getParserForType()
public Parser<Fulfillment> getParserForType ()
Returns
Overrides
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
hasGenericWebService()
public boolean hasGenericWebService ()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
Returns
Type Description boolean Whether the genericWebService field is set.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public Fulfillment . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Fulfillment . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public Fulfillment . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]