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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
    • clear

      public Fulfillment.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Fulfillment.Builder>
    • getDefaultInstanceForType

      public Fulfillment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Fulfillment build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Fulfillment buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Fulfillment.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Fulfillment.Builder>
    • mergeFrom

      public Fulfillment.Builder mergeFrom(Fulfillment other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Fulfillment.Builder>
      Throws:
      IOException
    • getFulfillmentCase

      public Fulfillment.FulfillmentCase getFulfillmentCase()
      Specified by:
      getFulfillmentCase in interface FulfillmentOrBuilder
    • clearFulfillment

      public Fulfillment.Builder clearFulfillment()
    • 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];
      Specified by:
      getName in interface FulfillmentOrBuilder
      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:
      getNameBytes in interface FulfillmentOrBuilder
      Returns:
      The bytes for name.
    • setName

      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];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setNameBytes

      public Fulfillment.Builder setNameBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      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];
      Specified by:
      getDisplayName in interface FulfillmentOrBuilder
      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:
      getDisplayNameBytes in interface FulfillmentOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      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];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      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];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public Fulfillment.Builder setDisplayNameBytes(com.google.protobuf.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];
      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:
      hasGenericWebService in interface FulfillmentOrBuilder
      Returns:
      Whether the genericWebService field is set.
    • getGenericWebService

      public Fulfillment.GenericWebService getGenericWebService()
       Configuration for a generic web service.
       
      .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
      Specified by:
      getGenericWebService in interface FulfillmentOrBuilder
      Returns:
      The genericWebService.
    • setGenericWebService

      public Fulfillment.Builder setGenericWebService(Fulfillment.GenericWebService value)
       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

      public Fulfillment.Builder mergeGenericWebService(Fulfillment.GenericWebService value)
       Configuration for a generic web service.
       
      .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
    • clearGenericWebService

      public Fulfillment.Builder clearGenericWebService()
       Configuration for a generic web service.
       
      .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
    • getGenericWebServiceBuilder

      public Fulfillment.GenericWebService.Builder getGenericWebServiceBuilder()
       Configuration for a generic web service.
       
      .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
    • getGenericWebServiceOrBuilder

      public Fulfillment.GenericWebServiceOrBuilder getGenericWebServiceOrBuilder()
       Configuration for a generic web service.
       
      .google.cloud.dialogflow.v2.Fulfillment.GenericWebService generic_web_service = 3;
      Specified by:
      getGenericWebServiceOrBuilder in interface FulfillmentOrBuilder
    • getEnabled

      public boolean getEnabled()
       Optional. Whether fulfillment is enabled.
       
      bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnabled in interface FulfillmentOrBuilder
      Returns:
      The enabled.
    • setEnabled

      public Fulfillment.Builder setEnabled(boolean value)
       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

      public Fulfillment.Builder clearEnabled()
       Optional. Whether fulfillment is enabled.
       
      bool enabled = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getFeaturesList

      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];
      Specified by:
      getFeaturesList in interface FulfillmentOrBuilder
    • 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:
      getFeaturesCount in interface FulfillmentOrBuilder
    • getFeatures

      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];
      Specified by:
      getFeatures in interface FulfillmentOrBuilder
    • setFeatures

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

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

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

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

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

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

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

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

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

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

      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];
      Specified by:
      getFeaturesOrBuilder in interface FulfillmentOrBuilder
    • getFeaturesOrBuilderList

      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];
      Specified by:
      getFeaturesOrBuilderList in interface FulfillmentOrBuilder
    • addFeaturesBuilder

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

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

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