Class Fulfillment.Builder (4.7.5)

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.

Protobuf type google.cloud.dialogflow.v2beta1.Fulfillment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllFeatures(Iterable<? extends Fulfillment.Feature> values)

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;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2beta1.Fulfillment.Feature>
Returns
TypeDescription
Fulfillment.Builder

addFeatures(Fulfillment.Feature value)

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;

Parameter
NameDescription
valueFulfillment.Feature
Returns
TypeDescription
Fulfillment.Builder

addFeatures(Fulfillment.Feature.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueFulfillment.Feature.Builder
Returns
TypeDescription
Fulfillment.Builder

addFeatures(int index, Fulfillment.Feature value)

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;

Parameters
NameDescription
indexint
valueFulfillment.Feature
Returns
TypeDescription
Fulfillment.Builder

addFeatures(int index, Fulfillment.Feature.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueFulfillment.Feature.Builder
Returns
TypeDescription
Fulfillment.Builder

addFeaturesBuilder()

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;

Returns
TypeDescription
Fulfillment.Feature.Builder

addFeaturesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.Feature.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Fulfillment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Fulfillment.Builder
Overrides

build()

public Fulfillment build()
Returns
TypeDescription
Fulfillment

buildPartial()

public Fulfillment buildPartial()
Returns
TypeDescription
Fulfillment

clear()

public Fulfillment.Builder clear()
Returns
TypeDescription
Fulfillment.Builder
Overrides

clearDisplayName()

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;

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

clearEnabled()

public Fulfillment.Builder clearEnabled()

Whether fulfillment is enabled.

bool enabled = 4;

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

clearFeatures()

public Fulfillment.Builder clearFeatures()

The field defines whether the fulfillment is enabled for certain features.

repeated .google.cloud.dialogflow.v2beta1.Fulfillment.Feature features = 5;

Returns
TypeDescription
Fulfillment.Builder

clearField(Descriptors.FieldDescriptor field)

public Fulfillment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Fulfillment.Builder
Overrides

clearFulfillment()

public Fulfillment.Builder clearFulfillment()
Returns
TypeDescription
Fulfillment.Builder

clearGenericWebService()

public Fulfillment.Builder clearGenericWebService()

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Returns
TypeDescription
Fulfillment.Builder

clearName()

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];

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Fulfillment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Fulfillment.Builder
Overrides

clone()

public Fulfillment.Builder clone()
Returns
TypeDescription
Fulfillment.Builder
Overrides

getDefaultInstanceForType()

public Fulfillment getDefaultInstanceForType()
Returns
TypeDescription
Fulfillment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for displayName.

getEnabled()

public boolean getEnabled()

Whether fulfillment is enabled.

bool enabled = 4;

Returns
TypeDescription
boolean

The enabled.

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
NameDescription
indexint
Returns
TypeDescription
Fulfillment.Feature

getFeaturesBuilder(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.Feature.Builder

getFeaturesBuilderList()

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;

Returns
TypeDescription
List<Builder>

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
TypeDescription
int

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
TypeDescription
List<Feature>

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
NameDescription
indexint
Returns
TypeDescription
Fulfillment.FeatureOrBuilder

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
TypeDescription
List<? extends com.google.cloud.dialogflow.v2beta1.Fulfillment.FeatureOrBuilder>

getFulfillmentCase()

public Fulfillment.FulfillmentCase getFulfillmentCase()
Returns
TypeDescription
Fulfillment.FulfillmentCase

getGenericWebService()

public Fulfillment.GenericWebService getGenericWebService()

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Returns
TypeDescription
Fulfillment.GenericWebService

The genericWebService.

getGenericWebServiceBuilder()

public Fulfillment.GenericWebService.Builder getGenericWebServiceBuilder()

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Returns
TypeDescription
Fulfillment.GenericWebService.Builder

getGenericWebServiceOrBuilder()

public Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Returns
TypeDescription
Fulfillment.GenericWebServiceOrBuilder

getName()

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];

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

hasGenericWebService()

public boolean hasGenericWebService()

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Returns
TypeDescription
boolean

Whether the genericWebService field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Fulfillment other)

public Fulfillment.Builder mergeFrom(Fulfillment other)
Parameter
NameDescription
otherFulfillment
Returns
TypeDescription
Fulfillment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Fulfillment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Fulfillment.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Fulfillment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Fulfillment.Builder
Overrides

mergeGenericWebService(Fulfillment.GenericWebService value)

public Fulfillment.Builder mergeGenericWebService(Fulfillment.GenericWebService value)

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Parameter
NameDescription
valueFulfillment.GenericWebService
Returns
TypeDescription
Fulfillment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Fulfillment.Builder
Overrides

removeFeatures(int index)

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
Fulfillment.Builder

setDisplayName(String value)

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;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

setEnabled(boolean value)

public Fulfillment.Builder setEnabled(boolean value)

Whether fulfillment is enabled.

bool enabled = 4;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

setFeatures(int index, Fulfillment.Feature value)

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;

Parameters
NameDescription
indexint
valueFulfillment.Feature
Returns
TypeDescription
Fulfillment.Builder

setFeatures(int index, Fulfillment.Feature.Builder builderForValue)

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;

Parameters
NameDescription
indexint
builderForValueFulfillment.Feature.Builder
Returns
TypeDescription
Fulfillment.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Fulfillment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Fulfillment.Builder
Overrides

setGenericWebService(Fulfillment.GenericWebService value)

public Fulfillment.Builder setGenericWebService(Fulfillment.GenericWebService value)

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Parameter
NameDescription
valueFulfillment.GenericWebService
Returns
TypeDescription
Fulfillment.Builder

setGenericWebService(Fulfillment.GenericWebService.Builder builderForValue)

public Fulfillment.Builder setGenericWebService(Fulfillment.GenericWebService.Builder builderForValue)

Configuration for a generic web service.

.google.cloud.dialogflow.v2beta1.Fulfillment.GenericWebService generic_web_service = 3;

Parameter
NameDescription
builderForValueFulfillment.GenericWebService.Builder
Returns
TypeDescription
Fulfillment.Builder

setName(String value)

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];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

setNameBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Fulfillment.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Fulfillment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Fulfillment.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Fulfillment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Fulfillment.Builder
Overrides