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.
4957 4958 4959 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4957 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
4955 4956 4957 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4955 def total_usage @total_usage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4962 4963 4964 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 4962 def update!(**args) @total_usage = args[:total_usage] if args.key?(:total_usage) end |