Class: Google::Apis::BigqueryV2::IndexUnusedReason

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IndexUnusedReason

Returns a new instance of IndexUnusedReason.



3355
3356
3357
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3355

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

Instance Attribute Details

#base_tableGoogle::Apis::BigqueryV2::TableReference

[Output-only] Specifies the base table involved in the reason that no search index was used. Corresponds to the JSON property base_table



3336
3337
3338
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3336

def base_table
  @base_table
end

#codeString

[Output-only] Specifies the high-level reason for the scenario when no search index was used. Corresponds to the JSON property code

Returns:

  • (String)


3342
3343
3344
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3342

def code
  @code
end

#index_nameString

[Output-only] Specifies the name of the unused search index, if available. Corresponds to the JSON property index_name

Returns:

  • (String)


3347
3348
3349
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3347

def index_name
  @index_name
end

#messageString

[Output-only] Free form human-readable reason for the scenario when no search index was used. Corresponds to the JSON property message

Returns:

  • (String)


3353
3354
3355
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3353

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3360
3361
3362
3363
3364
3365
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3360

def update!(**args)
  @base_table = args[:base_table] if args.key?(:base_table)
  @code = args[:code] if args.key?(:code)
  @index_name = args[:index_name] if args.key?(:index_name)
  @message = args[:message] if args.key?(:message)
end