Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ValidationError

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 single validation error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2ValidationError

Returns a new instance of GoogleCloudDialogflowV2ValidationError.



13319
13320
13321
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13319

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

Instance Attribute Details

#entriesArray<String>

The names of the entries that the error is associated with. Format: - projects//agent, if the error is associated with the entire agent. - projects//agent/intents/, if the error is associated with certain intents. - projects//agent/intents//trainingPhrases/, if the error is associated with certain intent training phrases. - projects//agent/intents//parameters/, if the error is associated with certain intent parameters. - projects//agent/ entities/, if the error is associated with certain entities. Corresponds to the JSON property entries

Returns:

  • (Array<String>)


13307
13308
13309
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13307

def entries
  @entries
end

#error_messageString

The detailed error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


13312
13313
13314
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13312

def error_message
  @error_message
end

#severityString

The severity of the error. Corresponds to the JSON property severity

Returns:

  • (String)


13317
13318
13319
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13317

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13324
13325
13326
13327
13328
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13324

def update!(**args)
  @entries = args[:entries] if args.key?(:entries)
  @error_message = args[:error_message] if args.key?(:error_message)
  @severity = args[:severity] if args.key?(:severity)
end