firebase::storage

Namespace for the Firebase C++ SDK for Cloud Storage.

Summary

Enumerations

Error{
  kErrorNone = 0,
  kErrorUnknown,
  kErrorObjectNotFound,
  kErrorBucketNotFound,
  kErrorProjectNotFound,
  kErrorQuotaExceeded,
  kErrorUnauthenticated,
  kErrorUnauthorized,
  kErrorRetryLimitExceeded,
  kErrorNonMatchingChecksum,
  kErrorDownloadSizeExceeded,
  kErrorCancelled
}
enum
Error code returned by Cloud Storage C++ functions.

Functions

GetErrorMessage(Error error)
const char *
Get the human-readable error message corresponding to an error code.

Classes

firebase::storage::Controller

Controls an ongoing operation, allowing the caller to Pause, Resume or Cancel an ongoing download or upload.

firebase::storage::Listener

Base class used to receive pause and progress events on a running read or write operation.

firebase::storage::Metadata

Metadata stores default attributes such as size and content type.

firebase::storage::Storage

Entry point for the Firebase C++ SDK for Cloud Storage.

firebase::storage::StorageReference

Represents a reference to a Cloud Storage object.

Namespaces

firebase::storage::internal

Enumerations

Error

 Error

Error code returned by Cloud Storage C++ functions.

Properties
kErrorBucketNotFound

No bucket is configured for Cloud Storage.

kErrorCancelled

User cancelled the operation.

kErrorDownloadSizeExceeded

Size of the downloaded file exceeds the amount of memory allocated for the download.

kErrorNonMatchingChecksum

File on the client does not match the checksum of the file recieved by the server.

kErrorNone

The operation was a success, no error occurred.

kErrorObjectNotFound

No object exists at the desired reference.

kErrorProjectNotFound

No project is configured for Cloud Storage.

kErrorQuotaExceeded

Quota on your Cloud Storage bucket has been exceeded.

kErrorRetryLimitExceeded

The maximum time limit on an operation (upload, download, delete, etc.) has been exceeded.

kErrorUnauthenticated

User is unauthenticated.

kErrorUnauthorized

User is not authorized to perform the desired action.

kErrorUnknown

An unknown error occurred.

Functions

GetErrorMessage

const char * GetErrorMessage(
  Error error
)

Get the human-readable error message corresponding to an error code.

Details
Parameters
error
Error code to get the error message for.
Returns
Statically-allocated string describing the error.

Send feedback about...

Need help? Visit our support page.