fleetengine

package
v0.0.0-...-e9cf271 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TripType_name = map[int32]string{
		0: "UNKNOWN_TRIP_TYPE",
		1: "SHARED",
		2: "EXCLUSIVE",
	}
	TripType_value = map[string]int32{
		"UNKNOWN_TRIP_TYPE": 0,
		"SHARED":            1,
		"EXCLUSIVE":         2,
	}
)

Enum value maps for TripType.

View Source
var (
	WaypointType_name = map[int32]string{
		0: "UNKNOWN_WAYPOINT_TYPE",
		1: "PICKUP_WAYPOINT_TYPE",
		2: "DROP_OFF_WAYPOINT_TYPE",
		3: "INTERMEDIATE_DESTINATION_WAYPOINT_TYPE",
	}
	WaypointType_value = map[string]int32{
		"UNKNOWN_WAYPOINT_TYPE":                  0,
		"PICKUP_WAYPOINT_TYPE":                   1,
		"DROP_OFF_WAYPOINT_TYPE":                 2,
		"INTERMEDIATE_DESTINATION_WAYPOINT_TYPE": 3,
	}
)

Enum value maps for WaypointType.

View Source
var (
	PolylineFormatType_name = map[int32]string{
		0: "UNKNOWN_FORMAT_TYPE",
		1: "LAT_LNG_LIST_TYPE",
		2: "ENCODED_POLYLINE_TYPE",
	}
	PolylineFormatType_value = map[string]int32{
		"UNKNOWN_FORMAT_TYPE":   0,
		"LAT_LNG_LIST_TYPE":     1,
		"ENCODED_POLYLINE_TYPE": 2,
	}
)

Enum value maps for PolylineFormatType.

View Source
var (
	NavigationStatus_name = map[int32]string{
		0: "UNKNOWN_NAVIGATION_STATUS",
		1: "NO_GUIDANCE",
		2: "ENROUTE_TO_DESTINATION",
		3: "OFF_ROUTE",
		4: "ARRIVED_AT_DESTINATION",
	}
	NavigationStatus_value = map[string]int32{
		"UNKNOWN_NAVIGATION_STATUS": 0,
		"NO_GUIDANCE":               1,
		"ENROUTE_TO_DESTINATION":    2,
		"OFF_ROUTE":                 3,
		"ARRIVED_AT_DESTINATION":    4,
	}
)

Enum value maps for NavigationStatus.

View Source
var (
	LocationSensor_name = map[int32]string{
		0:   "UNKNOWN_SENSOR",
		1:   "GPS",
		2:   "NETWORK",
		3:   "PASSIVE",
		4:   "ROAD_SNAPPED_LOCATION_PROVIDER",
		100: "FUSED_LOCATION_PROVIDER",
	}
	LocationSensor_value = map[string]int32{
		"UNKNOWN_SENSOR":                 0,
		"GPS":                            1,
		"NETWORK":                        2,
		"PASSIVE":                        3,
		"ROAD_SNAPPED_LOCATION_PROVIDER": 4,
		"FUSED_LOCATION_PROVIDER":        100,
	}
)

Enum value maps for LocationSensor.

View Source
var (
	Status_Code_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "FAILURE",
		2: "ROUTE_NOT_POSSIBLE",
	}
	Status_Code_value = map[string]int32{
		"UNSPECIFIED":        0,
		"FAILURE":            1,
		"ROUTE_NOT_POSSIBLE": 2,
	}
)

Enum value maps for Status_Code.

View Source
var (
	ReportBillableTripRequest_SolutionType_name = map[int32]string{
		0: "SOLUTION_TYPE_UNSPECIFIED",
		1: "ON_DEMAND_RIDESHARING_AND_DELIVERIES",
	}
	ReportBillableTripRequest_SolutionType_value = map[string]int32{
		"SOLUTION_TYPE_UNSPECIFIED":            0,
		"ON_DEMAND_RIDESHARING_AND_DELIVERIES": 1,
	}
)

Enum value maps for ReportBillableTripRequest_SolutionType.

View Source
var (
	TripStatus_name = map[int32]string{
		0: "UNKNOWN_TRIP_STATUS",
		1: "NEW",
		2: "ENROUTE_TO_PICKUP",
		3: "ARRIVED_AT_PICKUP",
		7: "ARRIVED_AT_INTERMEDIATE_DESTINATION",
		8: "ENROUTE_TO_INTERMEDIATE_DESTINATION",
		4: "ENROUTE_TO_DROPOFF",
		5: "COMPLETE",
		6: "CANCELED",
	}
	TripStatus_value = map[string]int32{
		"UNKNOWN_TRIP_STATUS":                 0,
		"NEW":                                 1,
		"ENROUTE_TO_PICKUP":                   2,
		"ARRIVED_AT_PICKUP":                   3,
		"ARRIVED_AT_INTERMEDIATE_DESTINATION": 7,
		"ENROUTE_TO_INTERMEDIATE_DESTINATION": 8,
		"ENROUTE_TO_DROPOFF":                  4,
		"COMPLETE":                            5,
		"CANCELED":                            6,
	}
)

Enum value maps for TripStatus.

View Source
var (
	BillingPlatformIdentifier_name = map[int32]string{
		0: "BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED",
		1: "SERVER",
		2: "WEB",
		3: "ANDROID",
		4: "IOS",
		5: "OTHERS",
	}
	BillingPlatformIdentifier_value = map[string]int32{
		"BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED": 0,
		"SERVER":  1,
		"WEB":     2,
		"ANDROID": 3,
		"IOS":     4,
		"OTHERS":  5,
	}
)

Enum value maps for BillingPlatformIdentifier.

View Source
var (
	TripView_name = map[int32]string{
		0: "TRIP_VIEW_UNSPECIFIED",
		1: "SDK",
		2: "JOURNEY_SHARING_V1S",
	}
	TripView_value = map[string]int32{
		"TRIP_VIEW_UNSPECIFIED": 0,
		"SDK":                   1,
		"JOURNEY_SHARING_V1S":   2,
	}
)

Enum value maps for TripView.

View Source
var (
	SearchVehiclesRequest_VehicleMatchOrder_name = map[int32]string{
		0: "UNKNOWN_VEHICLE_MATCH_ORDER",
		1: "PICKUP_POINT_ETA",
		2: "PICKUP_POINT_DISTANCE",
		3: "DROPOFF_POINT_ETA",
		4: "PICKUP_POINT_STRAIGHT_DISTANCE",
		5: "COST",
	}
	SearchVehiclesRequest_VehicleMatchOrder_value = map[string]int32{
		"UNKNOWN_VEHICLE_MATCH_ORDER":    0,
		"PICKUP_POINT_ETA":               1,
		"PICKUP_POINT_DISTANCE":          2,
		"DROPOFF_POINT_ETA":              3,
		"PICKUP_POINT_STRAIGHT_DISTANCE": 4,
		"COST":                           5,
	}
)

Enum value maps for SearchVehiclesRequest_VehicleMatchOrder.

View Source
var (
	VehicleMatch_VehicleMatchType_name = map[int32]string{
		0: "UNKNOWN",
		1: "EXCLUSIVE",
		2: "BACK_TO_BACK",
		3: "CARPOOL",
		4: "CARPOOL_BACK_TO_BACK",
	}
	VehicleMatch_VehicleMatchType_value = map[string]int32{
		"UNKNOWN":              0,
		"EXCLUSIVE":            1,
		"BACK_TO_BACK":         2,
		"CARPOOL":              3,
		"CARPOOL_BACK_TO_BACK": 4,
	}
)

Enum value maps for VehicleMatch_VehicleMatchType.

View Source
var (
	VehicleState_name = map[int32]string{
		0: "UNKNOWN_VEHICLE_STATE",
		1: "OFFLINE",
		2: "ONLINE",
	}
	VehicleState_value = map[string]int32{
		"UNKNOWN_VEHICLE_STATE": 0,
		"OFFLINE":               1,
		"ONLINE":                2,
	}
)

Enum value maps for VehicleState.

View Source
var (
	LocationPowerSaveMode_name = map[int32]string{
		0: "UNKNOWN_LOCATION_POWER_SAVE_MODE",
		1: "LOCATION_MODE_NO_CHANGE",
		2: "LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF",
		3: "LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF",
		4: "LOCATION_MODE_FOREGROUND_ONLY",
		5: "LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF",
	}
	LocationPowerSaveMode_value = map[string]int32{
		"UNKNOWN_LOCATION_POWER_SAVE_MODE":                0,
		"LOCATION_MODE_NO_CHANGE":                         1,
		"LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF":      2,
		"LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF":      3,
		"LOCATION_MODE_FOREGROUND_ONLY":                   4,
		"LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF": 5,
	}
)

Enum value maps for LocationPowerSaveMode.

View Source
var (
	BatteryStatus_name = map[int32]string{
		0: "UNKNOWN_BATTERY_STATUS",
		1: "BATTERY_STATUS_CHARGING",
		2: "BATTERY_STATUS_DISCHARGING",
		3: "BATTERY_STATUS_FULL",
		4: "BATTERY_STATUS_NOT_CHARGING",
		5: "BATTERY_STATUS_POWER_LOW",
	}
	BatteryStatus_value = map[string]int32{
		"UNKNOWN_BATTERY_STATUS":      0,
		"BATTERY_STATUS_CHARGING":     1,
		"BATTERY_STATUS_DISCHARGING":  2,
		"BATTERY_STATUS_FULL":         3,
		"BATTERY_STATUS_NOT_CHARGING": 4,
		"BATTERY_STATUS_POWER_LOW":    5,
	}
)

Enum value maps for BatteryStatus.

View Source
var (
	PowerSource_name = map[int32]string{
		0: "UNKNOWN_POWER_SOURCE",
		1: "POWER_SOURCE_AC",
		2: "POWER_SOURCE_USB",
		3: "POWER_SOURCE_WIRELESS",
		4: "POWER_SOURCE_UNPLUGGED",
	}
	PowerSource_value = map[string]int32{
		"UNKNOWN_POWER_SOURCE":   0,
		"POWER_SOURCE_AC":        1,
		"POWER_SOURCE_USB":       2,
		"POWER_SOURCE_WIRELESS":  3,
		"POWER_SOURCE_UNPLUGGED": 4,
	}
)

Enum value maps for PowerSource.

View Source
var (
	Vehicle_VehicleType_Category_name = map[int32]string{
		0: "UNKNOWN",
		1: "AUTO",
		2: "TAXI",
		3: "TRUCK",
		4: "TWO_WHEELER",
	}
	Vehicle_VehicleType_Category_value = map[string]int32{
		"UNKNOWN":     0,
		"AUTO":        1,
		"TAXI":        2,
		"TRUCK":       3,
		"TWO_WHEELER": 4,
	}
)

Enum value maps for Vehicle_VehicleType_Category.

View Source
var File_google_maps_fleetengine_v1_fleetengine_proto protoreflect.FileDescriptor
View Source
var File_google_maps_fleetengine_v1_header_proto protoreflect.FileDescriptor
View Source
var File_google_maps_fleetengine_v1_trip_api_proto protoreflect.FileDescriptor
View Source
var File_google_maps_fleetengine_v1_trips_proto protoreflect.FileDescriptor
View Source
var File_google_maps_fleetengine_v1_vehicle_api_proto protoreflect.FileDescriptor
View Source
var File_google_maps_fleetengine_v1_vehicles_proto protoreflect.FileDescriptor

Functions

func RegisterTripServiceServer

func RegisterTripServiceServer(s *grpc.Server, srv TripServiceServer)

func RegisterVehicleServiceServer

func RegisterVehicleServiceServer(s *grpc.Server, srv VehicleServiceServer)

Types

type Address

type Address struct {

	// A full, human-readable address for this place.
	FormattedAddress *FormattedAddress `protobuf:"bytes,1,opt,name=formatted_address,json=formattedAddress,proto3" json:"formatted_address,omitempty"`
	// contains filtered or unexported fields
}

Address of a place.

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetFormattedAddress

func (x *Address) GetFormattedAddress() *FormattedAddress

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

type BatteryInfo

type BatteryInfo struct {

	// Status of the battery, whether full or charging etc.
	BatteryStatus BatteryStatus `` /* 140-byte string literal not displayed */
	// Status of battery power source.
	PowerSource PowerSource `` /* 132-byte string literal not displayed */
	// Current battery percentage [0-100].
	BatteryPercentage float32 `protobuf:"fixed32,3,opt,name=battery_percentage,json=batteryPercentage,proto3" json:"battery_percentage,omitempty"`
	// contains filtered or unexported fields
}

Information about the device's battery.

func (*BatteryInfo) Descriptor deprecated

func (*BatteryInfo) Descriptor() ([]byte, []int)

Deprecated: Use BatteryInfo.ProtoReflect.Descriptor instead.

func (*BatteryInfo) GetBatteryPercentage

func (x *BatteryInfo) GetBatteryPercentage() float32

func (*BatteryInfo) GetBatteryStatus

func (x *BatteryInfo) GetBatteryStatus() BatteryStatus

func (*BatteryInfo) GetPowerSource

func (x *BatteryInfo) GetPowerSource() PowerSource

func (*BatteryInfo) ProtoMessage

func (*BatteryInfo) ProtoMessage()

func (*BatteryInfo) ProtoReflect

func (x *BatteryInfo) ProtoReflect() protoreflect.Message

func (*BatteryInfo) Reset

func (x *BatteryInfo) Reset()

func (*BatteryInfo) String

func (x *BatteryInfo) String() string

type BatteryStatus

type BatteryStatus int32

Status of the battery, whether full or charging etc.

const (
	// Battery status unknown.
	BatteryStatus_UNKNOWN_BATTERY_STATUS BatteryStatus = 0
	// Battery is being charged.
	BatteryStatus_BATTERY_STATUS_CHARGING BatteryStatus = 1
	// Battery is discharging.
	BatteryStatus_BATTERY_STATUS_DISCHARGING BatteryStatus = 2
	// Battery is full.
	BatteryStatus_BATTERY_STATUS_FULL BatteryStatus = 3
	// Battery is not charging.
	BatteryStatus_BATTERY_STATUS_NOT_CHARGING BatteryStatus = 4
	// Battery is low on power.
	BatteryStatus_BATTERY_STATUS_POWER_LOW BatteryStatus = 5
)

func (BatteryStatus) Descriptor

func (BatteryStatus) Enum

func (x BatteryStatus) Enum() *BatteryStatus

func (BatteryStatus) EnumDescriptor deprecated

func (BatteryStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use BatteryStatus.Descriptor instead.

func (BatteryStatus) Number

func (BatteryStatus) String

func (x BatteryStatus) String() string

func (BatteryStatus) Type

type BillingPlatformIdentifier

type BillingPlatformIdentifier int32

A set of values that indicate upon which platform the request was issued.

const (
	// Default. Used for unspecified platforms.
	BillingPlatformIdentifier_BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED BillingPlatformIdentifier = 0
	// The platform is a client server.
	BillingPlatformIdentifier_SERVER BillingPlatformIdentifier = 1
	// The platform is a web browser.
	BillingPlatformIdentifier_WEB BillingPlatformIdentifier = 2
	// The platform is an Android mobile device.
	BillingPlatformIdentifier_ANDROID BillingPlatformIdentifier = 3
	// The platform is an IOS mobile device.
	BillingPlatformIdentifier_IOS BillingPlatformIdentifier = 4
	// Other platforms that are not listed in this enumeration.
	BillingPlatformIdentifier_OTHERS BillingPlatformIdentifier = 5
)

func (BillingPlatformIdentifier) Descriptor

func (BillingPlatformIdentifier) Enum

func (BillingPlatformIdentifier) EnumDescriptor deprecated

func (BillingPlatformIdentifier) EnumDescriptor() ([]byte, []int)

Deprecated: Use BillingPlatformIdentifier.Descriptor instead.

func (BillingPlatformIdentifier) Number

func (BillingPlatformIdentifier) String

func (x BillingPlatformIdentifier) String() string

func (BillingPlatformIdentifier) Type

type CreateTripRequest

type CreateTripRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format "providers/{provider}".
	// 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.
	Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Unique Trip ID; must be unique per provider.  The actual
	// format and value is opaque to the Fleet Engine and is determined
	// by the provider.
	TripId string `protobuf:"bytes,5,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"`
	// Required. Trip entity to create.
	//
	// When creating a Trip, the following fields are required:
	//
	// * trip_type
	// * pickup_point
	//
	// The following fields are used if you provide them:
	//
	// * number_of_passengers
	// * vehicle_id
	// * dropoff_point
	// * intermediate_destinations
	//
	// Only EXCLUSIVE trips support multiple destinations.
	//
	// When vehicle_id is set for a shared trip, you must supply
	// the list of `Trip.vehicle_waypoints` to specify the order of the remaining
	// waypoints for the vehicle, otherwise the waypoint order will be
	// undetermined.
	//
	// When you specify `Trip.vehicle_waypoints`, the list must contain all
	// the remaining waypoints of the vehicle's trips, with no extra waypoints.
	// You must order these waypoints such that for a given trip, the pickup
	// point is before intermediate destinations, and all intermediate
	// destinations come before the drop-off point. An `EXCLUSIVE` trip's
	// waypoints must not interleave with any other trips.
	//
	// The `trip_id`, `waypoint_type` and `location` fields are used, and all
	// other TripWaypoint fields in vehicle_waypoints are ignored.
	//
	// All other Trip fields are ignored.
	Trip *Trip `protobuf:"bytes,4,opt,name=trip,proto3" json:"trip,omitempty"`
	// contains filtered or unexported fields
}

CreateTrip request message.

func (*CreateTripRequest) Descriptor deprecated

func (*CreateTripRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateTripRequest.ProtoReflect.Descriptor instead.

func (*CreateTripRequest) GetHeader

func (x *CreateTripRequest) GetHeader() *RequestHeader

func (*CreateTripRequest) GetParent

func (x *CreateTripRequest) GetParent() string

func (*CreateTripRequest) GetTrip

func (x *CreateTripRequest) GetTrip() *Trip

func (*CreateTripRequest) GetTripId

func (x *CreateTripRequest) GetTripId() string

func (*CreateTripRequest) ProtoMessage

func (*CreateTripRequest) ProtoMessage()

func (*CreateTripRequest) ProtoReflect

func (x *CreateTripRequest) ProtoReflect() protoreflect.Message

func (*CreateTripRequest) Reset

func (x *CreateTripRequest) Reset()

func (*CreateTripRequest) String

func (x *CreateTripRequest) String() string

type CreateVehicleRequest

type CreateVehicleRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format "providers/{provider}".
	// 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.
	Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. Unique Vehicle ID; must be unique per provider.  The actual
	// format and value is opaque to the Fleet Engine and is determined
	// by the provider.
	VehicleId string `protobuf:"bytes,4,opt,name=vehicle_id,json=vehicleId,proto3" json:"vehicle_id,omitempty"`
	// Required. The Vehicle entity to create. When creating a Vehicle, the following
	// fields are required:
	//
	// * vehicle_state
	// * supported_trip_types
	// * maximum_capacity
	// * vehicle_type
	//
	// When creating a Vehicle, the following fields are ignored:
	//
	// * name
	// * current_trips
	// * available_capacity
	// * current_route_segment
	// * current_route_segment_version
	// * waypoints
	// * waypoints_version
	// * remaining_distance_meters
	// * eta_to_next_waypoint
	// * navigation_status
	//
	// All other fields will be used if provided.
	Vehicle *Vehicle `protobuf:"bytes,5,opt,name=vehicle,proto3" json:"vehicle,omitempty"`
	// contains filtered or unexported fields
}

CreateVehicle request message.

func (*CreateVehicleRequest) Descriptor deprecated

func (*CreateVehicleRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateVehicleRequest.ProtoReflect.Descriptor instead.

func (*CreateVehicleRequest) GetHeader

func (x *CreateVehicleRequest) GetHeader() *RequestHeader

func (*CreateVehicleRequest) GetParent

func (x *CreateVehicleRequest) GetParent() string

func (*CreateVehicleRequest) GetVehicle

func (x *CreateVehicleRequest) GetVehicle() *Vehicle

func (*CreateVehicleRequest) GetVehicleId

func (x *CreateVehicleRequest) GetVehicleId() string

func (*CreateVehicleRequest) ProtoMessage

func (*CreateVehicleRequest) ProtoMessage()

func (*CreateVehicleRequest) ProtoReflect

func (x *CreateVehicleRequest) ProtoReflect() protoreflect.Message

func (*CreateVehicleRequest) Reset

func (x *CreateVehicleRequest) Reset()

func (*CreateVehicleRequest) String

func (x *CreateVehicleRequest) String() string

type DeviceSettings

type DeviceSettings struct {

	// How location features are set to behave on the device when battery saver is
	// on.
	LocationPowerSaveMode LocationPowerSaveMode `` /* 176-byte string literal not displayed */
	// Whether the device is currently in power save mode.
	IsPowerSaveMode bool `protobuf:"varint,2,opt,name=is_power_save_mode,json=isPowerSaveMode,proto3" json:"is_power_save_mode,omitempty"`
	// Whether the device is in an interactive state.
	IsInteractive bool `protobuf:"varint,3,opt,name=is_interactive,json=isInteractive,proto3" json:"is_interactive,omitempty"`
	// Information about the battery state.
	BatteryInfo *BatteryInfo `protobuf:"bytes,4,opt,name=battery_info,json=batteryInfo,proto3" json:"battery_info,omitempty"`
	// contains filtered or unexported fields
}

Information about various settings on the device.

func (*DeviceSettings) Descriptor deprecated

func (*DeviceSettings) Descriptor() ([]byte, []int)

Deprecated: Use DeviceSettings.ProtoReflect.Descriptor instead.

func (*DeviceSettings) GetBatteryInfo

func (x *DeviceSettings) GetBatteryInfo() *BatteryInfo

func (*DeviceSettings) GetIsInteractive

func (x *DeviceSettings) GetIsInteractive() bool

func (*DeviceSettings) GetIsPowerSaveMode

func (x *DeviceSettings) GetIsPowerSaveMode() bool

func (*DeviceSettings) GetLocationPowerSaveMode

func (x *DeviceSettings) GetLocationPowerSaveMode() LocationPowerSaveMode

func (*DeviceSettings) ProtoMessage

func (*DeviceSettings) ProtoMessage()

func (*DeviceSettings) ProtoReflect

func (x *DeviceSettings) ProtoReflect() protoreflect.Message

func (*DeviceSettings) Reset

func (x *DeviceSettings) Reset()

func (*DeviceSettings) String

func (x *DeviceSettings) String() string

type FormattedAddress

type FormattedAddress struct {

	// The lines of text that describe the address.
	// At least one line must be present.
	Lines []string `protobuf:"bytes,1,rep,name=lines,proto3" json:"lines,omitempty"`
	// contains filtered or unexported fields
}

A full, human-readable address for the entity containing this message.

func (*FormattedAddress) Descriptor deprecated

func (*FormattedAddress) Descriptor() ([]byte, []int)

Deprecated: Use FormattedAddress.ProtoReflect.Descriptor instead.

func (*FormattedAddress) GetLines

func (x *FormattedAddress) GetLines() []string

func (*FormattedAddress) ProtoMessage

func (*FormattedAddress) ProtoMessage()

func (*FormattedAddress) ProtoReflect

func (x *FormattedAddress) ProtoReflect() protoreflect.Message

func (*FormattedAddress) Reset

func (x *FormattedAddress) Reset()

func (*FormattedAddress) String

func (x *FormattedAddress) String() string

type GetTripRequest

type GetTripRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// 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.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The subset of Trip fields that should be returned and their interpretation.
	View TripView `protobuf:"varint,11,opt,name=view,proto3,enum=maps.fleetengine.v1.TripView" json:"view,omitempty"`
	// Indicates the minimum timestamp (exclusive) for which Trip.route or
	// Trip.current_route_segment data is retrieved. If route data is unchanged
	// since this timestamp, the route field is not set in the response. If a
	// minimum is unspecified, the route data is always retrieved.
	CurrentRouteSegmentVersion *timestamppb.Timestamp `` /* 143-byte string literal not displayed */
	// 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.
	RemainingWaypointsVersion *timestamppb.Timestamp `` /* 138-byte string literal not displayed */
	// 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.
	RouteFormatType PolylineFormatType `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

GetTrip request message.

func (*GetTripRequest) Descriptor deprecated

func (*GetTripRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTripRequest.ProtoReflect.Descriptor instead.

func (*GetTripRequest) GetCurrentRouteSegmentVersion

func (x *GetTripRequest) GetCurrentRouteSegmentVersion() *timestamppb.Timestamp

func (*GetTripRequest) GetHeader

func (x *GetTripRequest) GetHeader() *RequestHeader

func (*GetTripRequest) GetName

func (x *GetTripRequest) GetName() string

func (*GetTripRequest) GetRemainingWaypointsVersion

func (x *GetTripRequest) GetRemainingWaypointsVersion() *timestamppb.Timestamp

func (*GetTripRequest) GetRouteFormatType

func (x *GetTripRequest) GetRouteFormatType() PolylineFormatType

func (*GetTripRequest) GetView

func (x *GetTripRequest) GetView() TripView

func (*GetTripRequest) ProtoMessage

func (*GetTripRequest) ProtoMessage()

func (*GetTripRequest) ProtoReflect

func (x *GetTripRequest) ProtoReflect() protoreflect.Message

func (*GetTripRequest) Reset

func (x *GetTripRequest) Reset()

func (*GetTripRequest) String

func (x *GetTripRequest) String() string

type GetVehicleRequest

type GetVehicleRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format
	// "providers/{provider}/vehicles/{vehicle}".
	// 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.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Indicates the minimum timestamp (exclusive) for which
	// vehicle.current_route_segment is retrieved.
	// If route is unchanged since this timestamp, the current_route_segment
	// field is not set in the response. If a minimum is unspecified, the
	// current_route_segment is always retrieved.
	CurrentRouteSegmentVersion *timestamppb.Timestamp `` /* 143-byte string literal not displayed */
	// Indicates the minimum timestamp (exclusive) for which vehicle.waypoints
	// data is retrieved. If data is unchanged since this timestamp, the
	// vehicle.waypoints data is not set in the response. If this field is
	// unspecified, vehicle.waypoints is always retrieved.
	WaypointsVersion *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=waypoints_version,json=waypointsVersion,proto3" json:"waypoints_version,omitempty"`
	// contains filtered or unexported fields
}

GetVehicle request message.

func (*GetVehicleRequest) Descriptor deprecated

func (*GetVehicleRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetVehicleRequest.ProtoReflect.Descriptor instead.

func (*GetVehicleRequest) GetCurrentRouteSegmentVersion

func (x *GetVehicleRequest) GetCurrentRouteSegmentVersion() *timestamppb.Timestamp

func (*GetVehicleRequest) GetHeader

func (x *GetVehicleRequest) GetHeader() *RequestHeader

func (*GetVehicleRequest) GetName

func (x *GetVehicleRequest) GetName() string

func (*GetVehicleRequest) GetWaypointsVersion

func (x *GetVehicleRequest) GetWaypointsVersion() *timestamppb.Timestamp

func (*GetVehicleRequest) ProtoMessage

func (*GetVehicleRequest) ProtoMessage()

func (*GetVehicleRequest) ProtoReflect

func (x *GetVehicleRequest) ProtoReflect() protoreflect.Message

func (*GetVehicleRequest) Reset

func (x *GetVehicleRequest) Reset()

func (*GetVehicleRequest) String

func (x *GetVehicleRequest) String() string

type LicensePlate

type LicensePlate struct {

	// Required. CLDR Country/Region Code.  For example, "US" for United States,
	// or "IN" for India.
	CountryCode string `protobuf:"bytes,1,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	// The last digit of the license plate or "-1" to denote no numeric value
	// present in the license plate.
	//
	// * "ABC 1234" -> "4"
	// * "AB 123 CD" -> "3"
	// * "ABCDEF" -> "-1"
	LastCharacter string `protobuf:"bytes,2,opt,name=last_character,json=lastCharacter,proto3" json:"last_character,omitempty"`
	// contains filtered or unexported fields
}

The license plate information of the Vehicle. This is used to support congestion pricing restrictions in certain areas. To avoid storing personally-identifiable information, only the minimum information about the license plate is stored as part of the entity.

func (*LicensePlate) Descriptor deprecated

func (*LicensePlate) Descriptor() ([]byte, []int)

Deprecated: Use LicensePlate.ProtoReflect.Descriptor instead.

func (*LicensePlate) GetCountryCode

func (x *LicensePlate) GetCountryCode() string

func (*LicensePlate) GetLastCharacter

func (x *LicensePlate) GetLastCharacter() string

func (*LicensePlate) ProtoMessage

func (*LicensePlate) ProtoMessage()

func (*LicensePlate) ProtoReflect

func (x *LicensePlate) ProtoReflect() protoreflect.Message

func (*LicensePlate) Reset

func (x *LicensePlate) Reset()

func (*LicensePlate) String

func (x *LicensePlate) String() string

type ListVehiclesRequest

type ListVehiclesRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,12,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format "providers/{provider}".
	// 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.
	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The maximum number of vehicles to return.
	// Default value: 100.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous response, if any.
	PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// Specifies the required minimum capacity of the vehicle.
	// The driver is not considered in the capacity search.
	// This is just the number of passengers being considered for a trip.
	// If set, must be greater or equal to 0.
	MinimumCapacity *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=minimum_capacity,json=minimumCapacity,proto3" json:"minimum_capacity,omitempty"`
	// Restrict the search to only those vehicles that support at least
	// one of the specified trip types.
	TripTypes []TripType `` /* 130-byte string literal not displayed */
	// Restrict the search to only those vehicles that have updated
	// their locations within the specified duration back from now.
	// If present, must be a valid positive duration.
	MaximumStaleness *durationpb.Duration `protobuf:"bytes,8,opt,name=maximum_staleness,json=maximumStaleness,proto3" json:"maximum_staleness,omitempty"`
	// Required. Restrict the search to those vehicles with the specified type categories.
	VehicleTypeCategories []Vehicle_VehicleType_Category `` /* 188-byte string literal not displayed */
	// Callers can form complex logical operations using the
	// requiredAttributes and requiredOneOfAttributes fields.
	//
	// requiredAttributes is a list; requiredOneOfAttributes uses a message which
	// allows a list of lists. In combination, the two fields allow the
	// composition of this expression:
	//
	// “`
	// (required_attribute[0] AND required_attribute[1] AND ...)
	// AND
	// (required_one_of_attribute[0][0] OR required_one_of_attribute[0][1] OR ...)
	// AND
	// (required_one_of_attribute[1][0] OR required_one_of_attribute[1][1] OR ...)
	// “`
	//
	// Restrict the search to only those vehicles
	// with the specified attributes. This field is a conjunction/AND operation.
	// Your app can specify up to 100 attributes; however, the combined
	// key:value string length cannot exceed 1024 characters.
	RequiredAttributes []string `protobuf:"bytes,10,rep,name=required_attributes,json=requiredAttributes,proto3" json:"required_attributes,omitempty"`
	// Restrict the search to only those vehicles with at least one
	// of the specified attributes applied to each VehicleAttributeList.
	// Within each list, a vehicle must match at least one of the attributes.
	// This field is an inclusive disjunction/OR operation in each
	// VehicleAttributeList and a conjunction/AND operation across the collection
	// of VehicleAttributeList.
	// Format: key1:value1|key2:value2|key3:value3...
	RequiredOneOfAttributes []string `` /* 135-byte string literal not displayed */
	// Restrict the search to only those vehicles with at least one set of the
	// specified attributes in the VehicleAttributeList. Within each list, a
	// vehicle must match all of the attributes. This field is a conjunction/AND
	// operation in each VehicleAttributeList and inclusive disjunction/OR
	// operation across the collection of VehicleAttributeList.
	// Format: key1:value1|key2:value2|key3:value3...
	RequiredOneOfAttributeSets []string `` /* 146-byte string literal not displayed */
	// Restrict the search to only those vehicles that have this vehicle state.
	VehicleState VehicleState `` /* 137-byte string literal not displayed */
	// Only return the vehicles with current trip(s).
	OnTripOnly bool `protobuf:"varint,14,opt,name=on_trip_only,json=onTripOnly,proto3" json:"on_trip_only,omitempty"`
	// contains filtered or unexported fields
}

ListVehicles request message.

func (*ListVehiclesRequest) Descriptor deprecated

func (*ListVehiclesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListVehiclesRequest.ProtoReflect.Descriptor instead.

func (*ListVehiclesRequest) GetHeader

func (x *ListVehiclesRequest) GetHeader() *RequestHeader

func (*ListVehiclesRequest) GetMaximumStaleness

func (x *ListVehiclesRequest) GetMaximumStaleness() *durationpb.Duration

func (*ListVehiclesRequest) GetMinimumCapacity

func (x *ListVehiclesRequest) GetMinimumCapacity() *wrapperspb.Int32Value

func (*ListVehiclesRequest) GetOnTripOnly

func (x *ListVehiclesRequest) GetOnTripOnly() bool

func (*ListVehiclesRequest) GetPageSize

func (x *ListVehiclesRequest) GetPageSize() int32

func (*ListVehiclesRequest) GetPageToken

func (x *ListVehiclesRequest) GetPageToken() string

func (*ListVehiclesRequest) GetParent

func (x *ListVehiclesRequest) GetParent() string

func (*ListVehiclesRequest) GetRequiredAttributes

func (x *ListVehiclesRequest) GetRequiredAttributes() []string

func (*ListVehiclesRequest) GetRequiredOneOfAttributeSets

func (x *ListVehiclesRequest) GetRequiredOneOfAttributeSets() []string

func (*ListVehiclesRequest) GetRequiredOneOfAttributes

func (x *ListVehiclesRequest) GetRequiredOneOfAttributes() []string

func (*ListVehiclesRequest) GetTripTypes

func (x *ListVehiclesRequest) GetTripTypes() []TripType

func (*ListVehiclesRequest) GetVehicleState

func (x *ListVehiclesRequest) GetVehicleState() VehicleState

func (*ListVehiclesRequest) GetVehicleTypeCategories

func (x *ListVehiclesRequest) GetVehicleTypeCategories() []Vehicle_VehicleType_Category

func (*ListVehiclesRequest) ProtoMessage

func (*ListVehiclesRequest) ProtoMessage()

func (*ListVehiclesRequest) ProtoReflect

func (x *ListVehiclesRequest) ProtoReflect() protoreflect.Message

func (*ListVehiclesRequest) Reset

func (x *ListVehiclesRequest) Reset()

func (*ListVehiclesRequest) String

func (x *ListVehiclesRequest) String() string

type ListVehiclesResponse

type ListVehiclesResponse struct {

	// Depends on vehicles matching request criteria.
	// There will be a maximum number of vehicles returned based on the page_size
	// field in the request.
	Vehicles []*Vehicle `protobuf:"bytes,1,rep,name=vehicles,proto3" json:"vehicles,omitempty"`
	// Token to retrieve the next page of vehicles, or empty if there are no
	// more vehicles in the list.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// Required. Total number of vehicles matching request criteria across all pages.
	TotalSize int64 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
	// contains filtered or unexported fields
}

ListVehicles response message.

func (*ListVehiclesResponse) Descriptor deprecated

func (*ListVehiclesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListVehiclesResponse.ProtoReflect.Descriptor instead.

func (*ListVehiclesResponse) GetNextPageToken

func (x *ListVehiclesResponse) GetNextPageToken() string

func (*ListVehiclesResponse) GetTotalSize

func (x *ListVehiclesResponse) GetTotalSize() int64

func (*ListVehiclesResponse) GetVehicles

func (x *ListVehiclesResponse) GetVehicles() []*Vehicle

func (*ListVehiclesResponse) ProtoMessage

func (*ListVehiclesResponse) ProtoMessage()

func (*ListVehiclesResponse) ProtoReflect

func (x *ListVehiclesResponse) ProtoReflect() protoreflect.Message

func (*ListVehiclesResponse) Reset

func (x *ListVehiclesResponse) Reset()

func (*ListVehiclesResponse) String

func (x *ListVehiclesResponse) String() string

type LocationPowerSaveMode

type LocationPowerSaveMode int32

How location features are set to behave on the device when battery saver is on. (https://developer.android.com/reference/android/os/PowerManager#getLocationPowerSaveMode())

const (
	// Undefined LocationPowerSaveMode
	LocationPowerSaveMode_UNKNOWN_LOCATION_POWER_SAVE_MODE LocationPowerSaveMode = 0
	// Either the location providers shouldn't be affected by battery saver, or
	// battery saver is off.
	LocationPowerSaveMode_LOCATION_MODE_NO_CHANGE LocationPowerSaveMode = 1
	// The GPS based location provider should be disabled when battery saver is on
	// and the device is non-interactive.
	LocationPowerSaveMode_LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF LocationPowerSaveMode = 2
	// All location providers should be disabled when battery saver is on and the
	// device is non-interactive.
	LocationPowerSaveMode_LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF LocationPowerSaveMode = 3
	// All the location providers will be kept available, but location fixes
	// should only be provided to foreground apps.
	LocationPowerSaveMode_LOCATION_MODE_FOREGROUND_ONLY LocationPowerSaveMode = 4
	// Location will not be turned off, but LocationManager will throttle all
	// requests to providers when the device is non-interactive.
	LocationPowerSaveMode_LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF LocationPowerSaveMode = 5
)

func (LocationPowerSaveMode) Descriptor

func (LocationPowerSaveMode) Enum

func (LocationPowerSaveMode) EnumDescriptor deprecated

func (LocationPowerSaveMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use LocationPowerSaveMode.Descriptor instead.

func (LocationPowerSaveMode) Number

func (LocationPowerSaveMode) String

func (x LocationPowerSaveMode) String() string

func (LocationPowerSaveMode) Type

type LocationSensor

type LocationSensor int32

Possible location providers.

const (
	// Undefined sensor.
	LocationSensor_UNKNOWN_SENSOR LocationSensor = 0
	// Sensors: (GPS, AGPS).
	LocationSensor_GPS LocationSensor = 1
	// Sensors: (AGPS, CellID, WiFi MACID).
	LocationSensor_NETWORK LocationSensor = 2
	// Sensors: (CellID, WiFi MACID).
	LocationSensor_PASSIVE LocationSensor = 3
	// GMM's road snapped (gmfc) location.
	LocationSensor_ROAD_SNAPPED_LOCATION_PROVIDER LocationSensor = 4
	// Unspecified, but generated by the Fused Location Provider.
	LocationSensor_FUSED_LOCATION_PROVIDER LocationSensor = 100
)

func (LocationSensor) Descriptor

func (LocationSensor) Enum

func (x LocationSensor) Enum() *LocationSensor

func (LocationSensor) EnumDescriptor deprecated

func (LocationSensor) EnumDescriptor() ([]byte, []int)

Deprecated: Use LocationSensor.Descriptor instead.

func (LocationSensor) Number

func (LocationSensor) String

func (x LocationSensor) String() string

func (LocationSensor) Type

type NavigationStatus int32

A set of values that specify the vehicle's navigation status.

const (
	// Unspecified navigation status.
	NavigationStatus_UNKNOWN_NAVIGATION_STATUS NavigationStatus = 0
	// The Driver app's navigation is in FREE_NAV mode.
	NavigationStatus_NO_GUIDANCE NavigationStatus = 1
	// Turn-by-turn navigation starts and the Driver app navigation enters
	// GUIDED_NAV mode showing the green header, route, and destination marker.
	NavigationStatus_ENROUTE_TO_DESTINATION NavigationStatus = 2
	// Vehicle has gone off the suggested route.
	NavigationStatus_OFF_ROUTE NavigationStatus = 3
	// The vehicle is within 50m of the destination and onArrival was
	// automatically triggered.
	NavigationStatus_ARRIVED_AT_DESTINATION NavigationStatus = 4
)
func (NavigationStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use NavigationStatus.Descriptor instead.

func (x NavigationStatus) String() string

type PolylineFormatType

type PolylineFormatType int32

The type of polyline format.

const (
	// Unspecified format type.
	PolylineFormatType_UNKNOWN_FORMAT_TYPE PolylineFormatType = 0
	// Repeated LatLng.
	PolylineFormatType_LAT_LNG_LIST_TYPE PolylineFormatType = 1
	// A polyline encoded with a polyline compression algorithm. Decoding is not
	// yet supported.
	PolylineFormatType_ENCODED_POLYLINE_TYPE PolylineFormatType = 2
)

func (PolylineFormatType) Descriptor

func (PolylineFormatType) Enum

func (PolylineFormatType) EnumDescriptor deprecated

func (PolylineFormatType) EnumDescriptor() ([]byte, []int)

Deprecated: Use PolylineFormatType.Descriptor instead.

func (PolylineFormatType) Number

func (PolylineFormatType) String

func (x PolylineFormatType) String() string

func (PolylineFormatType) Type

type PowerSource

type PowerSource int32

Type of the charger being used to charge the battery.

const (
	// Power source unknown.
	PowerSource_UNKNOWN_POWER_SOURCE PowerSource = 0
	// Power source is an AC charger.
	PowerSource_POWER_SOURCE_AC PowerSource = 1
	// Power source is a USB port.
	PowerSource_POWER_SOURCE_USB PowerSource = 2
	// Power source is wireless.
	PowerSource_POWER_SOURCE_WIRELESS PowerSource = 3
	// Battery is unplugged.
	PowerSource_POWER_SOURCE_UNPLUGGED PowerSource = 4
)

func (PowerSource) Descriptor

func (PowerSource) Enum

func (x PowerSource) Enum() *PowerSource

func (PowerSource) EnumDescriptor deprecated

func (PowerSource) EnumDescriptor() ([]byte, []int)

Deprecated: Use PowerSource.Descriptor instead.

func (PowerSource) Number

func (x PowerSource) Number() protoreflect.EnumNumber

func (PowerSource) String

func (x PowerSource) String() string

func (PowerSource) Type

type ReportBillableTripRequest

type ReportBillableTripRequest struct {

	// Required. Must be in the format
	// "providers/{provider}/billableTrips/{billable_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.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Required. Two letter country code of the country where the trip takes place. Price is
	// defined according to country code.
	CountryCode string `protobuf:"bytes,3,opt,name=country_code,json=countryCode,proto3" json:"country_code,omitempty"`
	// The platform upon which the request was issued.
	Platform BillingPlatformIdentifier `protobuf:"varint,5,opt,name=platform,proto3,enum=maps.fleetengine.v1.BillingPlatformIdentifier" json:"platform,omitempty"`
	// The identifiers that are directly related to the trip being reported. These
	// are usually IDs (for example, session IDs) of pre-booking operations done
	// before the trip ID is available. The number of related_ids is
	// limited to 50.
	RelatedIds []string `protobuf:"bytes,6,rep,name=related_ids,json=relatedIds,proto3" json:"related_ids,omitempty"`
	// The type of GMP product solution (for example,
	// ON_DEMAND_RIDESHARING_AND_DELIVERIES) used for the reported trip.
	SolutionType ReportBillableTripRequest_SolutionType `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

ReportBillableTrip request message.

func (*ReportBillableTripRequest) Descriptor deprecated

func (*ReportBillableTripRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReportBillableTripRequest.ProtoReflect.Descriptor instead.

func (*ReportBillableTripRequest) GetCountryCode

func (x *ReportBillableTripRequest) GetCountryCode() string

func (*ReportBillableTripRequest) GetName

func (x *ReportBillableTripRequest) GetName() string

func (*ReportBillableTripRequest) GetPlatform

func (*ReportBillableTripRequest) GetRelatedIds

func (x *ReportBillableTripRequest) GetRelatedIds() []string

func (*ReportBillableTripRequest) GetSolutionType

func (*ReportBillableTripRequest) ProtoMessage

func (*ReportBillableTripRequest) ProtoMessage()

func (*ReportBillableTripRequest) ProtoReflect

func (*ReportBillableTripRequest) Reset

func (x *ReportBillableTripRequest) Reset()

func (*ReportBillableTripRequest) String

func (x *ReportBillableTripRequest) String() string

type ReportBillableTripRequest_SolutionType

type ReportBillableTripRequest_SolutionType int32

Selector for different solution types of a reported trip.

const (
	// The default value. For backwards-compatibility, the API will use
	// ON_DEMAND_RIDESHARING_AND_DELIVERIES by default which is the first
	// supported solution type.
	ReportBillableTripRequest_SOLUTION_TYPE_UNSPECIFIED ReportBillableTripRequest_SolutionType = 0
	// The solution is an on-demand ridesharing and deliveries trip.
	ReportBillableTripRequest_ON_DEMAND_RIDESHARING_AND_DELIVERIES ReportBillableTripRequest_SolutionType = 1
)

func (ReportBillableTripRequest_SolutionType) Descriptor

func (ReportBillableTripRequest_SolutionType) Enum

func (ReportBillableTripRequest_SolutionType) EnumDescriptor deprecated

func (ReportBillableTripRequest_SolutionType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ReportBillableTripRequest_SolutionType.Descriptor instead.

func (ReportBillableTripRequest_SolutionType) Number

func (ReportBillableTripRequest_SolutionType) String

func (ReportBillableTripRequest_SolutionType) Type

type RequestHeader

type RequestHeader struct {

	// The language requested. The external form of Google International
	// Identifiers Initiative (III) LanguageCode objects. If none is specified,
	// return a name in any language, with a preference for English if such a
	// name exists.
	LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
	// Required. CLDR region code of the region where the request originates.
	RegionCode string `protobuf:"bytes,2,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
	// Version of the calling SDK, if applicable.
	SdkVersion string `protobuf:"bytes,3,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"`
	// Version of the operating system on which the calling SDK is running.
	OsVersion string `protobuf:"bytes,4,opt,name=os_version,json=osVersion,proto3" json:"os_version,omitempty"`
	// Model of the device on which the calling SDK is running.
	DeviceModel string `protobuf:"bytes,5,opt,name=device_model,json=deviceModel,proto3" json:"device_model,omitempty"`
	// contains filtered or unexported fields
}

A RequestHeader contains fields common to all Fleet Engine RPC requests.

func (*RequestHeader) Descriptor deprecated

func (*RequestHeader) Descriptor() ([]byte, []int)

Deprecated: Use RequestHeader.ProtoReflect.Descriptor instead.

func (*RequestHeader) GetDeviceModel

func (x *RequestHeader) GetDeviceModel() string

func (*RequestHeader) GetLanguageCode

func (x *RequestHeader) GetLanguageCode() string

func (*RequestHeader) GetOsVersion

func (x *RequestHeader) GetOsVersion() string

func (*RequestHeader) GetRegionCode

func (x *RequestHeader) GetRegionCode() string

func (*RequestHeader) GetSdkVersion

func (x *RequestHeader) GetSdkVersion() string

func (*RequestHeader) ProtoMessage

func (*RequestHeader) ProtoMessage()

func (*RequestHeader) ProtoReflect

func (x *RequestHeader) ProtoReflect() protoreflect.Message

func (*RequestHeader) Reset

func (x *RequestHeader) Reset()

func (*RequestHeader) String

func (x *RequestHeader) String() string

type SearchTripsRequest

type SearchTripsRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format "providers/*"
	// 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.
	Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// The vehicle associated with the trips in the request. If unspecified, the
	// returned trips do not contain:
	//
	// * current_route_segment
	// * remaining_waypoints
	// * remaining_distance_meters
	// * eta_to_first_waypoint
	VehicleId string `protobuf:"bytes,4,opt,name=vehicle_id,json=vehicleId,proto3" json:"vehicle_id,omitempty"`
	// If set to true, only Trips that influence the drivers route
	// are included in the response.
	ActiveTripsOnly bool `protobuf:"varint,5,opt,name=active_trips_only,json=activeTripsOnly,proto3" json:"active_trips_only,omitempty"`
	// If not set, the server will decide the number of
	// results to return.
	PageSize int32 `protobuf:"varint,6,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Set this to a value previously returned in the
	// SearchTripsResponse to continue from previous results.
	PageToken string `protobuf:"bytes,7,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// If specified, returns the trips that have not been updated after
	// the time (current - minimum_staleness).
	MinimumStaleness *durationpb.Duration `protobuf:"bytes,8,opt,name=minimum_staleness,json=minimumStaleness,proto3" json:"minimum_staleness,omitempty"`
	// contains filtered or unexported fields
}

SearchTrips request message.

func (*SearchTripsRequest) Descriptor deprecated

func (*SearchTripsRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchTripsRequest.ProtoReflect.Descriptor instead.

func (*SearchTripsRequest) GetActiveTripsOnly

func (x *SearchTripsRequest) GetActiveTripsOnly() bool

func (*SearchTripsRequest) GetHeader

func (x *SearchTripsRequest) GetHeader() *RequestHeader

func (*SearchTripsRequest) GetMinimumStaleness

func (x *SearchTripsRequest) GetMinimumStaleness() *durationpb.Duration

func (*SearchTripsRequest) GetPageSize

func (x *SearchTripsRequest) GetPageSize() int32

func (*SearchTripsRequest) GetPageToken

func (x *SearchTripsRequest) GetPageToken() string

func (*SearchTripsRequest) GetParent

func (x *SearchTripsRequest) GetParent() string

func (*SearchTripsRequest) GetVehicleId

func (x *SearchTripsRequest) GetVehicleId() string

func (*SearchTripsRequest) ProtoMessage

func (*SearchTripsRequest) ProtoMessage()

func (*SearchTripsRequest) ProtoReflect

func (x *SearchTripsRequest) ProtoReflect() protoreflect.Message

func (*SearchTripsRequest) Reset

func (x *SearchTripsRequest) Reset()

func (*SearchTripsRequest) String

func (x *SearchTripsRequest) String() string

type SearchTripsResponse

type SearchTripsResponse struct {

	// The list of trips for the requested vehicle.
	Trips []*Trip `protobuf:"bytes,1,rep,name=trips,proto3" json:"trips,omitempty"`
	// Pass this token in the SearchTripsRequest to continue to
	// list results. If all results have been returned, this field is an empty
	// string or not present in the response.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

SearchTrips response message.

func (*SearchTripsResponse) Descriptor deprecated

func (*SearchTripsResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchTripsResponse.ProtoReflect.Descriptor instead.

func (*SearchTripsResponse) GetNextPageToken

func (x *SearchTripsResponse) GetNextPageToken() string

func (*SearchTripsResponse) GetTrips

func (x *SearchTripsResponse) GetTrips() []*Trip

func (*SearchTripsResponse) ProtoMessage

func (*SearchTripsResponse) ProtoMessage()

func (*SearchTripsResponse) ProtoReflect

func (x *SearchTripsResponse) ProtoReflect() protoreflect.Message

func (*SearchTripsResponse) Reset

func (x *SearchTripsResponse) Reset()

func (*SearchTripsResponse) String

func (x *SearchTripsResponse) String() string

type SearchVehiclesRequest

type SearchVehiclesRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format "providers/{provider}".
	// 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.
	Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"`
	// Required. The pickup point to search near.
	PickupPoint *TerminalLocation `protobuf:"bytes,4,opt,name=pickup_point,json=pickupPoint,proto3" json:"pickup_point,omitempty"`
	// The customer's intended dropoff location. The field is required if
	// trip_types contains TripType.SHARED.
	DropoffPoint *TerminalLocation `protobuf:"bytes,5,opt,name=dropoff_point,json=dropoffPoint,proto3" json:"dropoff_point,omitempty"`
	// Required. Defines the vehicle search radius around the pickup point. Only
	// vehicles within the search radius will be returned. Value must be between
	// 400 and 10000 meters.
	PickupRadiusMeters int32 `protobuf:"varint,6,opt,name=pickup_radius_meters,json=pickupRadiusMeters,proto3" json:"pickup_radius_meters,omitempty"`
	// Required. Specifies the maximum number of available vehicles to return. By
	// default, the Fleet Engine limits the number to  50.
	Count int32 `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"`
	// Required. Specifies the minimum number of passengers allowed in the
	// vehicle. Must number must be greater than or equal to one. The driver is
	// not considered in the capacity search. This number indicates the number of
	// passengers being considered for a trip.
	MinimumCapacity int32 `protobuf:"varint,8,opt,name=minimum_capacity,json=minimumCapacity,proto3" json:"minimum_capacity,omitempty"`
	// Required. Restricts the search to only those vehicles that support at least
	// one of the specified trip types.
	TripTypes []TripType `` /* 130-byte string literal not displayed */
	// Restricts the search to only those vehicles that have updated their
	// locations within the specified duration back from now. If this field is not
	// set, the server uses five minutes as the default value.
	MaximumStaleness *durationpb.Duration `protobuf:"bytes,10,opt,name=maximum_staleness,json=maximumStaleness,proto3" json:"maximum_staleness,omitempty"`
	// Required. Restricts the search to those vehicles with the specified types.
	// At least one vehicle type must be specified.
	VehicleTypes []*Vehicle_VehicleType `protobuf:"bytes,14,rep,name=vehicle_types,json=vehicleTypes,proto3" json:"vehicle_types,omitempty"`
	// Callers can form complex logical operations using the
	// requiredAttributes and requiredOneOfAttributes fields.
	//
	// requiredAttributes is a list; requiredOneOfAttributes uses a message which
	// allows a list of lists. In combination, the two fields allow the
	// composition of this expression:
	//
	// “`
	// (required_attribute[0] AND required_attribute[1] AND ...)
	// AND
	// (required_one_of_attribute[0][0] OR required_one_of_attribute[0][1] OR ...)
	// AND
	// (required_one_of_attribute[1][0] OR required_one_of_attribute[1][1] OR ...)
	// “`
	//
	// Restricts the search to only those vehicles with the specified attributes.
	// This field is a conjunction/AND operation. Your app can specify up to 100
	// attributes; however, the combined key:value string length cannot exceed
	// 1024 characters.
	RequiredAttributes []*VehicleAttribute `protobuf:"bytes,12,rep,name=required_attributes,json=requiredAttributes,proto3" json:"required_attributes,omitempty"`
	// Restricts the search to only those vehicles with at least one of
	// the specified attributes applied to each VehicleAttributeList. Within each
	// list, a vehicle must match at least one of the attributes. This field is an
	// inclusive disjunction/OR operation in each VehicleAttributeList and a
	// conjunction/AND operation across the collection of VehicleAttributeList.
	RequiredOneOfAttributes []*VehicleAttributeList `` /* 135-byte string literal not displayed */
	// Restricts the search to only those vehicles with at least one set of the
	// specified attributes in the VehicleAttributeList. Within each list, a
	// vehicle must match all of the attributes. This field is a conjunction/AND
	// operation in each VehicleAttributeList and inclusive disjunction/OR
	// operation across the collection of VehicleAttributeList.
	RequiredOneOfAttributeSets []*VehicleAttributeList `` /* 146-byte string literal not displayed */
	// Required. Specifies ordering criterion for results.
	OrderBy SearchVehiclesRequest_VehicleMatchOrder `` /* 149-byte string literal not displayed */
	// Indicates if a vehicle with an active trip is eligible for
	// another match. If `false`, a vehicle is excluded from search results.
	// If `true`, search results include vehicles with `TripStatus` of
	// `ENROUTE_TO_DROPOFF`. The services only use this field if
	// the `SearchVehicles` request has `TripType` set to EXCLUSIVE.
	// Default value is `false`.
	IncludeBackToBack bool `protobuf:"varint,18,opt,name=include_back_to_back,json=includeBackToBack,proto3" json:"include_back_to_back,omitempty"`
	// Indicates the ID of the trip the searchVehicleRequest is
	// associated with.
	TripId string `protobuf:"bytes,19,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"`
	// contains filtered or unexported fields
}

SearchVehicles request message.

func (*SearchVehiclesRequest) Descriptor deprecated

func (*SearchVehiclesRequest) Descriptor() ([]byte, []int)

Deprecated: Use SearchVehiclesRequest.ProtoReflect.Descriptor instead.

func (*SearchVehiclesRequest) GetCount

func (x *SearchVehiclesRequest) GetCount() int32

func (*SearchVehiclesRequest) GetDropoffPoint

func (x *SearchVehiclesRequest) GetDropoffPoint() *TerminalLocation

func (*SearchVehiclesRequest) GetHeader

func (x *SearchVehiclesRequest) GetHeader() *RequestHeader

func (*SearchVehiclesRequest) GetIncludeBackToBack

func (x *SearchVehiclesRequest) GetIncludeBackToBack() bool

func (*SearchVehiclesRequest) GetMaximumStaleness

func (x *SearchVehiclesRequest) GetMaximumStaleness() *durationpb.Duration

func (*SearchVehiclesRequest) GetMinimumCapacity

func (x *SearchVehiclesRequest) GetMinimumCapacity() int32

func (*SearchVehiclesRequest) GetOrderBy

func (*SearchVehiclesRequest) GetParent

func (x *SearchVehiclesRequest) GetParent() string

func (*SearchVehiclesRequest) GetPickupPoint

func (x *SearchVehiclesRequest) GetPickupPoint() *TerminalLocation

func (*SearchVehiclesRequest) GetPickupRadiusMeters

func (x *SearchVehiclesRequest) GetPickupRadiusMeters() int32

func (*SearchVehiclesRequest) GetRequiredAttributes

func (x *SearchVehiclesRequest) GetRequiredAttributes() []*VehicleAttribute

func (*SearchVehiclesRequest) GetRequiredOneOfAttributeSets

func (x *SearchVehiclesRequest) GetRequiredOneOfAttributeSets() []*VehicleAttributeList

func (*SearchVehiclesRequest) GetRequiredOneOfAttributes

func (x *SearchVehiclesRequest) GetRequiredOneOfAttributes() []*VehicleAttributeList

func (*SearchVehiclesRequest) GetTripId

func (x *SearchVehiclesRequest) GetTripId() string

func (*SearchVehiclesRequest) GetTripTypes

func (x *SearchVehiclesRequest) GetTripTypes() []TripType

func (*SearchVehiclesRequest) GetVehicleTypes

func (x *SearchVehiclesRequest) GetVehicleTypes() []*Vehicle_VehicleType

func (*SearchVehiclesRequest) ProtoMessage

func (*SearchVehiclesRequest) ProtoMessage()

func (*SearchVehiclesRequest) ProtoReflect

func (x *SearchVehiclesRequest) ProtoReflect() protoreflect.Message

func (*SearchVehiclesRequest) Reset

func (x *SearchVehiclesRequest) Reset()

func (*SearchVehiclesRequest) String

func (x *SearchVehiclesRequest) String() string

type SearchVehiclesRequest_VehicleMatchOrder

type SearchVehiclesRequest_VehicleMatchOrder int32

Specifies the sort order of the vehicle matches in the response.

const (
	// Default, used for unspecified or unrecognized vehicle matches order.
	SearchVehiclesRequest_UNKNOWN_VEHICLE_MATCH_ORDER SearchVehiclesRequest_VehicleMatchOrder = 0
	// Ascending order by vehicle driving time to the pickup point.
	SearchVehiclesRequest_PICKUP_POINT_ETA SearchVehiclesRequest_VehicleMatchOrder = 1
	// Ascending order by the vehicle driving distance to the pickup point.
	SearchVehiclesRequest_PICKUP_POINT_DISTANCE SearchVehiclesRequest_VehicleMatchOrder = 2
	// Ascending order by vehicle driving time to the dropoff point. This order
	// can only be used if the dropoff_point is specified in the request.
	SearchVehiclesRequest_DROPOFF_POINT_ETA SearchVehiclesRequest_VehicleMatchOrder = 3
	// Ascending order by straightline distance from vehicle location to pickup
	// location. This is used primarily as a backup if the maps backend is not
	// reachable.
	SearchVehiclesRequest_PICKUP_POINT_STRAIGHT_DISTANCE SearchVehiclesRequest_VehicleMatchOrder = 4
	// Ascending order by the match cost.
	SearchVehiclesRequest_COST SearchVehiclesRequest_VehicleMatchOrder = 5
)

func (SearchVehiclesRequest_VehicleMatchOrder) Descriptor

func (SearchVehiclesRequest_VehicleMatchOrder) Enum

func (SearchVehiclesRequest_VehicleMatchOrder) EnumDescriptor deprecated

func (SearchVehiclesRequest_VehicleMatchOrder) EnumDescriptor() ([]byte, []int)

Deprecated: Use SearchVehiclesRequest_VehicleMatchOrder.Descriptor instead.

func (SearchVehiclesRequest_VehicleMatchOrder) Number

func (SearchVehiclesRequest_VehicleMatchOrder) String

func (SearchVehiclesRequest_VehicleMatchOrder) Type

type SearchVehiclesResponse

type SearchVehiclesResponse struct {

	// List of vehicles that match the request options.
	//
	// Ordered by ascending vehicle_pickup_eta, with ties broken by ascending
	// trip_type enum value, followed by matches that don't have
	// vehicle_pickup_eta set.
	//
	// Example response: (Logically represented, not actual response fields):
	//
	// * (VehicleId: Vehicle1, ETA: 10 AM, TripType: SHARED),
	// * (VehicleId: Vehicle2, ETA: 10 AM, TripType: EXCLUSIVE),
	// * (VehicleId: Vehicle3, ETA: 11 AM, TripType: EXCLUSIVE),
	// * (VehicleId: Vehicle4, ETA: Not set, TripType: SHARED),
	// * (VehicleId: Vehicle5, ETA: Not set, TripType: EXCLUSIVE)
	Matches []*VehicleMatch `protobuf:"bytes,1,rep,name=matches,proto3" json:"matches,omitempty"`
	// contains filtered or unexported fields
}

SearchVehicles response message.

func (*SearchVehiclesResponse) Descriptor deprecated

func (*SearchVehiclesResponse) Descriptor() ([]byte, []int)

Deprecated: Use SearchVehiclesResponse.ProtoReflect.Descriptor instead.

func (*SearchVehiclesResponse) GetMatches

func (x *SearchVehiclesResponse) GetMatches() []*VehicleMatch

func (*SearchVehiclesResponse) ProtoMessage

func (*SearchVehiclesResponse) ProtoMessage()

func (*SearchVehiclesResponse) ProtoReflect

func (x *SearchVehiclesResponse) ProtoReflect() protoreflect.Message

func (*SearchVehiclesResponse) Reset

func (x *SearchVehiclesResponse) Reset()

func (*SearchVehiclesResponse) String

func (x *SearchVehiclesResponse) String() string

type Status

type Status struct {

	// The error code. It is not possible to have a value as 0 if it is explicitly
	// set by the server.
	Code Status_Code `protobuf:"varint,1,opt,name=code,proto3,enum=maps.fleetengine.v1.Status_Code" json:"code,omitempty"`
	// Detailed error message.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// A list of messages that carry the error details.  There is a common set of
	// message types for APIs to use.
	Details []*anypb.Any `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

The 'Status' defines a FleetEngine custom logical error mode.

func (*Status) Descriptor deprecated

func (*Status) Descriptor() ([]byte, []int)

Deprecated: Use Status.ProtoReflect.Descriptor instead.

func (*Status) GetCode

func (x *Status) GetCode() Status_Code

func (*Status) GetDetails

func (x *Status) GetDetails() []*anypb.Any

func (*Status) GetMessage

func (x *Status) GetMessage() string

func (*Status) ProtoMessage

func (*Status) ProtoMessage()

func (*Status) ProtoReflect

func (x *Status) ProtoReflect() protoreflect.Message

func (*Status) Reset

func (x *Status) Reset()

func (*Status) String

func (x *Status) String() string

type Status_Code

type Status_Code int32

The canonical error code.

const (
	// Unspecified status, not a valid value to set.
	Status_UNSPECIFIED Status_Code = 0
	// Internal server error. Usually expect the client to retry in this case.
	Status_FAILURE Status_Code = 1
	// There is no possible route. Client should not retry.
	Status_ROUTE_NOT_POSSIBLE Status_Code = 2
)

func (Status_Code) Descriptor

func (Status_Code) Enum

func (x Status_Code) Enum() *Status_Code

func (Status_Code) EnumDescriptor deprecated

func (Status_Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status_Code.Descriptor instead.

func (Status_Code) Number

func (x Status_Code) Number() protoreflect.EnumNumber

func (Status_Code) String

func (x Status_Code) String() string

func (Status_Code) Type

type StopLocation

type StopLocation struct {

	// Required. Denotes the actual location.
	Point *latlng.LatLng `protobuf:"bytes,1,opt,name=point,proto3" json:"point,omitempty"`
	// The timestamp when the location was measured.
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Indicates when the stop actually happened.
	StopTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=stop_time,json=stopTime,proto3" json:"stop_time,omitempty"`
	// contains filtered or unexported fields
}

The actual location where a stop (pickup/dropoff) happened.

func (*StopLocation) Descriptor deprecated

func (*StopLocation) Descriptor() ([]byte, []int)

Deprecated: Use StopLocation.ProtoReflect.Descriptor instead.

func (*StopLocation) GetPoint

func (x *StopLocation) GetPoint() *latlng.LatLng

func (*StopLocation) GetStopTime

func (x *StopLocation) GetStopTime() *timestamppb.Timestamp

func (*StopLocation) GetTimestamp

func (x *StopLocation) GetTimestamp() *timestamppb.Timestamp

func (*StopLocation) ProtoMessage

func (*StopLocation) ProtoMessage()

func (*StopLocation) ProtoReflect

func (x *StopLocation) ProtoReflect() protoreflect.Message

func (*StopLocation) Reset

func (x *StopLocation) Reset()

func (*StopLocation) String

func (x *StopLocation) String() string

type TerminalLocation

type TerminalLocation struct {

	// Required. Denotes the actual location of a pickup or dropoff.
	Point *latlng.LatLng `protobuf:"bytes,1,opt,name=point,proto3" json:"point,omitempty"`
	// Required. ID of the terminal point.
	TerminalPointId *TerminalPointId `protobuf:"bytes,2,opt,name=terminal_point_id,json=terminalPointId,proto3" json:"terminal_point_id,omitempty"`
	// Deprecated.
	//
	// Deprecated: Do not use.
	AccessPointId string `protobuf:"bytes,3,opt,name=access_point_id,json=accessPointId,proto3" json:"access_point_id,omitempty"`
	// Deprecated. Use vehicle.waypoint instead.
	//
	// Deprecated: Do not use.
	TripId string `protobuf:"bytes,4,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"`
	// Deprecated. Vehicle.waypoint will have this data.
	//
	// Deprecated: Do not use.
	TerminalLocationType WaypointType `` /* 162-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes the location of a pickup or dropoff.

func (*TerminalLocation) Descriptor deprecated

func (*TerminalLocation) Descriptor() ([]byte, []int)

Deprecated: Use TerminalLocation.ProtoReflect.Descriptor instead.

func (*TerminalLocation) GetAccessPointId deprecated

func (x *TerminalLocation) GetAccessPointId() string

Deprecated: Do not use.

func (*TerminalLocation) GetPoint

func (x *TerminalLocation) GetPoint() *latlng.LatLng

func (*TerminalLocation) GetTerminalLocationType deprecated

func (x *TerminalLocation) GetTerminalLocationType() WaypointType

Deprecated: Do not use.

func (*TerminalLocation) GetTerminalPointId

func (x *TerminalLocation) GetTerminalPointId() *TerminalPointId

func (*TerminalLocation) GetTripId deprecated

func (x *TerminalLocation) GetTripId() string

Deprecated: Do not use.

func (*TerminalLocation) ProtoMessage

func (*TerminalLocation) ProtoMessage()

func (*TerminalLocation) ProtoReflect

func (x *TerminalLocation) ProtoReflect() protoreflect.Message

func (*TerminalLocation) Reset

func (x *TerminalLocation) Reset()

func (*TerminalLocation) String

func (x *TerminalLocation) String() string

type TerminalPointId

type TerminalPointId struct {

	// Deprecated.
	//
	// Types that are assignable to Id:
	//	*TerminalPointId_PlaceId
	//	*TerminalPointId_GeneratedId
	Id isTerminalPointId_Id `protobuf_oneof:"Id"`
	// Unique ID of the terminal point.
	Value string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Identifies a terminal point.

func (*TerminalPointId) Descriptor deprecated

func (*TerminalPointId) Descriptor() ([]byte, []int)

Deprecated: Use TerminalPointId.ProtoReflect.Descriptor instead.

func (*TerminalPointId) GetGeneratedId deprecated

func (x *TerminalPointId) GetGeneratedId() string

Deprecated: Do not use.

func (*TerminalPointId) GetId

func (m *TerminalPointId) GetId() isTerminalPointId_Id

func (*TerminalPointId) GetPlaceId deprecated

func (x *TerminalPointId) GetPlaceId() string

Deprecated: Do not use.

func (*TerminalPointId) GetValue

func (x *TerminalPointId) GetValue() string

func (*TerminalPointId) ProtoMessage

func (*TerminalPointId) ProtoMessage()

func (*TerminalPointId) ProtoReflect

func (x *TerminalPointId) ProtoReflect() protoreflect.Message

func (*TerminalPointId) Reset

func (x *TerminalPointId) Reset()

func (*TerminalPointId) String

func (x *TerminalPointId) String() string

type TerminalPointId_GeneratedId

type TerminalPointId_GeneratedId struct {
	// Deprecated.
	//
	// Deprecated: Do not use.
	GeneratedId string `protobuf:"bytes,3,opt,name=generated_id,json=generatedId,proto3,oneof"`
}

type TerminalPointId_PlaceId

type TerminalPointId_PlaceId struct {
	// Deprecated.
	//
	// Deprecated: Do not use.
	PlaceId string `protobuf:"bytes,2,opt,name=place_id,json=placeId,proto3,oneof"`
}

type Trip

type Trip struct {

	// In the format "providers/{provider}/trips/{trip}"
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// ID of the vehicle making this trip.
	VehicleId string `protobuf:"bytes,2,opt,name=vehicle_id,json=vehicleId,proto3" json:"vehicle_id,omitempty"`
	// Current status of the trip.
	TripStatus TripStatus `` /* 128-byte string literal not displayed */
	// The type of the trip.
	TripType TripType `protobuf:"varint,4,opt,name=trip_type,json=tripType,proto3,enum=maps.fleetengine.v1.TripType" json:"trip_type,omitempty"`
	// Location where customer indicates they will be picked up.
	PickupPoint *TerminalLocation `protobuf:"bytes,5,opt,name=pickup_point,json=pickupPoint,proto3" json:"pickup_point,omitempty"`
	// Input only. The actual location when and where customer was picked up.
	// This field is for provider to provide feedback on actual pickup
	// information.
	ActualPickupPoint *StopLocation `protobuf:"bytes,22,opt,name=actual_pickup_point,json=actualPickupPoint,proto3" json:"actual_pickup_point,omitempty"`
	// Input only. The actual time and location of the driver arrival at
	// the pickup point.
	// This field is for provider to provide feedback on actual arrival
	// information at the pickup point.
	ActualPickupArrivalPoint *StopLocation `` /* 138-byte string literal not displayed */
	// Either the estimated future time when the rider(s) will be picked up, or
	// the actual time when they were picked up.
	PickupTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=pickup_time,json=pickupTime,proto3" json:"pickup_time,omitempty"`
	// Intermediate stops in order that the trip requests (in addition
	// to pickup and dropoff). Initially this will not be supported for shared
	// trips.
	IntermediateDestinations []*TerminalLocation `` /* 134-byte string literal not displayed */
	// Indicates the last time the Trip.intermediate_destinations was modified.
	// Your server should cache this value and pass it in UpdateTripRequest
	// when update Trip.intermediate_destination_index to ensure the
	// Trip.intermediate_destinations is not changed.
	IntermediateDestinationsVersion *timestamppb.Timestamp `` /* 157-byte string literal not displayed */
	// When TripStatus is ENROUTE_TO_INTERMEDIATE_DESTINATION, a number between
	// [0..N-1] indicating which intermediate destination the vehicle will cross
	// next.
	// When TripStatus is ARRIVED_AT_INTERMEDIATE_DESTINATION, a number between
	// [0..N-1] indicating which intermediate destination the vehicle is at.
	// The provider sets this value. If there are no intermediate_destinations,
	// this field is ignored.
	IntermediateDestinationIndex int32 `` /* 149-byte string literal not displayed */
	// Input only. The actual time and location of the driver's arrival at
	// an intermediate destination.
	// This field is for provider to provide feedback on actual arriaval
	// information at intermediate destinations.
	ActualIntermediateDestinationArrivalPoints []*StopLocation `` /* 194-byte string literal not displayed */
	// Input only. The actual time and location when and where the customer was picked up from
	// an intermediate destination.
	// This field is for provider to provide feedback on actual pickup
	// information at intermediate destinations.
	ActualIntermediateDestinations []*StopLocation `` /* 154-byte string literal not displayed */
	// Location where customer indicates they will be dropped off.
	DropoffPoint *TerminalLocation `protobuf:"bytes,7,opt,name=dropoff_point,json=dropoffPoint,proto3" json:"dropoff_point,omitempty"`
	// Input only. The actual time and location when and where customer was dropped off.
	// This field is for provider to provide feedback on actual dropoff
	// information.
	ActualDropoffPoint *StopLocation `protobuf:"bytes,23,opt,name=actual_dropoff_point,json=actualDropoffPoint,proto3" json:"actual_dropoff_point,omitempty"`
	// Either the estimated future time when the rider(s) will be dropped off at
	// the final destination, or the actual time when they were dropped off.
	DropoffTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=dropoff_time,json=dropoffTime,proto3" json:"dropoff_time,omitempty"`
	// Output only. The full path from the current location to the dropoff point, inclusive.
	// If this is a shared ride, this path could include waypoints from other
	// trips.
	RemainingWaypoints []*TripWaypoint `protobuf:"bytes,16,rep,name=remaining_waypoints,json=remainingWaypoints,proto3" json:"remaining_waypoints,omitempty"`
	// This field supports manual ordering of the waypoints for the trip.
	// It contains all of the remaining waypoints of vehicle assigned, as well as
	// the pickup and drop-off waypoints for this trip.
	// If the trip hasn't been assigned to a vehicle, then this field is ignored.
	// For privacy reasons, this field is only populated by the server on
	// UpdateTrip and CreateTrip calls, and NOT on GetTrip calls.
	VehicleWaypoints []*TripWaypoint `protobuf:"bytes,20,rep,name=vehicle_waypoints,json=vehicleWaypoints,proto3" json:"vehicle_waypoints,omitempty"`
	// Anticipated route for this trip to the first entry in remaining_waypoints.
	// If back_to_back or shared trips are enabled, the waypoint may belong to a
	// different trip.
	Route []*latlng.LatLng `protobuf:"bytes,9,rep,name=route,proto3" json:"route,omitempty"`
	// The waypoint where current_route_segment ends. This can be supplied by
	// drivers on UpdateVehicle calls either as a full trip waypoint, a waypoint
	// latlng, or as a the last latlng of the current_route_segment. FleetEngine
	// will then do its best to interpolate to an actual waypoint if it is not
	// fully specified. It will be returned in GetTrip calls. It is not respected
	// in Create/Update Trip calls.
	CurrentRouteSegmentEndPoint *TripWaypoint `` /* 149-byte string literal not displayed */
	// The remaining driving distance in Trip.current_route_segment field.
	// This field facilitates journey sharing between a driver and rider and
	// Fleet Engine does not update it. Your driver app is responsible for setting
	// field on all of its current trips by passing
	// Vehicle.remaining_distance_meters to an Vehicle.update call.
	// The value is unspecified if the trip is not assigned to a vehicle, or the
	// trip is inactive (completed or cancelled), or driver hasn't updated this
	// value.
	RemainingDistanceMeters *wrapperspb.Int32Value `` /* 133-byte string literal not displayed */
	// Output only. The ETA to the next waypoint (the first entry in the
	// Trip.remaining_waypoints field). This field facilitates journey sharing
	// between a driver and a consumer. Fleet Engine does not update this value.
	// Your driver app is responsible for setting this field by passing
	// Vehicle.remaining_time_seconds in a call to Vehicle.update. FleetEngine
	// converts the Vehicle.remaining_time_seconds to Trip.eta_to_first_waypoint,
	// and returns it to the rider. The value is unspecified if the trip is not
	// assigned to a vehicle, or the trip is inactive (completed or cancelled), or
	// driver hasn't updated this value.
	EtaToFirstWaypoint *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=eta_to_first_waypoint,json=etaToFirstWaypoint,proto3" json:"eta_to_first_waypoint,omitempty"`
	// Output only. The duration from when the Trip data is returned to the time in
	// Trip.eta_to_first_waypoint.
	RemainingTimeToFirstWaypoint *durationpb.Duration `` /* 152-byte string literal not displayed */
	// Indicates the last time that `remaining_waypoints` was changed (a
	// waypoint was added, removed, or changed).
	RemainingWaypointsVersion *timestamppb.Timestamp `` /* 139-byte string literal not displayed */
	// Indicates the last time the remaining_waypoints.path_to_waypoint and
	// remaining_waypoints.traffic_to_waypoint were modified. Your client app
	// should cache this value and pass it in GetTripRequest to ensure the
	// paths and traffic for remaining_waypoints are only returned if updated.
	RemainingWaypointsRouteVersion *timestamppb.Timestamp `` /* 156-byte string literal not displayed */
	// Indicates the number of passengers on this trip and does not include the
	// driver. A vehicle must have available_capacity to be returned
	// in SearchTrips.
	NumberOfPassengers int32 `protobuf:"varint,10,opt,name=number_of_passengers,json=numberOfPassengers,proto3" json:"number_of_passengers,omitempty"`
	// Indicates the last reported location of the vehicle along the route.
	LastLocation *VehicleLocation `protobuf:"bytes,11,opt,name=last_location,json=lastLocation,proto3" json:"last_location,omitempty"`
	// Indicates whether the vehicle's last_location can be snapped to
	// the current_route_segment. False if last_location or current_route_segment
	// doesn't exist.
	// It is computed by Fleet Engine. Any update from clients will be ignored.
	LastLocationSnappable bool `` /* 128-byte string literal not displayed */
	// The subset of Trip fields that are populated and how they should be
	// interpreted.
	View TripView `protobuf:"varint,31,opt,name=view,proto3,enum=maps.fleetengine.v1.TripView" json:"view,omitempty"`
	// contains filtered or unexported fields
}

Trip metadata.

func (*Trip) Descriptor deprecated

func (*Trip) Descriptor() ([]byte, []int)

Deprecated: Use Trip.ProtoReflect.Descriptor instead.

func (*Trip) GetActualDropoffPoint

func (x *Trip) GetActualDropoffPoint() *StopLocation

func (*Trip) GetActualIntermediateDestinationArrivalPoints

func (x *Trip) GetActualIntermediateDestinationArrivalPoints() []*StopLocation

func (*Trip) GetActualIntermediateDestinations

func (x *Trip) GetActualIntermediateDestinations() []*StopLocation

func (*Trip) GetActualPickupArrivalPoint

func (x *Trip) GetActualPickupArrivalPoint() *StopLocation

func (*Trip) GetActualPickupPoint

func (x *Trip) GetActualPickupPoint() *StopLocation

func (*Trip) GetCurrentRouteSegmentEndPoint

func (x *Trip) GetCurrentRouteSegmentEndPoint() *TripWaypoint

func (*Trip) GetDropoffPoint

func (x *Trip) GetDropoffPoint() *TerminalLocation

func (*Trip) GetDropoffTime

func (x *Trip) GetDropoffTime() *timestamppb.Timestamp

func (*Trip) GetEtaToFirstWaypoint

func (x *Trip) GetEtaToFirstWaypoint() *timestamppb.Timestamp

func (*Trip) GetIntermediateDestinationIndex

func (x *Trip) GetIntermediateDestinationIndex() int32

func (*Trip) GetIntermediateDestinations

func (x *Trip) GetIntermediateDestinations() []*TerminalLocation

func (*Trip) GetIntermediateDestinationsVersion

func (x *Trip) GetIntermediateDestinationsVersion() *timestamppb.Timestamp

func (*Trip) GetLastLocation

func (x *Trip) GetLastLocation() *VehicleLocation

func (*Trip) GetLastLocationSnappable

func (x *Trip) GetLastLocationSnappable() bool

func (*Trip) GetName

func (x *Trip) GetName() string

func (*Trip) GetNumberOfPassengers

func (x *Trip) GetNumberOfPassengers() int32

func (*Trip) GetPickupPoint

func (x *Trip) GetPickupPoint() *TerminalLocation

func (*Trip) GetPickupTime

func (x *Trip) GetPickupTime() *timestamppb.Timestamp

func (*Trip) GetRemainingDistanceMeters

func (x *Trip) GetRemainingDistanceMeters() *wrapperspb.Int32Value

func (*Trip) GetRemainingTimeToFirstWaypoint

func (x *Trip) GetRemainingTimeToFirstWaypoint() *durationpb.Duration

func (*Trip) GetRemainingWaypoints

func (x *Trip) GetRemainingWaypoints() []*TripWaypoint

func (*Trip) GetRemainingWaypointsRouteVersion

func (x *Trip) GetRemainingWaypointsRouteVersion() *timestamppb.Timestamp

func (*Trip) GetRemainingWaypointsVersion

func (x *Trip) GetRemainingWaypointsVersion() *timestamppb.Timestamp

func (*Trip) GetRoute

func (x *Trip) GetRoute() []*latlng.LatLng

func (*Trip) GetTripStatus

func (x *Trip) GetTripStatus() TripStatus

func (*Trip) GetTripType

func (x *Trip) GetTripType() TripType

func (*Trip) GetVehicleId

func (x *Trip) GetVehicleId() string

func (*Trip) GetVehicleWaypoints

func (x *Trip) GetVehicleWaypoints() []*TripWaypoint

func (*Trip) GetView

func (x *Trip) GetView() TripView

func (*Trip) ProtoMessage

func (*Trip) ProtoMessage()

func (*Trip) ProtoReflect

func (x *Trip) ProtoReflect() protoreflect.Message

func (*Trip) Reset

func (x *Trip) Reset()

func (*Trip) String

func (x *Trip) String() string

type TripServiceClient

type TripServiceClient interface {
	// Creates a trip in the Fleet Engine and returns the new trip.
	CreateTrip(ctx context.Context, in *CreateTripRequest, opts ...grpc.CallOption) (*Trip, error)
	// Get information about a single trip.
	GetTrip(ctx context.Context, in *GetTripRequest, opts ...grpc.CallOption) (*Trip, error)
	// Report billable trip usage.
	ReportBillableTrip(ctx context.Context, in *ReportBillableTripRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// Get all the trips for a specific vehicle.
	SearchTrips(ctx context.Context, in *SearchTripsRequest, opts ...grpc.CallOption) (*SearchTripsResponse, error)
	// Updates trip data.
	UpdateTrip(ctx context.Context, in *UpdateTripRequest, opts ...grpc.CallOption) (*Trip, error)
}

TripServiceClient is the client API for TripService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type TripServiceServer

type TripServiceServer interface {
	// Creates a trip in the Fleet Engine and returns the new trip.
	CreateTrip(context.Context, *CreateTripRequest) (*Trip, error)
	// Get information about a single trip.
	GetTrip(context.Context, *GetTripRequest) (*Trip, error)
	// Report billable trip usage.
	ReportBillableTrip(context.Context, *ReportBillableTripRequest) (*emptypb.Empty, error)
	// Get all the trips for a specific vehicle.
	SearchTrips(context.Context, *SearchTripsRequest) (*SearchTripsResponse, error)
	// Updates trip data.
	UpdateTrip(context.Context, *UpdateTripRequest) (*Trip, error)
}

TripServiceServer is the server API for TripService service.

type TripStatus

type TripStatus int32

The status of a trip indicating its progression.

const (
	// Default, used for unspecified or unrecognized trip status.
	TripStatus_UNKNOWN_TRIP_STATUS TripStatus = 0
	// Newly created trip.
	TripStatus_NEW TripStatus = 1
	// The driver is on their way to the pickup point.
	TripStatus_ENROUTE_TO_PICKUP TripStatus = 2
	// The driver has arrived at the pickup point.
	TripStatus_ARRIVED_AT_PICKUP TripStatus = 3
	// The driver has arrived at an intermediate destination and is waiting for
	// the rider.
	TripStatus_ARRIVED_AT_INTERMEDIATE_DESTINATION TripStatus = 7
	// The driver is on their way to an intermediate destination
	// (not the dropoff point).
	TripStatus_ENROUTE_TO_INTERMEDIATE_DESTINATION TripStatus = 8
	// The driver has picked up the rider and is on their way to the
	// next destination.
	TripStatus_ENROUTE_TO_DROPOFF TripStatus = 4
	// The rider has been dropped off and the trip is complete.
	TripStatus_COMPLETE TripStatus = 5
	// The trip was canceled prior to pickup by the driver, rider, or
	// rideshare provider.
	TripStatus_CANCELED TripStatus = 6
)

func (TripStatus) Descriptor

func (TripStatus) Descriptor() protoreflect.EnumDescriptor

func (TripStatus) Enum

func (x TripStatus) Enum() *TripStatus

func (TripStatus) EnumDescriptor deprecated

func (TripStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use TripStatus.Descriptor instead.

func (TripStatus) Number

func (x TripStatus) Number() protoreflect.EnumNumber

func (TripStatus) String

func (x TripStatus) String() string

func (TripStatus) Type

type TripType

type TripType int32

The type of a trip.

const (
	// Default, used for unspecified or unrecognized trip types.
	TripType_UNKNOWN_TRIP_TYPE TripType = 0
	// The trip may share a vehicle with other trips.
	TripType_SHARED TripType = 1
	// The trip is exclusive to a vehicle.
	TripType_EXCLUSIVE TripType = 2
)

func (TripType) Descriptor

func (TripType) Descriptor() protoreflect.EnumDescriptor

func (TripType) Enum

func (x TripType) Enum() *TripType

func (TripType) EnumDescriptor deprecated

func (TripType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TripType.Descriptor instead.

func (TripType) Number

func (x TripType) Number() protoreflect.EnumNumber

func (TripType) String

func (x TripType) String() string

func (TripType) Type

type TripView

type TripView int32

Selector for different sets of Trip fields in a `GetTrip` response. See [AIP-157](https://google.aip.dev/157) for context. Additional views are likely to be added.

const (
	// The default value. For backwards-compatibility, the API will default to an
	// SDK view. To ensure stability and support, customers are
	// advised to select a `TripView` other than `SDK`.
	TripView_TRIP_VIEW_UNSPECIFIED TripView = 0
	// Includes fields that may not be interpretable or supportable using
	// publicly available libraries.
	TripView_SDK TripView = 1
	// Trip fields are populated for the Journey Sharing use case. This view is
	// intended for server-to-server communications.
	TripView_JOURNEY_SHARING_V1S TripView = 2
)

func (TripView) Descriptor

func (TripView) Descriptor() protoreflect.EnumDescriptor

func (TripView) Enum

func (x TripView) Enum() *TripView

func (TripView) EnumDescriptor deprecated

func (TripView) EnumDescriptor() ([]byte, []int)

Deprecated: Use TripView.Descriptor instead.

func (TripView) Number

func (x TripView) Number() protoreflect.EnumNumber

func (TripView) String

func (x TripView) String() string

func (TripView) Type

type TripWaypoint

type TripWaypoint struct {

	// The location where this waypoint is
	Location *TerminalLocation `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// The trip this waypoint is part of
	TripId string `protobuf:"bytes,2,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"`
	// The type described the role the waypoint plays for this trip such as a
	// pickup or dropoff.
	WaypointType WaypointType `` /* 136-byte string literal not displayed */
	// The path calculated by Fleet Engine from the previous waypoint to the
	// current waypoint.
	PathToWaypoint []*latlng.LatLng `protobuf:"bytes,4,rep,name=path_to_waypoint,json=pathToWaypoint,proto3" json:"path_to_waypoint,omitempty"`
	// The path distance calculated by Fleet Engine from the previous waypoint to
	// the current waypoint.
	// If the current waypoint is the first waypoint in the list (Vehicle.waypoint
	// or Trip.remaining_waypoints), then the starting point is the vehicle's
	// location recorded at the time this TripWaypoint was added to the list.
	DistanceMeters *wrapperspb.Int32Value `protobuf:"bytes,6,opt,name=distance_meters,json=distanceMeters,proto3" json:"distance_meters,omitempty"`
	// The arrival time to this waypoint calculated by Fleet Engine.
	Eta *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=eta,proto3" json:"eta,omitempty"`
	// The travel time from previous waypoint to this point.
	// If the current waypoint is the first waypoint in the list (Vehicle.waypoint
	// or Trip.remaining_waypoints), then the starting point is the vehicle's
	// location recorded at the time that this waypoint was added to the list.
	// This field is filled only when returning Trip/Vehicle data.
	Duration *durationpb.Duration `protobuf:"bytes,8,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

Describes a stopping point on a vehicle's route or an ending point on a vehicle's trip.

func (*TripWaypoint) Descriptor deprecated

func (*TripWaypoint) Descriptor() ([]byte, []int)

Deprecated: Use TripWaypoint.ProtoReflect.Descriptor instead.

func (*TripWaypoint) GetDistanceMeters

func (x *TripWaypoint) GetDistanceMeters() *wrapperspb.Int32Value

func (*TripWaypoint) GetDuration

func (x *TripWaypoint) GetDuration() *durationpb.Duration

func (*TripWaypoint) GetEta

func (x *TripWaypoint) GetEta() *timestamppb.Timestamp

func (*TripWaypoint) GetLocation

func (x *TripWaypoint) GetLocation() *TerminalLocation

func (*TripWaypoint) GetPathToWaypoint

func (x *TripWaypoint) GetPathToWaypoint() []*latlng.LatLng

func (*TripWaypoint) GetTripId

func (x *TripWaypoint) GetTripId() string

func (*TripWaypoint) GetWaypointType

func (x *TripWaypoint) GetWaypointType() WaypointType

func (*TripWaypoint) ProtoMessage

func (*TripWaypoint) ProtoMessage()

func (*TripWaypoint) ProtoReflect

func (x *TripWaypoint) ProtoReflect() protoreflect.Message

func (*TripWaypoint) Reset

func (x *TripWaypoint) Reset()

func (*TripWaypoint) String

func (x *TripWaypoint) String() string

type UnimplementedTripServiceServer

type UnimplementedTripServiceServer struct {
}

UnimplementedTripServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTripServiceServer) CreateTrip

func (*UnimplementedTripServiceServer) GetTrip

func (*UnimplementedTripServiceServer) ReportBillableTrip

func (*UnimplementedTripServiceServer) SearchTrips

func (*UnimplementedTripServiceServer) UpdateTrip

type UnimplementedVehicleServiceServer

type UnimplementedVehicleServiceServer struct {
}

UnimplementedVehicleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedVehicleServiceServer) CreateVehicle

func (*UnimplementedVehicleServiceServer) GetVehicle

func (*UnimplementedVehicleServiceServer) ListVehicles

func (*UnimplementedVehicleServiceServer) SearchFuzzedVehicles

func (*UnimplementedVehicleServiceServer) SearchVehicles

func (*UnimplementedVehicleServiceServer) UpdateVehicle

func (*UnimplementedVehicleServiceServer) UpdateVehicleLocation

type UpdateTripRequest

type UpdateTripRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format
	// `providers/{provider}/trips/{trip}`. The provider must
	// be the Project ID (for example, sample-consumer-project) of the Google
	// Cloud Project of which the service account making this call is a member.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The Trip associated with the update.
	//
	// The following fields are maintained by the Fleet Engine. Do not update
	// them using Trip.update.
	//
	// * current_route_segment
	// * current_route_segment_version
	// * eta_to_next_waypoint
	// * intermediate_destinations_version
	// * last_location
	// * name
	// * number_of_passengers
	// * remaining_distance_meters
	// * remaining_time_to_first_waypoint
	// * remaining_waypoints
	// * remaining_waypoints_version
	//
	// When you update the `Trip.vehicle_id` for a shared trip, you must supply
	// the list of `Trip.vehicle_waypoints` to specify the order of the remaining
	// waypoints, otherwise the order will be undetermined.
	//
	// When you specify `Trip.vehicle_waypoints`, the list must contain all
	// the remaining waypoints of the vehicle's trips, with no extra waypoints.
	// You must order these waypoints such that for a given trip, the pickup
	// point is before intermediate destinations, and all intermediate
	// destinations come before the drop-off point. An `EXCLUSIVE` trip's
	// waypoints must not interleave with any other trips.
	// The `trip_id`, `waypoint_type` and `location` fields are used, and all
	// other TripWaypoint fields in vehicle_waypoints are ignored.
	//
	// To avoid a race condition for trips with multiple destinations, you
	// should provide `Trip.intermediate_destinations_version` when updating
	// the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The
	// `Trip.intermediate_destinations_version` passed must be consistent with
	// Fleet Engine's version. If it isn't, the request fails.
	Trip *Trip `protobuf:"bytes,4,opt,name=trip,proto3" json:"trip,omitempty"`
	// Required. The field mask indicating which fields in Trip to update.
	// The update_mask must contain at least one field.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateTrip request message.

func (*UpdateTripRequest) Descriptor deprecated

func (*UpdateTripRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateTripRequest.ProtoReflect.Descriptor instead.

func (*UpdateTripRequest) GetHeader

func (x *UpdateTripRequest) GetHeader() *RequestHeader

func (*UpdateTripRequest) GetName

func (x *UpdateTripRequest) GetName() string

func (*UpdateTripRequest) GetTrip

func (x *UpdateTripRequest) GetTrip() *Trip

func (*UpdateTripRequest) GetUpdateMask

func (x *UpdateTripRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateTripRequest) ProtoMessage

func (*UpdateTripRequest) ProtoMessage()

func (*UpdateTripRequest) ProtoReflect

func (x *UpdateTripRequest) ProtoReflect() protoreflect.Message

func (*UpdateTripRequest) Reset

func (x *UpdateTripRequest) Reset()

func (*UpdateTripRequest) String

func (x *UpdateTripRequest) String() string

type UpdateVehicleAttributesRequest

type UpdateVehicleAttributesRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format
	// "providers/{provider}/vehicles/{vehicle}.
	// 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.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The attributes to update;
	// unmentioned attributes will not be altered or removed.
	// At most 20 attributes; the combined "key:value" string length cannot
	// exceed 256.
	Attributes []*VehicleAttribute `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

UpdateVehicleAttributes request message.

func (*UpdateVehicleAttributesRequest) Descriptor deprecated

func (*UpdateVehicleAttributesRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVehicleAttributesRequest.ProtoReflect.Descriptor instead.

func (*UpdateVehicleAttributesRequest) GetAttributes

func (x *UpdateVehicleAttributesRequest) GetAttributes() []*VehicleAttribute

func (*UpdateVehicleAttributesRequest) GetHeader

func (*UpdateVehicleAttributesRequest) GetName

func (*UpdateVehicleAttributesRequest) ProtoMessage

func (*UpdateVehicleAttributesRequest) ProtoMessage()

func (*UpdateVehicleAttributesRequest) ProtoReflect

func (*UpdateVehicleAttributesRequest) Reset

func (x *UpdateVehicleAttributesRequest) Reset()

func (*UpdateVehicleAttributesRequest) String

type UpdateVehicleAttributesResponse

type UpdateVehicleAttributesResponse struct {

	// Required. The updated full list of vehicle attributes, including new,
	// altered and untouched attributes.
	Attributes []*VehicleAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

UpdateVehicleAttributes response message.

func (*UpdateVehicleAttributesResponse) Descriptor deprecated

func (*UpdateVehicleAttributesResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVehicleAttributesResponse.ProtoReflect.Descriptor instead.

func (*UpdateVehicleAttributesResponse) GetAttributes

func (x *UpdateVehicleAttributesResponse) GetAttributes() []*VehicleAttribute

func (*UpdateVehicleAttributesResponse) ProtoMessage

func (*UpdateVehicleAttributesResponse) ProtoMessage()

func (*UpdateVehicleAttributesResponse) ProtoReflect

func (*UpdateVehicleAttributesResponse) Reset

func (*UpdateVehicleAttributesResponse) String

type UpdateVehicleLocationRequest deprecated

type UpdateVehicleLocationRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format
	// "providers/{provider}/vehicles/{vehicle}.
	// 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.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The location to update to.  The last_location and update_time
	// subfields are required.
	CurrentLocation *VehicleLocation `protobuf:"bytes,4,opt,name=current_location,json=currentLocation,proto3" json:"current_location,omitempty"`
	// Set current vehicle state to either ONLINE or OFFLINE;
	// if set to UNKNOWN_VEHICLE_STATE, vehicle state will not be altered.
	CurrentState VehicleState `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

UpdateVehicleLocation request message.

Deprecated: Do not use.

func (*UpdateVehicleLocationRequest) Descriptor deprecated

func (*UpdateVehicleLocationRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVehicleLocationRequest.ProtoReflect.Descriptor instead.

func (*UpdateVehicleLocationRequest) GetCurrentLocation

func (x *UpdateVehicleLocationRequest) GetCurrentLocation() *VehicleLocation

func (*UpdateVehicleLocationRequest) GetCurrentState

func (x *UpdateVehicleLocationRequest) GetCurrentState() VehicleState

func (*UpdateVehicleLocationRequest) GetHeader

func (*UpdateVehicleLocationRequest) GetName

func (x *UpdateVehicleLocationRequest) GetName() string

func (*UpdateVehicleLocationRequest) ProtoMessage

func (*UpdateVehicleLocationRequest) ProtoMessage()

func (*UpdateVehicleLocationRequest) ProtoReflect

func (*UpdateVehicleLocationRequest) Reset

func (x *UpdateVehicleLocationRequest) Reset()

func (*UpdateVehicleLocationRequest) String

type UpdateVehicleRequest

type UpdateVehicleRequest struct {

	// The standard Fleet Engine request header.
	Header *RequestHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Required. Must be in the format
	// "providers/{provider}/vehicles/{vehicle}".
	// 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.
	//
	// Note that if the name is also specified in the name field of the
	// vehicle and name is set in the update_mask, both names must be the
	// same.  Otherwise it is an Error.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Required. The Vehicle entity update to apply.  When updating a Vehicle,
	// the following fields may not be updated as they are managed by the
	// Fleet Engine.
	//   current_trips
	//   available_capacity
	//   current_route_segment_version
	//   waypoints_version
	// Furthermore, the name of the vehicle cannot be updated.
	Vehicle *Vehicle `protobuf:"bytes,4,opt,name=vehicle,proto3" json:"vehicle,omitempty"`
	// Required. A field mask indicating which fields of the Vehicle to update.
	// The update_mask must contain at least one field.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateVehicle request message.

func (*UpdateVehicleRequest) Descriptor deprecated

func (*UpdateVehicleRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateVehicleRequest.ProtoReflect.Descriptor instead.

func (*UpdateVehicleRequest) GetHeader

func (x *UpdateVehicleRequest) GetHeader() *RequestHeader

func (*UpdateVehicleRequest) GetName

func (x *UpdateVehicleRequest) GetName() string

func (*UpdateVehicleRequest) GetUpdateMask

func (x *UpdateVehicleRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateVehicleRequest) GetVehicle

func (x *UpdateVehicleRequest) GetVehicle() *Vehicle

func (*UpdateVehicleRequest) ProtoMessage

func (*UpdateVehicleRequest) ProtoMessage()

func (*UpdateVehicleRequest) ProtoReflect

func (x *UpdateVehicleRequest) ProtoReflect() protoreflect.Message

func (*UpdateVehicleRequest) Reset

func (x *UpdateVehicleRequest) Reset()

func (*UpdateVehicleRequest) String

func (x *UpdateVehicleRequest) String() string

type Vehicle

type Vehicle struct {

	// The unique name for this vehicle.
	// The format is providers/{provider}/vehicles/{vehicle}
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The vehicle state.
	VehicleState VehicleState `` /* 136-byte string literal not displayed */
	// Supported trip types.
	SupportedTripTypes []TripType `` /* 159-byte string literal not displayed */
	// List of IDs for trips in progress.
	CurrentTrips []string `protobuf:"bytes,4,rep,name=current_trips,json=currentTrips,proto3" json:"current_trips,omitempty"`
	// Last reported location of the vehicle.
	LastLocation *VehicleLocation `protobuf:"bytes,5,opt,name=last_location,json=lastLocation,proto3" json:"last_location,omitempty"`
	// Maximum capacity of the vehicle.  This is the total numbers of riders
	// on trips this vehicle can contain.  The driver is not considered in
	// this value.  This value must be greater than or equal to one.
	MaximumCapacity int32 `protobuf:"varint,6,opt,name=maximum_capacity,json=maximumCapacity,proto3" json:"maximum_capacity,omitempty"`
	// The current available capacity of the vehicle.  This is the
	// maximum_capacity minus the current number of riders.
	AvailableCapacity int32 `protobuf:"varint,7,opt,name=available_capacity,json=availableCapacity,proto3" json:"available_capacity,omitempty"`
	// List of vehicle service attributes.
	Attributes []*VehicleAttribute `protobuf:"bytes,8,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// The type of this Vehicle.  Can be filtered during SearchVehicles.  Also
	// influences ETA and route calculations.
	VehicleType *Vehicle_VehicleType `protobuf:"bytes,9,opt,name=vehicle_type,json=vehicleType,proto3" json:"vehicle_type,omitempty"`
	// License plate information for the vehicle.
	LicensePlate *LicensePlate `protobuf:"bytes,10,opt,name=license_plate,json=licensePlate,proto3" json:"license_plate,omitempty"`
	// Deprecated. Use vehicle.waypoint instead.
	//
	// Deprecated: Do not use.
	Route []*TerminalLocation `protobuf:"bytes,12,rep,name=route,proto3" json:"route,omitempty"`
	// The polyline specifying the route the driver app intends to take to
	// the next waypoint. Your driver app updates this every time a waypoint is
	// passed or the driver reroutes. This list is also returned in
	// Trip.current_route_segment for all active trips assigned to the vehicle.
	// Note: This field is intended only for use by the Driver SDK.
	CurrentRouteSegment string `protobuf:"bytes,20,opt,name=current_route_segment,json=currentRouteSegment,proto3" json:"current_route_segment,omitempty"`
	// Time when current_route_segment was set. This field is ignored in
	// UpdateVehicleRequests as it is calculated by the server. It should be
	// stored by client and passed in to future requests to prevent returning
	// routes to first way point that haven't changed.
	CurrentRouteSegmentVersion *timestamppb.Timestamp `` /* 144-byte string literal not displayed */
	// The waypoint where current_route_segment ends. This can be supplied by
	// drivers on UpdateVehicle calls either as a full trip waypoint, a waypoint
	// latlnt, or as a the last latlng of the current_route_segment. FleetEngine
	// will then do its best to interpolate to an actual waypoint if it is not
	// fully specified. This field is ignored in UpdateVehicle calls unless
	// current_route_segment is also specified.
	CurrentRouteSegmentEndPoint *TripWaypoint `` /* 149-byte string literal not displayed */
	// The remaining driving distance for the 'current_route_segment'. This field
	// facilitates journey sharing between the Driver app and the Consumer app.
	// This value is updated by the Driver SDK. Fleet Engine does not update it.
	// This field is also returned in Trip.remaining_distance_meters for all
	// active trips assigned to the vehicle. The value is unspecified if the
	// `Vehicle.current_route_segment` field is empty, or if the Driver app has
	// not updated its value.
	RemainingDistanceMeters *wrapperspb.Int32Value `` /* 133-byte string literal not displayed */
	// The ETA to the next waypoint that is the first entry in Vehicle.waypoint
	// field. This field facilitates journey sharing between a Driver app and a
	// Consumer app and is updated by the Driver SDK, and Fleet Engine does not
	// update it. This field is also returned in Trip.eta_to_first_waypoint for
	// all active trips assigned to the vehicle. The value is unspecified if the
	// Vehicle.waypoint field is empty, or the Driver app has not updated its
	// value.
	EtaToFirstWaypoint *timestamppb.Timestamp `protobuf:"bytes,19,opt,name=eta_to_first_waypoint,json=etaToFirstWaypoint,proto3" json:"eta_to_first_waypoint,omitempty"`
	// The remaining driving time for the 'current_route_segment'. This field
	// facilitates journey sharing between the Driver app and the Consumer app.
	// This value is updated by the Driver SDK. Fleet Engine does not update it.
	// The value is unspecified if the `Vehicle.current_route_segment` field is
	// empty, or if the Driver app has not updated its value. This value should
	// match eta_to_first_waypoint - current_time if all parties are using the
	// same clock. This field is currently write-only and will not yet be
	// populated in Vehicle's get/update/search operations. When updating a
	// vehicle, if you update both eta_to_first_waypoint and
	// remaining_time_seconds in the same request, then only
	// remaining_time_seconds is considered.
	RemainingTimeSeconds *wrapperspb.Int32Value `protobuf:"bytes,25,opt,name=remaining_time_seconds,json=remainingTimeSeconds,proto3" json:"remaining_time_seconds,omitempty"`
	// The remaining set of waypoints assigned to this Vehicle.
	Waypoints []*TripWaypoint `protobuf:"bytes,22,rep,name=waypoints,proto3" json:"waypoints,omitempty"`
	// Last time the waypoints was updated. Client should cache
	// this value and pass it in GetVehicleRequest to ensure the
	// waypoints.path_to_waypoint is only returned if it is updated
	WaypointsVersion *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=waypoints_version,json=waypointsVersion,proto3" json:"waypoints_version,omitempty"`
	// Indicates if the driver accepts back-to-back rides. If
	// `true`, services include the vehicle for back-to-back matches.
	// If `false`, services exclude the vehicle from back-to-back matches.
	// Default value is `false`.
	BackToBackEnabled bool `protobuf:"varint,23,opt,name=back_to_back_enabled,json=backToBackEnabled,proto3" json:"back_to_back_enabled,omitempty"`
	// Vehicle's navigation status.
	NavigationStatus NavigationStatus `` /* 153-byte string literal not displayed */
	// Information about various device settings. This is internal debug only
	// field, not included in the response.
	DeviceSettings *DeviceSettings `protobuf:"bytes,27,opt,name=device_settings,json=deviceSettings,proto3" json:"device_settings,omitempty"`
	// contains filtered or unexported fields
}

Vehicle metadata.

func (*Vehicle) Descriptor deprecated

func (*Vehicle) Descriptor() ([]byte, []int)

Deprecated: Use Vehicle.ProtoReflect.Descriptor instead.

func (*Vehicle) GetAttributes

func (x *Vehicle) GetAttributes() []*VehicleAttribute

func (*Vehicle) GetAvailableCapacity

func (x *Vehicle) GetAvailableCapacity() int32

func (*Vehicle) GetBackToBackEnabled

func (x *Vehicle) GetBackToBackEnabled() bool

func (*Vehicle) GetCurrentRouteSegment

func (x *Vehicle) GetCurrentRouteSegment() string

func (*Vehicle) GetCurrentRouteSegmentEndPoint

func (x *Vehicle) GetCurrentRouteSegmentEndPoint() *TripWaypoint

func (*Vehicle) GetCurrentRouteSegmentVersion

func (x *Vehicle) GetCurrentRouteSegmentVersion() *timestamppb.Timestamp

func (*Vehicle) GetCurrentTrips

func (x *Vehicle) GetCurrentTrips() []string

func (*Vehicle) GetDeviceSettings

func (x *Vehicle) GetDeviceSettings() *DeviceSettings

func (*Vehicle) GetEtaToFirstWaypoint

func (x *Vehicle) GetEtaToFirstWaypoint() *timestamppb.Timestamp

func (*Vehicle) GetLastLocation

func (x *Vehicle) GetLastLocation() *VehicleLocation

func (*Vehicle) GetLicensePlate

func (x *Vehicle) GetLicensePlate() *LicensePlate

func (*Vehicle) GetMaximumCapacity

func (x *Vehicle) GetMaximumCapacity() int32

func (*Vehicle) GetName

func (x *Vehicle) GetName() string

func (*Vehicle) GetNavigationStatus

func (x *Vehicle) GetNavigationStatus() NavigationStatus

func (*Vehicle) GetRemainingDistanceMeters

func (x *Vehicle) GetRemainingDistanceMeters() *wrapperspb.Int32Value

func (*Vehicle) GetRemainingTimeSeconds

func (x *Vehicle) GetRemainingTimeSeconds() *wrapperspb.Int32Value

func (*Vehicle) GetRoute deprecated

func (x *Vehicle) GetRoute() []*TerminalLocation

Deprecated: Do not use.

func (*Vehicle) GetSupportedTripTypes

func (x *Vehicle) GetSupportedTripTypes() []TripType

func (*Vehicle) GetVehicleState

func (x *Vehicle) GetVehicleState() VehicleState

func (*Vehicle) GetVehicleType

func (x *Vehicle) GetVehicleType() *Vehicle_VehicleType

func (*Vehicle) GetWaypoints

func (x *Vehicle) GetWaypoints() []*TripWaypoint

func (*Vehicle) GetWaypointsVersion

func (x *Vehicle) GetWaypointsVersion() *timestamppb.Timestamp

func (*Vehicle) ProtoMessage

func (*Vehicle) ProtoMessage()

func (*Vehicle) ProtoReflect

func (x *Vehicle) ProtoReflect() protoreflect.Message

func (*Vehicle) Reset

func (x *Vehicle) Reset()

func (*Vehicle) String

func (x *Vehicle) String() string

type VehicleAttribute

type VehicleAttribute struct {

	// The attribute's key. Keys may not contain the colon character (:).
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// The attribute's value.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Describes a vehicle attribute as a key-value pair.

func (*VehicleAttribute) Descriptor deprecated

func (*VehicleAttribute) Descriptor() ([]byte, []int)

Deprecated: Use VehicleAttribute.ProtoReflect.Descriptor instead.

func (*VehicleAttribute) GetKey

func (x *VehicleAttribute) GetKey() string

func (*VehicleAttribute) GetValue

func (x *VehicleAttribute) GetValue() string

func (*VehicleAttribute) ProtoMessage

func (*VehicleAttribute) ProtoMessage()

func (*VehicleAttribute) ProtoReflect

func (x *VehicleAttribute) ProtoReflect() protoreflect.Message

func (*VehicleAttribute) Reset

func (x *VehicleAttribute) Reset()

func (*VehicleAttribute) String

func (x *VehicleAttribute) String() string

type VehicleAttributeList

type VehicleAttributeList struct {

	// A list of attributes in this collection.
	Attributes []*VehicleAttribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
	// contains filtered or unexported fields
}

This messages allows a list-of-list datatype for VehicleAttribute.

func (*VehicleAttributeList) Descriptor deprecated

func (*VehicleAttributeList) Descriptor() ([]byte, []int)

Deprecated: Use VehicleAttributeList.ProtoReflect.Descriptor instead.

func (*VehicleAttributeList) GetAttributes

func (x *VehicleAttributeList) GetAttributes() []*VehicleAttribute

func (*VehicleAttributeList) ProtoMessage

func (*VehicleAttributeList) ProtoMessage()

func (*VehicleAttributeList) ProtoReflect

func (x *VehicleAttributeList) ProtoReflect() protoreflect.Message

func (*VehicleAttributeList) Reset

func (x *VehicleAttributeList) Reset()

func (*VehicleAttributeList) String

func (x *VehicleAttributeList) String() string

type VehicleLocation

type VehicleLocation struct {

	// The location of the vehicle.
	// When it is sent to FleetEngine, the vehicle's location is a GPS location.
	// When you receive it in a response, the vehicle's location can be either a
	// GPS location or a supplemental location. The source is specified in the
	// field 'location_sensor'.
	Location *latlng.LatLng `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// Deprecated. Use latlng_accuracy instead.
	//
	// Deprecated: Do not use.
	HorizontalAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,8,opt,name=horizontal_accuracy,json=horizontalAccuracy,proto3" json:"horizontal_accuracy,omitempty"`
	// Accuracy of horizontal measurements (lat/lng) in meters as a radius.
	LatlngAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,22,opt,name=latlng_accuracy,json=latlngAccuracy,proto3" json:"latlng_accuracy,omitempty"`
	// Direction the vehicle is moving in degrees.  0 represents North.
	// The valid range is [0,360).
	Heading *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=heading,proto3" json:"heading,omitempty"`
	// Deprecated. Use heading_accuracy instead.
	//
	// Deprecated: Do not use.
	BearingAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,10,opt,name=bearing_accuracy,json=bearingAccuracy,proto3" json:"bearing_accuracy,omitempty"`
	// Accuracy of heading (bearing) in degrees.
	HeadingAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,23,opt,name=heading_accuracy,json=headingAccuracy,proto3" json:"heading_accuracy,omitempty"`
	// Altitude in meters above WGS84.
	Altitude *wrapperspb.DoubleValue `protobuf:"bytes,5,opt,name=altitude,proto3" json:"altitude,omitempty"`
	// Deprecated. Use altitude_accurarcy instead.
	//
	// Deprecated: Do not use.
	VerticalAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,9,opt,name=vertical_accuracy,json=verticalAccuracy,proto3" json:"vertical_accuracy,omitempty"`
	// Accuracy of altitude measurement in meters.
	AltitudeAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,24,opt,name=altitude_accuracy,json=altitudeAccuracy,proto3" json:"altitude_accuracy,omitempty"`
	// Speed of the vehicle in kilometers per hour.
	// Deprecated. Use speed instead.
	//
	// Deprecated: Do not use.
	SpeedKmph *wrapperspb.Int32Value `protobuf:"bytes,3,opt,name=speed_kmph,json=speedKmph,proto3" json:"speed_kmph,omitempty"`
	// Speed of the vehicle in meters/second
	Speed *wrapperspb.DoubleValue `protobuf:"bytes,6,opt,name=speed,proto3" json:"speed,omitempty"`
	// Accuracy of speed in meters/second.
	SpeedAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,7,opt,name=speed_accuracy,json=speedAccuracy,proto3" json:"speed_accuracy,omitempty"`
	// The time when the location was recorded.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// Output only. The time when the server receives the location information, filled by
	// FleetEngine.
	ServerTime *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=server_time,json=serverTime,proto3" json:"server_time,omitempty"`
	// Provider of location data (for example, "gps").
	LocationSensor LocationSensor `` /* 145-byte string literal not displayed */
	// Whether the vehicle location given by "location" field is snapped to a road
	// closest to the location given by "raw_location".
	// Driver SDK 1.15.1/2.1.1 and up will always set this field.
	// Unset value will be treated as true.
	IsRoadSnapped *wrapperspb.BoolValue `protobuf:"bytes,27,opt,name=is_road_snapped,json=isRoadSnapped,proto3" json:"is_road_snapped,omitempty"`
	// Input only. Indicates whether the GPS sensor is enabled.
	IsGpsSensorEnabled *wrapperspb.BoolValue `protobuf:"bytes,12,opt,name=is_gps_sensor_enabled,json=isGpsSensorEnabled,proto3" json:"is_gps_sensor_enabled,omitempty"`
	// Input only. Time (in seconds) since this location sample was first sent to the server.
	// This will be zero for the first update. If the time is unknown
	// (for example, when the app restarts), this value resets to zero.
	TimeSinceUpdate *wrapperspb.Int32Value `protobuf:"bytes,14,opt,name=time_since_update,json=timeSinceUpdate,proto3" json:"time_since_update,omitempty"`
	// Input only. Number of additional attempts to send the current location to the server.
	// If this value is zero, then it is not stale.
	NumStaleUpdates *wrapperspb.Int32Value `protobuf:"bytes,15,opt,name=num_stale_updates,json=numStaleUpdates,proto3" json:"num_stale_updates,omitempty"`
	// Raw vehicle location (unprocessed by road-snapper).
	RawLocation *latlng.LatLng `protobuf:"bytes,16,opt,name=raw_location,json=rawLocation,proto3" json:"raw_location,omitempty"`
	// Input only. Timestamp associated with the raw location.
	RawLocationTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=raw_location_time,json=rawLocationTime,proto3" json:"raw_location_time,omitempty"`
	// Input only. Source of the raw location.
	RawLocationSensor LocationSensor `` /* 156-byte string literal not displayed */
	// Input only. Accuracy of the raw location (lat/lng) as a radius, measured in meters.
	RawLocationAccuracy *wrapperspb.DoubleValue `protobuf:"bytes,25,opt,name=raw_location_accuracy,json=rawLocationAccuracy,proto3" json:"raw_location_accuracy,omitempty"`
	// Input only. Supplemental location provided by the integrating app, such as the location
	// provided by Fused Location Provider.
	SupplementalLocation *latlng.LatLng `protobuf:"bytes,18,opt,name=supplemental_location,json=supplementalLocation,proto3" json:"supplemental_location,omitempty"`
	// Input only. Timestamp associated with the supplemental location.
	SupplementalLocationTime *timestamppb.Timestamp `` /* 136-byte string literal not displayed */
	// Input only. Source of the supplemental location.
	SupplementalLocationSensor LocationSensor `` /* 183-byte string literal not displayed */
	// Input only. Accuracy of supplemental location (lat/lng) as a radius, measured in
	// meters.
	SupplementalLocationAccuracy *wrapperspb.DoubleValue `` /* 148-byte string literal not displayed */
	// Deprecated, use is_road_snapped instead.
	//
	// Deprecated: Do not use.
	RoadSnapped bool `protobuf:"varint,26,opt,name=road_snapped,json=roadSnapped,proto3" json:"road_snapped,omitempty"`
	// contains filtered or unexported fields
}

The location, speed, and heading of a vehicle at a point in time.

func (*VehicleLocation) Descriptor deprecated

func (*VehicleLocation) Descriptor() ([]byte, []int)

Deprecated: Use VehicleLocation.ProtoReflect.Descriptor instead.

func (*VehicleLocation) GetAltitude

func (x *VehicleLocation) GetAltitude() *wrapperspb.DoubleValue

func (*VehicleLocation) GetAltitudeAccuracy

func (x *VehicleLocation) GetAltitudeAccuracy() *wrapperspb.DoubleValue

func (*VehicleLocation) GetBearingAccuracy deprecated

func (x *VehicleLocation) GetBearingAccuracy() *wrapperspb.DoubleValue

Deprecated: Do not use.

func (*VehicleLocation) GetHeading

func (x *VehicleLocation) GetHeading() *wrapperspb.Int32Value

func (*VehicleLocation) GetHeadingAccuracy

func (x *VehicleLocation) GetHeadingAccuracy() *wrapperspb.DoubleValue

func (*VehicleLocation) GetHorizontalAccuracy deprecated

func (x *VehicleLocation) GetHorizontalAccuracy() *wrapperspb.DoubleValue

Deprecated: Do not use.

func (*VehicleLocation) GetIsGpsSensorEnabled

func (x *VehicleLocation) GetIsGpsSensorEnabled() *wrapperspb.BoolValue

func (*VehicleLocation) GetIsRoadSnapped

func (x *VehicleLocation) GetIsRoadSnapped() *wrapperspb.BoolValue

func (*VehicleLocation) GetLatlngAccuracy

func (x *VehicleLocation) GetLatlngAccuracy() *wrapperspb.DoubleValue

func (*VehicleLocation) GetLocation

func (x *VehicleLocation) GetLocation() *latlng.LatLng

func (*VehicleLocation) GetLocationSensor

func (x *VehicleLocation) GetLocationSensor() LocationSensor

func (*VehicleLocation) GetNumStaleUpdates

func (x *VehicleLocation) GetNumStaleUpdates() *wrapperspb.Int32Value

func (*VehicleLocation) GetRawLocation

func (x *VehicleLocation) GetRawLocation() *latlng.LatLng

func (*VehicleLocation) GetRawLocationAccuracy

func (x *VehicleLocation) GetRawLocationAccuracy() *wrapperspb.DoubleValue

func (*VehicleLocation) GetRawLocationSensor

func (x *VehicleLocation) GetRawLocationSensor() LocationSensor

func (*VehicleLocation) GetRawLocationTime

func (x *VehicleLocation) GetRawLocationTime() *timestamppb.Timestamp

func (*VehicleLocation) GetRoadSnapped deprecated

func (x *VehicleLocation) GetRoadSnapped() bool

Deprecated: Do not use.

func (*VehicleLocation) GetServerTime

func (x *VehicleLocation) GetServerTime() *timestamppb.Timestamp

func (*VehicleLocation) GetSpeed

func (x *VehicleLocation) GetSpeed() *wrapperspb.DoubleValue

func (*VehicleLocation) GetSpeedAccuracy

func (x *VehicleLocation) GetSpeedAccuracy() *wrapperspb.DoubleValue

func (*VehicleLocation) GetSpeedKmph deprecated

func (x *VehicleLocation) GetSpeedKmph() *wrapperspb.Int32Value

Deprecated: Do not use.

func (*VehicleLocation) GetSupplementalLocation

func (x *VehicleLocation) GetSupplementalLocation() *latlng.LatLng

func (*VehicleLocation) GetSupplementalLocationAccuracy

func (x *VehicleLocation) GetSupplementalLocationAccuracy() *wrapperspb.DoubleValue

func (*VehicleLocation) GetSupplementalLocationSensor

func (x *VehicleLocation) GetSupplementalLocationSensor() LocationSensor

func (*VehicleLocation) GetSupplementalLocationTime

func (x *VehicleLocation) GetSupplementalLocationTime() *timestamppb.Timestamp

func (*VehicleLocation) GetTimeSinceUpdate

func (x *VehicleLocation) GetTimeSinceUpdate() *wrapperspb.Int32Value

func (*VehicleLocation) GetUpdateTime

func (x *VehicleLocation) GetUpdateTime() *timestamppb.Timestamp

func (*VehicleLocation) GetVerticalAccuracy deprecated

func (x *VehicleLocation) GetVerticalAccuracy() *wrapperspb.DoubleValue

Deprecated: Do not use.

func (*VehicleLocation) ProtoMessage

func (*VehicleLocation) ProtoMessage()

func (*VehicleLocation) ProtoReflect

func (x *VehicleLocation) ProtoReflect() protoreflect.Message

func (*VehicleLocation) Reset

func (x *VehicleLocation) Reset()

func (*VehicleLocation) String

func (x *VehicleLocation) String() string

type VehicleMatch

type VehicleMatch struct {

	// Required. A vehicle that matches the request.
	Vehicle *Vehicle `protobuf:"bytes,1,opt,name=vehicle,proto3" json:"vehicle,omitempty"`
	// The vehicle's driving ETA to the pickup point specified in the
	// request. An empty value indicates a failure in calculating ETA for the
	// vehicle.
	VehiclePickupEta *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=vehicle_pickup_eta,json=vehiclePickupEta,proto3" json:"vehicle_pickup_eta,omitempty"`
	// The vehicle's driving distance to the pickup point specified in
	// the request, including any intermediate pickup or dropoff points for
	// an existing ride.  An empty value indicates a failure in calculating
	// distance for the vehicle.
	VehiclePickupDistanceMeters *wrapperspb.Int32Value `` /* 146-byte string literal not displayed */
	// Required. The straight-line distance between the vehicle and the pickup
	// point specified in the request, including intermediate waypoints for
	// existing trips.
	VehiclePickupStraightLineDistanceMeters *wrapperspb.Int32Value `` /* 187-byte string literal not displayed */
	// The complete vehicle's driving ETA to the drop off point
	// specified in the request. The ETA includes any required visits for active
	// trips that must be completed before the vehicle visits the dropoff_point
	// specified in the request. The value will only be populated when a
	// dropoff_point is specified in the request. An empty value indicates
	// a failure in calculating the ETA for the vehicle to reach
	// the dropoff_point.
	VehicleDropoffEta *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=vehicle_dropoff_eta,json=vehicleDropoffEta,proto3" json:"vehicle_dropoff_eta,omitempty"`
	// The vehicle's driving distance (in meters) from the pickup point
	// to the drop off point specified in the request. The distance is only
	// between the two points and does not include the vehicle location or any
	// other points that must be visited before the vehicle visits either the
	// pickup point or dropoff point. The value will only be populated when a
	// dropoff_point is specified in the request. An empty value indicates
	// a failure in calculating the distance from the pickup to
	// dropoff points specified in the request.
	VehiclePickupToDropoffDistanceMeters *wrapperspb.Int32Value `` /* 177-byte string literal not displayed */
	// Required. The trip type of the request that was used to calculate the ETA
	// to the pickup point.
	TripType TripType `protobuf:"varint,6,opt,name=trip_type,json=tripType,proto3,enum=maps.fleetengine.v1.TripType" json:"trip_type,omitempty"`
	// The ordered list of waypoints used to calculate the ETA. The list
	// will include the vehicle location, the pickup/drop off points of active
	// trips for the vehicle and the pickup/dropoff points provided in the
	// request. An empty list indicates a failure in calculating ETA for the
	// vehicle.
	VehicleTripsWaypoints []*Waypoint `` /* 126-byte string literal not displayed */
	// Type of the vehicle match.
	VehicleMatchType VehicleMatch_VehicleMatchType `` /* 167-byte string literal not displayed */
	// The method the caller requested for sorting vehicle matches.
	RequestedOrderedBy SearchVehiclesRequest_VehicleMatchOrder `` /* 183-byte string literal not displayed */
	// The actual method that is used to order this vehicle. In normal cases this
	// will match the 'order_by' field from the request, however in certain
	// circumstances such as a failure of google maps backends, a different method
	// may be used (such as PICKUP_POINT_STRAIGHT_DISTANCE).
	OrderedBy SearchVehiclesRequest_VehicleMatchOrder `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

VehicleMatch contains the vehicle, ETA, and distance calculations for a vehicle that matches the SearchVehiclesRequest.

func (*VehicleMatch) Descriptor deprecated

func (*VehicleMatch) Descriptor() ([]byte, []int)

Deprecated: Use VehicleMatch.ProtoReflect.Descriptor instead.

func (*VehicleMatch) GetOrderedBy

func (*VehicleMatch) GetRequestedOrderedBy

func (x *VehicleMatch) GetRequestedOrderedBy() SearchVehiclesRequest_VehicleMatchOrder

func (*VehicleMatch) GetTripType

func (x *VehicleMatch) GetTripType() TripType

func (*VehicleMatch) GetVehicle

func (x *VehicleMatch) GetVehicle() *Vehicle

func (*VehicleMatch) GetVehicleDropoffEta

func (x *VehicleMatch) GetVehicleDropoffEta() *timestamppb.Timestamp

func (*VehicleMatch) GetVehicleMatchType

func (x *VehicleMatch) GetVehicleMatchType() VehicleMatch_VehicleMatchType

func (*VehicleMatch) GetVehiclePickupDistanceMeters

func (x *VehicleMatch) GetVehiclePickupDistanceMeters() *wrapperspb.Int32Value

func (*VehicleMatch) GetVehiclePickupEta

func (x *VehicleMatch) GetVehiclePickupEta() *timestamppb.Timestamp

func (*VehicleMatch) GetVehiclePickupStraightLineDistanceMeters

func (x *VehicleMatch) GetVehiclePickupStraightLineDistanceMeters() *wrapperspb.Int32Value

func (*VehicleMatch) GetVehiclePickupToDropoffDistanceMeters

func (x *VehicleMatch) GetVehiclePickupToDropoffDistanceMeters() *wrapperspb.Int32Value

func (*VehicleMatch) GetVehicleTripsWaypoints

func (x *VehicleMatch) GetVehicleTripsWaypoints() []*Waypoint

func (*VehicleMatch) ProtoMessage

func (*VehicleMatch) ProtoMessage()

func (*VehicleMatch) ProtoReflect

func (x *VehicleMatch) ProtoReflect() protoreflect.Message

func (*VehicleMatch) Reset

func (x *VehicleMatch) Reset()

func (*VehicleMatch) String

func (x *VehicleMatch) String() string

type VehicleMatch_VehicleMatchType

type VehicleMatch_VehicleMatchType int32

Type of vehicle match.

const (
	// Unknown vehicle match type
	VehicleMatch_UNKNOWN VehicleMatch_VehicleMatchType = 0
	// Exclusive vehicle trip match
	VehicleMatch_EXCLUSIVE VehicleMatch_VehicleMatchType = 1
	// Back to back ride match.
	VehicleMatch_BACK_TO_BACK VehicleMatch_VehicleMatchType = 2
	// Carpool ride match.
	VehicleMatch_CARPOOL VehicleMatch_VehicleMatchType = 3
	// Carpool ride match. The car has an active exclusive trip.
	VehicleMatch_CARPOOL_BACK_TO_BACK VehicleMatch_VehicleMatchType = 4
)

func (VehicleMatch_VehicleMatchType) Descriptor

func (VehicleMatch_VehicleMatchType) Enum

func (VehicleMatch_VehicleMatchType) EnumDescriptor deprecated

func (VehicleMatch_VehicleMatchType) EnumDescriptor() ([]byte, []int)

Deprecated: Use VehicleMatch_VehicleMatchType.Descriptor instead.

func (VehicleMatch_VehicleMatchType) Number

func (VehicleMatch_VehicleMatchType) String

func (VehicleMatch_VehicleMatchType) Type

type VehicleServiceClient

type VehicleServiceClient interface {
	// CreateVehicle instantiates a new vehicle associated with a rideshare
	// provider in the Fleet Engine. Vehicles must have a unique vehicle ID.
	//
	// The following Vehicle fields are required when creating a Vehicle:
	//
	// * vehicleState
	// * supportedTripTypes
	// * maximumCapacity
	// * vehicleType
	//
	// The following Vehicle fields are ignored when creating a Vehicle:
	//
	// * name
	// * currentTrips
	// * availableCapacity
	// * current_route_segment
	// * current_route_segment_version
	// * waypoint
	// * waypoints_version
	// * remaining_distance_meters
	// * eta_to_next_waypoint
	// * navigation_status
	//
	// All other fields are optional and used if provided.
	CreateVehicle(ctx context.Context, in *CreateVehicleRequest, opts ...grpc.CallOption) (*Vehicle, error)
	// GetVehicle returns a vehicle from the Fleet Engine.
	GetVehicle(ctx context.Context, in *GetVehicleRequest, opts ...grpc.CallOption) (*Vehicle, error)
	// UpdateVehicle writes updated vehicle data to the Fleet Engine.
	//
	// When updating a Vehicle, the following fields cannot be updated since they
	// are managed by the Fleet Engine:
	//
	// * currentTrips
	// * availableCapacity
	// * current_route_segment_version
	// * waypoints_version
	//
	// The vehicle name also cannot be updated.
	//
	// The waypoints field can be updated, but must contain all the waypoints
	// currently on the vehicle, and no other waypoints.
	UpdateVehicle(ctx context.Context, in *UpdateVehicleRequest, opts ...grpc.CallOption) (*Vehicle, error)
	// Deprecated: Do not use.
	// UpdateVehicleLocation updates the location of the vehicle.
	// This method is deprecated. Use UpdateVehicle method instead.
	UpdateVehicleLocation(ctx context.Context, in *UpdateVehicleLocationRequest, opts ...grpc.CallOption) (*VehicleLocation, error)
	// UpdateVehicleAttributes partially updates a vehicle's attributes.
	// Only the attributes mentioned in the request will be updated, other
	// attributes will NOT be altered. Note: this is different in UpdateVehicle,
	// where the whole `attributes` field will be replaced by the one in
	// UpdateVehicleRequest, attributes not in the request would be removed.
	UpdateVehicleAttributes(ctx context.Context, in *UpdateVehicleAttributesRequest, opts ...grpc.CallOption) (*UpdateVehicleAttributesResponse, error)
	// ListVehicles returns a paginated list of vehicles associated with
	// a provider that match the request options.
	ListVehicles(ctx context.Context, in *ListVehiclesRequest, opts ...grpc.CallOption) (*ListVehiclesResponse, error)
	// SearchVehicles returns a list of vehicles that match the request options.
	SearchVehicles(ctx context.Context, in *SearchVehiclesRequest, opts ...grpc.CallOption) (*SearchVehiclesResponse, error)
	// SearchFuzzedVehicles returns a list of vehicles that match the request
	// options with their locations fuzzed.
	// Request does not support 'order_by' field.
	// Vehicle matches in response will be in order of distance from pickup point.
	// Vehicle matches in response will only have 'vehicle' and 'trip_type' field
	// set.
	SearchFuzzedVehicles(ctx context.Context, in *SearchVehiclesRequest, opts ...grpc.CallOption) (*SearchVehiclesResponse, error)
}

VehicleServiceClient is the client API for VehicleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type VehicleServiceServer

type VehicleServiceServer interface {
	// CreateVehicle instantiates a new vehicle associated with a rideshare
	// provider in the Fleet Engine. Vehicles must have a unique vehicle ID.
	//
	// The following Vehicle fields are required when creating a Vehicle:
	//
	// * vehicleState
	// * supportedTripTypes
	// * maximumCapacity
	// * vehicleType
	//
	// The following Vehicle fields are ignored when creating a Vehicle:
	//
	// * name
	// * currentTrips
	// * availableCapacity
	// * current_route_segment
	// * current_route_segment_version
	// * waypoint
	// * waypoints_version
	// * remaining_distance_meters
	// * eta_to_next_waypoint
	// * navigation_status
	//
	// All other fields are optional and used if provided.
	CreateVehicle(context.Context, *CreateVehicleRequest) (*Vehicle, error)
	// GetVehicle returns a vehicle from the Fleet Engine.
	GetVehicle(context.Context, *GetVehicleRequest) (*Vehicle, error)
	// UpdateVehicle writes updated vehicle data to the Fleet Engine.
	//
	// When updating a Vehicle, the following fields cannot be updated since they
	// are managed by the Fleet Engine:
	//
	// * currentTrips
	// * availableCapacity
	// * current_route_segment_version
	// * waypoints_version
	//
	// The vehicle name also cannot be updated.
	//
	// The waypoints field can be updated, but must contain all the waypoints
	// currently on the vehicle, and no other waypoints.
	UpdateVehicle(context.Context, *UpdateVehicleRequest) (*Vehicle, error)
	// Deprecated: Do not use.
	// UpdateVehicleLocation updates the location of the vehicle.
	// This method is deprecated. Use UpdateVehicle method instead.
	UpdateVehicleLocation(context.Context, *UpdateVehicleLocationRequest) (*VehicleLocation, error)
	// UpdateVehicleAttributes partially updates a vehicle's attributes.
	// Only the attributes mentioned in the request will be updated, other
	// attributes will NOT be altered. Note: this is different in UpdateVehicle,
	// where the whole `attributes` field will be replaced by the one in
	// UpdateVehicleRequest, attributes not in the request would be removed.
	UpdateVehicleAttributes(context.Context, *UpdateVehicleAttributesRequest) (*UpdateVehicleAttributesResponse, error)
	// ListVehicles returns a paginated list of vehicles associated with
	// a provider that match the request options.
	ListVehicles(context.Context, *ListVehiclesRequest) (*ListVehiclesResponse, error)
	// SearchVehicles returns a list of vehicles that match the request options.
	SearchVehicles(context.Context, *SearchVehiclesRequest) (*SearchVehiclesResponse, error)
	// SearchFuzzedVehicles returns a list of vehicles that match the request
	// options with their locations fuzzed.
	// Request does not support 'order_by' field.
	// Vehicle matches in response will be in order of distance from pickup point.
	// Vehicle matches in response will only have 'vehicle' and 'trip_type' field
	// set.
	SearchFuzzedVehicles(context.Context, *SearchVehiclesRequest) (*SearchVehiclesResponse, error)
}

VehicleServiceServer is the server API for VehicleService service.

type VehicleState

type VehicleState int32

The state of a Vehicle.

const (
	// Default, used for unspecified or unrecognized vehicle states.
	VehicleState_UNKNOWN_VEHICLE_STATE VehicleState = 0
	// The vehicle is not accepting new trips.
	VehicleState_OFFLINE VehicleState = 1
	// The vehicle is accepting new trips.
	VehicleState_ONLINE VehicleState = 2
)

func (VehicleState) Descriptor

func (VehicleState) Enum

func (x VehicleState) Enum() *VehicleState

func (VehicleState) EnumDescriptor deprecated

func (VehicleState) EnumDescriptor() ([]byte, []int)

Deprecated: Use VehicleState.Descriptor instead.

func (VehicleState) Number

func (VehicleState) String

func (x VehicleState) String() string

func (VehicleState) Type

type Vehicle_VehicleType

type Vehicle_VehicleType struct {

	// Vehicle type category
	Category Vehicle_VehicleType_Category `protobuf:"varint,1,opt,name=category,proto3,enum=maps.fleetengine.v1.Vehicle_VehicleType_Category" json:"category,omitempty"`
	// contains filtered or unexported fields
}

Types of vehicles that may be filtered for in SearchVehicles.

func (*Vehicle_VehicleType) Descriptor deprecated

func (*Vehicle_VehicleType) Descriptor() ([]byte, []int)

Deprecated: Use Vehicle_VehicleType.ProtoReflect.Descriptor instead.

func (*Vehicle_VehicleType) GetCategory

func (*Vehicle_VehicleType) ProtoMessage

func (*Vehicle_VehicleType) ProtoMessage()

func (*Vehicle_VehicleType) ProtoReflect

func (x *Vehicle_VehicleType) ProtoReflect() protoreflect.Message

func (*Vehicle_VehicleType) Reset

func (x *Vehicle_VehicleType) Reset()

func (*Vehicle_VehicleType) String

func (x *Vehicle_VehicleType) String() string

type Vehicle_VehicleType_Category

type Vehicle_VehicleType_Category int32

Vehicle type categories

const (
	// Default, used for unspecified or unrecognized vehicle types.
	Vehicle_VehicleType_UNKNOWN Vehicle_VehicleType_Category = 0
	// An automobile.
	Vehicle_VehicleType_AUTO Vehicle_VehicleType_Category = 1
	// Any vehicle that acts as a taxi.
	Vehicle_VehicleType_TAXI Vehicle_VehicleType_Category = 2
	// Generally, a vehicle with a large storage capacity.
	Vehicle_VehicleType_TRUCK Vehicle_VehicleType_Category = 3
	// A motorcycle, moped, or other two-wheeled vehicle
	Vehicle_VehicleType_TWO_WHEELER Vehicle_VehicleType_Category = 4
)

func (Vehicle_VehicleType_Category) Descriptor

func (Vehicle_VehicleType_Category) Enum

func (Vehicle_VehicleType_Category) EnumDescriptor deprecated

func (Vehicle_VehicleType_Category) EnumDescriptor() ([]byte, []int)

Deprecated: Use Vehicle_VehicleType_Category.Descriptor instead.

func (Vehicle_VehicleType_Category) Number

func (Vehicle_VehicleType_Category) String

func (Vehicle_VehicleType_Category) Type

type Waypoint

type Waypoint struct {

	// The location of this waypoint.
	LatLng *latlng.LatLng `protobuf:"bytes,1,opt,name=lat_lng,json=latLng,proto3" json:"lat_lng,omitempty"`
	// The estimated time that the vehicle will arrive at this waypoint.
	Eta *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=eta,proto3" json:"eta,omitempty"`
	// contains filtered or unexported fields
}

Waypoint describes intermediate points along a route.

func (*Waypoint) Descriptor deprecated

func (*Waypoint) Descriptor() ([]byte, []int)

Deprecated: Use Waypoint.ProtoReflect.Descriptor instead.

func (*Waypoint) GetEta

func (x *Waypoint) GetEta() *timestamppb.Timestamp

func (*Waypoint) GetLatLng

func (x *Waypoint) GetLatLng() *latlng.LatLng

func (*Waypoint) ProtoMessage

func (*Waypoint) ProtoMessage()

func (*Waypoint) ProtoReflect

func (x *Waypoint) ProtoReflect() protoreflect.Message

func (*Waypoint) Reset

func (x *Waypoint) Reset()

func (*Waypoint) String

func (x *Waypoint) String() string

type WaypointType

type WaypointType int32

The type of waypoint.

const (
	// Default, unknown waypoint type
	WaypointType_UNKNOWN_WAYPOINT_TYPE WaypointType = 0
	// Waypoints for picking up customers or merchandise.
	WaypointType_PICKUP_WAYPOINT_TYPE WaypointType = 1
	// Waypoints for dropping off customers or merchandise.
	WaypointType_DROP_OFF_WAYPOINT_TYPE WaypointType = 2
	// Waypoints for intermediate destinations in a multi-destination trip.
	WaypointType_INTERMEDIATE_DESTINATION_WAYPOINT_TYPE WaypointType = 3
)

func (WaypointType) Descriptor

func (WaypointType) Enum

func (x WaypointType) Enum() *WaypointType

func (WaypointType) EnumDescriptor deprecated

func (WaypointType) EnumDescriptor() ([]byte, []int)

Deprecated: Use WaypointType.Descriptor instead.

func (WaypointType) Number

func (WaypointType) String

func (x WaypointType) String() string

func (WaypointType) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL