Class: Google::Apis::BigqueryV2::ScriptStackFrame

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScriptStackFrame

Returns a new instance of ScriptStackFrame.



8550
8551
8552
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8550

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

Instance Attribute Details

#end_columnFixnum

Output only. One-based end column. Corresponds to the JSON property endColumn

Returns:

  • (Fixnum)


8523
8524
8525
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8523

def end_column
  @end_column
end

#end_lineFixnum

Output only. One-based end line. Corresponds to the JSON property endLine

Returns:

  • (Fixnum)


8528
8529
8530
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8528

def end_line
  @end_line
end

#procedure_idString

Output only. Name of the active procedure, empty if in a top-level script. Corresponds to the JSON property procedureId

Returns:

  • (String)


8533
8534
8535
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8533

def procedure_id
  @procedure_id
end

#start_columnFixnum

Output only. One-based start column. Corresponds to the JSON property startColumn

Returns:

  • (Fixnum)


8538
8539
8540
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8538

def start_column
  @start_column
end

#start_lineFixnum

Output only. One-based start line. Corresponds to the JSON property startLine

Returns:

  • (Fixnum)


8543
8544
8545
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8543

def start_line
  @start_line
end

#textString

Output only. Text of the current statement/expression. Corresponds to the JSON property text

Returns:

  • (String)


8548
8549
8550
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8548

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8555
8556
8557
8558
8559
8560
8561
8562
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8555

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