Class: Google::Apis::PolyV1::ObjParseError
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::PolyV1::ObjParseError
 
 
- 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
- 
  
    
      #code  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The type of problem found (required).
 - 
  
    
      #end_index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The ending character index at which the problem was found.
 - 
  
    
      #file_path  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The file path in which the problem was found.
 - 
  
    
      #line  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The text of the line.
 - 
  
    
      #line_number  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Line number at which the problem was found.
 - 
  
    
      #start_index  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The starting character index at which the problem was found.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ ObjParseError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of ObjParseError.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ObjParseError
Returns a new instance of ObjParseError
      448 449 450  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 448 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#code ⇒ String
The type of problem found (required).
Corresponds to the JSON property code
      420 421 422  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 420 def code @code end  | 
  
#end_index ⇒ Fixnum
The ending character index at which the problem was found.
Corresponds to the JSON property endIndex
      425 426 427  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 425 def end_index @end_index end  | 
  
#file_path ⇒ String
The file path in which the problem was found.
Corresponds to the JSON property filePath
      430 431 432  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 430 def file_path @file_path end  | 
  
#line ⇒ String
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
      436 437 438  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 436 def line @line end  | 
  
#line_number ⇒ Fixnum
Line number at which the problem was found.
Corresponds to the JSON property lineNumber
      441 442 443  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 441 def line_number @line_number end  | 
  
#start_index ⇒ Fixnum
The starting character index at which the problem was found.
Corresponds to the JSON property startIndex
      446 447 448  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 446 def start_index @start_index end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      453 454 455 456 457 458 459 460  | 
    
      # File 'generated/google/apis/poly_v1/classes.rb', line 453 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  |