firebase::firestore::LoadBundleTaskProgress

#include <load_bundle_task_progress.h>

Represents a progress update or the final state from loading bundles.

Summary

Constructors and Destructors

LoadBundleTaskProgress()
LoadBundleTaskProgress(int32_t documents_loaded, int32_t total_documents, int64_t bytes_loaded, int64_t total_bytes,State state)
Construct aLoadBundleTaskProgress with specific state.

Public types

Stateenum
Represents the state of bundle loading tasks.

Public functions

bytes_loaded() const
int64_t
Returns how many bytes have been loaded.
documents_loaded() const
int32_t
Returns how many documents have been loaded.
state() const
Returns the current state of the loading progress.
total_bytes() const
int64_t
Returns the total number of bytes in the bundle.
total_documents() const
int32_t
Returns the total number of documents in the bundle.

Public types

State

State

Represents the state of bundle loading tasks.

BothkSuccess andkError are final states: the task will abort or complete and there will be no more updates after they are reported.

Public functions

LoadBundleTaskProgress

LoadBundleTaskProgress()=default

LoadBundleTaskProgress

LoadBundleTaskProgress(int32_tdocuments_loaded,int32_ttotal_documents,int64_tbytes_loaded,int64_ttotal_bytes,Statestate)

Construct aLoadBundleTaskProgress with specific state.

bytes_loaded

int64_tbytes_loaded()const

Returns how many bytes have been loaded.

documents_loaded

int32_tdocuments_loaded()const

Returns how many documents have been loaded.

state

Statestate()const

Returns the current state of the loading progress.

total_bytes

int64_ttotal_bytes()const

Returns the total number of bytes in the bundle.

Returns 0 if the bundle failed to parse.

total_documents

int32_ttotal_documents()const

Returns the total number of documents in the bundle.

Returns 0 if the bundle failed to parse.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-01-23 UTC.