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.v2.Fulfillment
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()
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 Fulfillment.Builder setDisplayName(String value)
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];
value
- The displayName to set.public Fulfillment.Builder clearDisplayName()
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];
public Fulfillment.Builder setDisplayNameBytes(ByteString value)
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];
value
- The bytes for displayName to set.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.Builder setGenericWebService(Fulfillment.GenericWebService value)
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.Builder setGenericWebService(Fulfillment.GenericWebService.Builder builderForValue)
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.Builder mergeGenericWebService(Fulfillment.GenericWebService value)
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.Builder clearGenericWebService()
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
public Fulfillment.GenericWebService.Builder getGenericWebServiceBuilder()
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
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 Fulfillment.Builder setEnabled(boolean value)
Optional. Whether fulfillment is enabled.
bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
value
- The enabled to set.public Fulfillment.Builder clearEnabled()
Optional. Whether fulfillment is enabled.
bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
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 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.Builder setFeatures(int index, Fulfillment.Feature value)
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];
public Fulfillment.Builder setFeatures(int index, Fulfillment.Feature.Builder builderForValue)
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];
public Fulfillment.Builder addFeatures(Fulfillment.Feature value)
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];
public Fulfillment.Builder addFeatures(int index, Fulfillment.Feature value)
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];
public Fulfillment.Builder addFeatures(Fulfillment.Feature.Builder builderForValue)
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];
public Fulfillment.Builder addFeatures(int index, Fulfillment.Feature.Builder builderForValue)
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];
public Fulfillment.Builder addAllFeatures(Iterable<? extends Fulfillment.Feature> values)
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];
public Fulfillment.Builder clearFeatures()
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];
public Fulfillment.Builder removeFeatures(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];
public Fulfillment.Feature.Builder getFeaturesBuilder(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];
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 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 Fulfillment.Feature.Builder addFeaturesBuilder()
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];
public Fulfillment.Feature.Builder addFeaturesBuilder(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];
public List<Fulfillment.Feature.Builder> getFeaturesBuilderList()
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];
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.