Class: Google::Apis::BigqueryV2::ScriptStackFrame
- Inherits:
-
Object
- Object
- Google::Apis::BigqueryV2::ScriptStackFrame
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquery_v2/classes.rb,
lib/google/apis/bigquery_v2/representations.rb,
lib/google/apis/bigquery_v2/representations.rb
Overview
Represents the location of the statement/expression being evaluated. Line and column numbers are defined as follows: - Line and column numbers start with one. That is, line 1 column 1 denotes the start of the script. - When inside a stored procedure, all line/column numbers are relative to the procedure body, not the script in which the procedure was defined. - Start/end positions exclude leading/trailing comments and whitespace. The end position always ends with a ";", when present. - Multi-byte Unicode characters are treated as just one column. - If the original script (or procedure definition) contains TAB characters, a tab "snaps" the indentation forward to the nearest multiple of 8 characters, plus 1. For example, a TAB on column 1, 2, 3, 4, 5, 6 , or 8 will advance the next character to column 9. A TAB on column 9, 10, 11, 12, 13, 14, 15, or 16 will advance the next character to column 17.
Instance Attribute Summary collapse
-
#end_column ⇒ Fixnum
Output only.
-
#end_line ⇒ Fixnum
Output only.
-
#procedure_id ⇒ String
Output only.
-
#start_column ⇒ Fixnum
Output only.
-
#start_line ⇒ Fixnum
Output only.
-
#text ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScriptStackFrame
constructor
A new instance of ScriptStackFrame.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ScriptStackFrame
Returns a new instance of ScriptStackFrame.
8530 8531 8532 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8530 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_column ⇒ Fixnum
Output only. One-based end column.
Corresponds to the JSON property endColumn
8503 8504 8505 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8503 def end_column @end_column end |
#end_line ⇒ Fixnum
Output only. One-based end line.
Corresponds to the JSON property endLine
8508 8509 8510 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8508 def end_line @end_line end |
#procedure_id ⇒ String
Output only. Name of the active procedure, empty if in a top-level script.
Corresponds to the JSON property procedureId
8513 8514 8515 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8513 def procedure_id @procedure_id end |
#start_column ⇒ Fixnum
Output only. One-based start column.
Corresponds to the JSON property startColumn
8518 8519 8520 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8518 def start_column @start_column end |
#start_line ⇒ Fixnum
Output only. One-based start line.
Corresponds to the JSON property startLine
8523 8524 8525 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8523 def start_line @start_line end |
#text ⇒ String
Output only. Text of the current statement/expression.
Corresponds to the JSON property text
8528 8529 8530 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8528 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8535 8536 8537 8538 8539 8540 8541 8542 |
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8535 def update!(**args) @end_column = args[:end_column] if args.key?(:end_column) @end_line = args[:end_line] if args.key?(:end_line) @procedure_id = args[:procedure_id] if args.key?(:procedure_id) @start_column = args[:start_column] if args.key?(:start_column) @start_line = args[:start_line] if args.key?(:start_line) @text = args[:text] if args.key?(:text) end |