public static final class Fulfillment.Builder extends GeneratedMessageV3.Builder<Fulfillment.Builder> 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 | Method and Description |
---|---|
Fulfillment.Builder |
addAllFeatures(Iterable<? extends Fulfillment.Feature> values)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
addFeatures(Fulfillment.Feature.Builder builderForValue)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
addFeatures(Fulfillment.Feature value)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
addFeatures(int index,
Fulfillment.Feature.Builder builderForValue)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
addFeatures(int index,
Fulfillment.Feature value)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Feature.Builder |
addFeaturesBuilder()
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Feature.Builder |
addFeaturesBuilder(int index)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
Fulfillment |
build() |
Fulfillment |
buildPartial() |
Fulfillment.Builder |
clear() |
Fulfillment.Builder |
clearDisplayName()
The human-readable name of the fulfillment, unique within the agent.
|
Fulfillment.Builder |
clearEnabled()
Whether fulfillment is enabled.
|
Fulfillment.Builder |
clearFeatures()
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
clearField(Descriptors.FieldDescriptor field) |
Fulfillment.Builder |
clearFulfillment() |
Fulfillment.Builder |
clearGenericWebService()
Configuration for a generic web service.
|
Fulfillment.Builder |
clearName()
Required.
|
Fulfillment.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Fulfillment.Builder |
clone() |
Fulfillment |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
The human-readable name of the fulfillment, unique within the agent.
|
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.
|
Fulfillment.Feature.Builder |
getFeaturesBuilder(int index)
The field defines whether the fulfillment is enabled for certain features.
|
List<Fulfillment.Feature.Builder> |
getFeaturesBuilderList()
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.GenericWebService.Builder |
getGenericWebServiceBuilder()
Configuration for a generic web service.
|
Fulfillment.GenericWebServiceOrBuilder |
getGenericWebServiceOrBuilder()
Configuration for a generic web service.
|
String |
getName()
Required.
|
ByteString |
getNameBytes()
Required.
|
boolean |
hasGenericWebService()
Configuration for a generic web service.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Fulfillment.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Fulfillment.Builder |
mergeFrom(Fulfillment other) |
Fulfillment.Builder |
mergeFrom(Message other) |
Fulfillment.Builder |
mergeGenericWebService(Fulfillment.GenericWebService value)
Configuration for a generic web service.
|
Fulfillment.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Fulfillment.Builder |
removeFeatures(int index)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
setDisplayName(String value)
The human-readable name of the fulfillment, unique within the agent.
|
Fulfillment.Builder |
setDisplayNameBytes(ByteString value)
The human-readable name of the fulfillment, unique within the agent.
|
Fulfillment.Builder |
setEnabled(boolean value)
Whether fulfillment is enabled.
|
Fulfillment.Builder |
setFeatures(int index,
Fulfillment.Feature.Builder builderForValue)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
setFeatures(int index,
Fulfillment.Feature value)
The field defines whether the fulfillment is enabled for certain features.
|
Fulfillment.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
Fulfillment.Builder |
setGenericWebService(Fulfillment.GenericWebService.Builder builderForValue)
Configuration for a generic web service.
|
Fulfillment.Builder |
setGenericWebService(Fulfillment.GenericWebService value)
Configuration for a generic web service.
|
Fulfillment.Builder |
setName(String value)
Required.
|
Fulfillment.Builder |
setNameBytes(ByteString value)
Required.
|
Fulfillment.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
Fulfillment.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Fulfillment build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Fulfillment buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Fulfillment.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Fulfillment.Builder>
public Fulfillment.Builder mergeFrom(Fulfillment other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public Fulfillment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Fulfillment.Builder>
IOException
public Fulfillment.FulfillmentCase getFulfillmentCase()
getFulfillmentCase
in interface FulfillmentOrBuilder
public Fulfillment.Builder clearFulfillment()
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 Fulfillment.Builder setName(String value)
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];
value
- The name to set.public Fulfillment.Builder clearName()
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];
public Fulfillment.Builder setNameBytes(ByteString value)
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];
value
- The bytes for name to set.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;
getDisplayName
in interface FulfillmentOrBuilder
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;
getDisplayNameBytes
in interface FulfillmentOrBuilder
public Fulfillment.Builder setDisplayName(String value)
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;
value
- The displayName to set.public Fulfillment.Builder clearDisplayName()
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;
public Fulfillment.Builder setDisplayNameBytes(ByteString value)
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;
value
- The bytes for displayName to set.public boolean hasGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
hasGenericWebService
in interface FulfillmentOrBuilder
public Fulfillment.GenericWebService getGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
getGenericWebService
in interface FulfillmentOrBuilder
public Fulfillment.Builder setGenericWebService(Fulfillment.GenericWebService value)
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.Builder setGenericWebService(Fulfillment.GenericWebService.Builder builderForValue)
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.Builder mergeGenericWebService(Fulfillment.GenericWebService value)
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.Builder clearGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.GenericWebService.Builder getGenericWebServiceBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;
getGenericWebServiceOrBuilder
in interface FulfillmentOrBuilder
public boolean getEnabled()
Whether fulfillment is enabled.
bool enabled = 4;
getEnabled
in interface FulfillmentOrBuilder
public Fulfillment.Builder setEnabled(boolean value)
Whether fulfillment is enabled.
bool enabled = 4;
value
- The enabled to set.public Fulfillment.Builder clearEnabled()
Whether fulfillment is enabled.
bool enabled = 4;
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;
getFeaturesList
in interface FulfillmentOrBuilder
public 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 FulfillmentOrBuilder
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;
getFeatures
in interface FulfillmentOrBuilder
public Fulfillment.Builder setFeatures(int index, Fulfillment.Feature value)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder setFeatures(int index, Fulfillment.Feature.Builder builderForValue)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder addFeatures(Fulfillment.Feature value)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder addFeatures(int index, Fulfillment.Feature value)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder addFeatures(Fulfillment.Feature.Builder builderForValue)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder addFeatures(int index, Fulfillment.Feature.Builder builderForValue)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder addAllFeatures(Iterable<? extends Fulfillment.Feature> values)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder clearFeatures()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Builder removeFeatures(int index)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Feature.Builder getFeaturesBuilder(int index)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
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;
getFeaturesOrBuilder
in interface FulfillmentOrBuilder
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;
getFeaturesOrBuilderList
in interface FulfillmentOrBuilder
public Fulfillment.Feature.Builder addFeaturesBuilder()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public Fulfillment.Feature.Builder addFeaturesBuilder(int index)
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public List<Fulfillment.Feature.Builder> getFeaturesBuilderList()
The field defines whether the fulfillment is enabled for certain features.
repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;
public final Fulfillment.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
public final Fulfillment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Fulfillment.Builder>
Copyright © 2022 Google LLC. All rights reserved.