FirebaseCloudModelSource

public class FirebaseCloudModelSource extends Object

The model source for cloud models.

The model source defines the download conditions of the model, whether or not to download updated versions of the model, and the model's name specified by the developer in the cloud console.

Nested Class Summary

class FirebaseCloudModelSource.Builder Builder of FirebaseCloudModelSource

Public Method Summary

boolean
FirebaseModelDownloadConditions
getInitialDownloadConditions()
Gets the conditions for the initial model download.
String
getModelName()
Gets the model name.
FirebaseModelDownloadConditions
getUpdatesDownloadConditions()
Gets the conditions for downloading model updates.
int
boolean
isModelUpdatesEnabled()
Indicates whether the model updates are enabled.

Inherited Method Summary

Public Methods

public boolean equals (Object o)

public FirebaseModelDownloadConditions getInitialDownloadConditions ()

Gets the conditions for the initial model download.

public String getModelName ()

Gets the model name.

public FirebaseModelDownloadConditions getUpdatesDownloadConditions ()

Gets the conditions for downloading model updates. Note the conditions will be ignored unless model updates are enabled.

public int hashCode ()

public boolean isModelUpdatesEnabled ()

Indicates whether the model updates are enabled.

If false, SDK would still download the first model under initial download conditions, and would not update the model any more.

If true, SDK would check model updates and download the models even if there is already a downloaded model.

Send feedback about...

Need help? Visit our support page.