Struct google_api_proto::maps::fleetengine::v1::GetTripRequest
source · pub struct GetTripRequest {
pub header: Option<RequestHeader>,
pub name: String,
pub view: i32,
pub current_route_segment_version: Option<Timestamp>,
pub remaining_waypoints_version: Option<Timestamp>,
pub route_format_type: i32,
pub current_route_segment_traffic_version: Option<Timestamp>,
pub remaining_waypoints_route_version: Option<Timestamp>,
}
Expand description
GetTrip request message.
Fields§
§header: Option<RequestHeader>
The standard Fleet Engine request header.
name: String
Required. Must be in the format providers/{provider}/trips/{trip}
.
The provider must be the Project ID (for example, sample-cloud-project
)
of the Google Cloud Project of which the service account making
this call is a member.
view: i32
The subset of Trip fields that should be returned and their interpretation.
current_route_segment_version: Option<Timestamp>
Indicates the minimum timestamp (exclusive) for which Trip.route
or
Trip.current_route_segment
data are retrieved. If route data are
unchanged since this timestamp, the route field is not set in the response.
If a minimum is unspecified, the route data are always retrieved.
remaining_waypoints_version: Option<Timestamp>
Indicates the minimum timestamp (exclusive) for which
Trip.remaining_waypoints
are retrieved. If they are unchanged since this
timestamp, the remaining_waypoints
are not set in the response. If this
field is unspecified, remaining_waypoints
is always retrieved.
route_format_type: i32
The returned current route format, LAT_LNG_LIST_TYPE
(in Trip.route
),
or ENCODED_POLYLINE_TYPE
(in Trip.current_route_segment
). The default
is LAT_LNG_LIST_TYPE
.
current_route_segment_traffic_version: Option<Timestamp>
Indicates the minimum timestamp (exclusive) for which
Trip.current_route_segment_traffic
is retrieved. If traffic data are
unchanged since this timestamp, the current_route_segment_traffic
field
is not set in the response. If a minimum is unspecified, the traffic data
are always retrieved. Note that traffic is only available for On-Demand
Rides and Deliveries Solution customers.
remaining_waypoints_route_version: Option<Timestamp>
Indicates the minimum timestamp (exclusive) for which
Trip.remaining_waypoints.traffic_to_waypoint
and
Trip.remaining_waypoints.path_to_waypoint
data are retrieved. If data are
unchanged since this timestamp, the fields above are
not set in the response. If remaining_waypoints_route_version
is
unspecified, traffic and path are always retrieved.
Implementations§
source§impl GetTripRequest
impl GetTripRequest
sourcepub fn route_format_type(&self) -> PolylineFormatType
pub fn route_format_type(&self) -> PolylineFormatType
Returns the enum value of route_format_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_route_format_type(&mut self, value: PolylineFormatType)
pub fn set_route_format_type(&mut self, value: PolylineFormatType)
Sets route_format_type
to the provided enum value.
Trait Implementations§
source§impl Clone for GetTripRequest
impl Clone for GetTripRequest
source§fn clone(&self) -> GetTripRequest
fn clone(&self) -> GetTripRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetTripRequest
impl Debug for GetTripRequest
source§impl Default for GetTripRequest
impl Default for GetTripRequest
source§impl Message for GetTripRequest
impl Message for GetTripRequest
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 GetTripRequest
impl PartialEq for GetTripRequest
source§fn eq(&self, other: &GetTripRequest) -> bool
fn eq(&self, other: &GetTripRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetTripRequest
Auto Trait Implementations§
impl Freeze for GetTripRequest
impl RefUnwindSafe for GetTripRequest
impl Send for GetTripRequest
impl Sync for GetTripRequest
impl Unpin for GetTripRequest
impl UnwindSafe for GetTripRequest
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