Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CachedContentUsageMetadata

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

Overview

Metadata on the usage of the cached content.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1CachedContentUsageMetadata

Returns a new instance of GoogleCloudAiplatformV1beta1CachedContentUsageMetadata.



10060
10061
10062
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10060

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

Instance Attribute Details

#audio_duration_secondsFixnum

Duration of audio in seconds. Corresponds to the JSON property audioDurationSeconds

Returns:

  • (Fixnum)


10038
10039
10040
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10038

def audio_duration_seconds
  @audio_duration_seconds
end

#image_countFixnum

Number of images. Corresponds to the JSON property imageCount

Returns:

  • (Fixnum)


10043
10044
10045
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10043

def image_count
  @image_count
end

#text_countFixnum

Number of text characters. Corresponds to the JSON property textCount

Returns:

  • (Fixnum)


10048
10049
10050
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10048

def text_count
  @text_count
end

#total_token_countFixnum

Total number of tokens that the cached content consumes. Corresponds to the JSON property totalTokenCount

Returns:

  • (Fixnum)


10053
10054
10055
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10053

def total_token_count
  @total_token_count
end

#video_duration_secondsFixnum

Duration of video in seconds. Corresponds to the JSON property videoDurationSeconds

Returns:

  • (Fixnum)


10058
10059
10060
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10058

def video_duration_seconds
  @video_duration_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10065
10066
10067
10068
10069
10070
10071
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 10065

def update!(**args)
  @audio_duration_seconds = args[:audio_duration_seconds] if args.key?(:audio_duration_seconds)
  @image_count = args[:image_count] if args.key?(:image_count)
  @text_count = args[:text_count] if args.key?(:text_count)
  @total_token_count = args[:total_token_count] if args.key?(:total_token_count)
  @video_duration_seconds = args[:video_duration_seconds] if args.key?(:video_duration_seconds)
end