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.



3777
3778
3779
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3777

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)


3775
3776
3777
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3775

def num_cache_hit_rows
  @num_cache_hit_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3782
3783
3784
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3782

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