Class: Google::Apis::PolyV1::ObjParseError

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

Overview

Details of an error resulting from parsing an OBJ file

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ObjParseError

Returns a new instance of ObjParseError.



449
450
451
# File 'generated/google/apis/poly_v1/classes.rb', line 449

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

Instance Attribute Details

#codeString

The type of problem found (required). Corresponds to the JSON property code

Returns:

  • (String)


421
422
423
# File 'generated/google/apis/poly_v1/classes.rb', line 421

def code
  @code
end

#end_indexFixnum

The ending character index at which the problem was found. Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


426
427
428
# File 'generated/google/apis/poly_v1/classes.rb', line 426

def end_index
  @end_index
end

#file_pathString

The file path in which the problem was found. Corresponds to the JSON property filePath

Returns:

  • (String)


431
432
433
# File 'generated/google/apis/poly_v1/classes.rb', line 431

def file_path
  @file_path
end

#lineString

The text of the line. Note that this may be truncated if the line was very long. This may not include the error if it occurs after line truncation. Corresponds to the JSON property line

Returns:

  • (String)


437
438
439
# File 'generated/google/apis/poly_v1/classes.rb', line 437

def line
  @line
end

#line_numberFixnum

Line number at which the problem was found. Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)


442
443
444
# File 'generated/google/apis/poly_v1/classes.rb', line 442

def line_number
  @line_number
end

#start_indexFixnum

The starting character index at which the problem was found. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


447
448
449
# File 'generated/google/apis/poly_v1/classes.rb', line 447

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



454
455
456
457
458
459
460
461
# File 'generated/google/apis/poly_v1/classes.rb', line 454

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @end_index = args[:end_index] if args.key?(:end_index)
  @file_path = args[:file_path] if args.key?(:file_path)
  @line = args[:line] if args.key?(:line)
  @line_number = args[:line_number] if args.key?(:line_number)
  @start_index = args[:start_index] if args.key?(:start_index)
end