Class: Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1StreamMetadata
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1StreamMetadata
- 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
-
#total_usage ⇒ Google::Apis::AiplatformV1beta1::GenaiVertexV1beta1InteractionUsage
Statistics on the interaction request's token usage.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GenaiVertexV1beta1StreamMetadata
constructor
A new instance of GenaiVertexV1beta1StreamMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_usage ⇒ Google::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 |