Class: Google::Apis::LanguageV2::XpsDataErrors

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

Overview

Different types of errors and the stats associatesd with each error.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ XpsDataErrors

Returns a new instance of XpsDataErrors.



1702
1703
1704
# File 'lib/google/apis/language_v2/classes.rb', line 1702

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

Instance Attribute Details

#countFixnum

Number of records having errors associated with the enum. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1695
1696
1697
# File 'lib/google/apis/language_v2/classes.rb', line 1695

def count
  @count
end

#error_typeString

Type of the error. Corresponds to the JSON property errorType

Returns:

  • (String)


1700
1701
1702
# File 'lib/google/apis/language_v2/classes.rb', line 1700

def error_type
  @error_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1707
1708
1709
1710
# File 'lib/google/apis/language_v2/classes.rb', line 1707

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