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.



4782
4783
4784
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4782

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



4780
4781
4782
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4780

def total_usage
  @total_usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4787
4788
4789
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4787

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