Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExperimentDefinition

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

Definition of the experiment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ExperimentDefinition

Returns a new instance of GoogleCloudDialogflowCxV3ExperimentDefinition.



2408
2409
2410
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 2408

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

Instance Attribute Details

#conditionString

The condition defines which subset of sessions are selected for this experiment. If not specified, all sessions are eligible. E.g. "query_input. language_code=en" See the conditions reference. Corresponds to the JSON property condition

Returns:

  • (String)


2401
2402
2403
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 2401

def condition
  @condition
end

#version_variantsGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3VersionVariants

A list of flow version variants. Corresponds to the JSON property versionVariants



2406
2407
2408
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 2406

def version_variants
  @version_variants
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2413
2414
2415
2416
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 2413

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