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.



8482
8483
8484
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8482

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)


8455
8456
8457
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8455

def end_column
  @end_column
end

#end_lineFixnum

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

Returns:

  • (Fixnum)


8460
8461
8462
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8460

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)


8465
8466
8467
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8465

def procedure_id
  @procedure_id
end

#start_columnFixnum

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

Returns:

  • (Fixnum)


8470
8471
8472
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8470

def start_column
  @start_column
end

#start_lineFixnum

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

Returns:

  • (Fixnum)


8475
8476
8477
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8475

def start_line
  @start_line
end

#textString

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

Returns:

  • (String)


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

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8487
8488
8489
8490
8491
8492
8493
8494
# File 'lib/google/apis/bigquery_v2/classes.rb', line 8487

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