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.



8507
8508
8509
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8507

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)


8480
8481
8482
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8480

def end_column
  @end_column
end

#end_lineFixnum

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

Returns:

  • (Fixnum)


8485
8486
8487
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8485

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)


8490
8491
8492
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8490

def procedure_id
  @procedure_id
end

#start_columnFixnum

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

Returns:

  • (Fixnum)


8495
8496
8497
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8495

def start_column
  @start_column
end

#start_lineFixnum

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

Returns:

  • (Fixnum)


8500
8501
8502
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8500

def start_line
  @start_line
end

#textString

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

Returns:

  • (String)


8505
8506
8507
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8505

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8512
8513
8514
8515
8516
8517
8518
8519
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8512

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