Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb

Overview

Represents a fulfillment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2Fulfillment

Returns a new instance of GoogleCloudDialogflowV2Fulfillment.



893
894
895
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 893

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Optional. The human-readable name of the fulfillment, unique within the agent. Corresponds to the JSON property displayName

Returns:

  • (String)


863
864
865
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 863

def display_name
  @display_name
end

#enabledBoolean Also known as: enabled?

Optional. Whether fulfillment is enabled. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


868
869
870
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 868

def enabled
  @enabled
end

#featuresArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentFeature>

Optional. The field defines whether the fulfillment is enabled for certain features. Corresponds to the JSON property features



875
876
877
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 875

def features
  @features
end

#generic_web_serviceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService

Represents configuration for a generic web service. Dialogflow supports two mechanisms for authentications:



885
886
887
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 885

def generic_web_service
  @generic_web_service
end

#nameString

Required. The unique identifier of the fulfillment. Format: projects/<Project ID>/agent/fulfillment. Corresponds to the JSON property name

Returns:

  • (String)


891
892
893
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 891

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



898
899
900
901
902
903
904
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 898

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @enabled = args[:enabled] if args.key?(:enabled)
  @features = args[:features] if args.key?(:features)
  @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
  @name = args[:name] if args.key?(:name)
end