Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder

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

Overview

Represents a custom placeholder in the prompt text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder

Returns a new instance of GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder.



7974
7975
7976
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7974

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

Instance Attribute Details

#idString

Unique ID used to map custom placeholder to parameters in fulfillment. Corresponds to the JSON property id

Returns:

  • (String)


7967
7968
7969
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7967

def id
  @id
end

#nameString

Custom placeholder value in the prompt text. Corresponds to the JSON property name

Returns:

  • (String)


7972
7973
7974
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7972

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7979
7980
7981
7982
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7979

def update!(**args)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
end