Struct google_api_proto::google::analytics::data::v1alpha::report_task::ReportMetadata
source · pub struct ReportMetadata {
pub state: Option<i32>,
pub begin_creating_time: Option<Timestamp>,
pub creation_quota_tokens_charged: i32,
pub task_row_count: Option<i32>,
pub error_message: Option<String>,
pub total_row_count: Option<i32>,
}
Expand description
The report metadata for a specific report task.
Fields§
§state: Option<i32>
Output only. The current state for this report task.
begin_creating_time: Option<Timestamp>
Output only. The time when CreateReportTask
was called and the report
began the CREATING
state.
creation_quota_tokens_charged: i32
Output only. The total quota tokens charged during creation of the
report. Because this token count is based on activity from the CREATING
state, this tokens charge will be fixed once a report task enters the
ACTIVE
or FAILED
state.
task_row_count: Option<i32>
Output only. The total number of rows in the report result. This field
will be populated when the state is active. You can utilize
task_row_count
for pagination within the confines of their existing
report.
error_message: Option<String>
Output only. Error message is populated if a report task fails during creation.
total_row_count: Option<i32>
Output only. The total number of rows in Google Analytics storage. If you
want to query additional data rows beyond the current report, they can
initiate a new report task based on the total_row_count
.
The task_row_count
represents the number of rows specifically
pertaining to the current report, whereas total_row_count
encompasses
the total count of rows across all data retrieved from Google
Analytics storage.
For example, suppose the current report’s task_row_count
is 20,
displaying the data from the first 20 rows. Simultaneously, the
total_row_count
is 30, indicating the presence of data for all 30 rows.
The task_row_count
can be utilizated to paginate through the initial 20
rows. To expand the report and include data from all 30 rows, a new
report task can be created using the total_row_count to access the full
set of 30 rows’ worth of data.
Implementations§
source§impl ReportMetadata
impl ReportMetadata
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is unset or set to an invalid enum value.
sourcepub fn task_row_count(&self) -> i32
pub fn task_row_count(&self) -> i32
Returns the value of task_row_count
, or the default value if task_row_count
is unset.
sourcepub fn error_message(&self) -> &str
pub fn error_message(&self) -> &str
Returns the value of error_message
, or the default value if error_message
is unset.
sourcepub fn total_row_count(&self) -> i32
pub fn total_row_count(&self) -> i32
Returns the value of total_row_count
, or the default value if total_row_count
is unset.
Trait Implementations§
source§impl Clone for ReportMetadata
impl Clone for ReportMetadata
source§fn clone(&self) -> ReportMetadata
fn clone(&self) -> ReportMetadata
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReportMetadata
impl Debug for ReportMetadata
source§impl Default for ReportMetadata
impl Default for ReportMetadata
source§impl Message for ReportMetadata
impl Message for ReportMetadata
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ReportMetadata
impl PartialEq for ReportMetadata
source§fn eq(&self, other: &ReportMetadata) -> bool
fn eq(&self, other: &ReportMetadata) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReportMetadata
Auto Trait Implementations§
impl Freeze for ReportMetadata
impl RefUnwindSafe for ReportMetadata
impl Send for ReportMetadata
impl Sync for ReportMetadata
impl Unpin for ReportMetadata
impl UnwindSafe for ReportMetadata
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request