Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2IntentParameter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2IntentParameter

Returns a new instance of GoogleCloudDialogflowV2IntentParameter.



16947
16948
16949
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16947

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

Instance Attribute Details

#default_valueString

Corresponds to the JSON property defaultValue

Returns:

  • (String)


16908
16909
16910
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16908

def default_value
  @default_value
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


16913
16914
16915
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16913

def display_name
  @display_name
end

#entity_type_display_nameString

Corresponds to the JSON property entityTypeDisplayName

Returns:

  • (String)


16918
16919
16920
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16918

def entity_type_display_name
  @entity_type_display_name
end

#is_listBoolean Also known as: is_list?

Corresponds to the JSON property isList

Returns:

  • (Boolean)


16923
16924
16925
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16923

def is_list
  @is_list
end

#mandatoryBoolean Also known as: mandatory?

Corresponds to the JSON property mandatory

Returns:

  • (Boolean)


16929
16930
16931
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16929

def mandatory
  @mandatory
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


16935
16936
16937
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16935

def name
  @name
end

#promptsArray<String>

Corresponds to the JSON property prompts

Returns:

  • (Array<String>)


16940
16941
16942
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16940

def prompts
  @prompts
end

#valueString

Corresponds to the JSON property value

Returns:

  • (String)


16945
16946
16947
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16945

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16952
16953
16954
16955
16956
16957
16958
16959
16960
16961
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 16952

def update!(**args)
  @default_value = args[:default_value] if args.key?(:default_value)
  @display_name = args[:display_name] if args.key?(:display_name)
  @entity_type_display_name = args[:entity_type_display_name] if args.key?(:entity_type_display_name)
  @is_list = args[:is_list] if args.key?(:is_list)
  @mandatory = args[:mandatory] if args.key?(:mandatory)
  @name = args[:name] if args.key?(:name)
  @prompts = args[:prompts] if args.key?(:prompts)
  @value = args[:value] if args.key?(:value)
end