Struct google_api_proto::google::maps::playablelocations::v3::SamplePlayableLocationsRequest
source · pub struct SamplePlayableLocationsRequest {
pub area_filter: Option<AreaFilter>,
pub criteria: Vec<Criterion>,
}
Expand description
Life of a query:
-
When a game starts in a new location, your game server issues a [SamplePlayableLocations][google.maps.playablelocations.v3.PlayableLocations.SamplePlayableLocations] request. The request specifies the S2 cell, and contains one or more “criteria” for filtering:
-
Criterion 0: i locations for long-lived bases, or level 0 monsters, or…
-
Criterion 1: j locations for short-lived bases, or level 1 monsters, …
-
Criterion 2: k locations for random objects.
-
etc (up to 5 criterion may be specified).
PlayableLocationList
will then contain mutually
exclusive lists of PlayableLocation
objects that satisfy each of
the criteria. Think of it as a collection of real-world locations that you
can then associate with your game state.
Note: These points are impermanent in nature. E.g, parks can close, and places can be removed.
The response specifies how long you can expect the playable locations to
last. Once they expire, you should query the samplePlayableLocations
API
again to get a fresh view of the real world.
Fields§
§area_filter: Option<AreaFilter>
Required. Specifies the area to search within for playable locations.
criteria: Vec<Criterion>
Required. Specifies one or more (up to 5) criteria for filtering the returned playable locations.
Trait Implementations§
source§impl Clone for SamplePlayableLocationsRequest
impl Clone for SamplePlayableLocationsRequest
source§fn clone(&self) -> SamplePlayableLocationsRequest
fn clone(&self) -> SamplePlayableLocationsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SamplePlayableLocationsRequest
impl Message for SamplePlayableLocationsRequest
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 SamplePlayableLocationsRequest
impl PartialEq for SamplePlayableLocationsRequest
source§fn eq(&self, other: &SamplePlayableLocationsRequest) -> bool
fn eq(&self, other: &SamplePlayableLocationsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SamplePlayableLocationsRequest
Auto Trait Implementations§
impl Freeze for SamplePlayableLocationsRequest
impl RefUnwindSafe for SamplePlayableLocationsRequest
impl Send for SamplePlayableLocationsRequest
impl Sync for SamplePlayableLocationsRequest
impl Unpin for SamplePlayableLocationsRequest
impl UnwindSafe for SamplePlayableLocationsRequest
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