Class: Google::Apis::FirebasemlV1beta2::DownloadModelResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v1beta2/classes.rb,
lib/google/apis/firebaseml_v1beta2/representations.rb,
lib/google/apis/firebaseml_v1beta2/representations.rb

Overview

The response for downloading a model to device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DownloadModelResponse

Returns a new instance of DownloadModelResponse.



50
51
52
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 50

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

Instance Attribute Details

#download_uriString

Output only. A download URI for the model/zip file. Corresponds to the JSON property downloadUri

Returns:

  • (String)


32
33
34
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 32

def download_uri
  @download_uri
end

#expire_timeString

Output only. The time that the download URI link expires. If the link has expired, the REST call must be repeated. Corresponds to the JSON property expireTime

Returns:

  • (String)


38
39
40
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 38

def expire_time
  @expire_time
end

#model_formatString

Output only. The format of the model being downloaded. Corresponds to the JSON property modelFormat

Returns:

  • (String)


43
44
45
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 43

def model_format
  @model_format
end

#size_bytesFixnum

Output only. The size of the file(s), if this information is available. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


48
49
50
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 48

def size_bytes
  @size_bytes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



55
56
57
58
59
60
# File 'lib/google/apis/firebaseml_v1beta2/classes.rb', line 55

def update!(**args)
  @download_uri = args[:download_uri] if args.key?(:download_uri)
  @expire_time = args[:expire_time] if args.key?(:expire_time)
  @model_format = args[:model_format] if args.key?(:model_format)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
end