Package com.google.cloud.dialogflow.v2
Class Fulfillment.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
com.google.cloud.dialogflow.v2.Fulfillment.Builder
- All Implemented Interfaces:
FulfillmentOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Fulfillment
public static final class Fulfillment.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionaddAllFeatures(Iterable<? extends Fulfillment.Feature> values) Optional.addFeatures(int index, Fulfillment.Feature value) Optional.addFeatures(int index, Fulfillment.Feature.Builder builderForValue) Optional.addFeatures(Fulfillment.Feature value) Optional.addFeatures(Fulfillment.Feature.Builder builderForValue) Optional.Optional.addFeaturesBuilder(int index) Optional.build()clear()Optional.Optional.Optional.Configuration for a generic web service.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanOptional.getFeatures(int index) Optional.getFeaturesBuilder(int index) Optional.Optional.intOptional.Optional.getFeaturesOrBuilder(int index) Optional.List<? extends Fulfillment.FeatureOrBuilder>Optional.Configuration for a generic web service.Configuration for a generic web service.Configuration for a generic web service.getName()Required.com.google.protobuf.ByteStringRequired.booleanConfiguration for a generic web service.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Fulfillment other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Configuration for a generic web service.removeFeatures(int index) Optional.setDisplayName(String value) Optional.setDisplayNameBytes(com.google.protobuf.ByteString value) Optional.setEnabled(boolean value) Optional.setFeatures(int index, Fulfillment.Feature value) Optional.setFeatures(int index, Fulfillment.Feature.Builder builderForValue) Optional.Configuration for a generic web service.setGenericWebService(Fulfillment.GenericWebService.Builder builderForValue) Configuration for a generic web service.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Fulfillment.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
-
mergeFrom
public Fulfillment.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Fulfillment.Builder>- Throws:
IOException
-
getFulfillmentCase
- Specified by:
getFulfillmentCasein interfaceFulfillmentOrBuilder
-
clearFulfillment
-
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];- Specified by:
getNamein interfaceFulfillmentOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceFulfillmentOrBuilder- Returns:
- The bytes for name.
-
setName
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];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setNameBytes
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];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDisplayNamein interfaceFulfillmentOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.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];- Specified by:
getDisplayNameBytesin interfaceFulfillmentOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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];- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
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];- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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];- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
hasGenericWebService
public boolean hasGenericWebService()Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;- Specified by:
hasGenericWebServicein interfaceFulfillmentOrBuilder- Returns:
- Whether the genericWebService field is set.
-
getGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;- Specified by:
getGenericWebServicein interfaceFulfillmentOrBuilder- Returns:
- The genericWebService.
-
setGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; -
setGenericWebService
public Fulfillment.Builder setGenericWebService(Fulfillment.GenericWebService.Builder builderForValue) Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; -
mergeGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; -
clearGenericWebService
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; -
getGenericWebServiceBuilder
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3; -
getGenericWebServiceOrBuilder
Configuration for a generic web service.
.google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;- Specified by:
getGenericWebServiceOrBuilderin interfaceFulfillmentOrBuilder
-
getEnabled
public boolean getEnabled()Optional. Whether fulfillment is enabled.
bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnabledin interfaceFulfillmentOrBuilder- Returns:
- The enabled.
-
setEnabled
Optional. Whether fulfillment is enabled.
bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Optional. Whether fulfillment is enabled.
bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
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];- Specified by:
getFeaturesListin interfaceFulfillmentOrBuilder
-
getFeaturesCount
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];- Specified by:
getFeaturesCountin interfaceFulfillmentOrBuilder
-
getFeatures
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];- Specified by:
getFeaturesin interfaceFulfillmentOrBuilder
-
setFeatures
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]; -
setFeatures
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]; -
addFeatures
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]; -
addFeatures
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]; -
addFeatures
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]; -
addFeatures
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]; -
addAllFeatures
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]; -
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]; -
removeFeatures
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]; -
getFeaturesBuilder
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
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];- Specified by:
getFeaturesOrBuilderin interfaceFulfillmentOrBuilder
-
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];- Specified by:
getFeaturesOrBuilderListin interfaceFulfillmentOrBuilder
-
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]; -
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]; -
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];
-