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.



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

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)


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

def num_cache_hit_rows
  @num_cache_hit_rows
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3863
3864
3865
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3863

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