Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3GeneratorPlaceholder

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

Overview

Represents a custom placeholder in the prompt text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3GeneratorPlaceholder

Returns a new instance of GoogleCloudDialogflowCxV3GeneratorPlaceholder.



3385
3386
3387
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3385

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)


3378
3379
3380
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3378

def id
  @id
end

#nameString

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

Returns:

  • (String)


3383
3384
3385
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3383

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3390
3391
3392
3393
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3390

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