Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingContext

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

Agent Coaching context that customer can configure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2AgentCoachingContext

Returns a new instance of GoogleCloudDialogflowV2AgentCoachingContext.



8266
8267
8268
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8266

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

Instance Attribute Details

#instructionsArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentCoachingInstruction>

Optional. Customized instructions for agent coaching. Corresponds to the JSON property instructions



8247
8248
8249
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8247

def instructions
  @instructions
end

#output_language_codeString

Optional. Output language code. Corresponds to the JSON property outputLanguageCode

Returns:

  • (String)


8252
8253
8254
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8252

def output_language_code
  @output_language_code
end

#overarching_guidanceString

Optional. The overarching guidance for the agent coaching. This should be set only for v1.5 and later versions. Corresponds to the JSON property overarchingGuidance

Returns:

  • (String)


8258
8259
8260
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8258

def overarching_guidance
  @overarching_guidance
end

#versionString

Optional. Version of the feature. If not set, default to latest version. Current candidates are ["1.2"]. Corresponds to the JSON property version

Returns:

  • (String)


8264
8265
8266
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8264

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8271
8272
8273
8274
8275
8276
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 8271

def update!(**args)
  @instructions = args[:instructions] if args.key?(:instructions)
  @output_language_code = args[:output_language_code] if args.key?(:output_language_code)
  @overarching_guidance = args[:overarching_guidance] if args.key?(:overarching_guidance)
  @version = args[:version] if args.key?(:version)
end