Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1FormParameter

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

Overview

Represents a form parameter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1FormParameter

Returns a new instance of GoogleCloudDialogflowCxV3beta1FormParameter.



3855
3856
3857
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3855

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

Instance Attribute Details

#default_valueObject

The default value of an optional parameter. If the parameter is required, the default value will be ignored. Corresponds to the JSON property defaultValue

Returns:

  • (Object)


3812
3813
3814
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3812

def default_value
  @default_value
end

#display_nameString

Required. The human-readable name of the parameter, unique within the form. Corresponds to the JSON property displayName

Returns:

  • (String)


3817
3818
3819
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3817

def display_name
  @display_name
end

#entity_typeString

Required. The entity type of the parameter. Format: projects/-/locations/-/ agents/-/entityTypes/ for system entity types (for example, projects/-/ locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents// entityTypes/ for developer entity types. Corresponds to the JSON property entityType

Returns:

  • (String)


3825
3826
3827
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3825

def entity_type
  @entity_type
end

#fill_behaviorGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior

Configuration for how the filling of a parameter should be handled. Corresponds to the JSON property fillBehavior



3830
3831
3832
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3830

def fill_behavior
  @fill_behavior
end

#is_listBoolean Also known as: is_list?

Indicates whether the parameter represents a list of values. Corresponds to the JSON property isList

Returns:

  • (Boolean)


3835
3836
3837
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3835

def is_list
  @is_list
end

#redactBoolean Also known as: redact?

Indicates whether the parameter content should be redacted in log. If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled. Corresponds to the JSON property redact

Returns:

  • (Boolean)


3844
3845
3846
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3844

def redact
  @redact
end

#requiredBoolean Also known as: required?

Indicates whether the parameter is required. Optional parameters will not trigger prompts; however, they are filled if the user specifies them. Required parameters must be filled before form filling concludes. Corresponds to the JSON property required

Returns:

  • (Boolean)


3852
3853
3854
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3852

def required
  @required
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3860
3861
3862
3863
3864
3865
3866
3867
3868
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3860

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 = args[:entity_type] if args.key?(:entity_type)
  @fill_behavior = args[:fill_behavior] if args.key?(:fill_behavior)
  @is_list = args[:is_list] if args.key?(:is_list)
  @redact = args[:redact] if args.key?(:redact)
  @required = args[:required] if args.key?(:required)
end