Struct google_api_proto::google::firestore::v1beta1::PartitionQueryRequest
source · pub struct PartitionQueryRequest {
pub parent: String,
pub partition_count: i64,
pub page_token: String,
pub page_size: i32,
pub query_type: Option<QueryType>,
}
Expand description
The request for [Firestore.PartitionQuery][google.firestore.v1beta1.Firestore.PartitionQuery].
Fields§
§parent: String
Required. The parent resource name. In the format:
projects/{project_id}/databases/{database_id}/documents
.
Document resource names are not supported; only database resource names
can be specified.
partition_count: i64
The desired maximum number of partition points. The partitions may be returned across multiple pages of results. The number must be positive. The actual number of partitions returned may be fewer.
For example, this may be set to one fewer than the number of parallel queries to be run, or in running a data pipeline job, one fewer than the number of workers or compute instances available.
page_token: String
The next_page_token
value returned from a previous call to
PartitionQuery that may be used to get an additional set of results.
There are no ordering guarantees between sets of results. Thus, using
multiple sets of results will require merging the different result sets.
For example, two subsequent calls using a page_token may return:
- cursor B, cursor M, cursor Q
- cursor A, cursor U, cursor W
To obtain a complete result set ordered with respect to the results of the query supplied to PartitionQuery, the results sets should be merged: cursor A, cursor B, cursor M, cursor Q, cursor U, cursor W
page_size: i32
The maximum number of partitions to return in this call, subject to
partition_count
.
For example, if partition_count
= 10 and page_size
= 8, the first call
to PartitionQuery will return up to 8 partitions and a next_page_token
if more results exist. A second call to PartitionQuery will return up to
2 partitions, to complete the total of 10 specified in partition_count
.
query_type: Option<QueryType>
The query to partition.
Trait Implementations§
source§impl Clone for PartitionQueryRequest
impl Clone for PartitionQueryRequest
source§fn clone(&self) -> PartitionQueryRequest
fn clone(&self) -> PartitionQueryRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PartitionQueryRequest
impl Debug for PartitionQueryRequest
source§impl Default for PartitionQueryRequest
impl Default for PartitionQueryRequest
source§impl Message for PartitionQueryRequest
impl Message for PartitionQueryRequest
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 PartitionQueryRequest
impl PartialEq for PartitionQueryRequest
source§fn eq(&self, other: &PartitionQueryRequest) -> bool
fn eq(&self, other: &PartitionQueryRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PartitionQueryRequest
Auto Trait Implementations§
impl !Freeze for PartitionQueryRequest
impl RefUnwindSafe for PartitionQueryRequest
impl Send for PartitionQueryRequest
impl Sync for PartitionQueryRequest
impl Unpin for PartitionQueryRequest
impl UnwindSafe for PartitionQueryRequest
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