Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1StreamMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GenaiVertexV1beta1StreamMetadata

Returns a new instance of GenaiVertexV1beta1StreamMetadata.



5299
5300
5301
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5299

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

Instance Attribute Details

#total_usageGoogle::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsage

Statistics on the interaction request's token usage. Corresponds to the JSON property totalUsage



5297
5298
5299
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5297

def total_usage
  @total_usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5304
5305
5306
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 5304

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