Class: Google::Apis::BigqueryV2::GenAiFunctionCacheStats

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

Provides cache statistics for a GenAi function call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenAiFunctionCacheStats

Returns a new instance of GenAiFunctionCacheStats.



3852
3853
3854
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3852

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

Instance Attribute Details

#num_cache_hit_rowsFixnum

Number of rows served from cache. Corresponds to the JSON property numCacheHitRows

Returns:

  • (Fixnum)


3850
3851
3852
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3850

def num_cache_hit_rows
  @num_cache_hit_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3857
3858
3859
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3857

def update!(**args)
  @num_cache_hit_rows = args[:num_cache_hit_rows] if args.key?(:num_cache_hit_rows)
end