Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestConfig

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 configurations for a test case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3TestConfig

Returns a new instance of GoogleCloudDialogflowCxV3TestConfig.



2806
2807
2808
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2806

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

Instance Attribute Details

#flowString

Flow name to start the test case with. Format: projects//locations//agents// flows/. Only one of flow and page should be set to indicate the starting point of the test case. If both are set, page takes precedence over flow. If neither is set, the test case will start with start page on the default start flow. Corresponds to the JSON property flow

Returns:

  • (String)


2790
2791
2792
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2790

def flow
  @flow
end

#pageString

The page to start the test case with. Format: projects//locations//agents// flows//pages/. Only one of flow and page should be set to indicate the starting point of the test case. If both are set, page takes precedence over flow. If neither is set, the test case will start with start page on the default start flow. Corresponds to the JSON property page

Returns:

  • (String)


2799
2800
2801
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2799

def page
  @page
end

#tracking_parametersArray<String>

Session parameters to be compared when calculating differences. Corresponds to the JSON property trackingParameters

Returns:

  • (Array<String>)


2804
2805
2806
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2804

def tracking_parameters
  @tracking_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2811
2812
2813
2814
2815
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2811

def update!(**args)
  @flow = args[:flow] if args.key?(:flow)
  @page = args[:page] if args.key?(:page)
  @tracking_parameters = args[:tracking_parameters] if args.key?(:tracking_parameters)
end