Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1CountTokensResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CountTokensResponse

Returns a new instance of GoogleCloudAiplatformV1beta1CountTokensResponse.



325
326
327
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 325

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

Instance Attribute Details

#total_billable_charactersFixnum

The total number of billable characters counted across all instances from the request. Corresponds to the JSON property totalBillableCharacters

Returns:

  • (Fixnum)


318
319
320
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 318

def total_billable_characters
  @total_billable_characters
end

#total_tokensFixnum

The total number of tokens counted across all instances from the request. Corresponds to the JSON property totalTokens

Returns:

  • (Fixnum)


323
324
325
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 323

def total_tokens
  @total_tokens
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



330
331
332
333
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 330

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