Class: Google::Apis::FirebasemlV2beta::CountTokensResponse
- Inherits:
-
Object
- Object
- Google::Apis::FirebasemlV2beta::CountTokensResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/representations.rb
Overview
Response message for PredictionService.CountTokens.
Instance Attribute Summary collapse
-
#total_billable_characters ⇒ Fixnum
The total number of billable characters counted across all instances from the request.
-
#total_tokens ⇒ Fixnum
The total number of tokens counted across all instances from the request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CountTokensResponse
constructor
A new instance of CountTokensResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CountTokensResponse
Returns a new instance of CountTokensResponse.
266 267 268 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#total_billable_characters ⇒ Fixnum
The total number of billable characters counted across all instances from the
request.
Corresponds to the JSON property totalBillableCharacters
259 260 261 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 259 def total_billable_characters @total_billable_characters end |
#total_tokens ⇒ Fixnum
The total number of tokens counted across all instances from the request.
Corresponds to the JSON property totalTokens
264 265 266 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 264 def total_tokens @total_tokens end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
271 272 273 274 |
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 271 def update!(**args) @total_billable_characters = args[:total_billable_characters] if args.key?(:total_billable_characters) @total_tokens = args[:total_tokens] if args.key?(:total_tokens) end |