Class: Google::Apis::ClouderrorreportingV1beta1::SourceLocation

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

Overview

Indicates a location in the source code of the service for which errors are reported. functionName must be provided by the application when reporting an error, unless the error report contains a message with a supported exception stack trace. All fields are optional for the later case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceLocation

Returns a new instance of SourceLocation.



534
535
536
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 534

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

Instance Attribute Details

#file_pathString

The source code filename, which can include a truncated relative path, or a full path from a production machine. Corresponds to the JSON property filePath

Returns:

  • (String)


520
521
522
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 520

def file_path
  @file_path
end

#function_nameString

Human-readable name of a function or method. The value can include optional context like the class or package name. For example, my.package.MyClass.method in case of Java. Corresponds to the JSON property functionName

Returns:

  • (String)


527
528
529
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 527

def function_name
  @function_name
end

#line_numberFixnum

1-based. 0 indicates that the line number is unknown. Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)


532
533
534
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 532

def line_number
  @line_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



539
540
541
542
543
# File 'generated/google/apis/clouderrorreporting_v1beta1/classes.rb', line 539

def update!(**args)
  @file_path = args[:file_path] if args.key?(:file_path)
  @function_name = args[:function_name] if args.key?(:function_name)
  @line_number = args[:line_number] if args.key?(:line_number)
end