mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-10 06:23:43 +08:00
3745 lines
116 KiB
Go
3745 lines
116 KiB
Go
// Code generated by capnpc-go. DO NOT EDIT.
|
|
|
|
package custom
|
|
|
|
import (
|
|
capnp "capnproto.org/go/capnp/v3"
|
|
text "capnproto.org/go/capnp/v3/encoding/text"
|
|
schemas "capnproto.org/go/capnp/v3/schemas"
|
|
math "math"
|
|
)
|
|
|
|
type StarPilotCarControl capnp.Struct
|
|
|
|
// StarPilotCarControl_TypeID is the unique identifier for the type StarPilotCarControl.
|
|
const StarPilotCarControl_TypeID = 0x81c2f05a394cf4af
|
|
|
|
func NewStarPilotCarControl(s *capnp.Segment) (StarPilotCarControl, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 4})
|
|
return StarPilotCarControl(st), err
|
|
}
|
|
|
|
func NewRootStarPilotCarControl(s *capnp.Segment) (StarPilotCarControl, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 4})
|
|
return StarPilotCarControl(st), err
|
|
}
|
|
|
|
func ReadRootStarPilotCarControl(msg *capnp.Message) (StarPilotCarControl, error) {
|
|
root, err := msg.Root()
|
|
return StarPilotCarControl(root.Struct()), err
|
|
}
|
|
|
|
func (s StarPilotCarControl) String() string {
|
|
str, _ := text.Marshal(0x81c2f05a394cf4af, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s StarPilotCarControl) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (StarPilotCarControl) DecodeFromPtr(p capnp.Ptr) StarPilotCarControl {
|
|
return StarPilotCarControl(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s StarPilotCarControl) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s StarPilotCarControl) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s StarPilotCarControl) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s StarPilotCarControl) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s StarPilotCarControl) HudControl() (capnp.Ptr, error) {
|
|
return capnp.Struct(s).Ptr(0)
|
|
}
|
|
|
|
func (s StarPilotCarControl) HasHudControl() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s StarPilotCarControl) SetHudControl(v capnp.Ptr) error {
|
|
return capnp.Struct(s).SetPtr(0, v)
|
|
}
|
|
func (s StarPilotCarControl) SteeringLimitInfo() (capnp.Ptr, error) {
|
|
return capnp.Struct(s).Ptr(1)
|
|
}
|
|
|
|
func (s StarPilotCarControl) HasSteeringLimitInfo() bool {
|
|
return capnp.Struct(s).HasPtr(1)
|
|
}
|
|
|
|
func (s StarPilotCarControl) SetSteeringLimitInfo(v capnp.Ptr) error {
|
|
return capnp.Struct(s).SetPtr(1, v)
|
|
}
|
|
func (s StarPilotCarControl) Navigation() (capnp.Ptr, error) {
|
|
return capnp.Struct(s).Ptr(2)
|
|
}
|
|
|
|
func (s StarPilotCarControl) HasNavigation() bool {
|
|
return capnp.Struct(s).HasPtr(2)
|
|
}
|
|
|
|
func (s StarPilotCarControl) SetNavigation(v capnp.Ptr) error {
|
|
return capnp.Struct(s).SetPtr(2, v)
|
|
}
|
|
func (s StarPilotCarControl) PhoneGps() (StarPilotCarState_Gps, error) {
|
|
p, err := capnp.Struct(s).Ptr(3)
|
|
return StarPilotCarState_Gps(p.Struct()), err
|
|
}
|
|
|
|
func (s StarPilotCarControl) HasPhoneGps() bool {
|
|
return capnp.Struct(s).HasPtr(3)
|
|
}
|
|
|
|
func (s StarPilotCarControl) SetPhoneGps(v StarPilotCarState_Gps) error {
|
|
return capnp.Struct(s).SetPtr(3, capnp.Struct(v).ToPtr())
|
|
}
|
|
|
|
// NewPhoneGps sets the phoneGps field to a newly
|
|
// allocated StarPilotCarState_Gps struct, preferring placement in s's segment.
|
|
func (s StarPilotCarControl) NewPhoneGps() (StarPilotCarState_Gps, error) {
|
|
ss, err := NewStarPilotCarState_Gps(capnp.Struct(s).Segment())
|
|
if err != nil {
|
|
return StarPilotCarState_Gps{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(3, capnp.Struct(ss).ToPtr())
|
|
return ss, err
|
|
}
|
|
|
|
// StarPilotCarControl_List is a list of StarPilotCarControl.
|
|
type StarPilotCarControl_List = capnp.StructList[StarPilotCarControl]
|
|
|
|
// NewStarPilotCarControl creates a new list of StarPilotCarControl.
|
|
func NewStarPilotCarControl_List(s *capnp.Segment, sz int32) (StarPilotCarControl_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 4}, sz)
|
|
return capnp.StructList[StarPilotCarControl](l), err
|
|
}
|
|
|
|
// StarPilotCarControl_Future is a wrapper for a StarPilotCarControl promised by a client call.
|
|
type StarPilotCarControl_Future struct{ *capnp.Future }
|
|
|
|
func (f StarPilotCarControl_Future) Struct() (StarPilotCarControl, error) {
|
|
p, err := f.Future.Ptr()
|
|
return StarPilotCarControl(p.Struct()), err
|
|
}
|
|
func (p StarPilotCarControl_Future) HudControl() *capnp.Future {
|
|
return p.Future.Field(0, nil)
|
|
}
|
|
func (p StarPilotCarControl_Future) SteeringLimitInfo() *capnp.Future {
|
|
return p.Future.Field(1, nil)
|
|
}
|
|
func (p StarPilotCarControl_Future) Navigation() *capnp.Future {
|
|
return p.Future.Field(2, nil)
|
|
}
|
|
func (p StarPilotCarControl_Future) PhoneGps() StarPilotCarState_Gps_Future {
|
|
return StarPilotCarState_Gps_Future{Future: p.Future.Field(3, nil)}
|
|
}
|
|
|
|
type CustomReserved1 capnp.Struct
|
|
|
|
// CustomReserved1_TypeID is the unique identifier for the type CustomReserved1.
|
|
const CustomReserved1_TypeID = 0xaedffd8f31e7b55d
|
|
|
|
func NewCustomReserved1(s *capnp.Segment) (CustomReserved1, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved1(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved1(s *capnp.Segment) (CustomReserved1, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved1(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved1(msg *capnp.Message) (CustomReserved1, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved1(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved1) String() string {
|
|
str, _ := text.Marshal(0xaedffd8f31e7b55d, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved1) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved1) DecodeFromPtr(p capnp.Ptr) CustomReserved1 {
|
|
return CustomReserved1(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved1) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved1) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved1) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved1) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved1_List is a list of CustomReserved1.
|
|
type CustomReserved1_List = capnp.StructList[CustomReserved1]
|
|
|
|
// NewCustomReserved1 creates a new list of CustomReserved1.
|
|
func NewCustomReserved1_List(s *capnp.Segment, sz int32) (CustomReserved1_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved1](l), err
|
|
}
|
|
|
|
// CustomReserved1_Future is a wrapper for a CustomReserved1 promised by a client call.
|
|
type CustomReserved1_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved1_Future) Struct() (CustomReserved1, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved1(p.Struct()), err
|
|
}
|
|
|
|
type StarPilotCarState capnp.Struct
|
|
|
|
// StarPilotCarState_TypeID is the unique identifier for the type StarPilotCarState.
|
|
const StarPilotCarState_TypeID = 0xf35cc4560bbf6ec2
|
|
|
|
func NewStarPilotCarState(s *capnp.Segment) (StarPilotCarState, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1})
|
|
return StarPilotCarState(st), err
|
|
}
|
|
|
|
func NewRootStarPilotCarState(s *capnp.Segment) (StarPilotCarState, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1})
|
|
return StarPilotCarState(st), err
|
|
}
|
|
|
|
func ReadRootStarPilotCarState(msg *capnp.Message) (StarPilotCarState, error) {
|
|
root, err := msg.Root()
|
|
return StarPilotCarState(root.Struct()), err
|
|
}
|
|
|
|
func (s StarPilotCarState) String() string {
|
|
str, _ := text.Marshal(0xf35cc4560bbf6ec2, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s StarPilotCarState) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (StarPilotCarState) DecodeFromPtr(p capnp.Ptr) StarPilotCarState {
|
|
return StarPilotCarState(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s StarPilotCarState) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s StarPilotCarState) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s StarPilotCarState) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s StarPilotCarState) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s StarPilotCarState) AccelPressed() bool {
|
|
return capnp.Struct(s).Bit(0)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetAccelPressed(v bool) {
|
|
capnp.Struct(s).SetBit(0, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) AlwaysOnLateralEnabled() bool {
|
|
return capnp.Struct(s).Bit(1)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetAlwaysOnLateralEnabled(v bool) {
|
|
capnp.Struct(s).SetBit(1, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) BrakeLights() bool {
|
|
return capnp.Struct(s).Bit(2)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetBrakeLights(v bool) {
|
|
capnp.Struct(s).SetBit(2, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) DashboardSpeedLimit() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(4))
|
|
}
|
|
|
|
func (s StarPilotCarState) SetDashboardSpeedLimit(v float32) {
|
|
capnp.Struct(s).SetUint32(4, math.Float32bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState) DecelPressed() bool {
|
|
return capnp.Struct(s).Bit(3)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetDecelPressed(v bool) {
|
|
capnp.Struct(s).SetBit(3, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) DistancePressed() bool {
|
|
return capnp.Struct(s).Bit(4)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetDistancePressed(v bool) {
|
|
capnp.Struct(s).SetBit(4, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) DistanceLongPressed() bool {
|
|
return capnp.Struct(s).Bit(5)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetDistanceLongPressed(v bool) {
|
|
capnp.Struct(s).SetBit(5, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) DistanceVeryLongPressed() bool {
|
|
return capnp.Struct(s).Bit(6)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetDistanceVeryLongPressed(v bool) {
|
|
capnp.Struct(s).SetBit(6, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) EcoGear() bool {
|
|
return capnp.Struct(s).Bit(7)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetEcoGear(v bool) {
|
|
capnp.Struct(s).SetBit(7, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) ForceCoast() bool {
|
|
return capnp.Struct(s).Bit(8)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetForceCoast(v bool) {
|
|
capnp.Struct(s).SetBit(8, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) IsParked() bool {
|
|
return capnp.Struct(s).Bit(9)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetIsParked(v bool) {
|
|
capnp.Struct(s).SetBit(9, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) PauseLateral() bool {
|
|
return capnp.Struct(s).Bit(10)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetPauseLateral(v bool) {
|
|
capnp.Struct(s).SetBit(10, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) PauseLongitudinal() bool {
|
|
return capnp.Struct(s).Bit(11)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetPauseLongitudinal(v bool) {
|
|
capnp.Struct(s).SetBit(11, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) SportGear() bool {
|
|
return capnp.Struct(s).Bit(12)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetSportGear(v bool) {
|
|
capnp.Struct(s).SetBit(12, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) TrafficModeEnabled() bool {
|
|
return capnp.Struct(s).Bit(13)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetTrafficModeEnabled(v bool) {
|
|
capnp.Struct(s).SetBit(13, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) GasStack() bool {
|
|
return capnp.Struct(s).Bit(14)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetGasStack(v bool) {
|
|
capnp.Struct(s).SetBit(14, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) ModePressed() bool {
|
|
return capnp.Struct(s).Bit(15)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetModePressed(v bool) {
|
|
capnp.Struct(s).SetBit(15, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) CustomPressed() bool {
|
|
return capnp.Struct(s).Bit(16)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetCustomPressed(v bool) {
|
|
capnp.Struct(s).SetBit(16, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) AlwaysOnLateralAllowed() bool {
|
|
return capnp.Struct(s).Bit(17)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetAlwaysOnLateralAllowed(v bool) {
|
|
capnp.Struct(s).SetBit(17, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) DashboardStopSign() uint8 {
|
|
return capnp.Struct(s).Uint8(3)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetDashboardStopSign(v uint8) {
|
|
capnp.Struct(s).SetUint8(3, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) CancelPressed() bool {
|
|
return capnp.Struct(s).Bit(18)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetCancelPressed(v bool) {
|
|
capnp.Struct(s).SetBit(18, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) CancelLongPressed() bool {
|
|
return capnp.Struct(s).Bit(19)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetCancelLongPressed(v bool) {
|
|
capnp.Struct(s).SetBit(19, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) CancelVeryLongPressed() bool {
|
|
return capnp.Struct(s).Bit(20)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetCancelVeryLongPressed(v bool) {
|
|
capnp.Struct(s).SetBit(20, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) PedalMaxRegen() bool {
|
|
return capnp.Struct(s).Bit(21)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetPedalMaxRegen(v bool) {
|
|
capnp.Struct(s).SetBit(21, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) PedalLongActive() bool {
|
|
return capnp.Struct(s).Bit(22)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetPedalLongActive(v bool) {
|
|
capnp.Struct(s).SetBit(22, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) TeslaCCEngaged() bool {
|
|
return capnp.Struct(s).Bit(23)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetTeslaCCEngaged(v bool) {
|
|
capnp.Struct(s).SetBit(23, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) TeslaCCDisengaged() bool {
|
|
return capnp.Struct(s).Bit(64)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetTeslaCCDisengaged(v bool) {
|
|
capnp.Struct(s).SetBit(64, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) TeslaCCNotArmed() bool {
|
|
return capnp.Struct(s).Bit(65)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetTeslaCCNotArmed(v bool) {
|
|
capnp.Struct(s).SetBit(65, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) AccelHardCruise() bool {
|
|
return capnp.Struct(s).Bit(66)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetAccelHardCruise(v bool) {
|
|
capnp.Struct(s).SetBit(66, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) DecelHardCruise() bool {
|
|
return capnp.Struct(s).Bit(67)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetDecelHardCruise(v bool) {
|
|
capnp.Struct(s).SetBit(67, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) PulseAndGlide() bool {
|
|
return capnp.Struct(s).Bit(68)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetPulseAndGlide(v bool) {
|
|
capnp.Struct(s).SetBit(68, v)
|
|
}
|
|
|
|
func (s StarPilotCarState) Gps() (StarPilotCarState_Gps, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return StarPilotCarState_Gps(p.Struct()), err
|
|
}
|
|
|
|
func (s StarPilotCarState) HasGps() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s StarPilotCarState) SetGps(v StarPilotCarState_Gps) error {
|
|
return capnp.Struct(s).SetPtr(0, capnp.Struct(v).ToPtr())
|
|
}
|
|
|
|
// NewGps sets the gps field to a newly
|
|
// allocated StarPilotCarState_Gps struct, preferring placement in s's segment.
|
|
func (s StarPilotCarState) NewGps() (StarPilotCarState_Gps, error) {
|
|
ss, err := NewStarPilotCarState_Gps(capnp.Struct(s).Segment())
|
|
if err != nil {
|
|
return StarPilotCarState_Gps{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(0, capnp.Struct(ss).ToPtr())
|
|
return ss, err
|
|
}
|
|
|
|
// StarPilotCarState_List is a list of StarPilotCarState.
|
|
type StarPilotCarState_List = capnp.StructList[StarPilotCarState]
|
|
|
|
// NewStarPilotCarState creates a new list of StarPilotCarState.
|
|
func NewStarPilotCarState_List(s *capnp.Segment, sz int32) (StarPilotCarState_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 1}, sz)
|
|
return capnp.StructList[StarPilotCarState](l), err
|
|
}
|
|
|
|
// StarPilotCarState_Future is a wrapper for a StarPilotCarState promised by a client call.
|
|
type StarPilotCarState_Future struct{ *capnp.Future }
|
|
|
|
func (f StarPilotCarState_Future) Struct() (StarPilotCarState, error) {
|
|
p, err := f.Future.Ptr()
|
|
return StarPilotCarState(p.Struct()), err
|
|
}
|
|
func (p StarPilotCarState_Future) Gps() StarPilotCarState_Gps_Future {
|
|
return StarPilotCarState_Gps_Future{Future: p.Future.Field(0, nil)}
|
|
}
|
|
|
|
type StarPilotCarState_Gps capnp.Struct
|
|
|
|
// StarPilotCarState_Gps_TypeID is the unique identifier for the type StarPilotCarState_Gps.
|
|
const StarPilotCarState_Gps_TypeID = 0x918d19aa5875c92d
|
|
|
|
func NewStarPilotCarState_Gps(s *capnp.Segment) (StarPilotCarState_Gps, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 72, PointerCount: 1})
|
|
return StarPilotCarState_Gps(st), err
|
|
}
|
|
|
|
func NewRootStarPilotCarState_Gps(s *capnp.Segment) (StarPilotCarState_Gps, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 72, PointerCount: 1})
|
|
return StarPilotCarState_Gps(st), err
|
|
}
|
|
|
|
func ReadRootStarPilotCarState_Gps(msg *capnp.Message) (StarPilotCarState_Gps, error) {
|
|
root, err := msg.Root()
|
|
return StarPilotCarState_Gps(root.Struct()), err
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) String() string {
|
|
str, _ := text.Marshal(0x918d19aa5875c92d, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (StarPilotCarState_Gps) DecodeFromPtr(p capnp.Ptr) StarPilotCarState_Gps {
|
|
return StarPilotCarState_Gps(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s StarPilotCarState_Gps) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s StarPilotCarState_Gps) SourceMonoTime() uint64 {
|
|
return capnp.Struct(s).Uint64(0)
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetSourceMonoTime(v uint64) {
|
|
capnp.Struct(s).SetUint64(0, v)
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) Latitude() float64 {
|
|
return math.Float64frombits(capnp.Struct(s).Uint64(8))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetLatitude(v float64) {
|
|
capnp.Struct(s).SetUint64(8, math.Float64bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) Longitude() float64 {
|
|
return math.Float64frombits(capnp.Struct(s).Uint64(16))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetLongitude(v float64) {
|
|
capnp.Struct(s).SetUint64(16, math.Float64bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) Altitude() float64 {
|
|
return math.Float64frombits(capnp.Struct(s).Uint64(24))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetAltitude(v float64) {
|
|
capnp.Struct(s).SetUint64(24, math.Float64bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) Speed() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(32))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetSpeed(v float32) {
|
|
capnp.Struct(s).SetUint32(32, math.Float32bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) BearingDeg() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(36))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetBearingDeg(v float32) {
|
|
capnp.Struct(s).SetUint32(36, math.Float32bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) HorizontalAccuracy() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(40))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetHorizontalAccuracy(v float32) {
|
|
capnp.Struct(s).SetUint32(40, math.Float32bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) VerticalAccuracy() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(44))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetVerticalAccuracy(v float32) {
|
|
capnp.Struct(s).SetUint32(44, math.Float32bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) BearingAccuracyDeg() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(48))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetBearingAccuracyDeg(v float32) {
|
|
capnp.Struct(s).SetUint32(48, math.Float32bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SpeedAccuracy() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(52))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetSpeedAccuracy(v float32) {
|
|
capnp.Struct(s).SetUint32(52, math.Float32bits(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) UnixTimestampMillis() int64 {
|
|
return int64(capnp.Struct(s).Uint64(56))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetUnixTimestampMillis(v int64) {
|
|
capnp.Struct(s).SetUint64(56, uint64(v))
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) HasFix() bool {
|
|
return capnp.Struct(s).Bit(512)
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetHasFix(v bool) {
|
|
capnp.Struct(s).SetBit(512, v)
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) VNED() (capnp.Float32List, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return capnp.Float32List(p.List()), err
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) HasVNED() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s StarPilotCarState_Gps) SetVNED(v capnp.Float32List) error {
|
|
return capnp.Struct(s).SetPtr(0, v.ToPtr())
|
|
}
|
|
|
|
// NewVNED sets the vNED field to a newly
|
|
// allocated capnp.Float32List, preferring placement in s's segment.
|
|
func (s StarPilotCarState_Gps) NewVNED(n int32) (capnp.Float32List, error) {
|
|
l, err := capnp.NewFloat32List(capnp.Struct(s).Segment(), n)
|
|
if err != nil {
|
|
return capnp.Float32List{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(0, l.ToPtr())
|
|
return l, err
|
|
}
|
|
|
|
// StarPilotCarState_Gps_List is a list of StarPilotCarState_Gps.
|
|
type StarPilotCarState_Gps_List = capnp.StructList[StarPilotCarState_Gps]
|
|
|
|
// NewStarPilotCarState_Gps creates a new list of StarPilotCarState_Gps.
|
|
func NewStarPilotCarState_Gps_List(s *capnp.Segment, sz int32) (StarPilotCarState_Gps_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 72, PointerCount: 1}, sz)
|
|
return capnp.StructList[StarPilotCarState_Gps](l), err
|
|
}
|
|
|
|
// StarPilotCarState_Gps_Future is a wrapper for a StarPilotCarState_Gps promised by a client call.
|
|
type StarPilotCarState_Gps_Future struct{ *capnp.Future }
|
|
|
|
func (f StarPilotCarState_Gps_Future) Struct() (StarPilotCarState_Gps, error) {
|
|
p, err := f.Future.Ptr()
|
|
return StarPilotCarState_Gps(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved3 capnp.Struct
|
|
|
|
// CustomReserved3_TypeID is the unique identifier for the type CustomReserved3.
|
|
const CustomReserved3_TypeID = 0xda96579883444c35
|
|
|
|
func NewCustomReserved3(s *capnp.Segment) (CustomReserved3, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved3(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved3(s *capnp.Segment) (CustomReserved3, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved3(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved3(msg *capnp.Message) (CustomReserved3, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved3(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved3) String() string {
|
|
str, _ := text.Marshal(0xda96579883444c35, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved3) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved3) DecodeFromPtr(p capnp.Ptr) CustomReserved3 {
|
|
return CustomReserved3(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved3) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved3) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved3) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved3) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved3_List is a list of CustomReserved3.
|
|
type CustomReserved3_List = capnp.StructList[CustomReserved3]
|
|
|
|
// NewCustomReserved3 creates a new list of CustomReserved3.
|
|
func NewCustomReserved3_List(s *capnp.Segment, sz int32) (CustomReserved3_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved3](l), err
|
|
}
|
|
|
|
// CustomReserved3_Future is a wrapper for a CustomReserved3 promised by a client call.
|
|
type CustomReserved3_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved3_Future) Struct() (CustomReserved3, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved3(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved4 capnp.Struct
|
|
|
|
// CustomReserved4_TypeID is the unique identifier for the type CustomReserved4.
|
|
const CustomReserved4_TypeID = 0x80ae746ee2596b11
|
|
|
|
func NewCustomReserved4(s *capnp.Segment) (CustomReserved4, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved4(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved4(s *capnp.Segment) (CustomReserved4, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved4(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved4(msg *capnp.Message) (CustomReserved4, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved4(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved4) String() string {
|
|
str, _ := text.Marshal(0x80ae746ee2596b11, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved4) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved4) DecodeFromPtr(p capnp.Ptr) CustomReserved4 {
|
|
return CustomReserved4(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved4) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved4) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved4) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved4) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved4_List is a list of CustomReserved4.
|
|
type CustomReserved4_List = capnp.StructList[CustomReserved4]
|
|
|
|
// NewCustomReserved4 creates a new list of CustomReserved4.
|
|
func NewCustomReserved4_List(s *capnp.Segment, sz int32) (CustomReserved4_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved4](l), err
|
|
}
|
|
|
|
// CustomReserved4_Future is a wrapper for a CustomReserved4 promised by a client call.
|
|
type CustomReserved4_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved4_Future) Struct() (CustomReserved4, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved4(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved5 capnp.Struct
|
|
|
|
// CustomReserved5_TypeID is the unique identifier for the type CustomReserved5.
|
|
const CustomReserved5_TypeID = 0xa5cd762cd951a455
|
|
|
|
func NewCustomReserved5(s *capnp.Segment) (CustomReserved5, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved5(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved5(s *capnp.Segment) (CustomReserved5, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved5(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved5(msg *capnp.Message) (CustomReserved5, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved5(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved5) String() string {
|
|
str, _ := text.Marshal(0xa5cd762cd951a455, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved5) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved5) DecodeFromPtr(p capnp.Ptr) CustomReserved5 {
|
|
return CustomReserved5(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved5) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved5) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved5) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved5) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved5_List is a list of CustomReserved5.
|
|
type CustomReserved5_List = capnp.StructList[CustomReserved5]
|
|
|
|
// NewCustomReserved5 creates a new list of CustomReserved5.
|
|
func NewCustomReserved5_List(s *capnp.Segment, sz int32) (CustomReserved5_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved5](l), err
|
|
}
|
|
|
|
// CustomReserved5_Future is a wrapper for a CustomReserved5 promised by a client call.
|
|
type CustomReserved5_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved5_Future) Struct() (CustomReserved5, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved5(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved6 capnp.Struct
|
|
|
|
// CustomReserved6_TypeID is the unique identifier for the type CustomReserved6.
|
|
const CustomReserved6_TypeID = 0xf98d843bfd7004a3
|
|
|
|
func NewCustomReserved6(s *capnp.Segment) (CustomReserved6, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved6(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved6(s *capnp.Segment) (CustomReserved6, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved6(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved6(msg *capnp.Message) (CustomReserved6, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved6(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved6) String() string {
|
|
str, _ := text.Marshal(0xf98d843bfd7004a3, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved6) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved6) DecodeFromPtr(p capnp.Ptr) CustomReserved6 {
|
|
return CustomReserved6(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved6) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved6) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved6) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved6) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved6_List is a list of CustomReserved6.
|
|
type CustomReserved6_List = capnp.StructList[CustomReserved6]
|
|
|
|
// NewCustomReserved6 creates a new list of CustomReserved6.
|
|
func NewCustomReserved6_List(s *capnp.Segment, sz int32) (CustomReserved6_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved6](l), err
|
|
}
|
|
|
|
// CustomReserved6_Future is a wrapper for a CustomReserved6 promised by a client call.
|
|
type CustomReserved6_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved6_Future) Struct() (CustomReserved6, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved6(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved7 capnp.Struct
|
|
|
|
// CustomReserved7_TypeID is the unique identifier for the type CustomReserved7.
|
|
const CustomReserved7_TypeID = 0xb86e6369214c01c8
|
|
|
|
func NewCustomReserved7(s *capnp.Segment) (CustomReserved7, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved7(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved7(s *capnp.Segment) (CustomReserved7, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved7(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved7(msg *capnp.Message) (CustomReserved7, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved7(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved7) String() string {
|
|
str, _ := text.Marshal(0xb86e6369214c01c8, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved7) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved7) DecodeFromPtr(p capnp.Ptr) CustomReserved7 {
|
|
return CustomReserved7(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved7) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved7) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved7) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved7) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved7_List is a list of CustomReserved7.
|
|
type CustomReserved7_List = capnp.StructList[CustomReserved7]
|
|
|
|
// NewCustomReserved7 creates a new list of CustomReserved7.
|
|
func NewCustomReserved7_List(s *capnp.Segment, sz int32) (CustomReserved7_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved7](l), err
|
|
}
|
|
|
|
// CustomReserved7_Future is a wrapper for a CustomReserved7 promised by a client call.
|
|
type CustomReserved7_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved7_Future) Struct() (CustomReserved7, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved7(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved8 capnp.Struct
|
|
|
|
// CustomReserved8_TypeID is the unique identifier for the type CustomReserved8.
|
|
const CustomReserved8_TypeID = 0xf416ec09499d9d19
|
|
|
|
func NewCustomReserved8(s *capnp.Segment) (CustomReserved8, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved8(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved8(s *capnp.Segment) (CustomReserved8, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved8(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved8(msg *capnp.Message) (CustomReserved8, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved8(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved8) String() string {
|
|
str, _ := text.Marshal(0xf416ec09499d9d19, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved8) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved8) DecodeFromPtr(p capnp.Ptr) CustomReserved8 {
|
|
return CustomReserved8(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved8) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved8) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved8) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved8) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved8_List is a list of CustomReserved8.
|
|
type CustomReserved8_List = capnp.StructList[CustomReserved8]
|
|
|
|
// NewCustomReserved8 creates a new list of CustomReserved8.
|
|
func NewCustomReserved8_List(s *capnp.Segment, sz int32) (CustomReserved8_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved8](l), err
|
|
}
|
|
|
|
// CustomReserved8_Future is a wrapper for a CustomReserved8 promised by a client call.
|
|
type CustomReserved8_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved8_Future) Struct() (CustomReserved8, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved8(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved9 capnp.Struct
|
|
|
|
// CustomReserved9_TypeID is the unique identifier for the type CustomReserved9.
|
|
const CustomReserved9_TypeID = 0xa1680744031fdb2d
|
|
|
|
func NewCustomReserved9(s *capnp.Segment) (CustomReserved9, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved9(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved9(s *capnp.Segment) (CustomReserved9, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved9(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved9(msg *capnp.Message) (CustomReserved9, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved9(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved9) String() string {
|
|
str, _ := text.Marshal(0xa1680744031fdb2d, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved9) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved9) DecodeFromPtr(p capnp.Ptr) CustomReserved9 {
|
|
return CustomReserved9(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved9) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved9) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved9) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved9) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved9_List is a list of CustomReserved9.
|
|
type CustomReserved9_List = capnp.StructList[CustomReserved9]
|
|
|
|
// NewCustomReserved9 creates a new list of CustomReserved9.
|
|
func NewCustomReserved9_List(s *capnp.Segment, sz int32) (CustomReserved9_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved9](l), err
|
|
}
|
|
|
|
// CustomReserved9_Future is a wrapper for a CustomReserved9 promised by a client call.
|
|
type CustomReserved9_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved9_Future) Struct() (CustomReserved9, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved9(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved10 capnp.Struct
|
|
|
|
// CustomReserved10_TypeID is the unique identifier for the type CustomReserved10.
|
|
const CustomReserved10_TypeID = 0xcb9fd56c7057593a
|
|
|
|
func NewCustomReserved10(s *capnp.Segment) (CustomReserved10, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved10(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved10(s *capnp.Segment) (CustomReserved10, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved10(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved10(msg *capnp.Message) (CustomReserved10, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved10(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved10) String() string {
|
|
str, _ := text.Marshal(0xcb9fd56c7057593a, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved10) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved10) DecodeFromPtr(p capnp.Ptr) CustomReserved10 {
|
|
return CustomReserved10(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved10) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved10) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved10) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved10) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved10_List is a list of CustomReserved10.
|
|
type CustomReserved10_List = capnp.StructList[CustomReserved10]
|
|
|
|
// NewCustomReserved10 creates a new list of CustomReserved10.
|
|
func NewCustomReserved10_List(s *capnp.Segment, sz int32) (CustomReserved10_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved10](l), err
|
|
}
|
|
|
|
// CustomReserved10_Future is a wrapper for a CustomReserved10 promised by a client call.
|
|
type CustomReserved10_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved10_Future) Struct() (CustomReserved10, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved10(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved11 capnp.Struct
|
|
|
|
// CustomReserved11_TypeID is the unique identifier for the type CustomReserved11.
|
|
const CustomReserved11_TypeID = 0xc2243c65e0340384
|
|
|
|
func NewCustomReserved11(s *capnp.Segment) (CustomReserved11, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved11(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved11(s *capnp.Segment) (CustomReserved11, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved11(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved11(msg *capnp.Message) (CustomReserved11, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved11(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved11) String() string {
|
|
str, _ := text.Marshal(0xc2243c65e0340384, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved11) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved11) DecodeFromPtr(p capnp.Ptr) CustomReserved11 {
|
|
return CustomReserved11(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved11) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved11) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved11) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved11) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved11_List is a list of CustomReserved11.
|
|
type CustomReserved11_List = capnp.StructList[CustomReserved11]
|
|
|
|
// NewCustomReserved11 creates a new list of CustomReserved11.
|
|
func NewCustomReserved11_List(s *capnp.Segment, sz int32) (CustomReserved11_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved11](l), err
|
|
}
|
|
|
|
// CustomReserved11_Future is a wrapper for a CustomReserved11 promised by a client call.
|
|
type CustomReserved11_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved11_Future) Struct() (CustomReserved11, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved11(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved12 capnp.Struct
|
|
|
|
// CustomReserved12_TypeID is the unique identifier for the type CustomReserved12.
|
|
const CustomReserved12_TypeID = 0x9ccdc8676701b412
|
|
|
|
func NewCustomReserved12(s *capnp.Segment) (CustomReserved12, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved12(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved12(s *capnp.Segment) (CustomReserved12, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved12(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved12(msg *capnp.Message) (CustomReserved12, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved12(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved12) String() string {
|
|
str, _ := text.Marshal(0x9ccdc8676701b412, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved12) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved12) DecodeFromPtr(p capnp.Ptr) CustomReserved12 {
|
|
return CustomReserved12(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved12) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved12) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved12) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved12) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved12_List is a list of CustomReserved12.
|
|
type CustomReserved12_List = capnp.StructList[CustomReserved12]
|
|
|
|
// NewCustomReserved12 creates a new list of CustomReserved12.
|
|
func NewCustomReserved12_List(s *capnp.Segment, sz int32) (CustomReserved12_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved12](l), err
|
|
}
|
|
|
|
// CustomReserved12_Future is a wrapper for a CustomReserved12 promised by a client call.
|
|
type CustomReserved12_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved12_Future) Struct() (CustomReserved12, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved12(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved13 capnp.Struct
|
|
|
|
// CustomReserved13_TypeID is the unique identifier for the type CustomReserved13.
|
|
const CustomReserved13_TypeID = 0xcd96dafb67a082d0
|
|
|
|
func NewCustomReserved13(s *capnp.Segment) (CustomReserved13, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved13(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved13(s *capnp.Segment) (CustomReserved13, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved13(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved13(msg *capnp.Message) (CustomReserved13, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved13(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved13) String() string {
|
|
str, _ := text.Marshal(0xcd96dafb67a082d0, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved13) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved13) DecodeFromPtr(p capnp.Ptr) CustomReserved13 {
|
|
return CustomReserved13(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved13) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved13) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved13) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved13) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved13_List is a list of CustomReserved13.
|
|
type CustomReserved13_List = capnp.StructList[CustomReserved13]
|
|
|
|
// NewCustomReserved13 creates a new list of CustomReserved13.
|
|
func NewCustomReserved13_List(s *capnp.Segment, sz int32) (CustomReserved13_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved13](l), err
|
|
}
|
|
|
|
// CustomReserved13_Future is a wrapper for a CustomReserved13 promised by a client call.
|
|
type CustomReserved13_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved13_Future) Struct() (CustomReserved13, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved13(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved14 capnp.Struct
|
|
|
|
// CustomReserved14_TypeID is the unique identifier for the type CustomReserved14.
|
|
const CustomReserved14_TypeID = 0xb057204d7deadf3f
|
|
|
|
func NewCustomReserved14(s *capnp.Segment) (CustomReserved14, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved14(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved14(s *capnp.Segment) (CustomReserved14, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved14(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved14(msg *capnp.Message) (CustomReserved14, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved14(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved14) String() string {
|
|
str, _ := text.Marshal(0xb057204d7deadf3f, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved14) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved14) DecodeFromPtr(p capnp.Ptr) CustomReserved14 {
|
|
return CustomReserved14(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved14) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved14) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved14) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved14) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved14_List is a list of CustomReserved14.
|
|
type CustomReserved14_List = capnp.StructList[CustomReserved14]
|
|
|
|
// NewCustomReserved14 creates a new list of CustomReserved14.
|
|
func NewCustomReserved14_List(s *capnp.Segment, sz int32) (CustomReserved14_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved14](l), err
|
|
}
|
|
|
|
// CustomReserved14_Future is a wrapper for a CustomReserved14 promised by a client call.
|
|
type CustomReserved14_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved14_Future) Struct() (CustomReserved14, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved14(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved15 capnp.Struct
|
|
|
|
// CustomReserved15_TypeID is the unique identifier for the type CustomReserved15.
|
|
const CustomReserved15_TypeID = 0xbd443b539493bc68
|
|
|
|
func NewCustomReserved15(s *capnp.Segment) (CustomReserved15, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved15(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved15(s *capnp.Segment) (CustomReserved15, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved15(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved15(msg *capnp.Message) (CustomReserved15, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved15(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved15) String() string {
|
|
str, _ := text.Marshal(0xbd443b539493bc68, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved15) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved15) DecodeFromPtr(p capnp.Ptr) CustomReserved15 {
|
|
return CustomReserved15(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved15) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved15) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved15) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved15) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved15_List is a list of CustomReserved15.
|
|
type CustomReserved15_List = capnp.StructList[CustomReserved15]
|
|
|
|
// NewCustomReserved15 creates a new list of CustomReserved15.
|
|
func NewCustomReserved15_List(s *capnp.Segment, sz int32) (CustomReserved15_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved15](l), err
|
|
}
|
|
|
|
// CustomReserved15_Future is a wrapper for a CustomReserved15 promised by a client call.
|
|
type CustomReserved15_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved15_Future) Struct() (CustomReserved15, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved15(p.Struct()), err
|
|
}
|
|
|
|
type CustomReserved16 capnp.Struct
|
|
|
|
// CustomReserved16_TypeID is the unique identifier for the type CustomReserved16.
|
|
const CustomReserved16_TypeID = 0xfc6241ed8877b611
|
|
|
|
func NewCustomReserved16(s *capnp.Segment) (CustomReserved16, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved16(st), err
|
|
}
|
|
|
|
func NewRootCustomReserved16(s *capnp.Segment) (CustomReserved16, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0})
|
|
return CustomReserved16(st), err
|
|
}
|
|
|
|
func ReadRootCustomReserved16(msg *capnp.Message) (CustomReserved16, error) {
|
|
root, err := msg.Root()
|
|
return CustomReserved16(root.Struct()), err
|
|
}
|
|
|
|
func (s CustomReserved16) String() string {
|
|
str, _ := text.Marshal(0xfc6241ed8877b611, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s CustomReserved16) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (CustomReserved16) DecodeFromPtr(p capnp.Ptr) CustomReserved16 {
|
|
return CustomReserved16(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s CustomReserved16) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s CustomReserved16) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s CustomReserved16) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s CustomReserved16) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
|
|
// CustomReserved16_List is a list of CustomReserved16.
|
|
type CustomReserved16_List = capnp.StructList[CustomReserved16]
|
|
|
|
// NewCustomReserved16 creates a new list of CustomReserved16.
|
|
func NewCustomReserved16_List(s *capnp.Segment, sz int32) (CustomReserved16_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 0, PointerCount: 0}, sz)
|
|
return capnp.StructList[CustomReserved16](l), err
|
|
}
|
|
|
|
// CustomReserved16_Future is a wrapper for a CustomReserved16 promised by a client call.
|
|
type CustomReserved16_Future struct{ *capnp.Future }
|
|
|
|
func (f CustomReserved16_Future) Struct() (CustomReserved16, error) {
|
|
p, err := f.Future.Ptr()
|
|
return CustomReserved16(p.Struct()), err
|
|
}
|
|
|
|
type MapdDownloadLocationDetails capnp.Struct
|
|
|
|
// MapdDownloadLocationDetails_TypeID is the unique identifier for the type MapdDownloadLocationDetails.
|
|
const MapdDownloadLocationDetails_TypeID = 0xff889853e7b0987f
|
|
|
|
func NewMapdDownloadLocationDetails(s *capnp.Segment) (MapdDownloadLocationDetails, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
|
|
return MapdDownloadLocationDetails(st), err
|
|
}
|
|
|
|
func NewRootMapdDownloadLocationDetails(s *capnp.Segment) (MapdDownloadLocationDetails, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1})
|
|
return MapdDownloadLocationDetails(st), err
|
|
}
|
|
|
|
func ReadRootMapdDownloadLocationDetails(msg *capnp.Message) (MapdDownloadLocationDetails, error) {
|
|
root, err := msg.Root()
|
|
return MapdDownloadLocationDetails(root.Struct()), err
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) String() string {
|
|
str, _ := text.Marshal(0xff889853e7b0987f, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (MapdDownloadLocationDetails) DecodeFromPtr(p capnp.Ptr) MapdDownloadLocationDetails {
|
|
return MapdDownloadLocationDetails(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s MapdDownloadLocationDetails) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s MapdDownloadLocationDetails) Location() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) HasLocation() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) LocationBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) SetLocation(v string) error {
|
|
return capnp.Struct(s).SetText(0, v)
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) TotalFiles() uint32 {
|
|
return capnp.Struct(s).Uint32(0)
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) SetTotalFiles(v uint32) {
|
|
capnp.Struct(s).SetUint32(0, v)
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) DownloadedFiles() uint32 {
|
|
return capnp.Struct(s).Uint32(4)
|
|
}
|
|
|
|
func (s MapdDownloadLocationDetails) SetDownloadedFiles(v uint32) {
|
|
capnp.Struct(s).SetUint32(4, v)
|
|
}
|
|
|
|
// MapdDownloadLocationDetails_List is a list of MapdDownloadLocationDetails.
|
|
type MapdDownloadLocationDetails_List = capnp.StructList[MapdDownloadLocationDetails]
|
|
|
|
// NewMapdDownloadLocationDetails creates a new list of MapdDownloadLocationDetails.
|
|
func NewMapdDownloadLocationDetails_List(s *capnp.Segment, sz int32) (MapdDownloadLocationDetails_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 1}, sz)
|
|
return capnp.StructList[MapdDownloadLocationDetails](l), err
|
|
}
|
|
|
|
// MapdDownloadLocationDetails_Future is a wrapper for a MapdDownloadLocationDetails promised by a client call.
|
|
type MapdDownloadLocationDetails_Future struct{ *capnp.Future }
|
|
|
|
func (f MapdDownloadLocationDetails_Future) Struct() (MapdDownloadLocationDetails, error) {
|
|
p, err := f.Future.Ptr()
|
|
return MapdDownloadLocationDetails(p.Struct()), err
|
|
}
|
|
|
|
type MapdDownloadProgress capnp.Struct
|
|
|
|
// MapdDownloadProgress_TypeID is the unique identifier for the type MapdDownloadProgress.
|
|
const MapdDownloadProgress_TypeID = 0xfaa35dcac85073a2
|
|
|
|
func NewMapdDownloadProgress(s *capnp.Segment) (MapdDownloadProgress, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 2})
|
|
return MapdDownloadProgress(st), err
|
|
}
|
|
|
|
func NewRootMapdDownloadProgress(s *capnp.Segment) (MapdDownloadProgress, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 2})
|
|
return MapdDownloadProgress(st), err
|
|
}
|
|
|
|
func ReadRootMapdDownloadProgress(msg *capnp.Message) (MapdDownloadProgress, error) {
|
|
root, err := msg.Root()
|
|
return MapdDownloadProgress(root.Struct()), err
|
|
}
|
|
|
|
func (s MapdDownloadProgress) String() string {
|
|
str, _ := text.Marshal(0xfaa35dcac85073a2, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s MapdDownloadProgress) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (MapdDownloadProgress) DecodeFromPtr(p capnp.Ptr) MapdDownloadProgress {
|
|
return MapdDownloadProgress(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s MapdDownloadProgress) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s MapdDownloadProgress) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s MapdDownloadProgress) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s MapdDownloadProgress) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s MapdDownloadProgress) Active() bool {
|
|
return capnp.Struct(s).Bit(0)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) SetActive(v bool) {
|
|
capnp.Struct(s).SetBit(0, v)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) Cancelled() bool {
|
|
return capnp.Struct(s).Bit(1)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) SetCancelled(v bool) {
|
|
capnp.Struct(s).SetBit(1, v)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) TotalFiles() uint32 {
|
|
return capnp.Struct(s).Uint32(4)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) SetTotalFiles(v uint32) {
|
|
capnp.Struct(s).SetUint32(4, v)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) DownloadedFiles() uint32 {
|
|
return capnp.Struct(s).Uint32(8)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) SetDownloadedFiles(v uint32) {
|
|
capnp.Struct(s).SetUint32(8, v)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) Locations() (capnp.TextList, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return capnp.TextList(p.List()), err
|
|
}
|
|
|
|
func (s MapdDownloadProgress) HasLocations() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) SetLocations(v capnp.TextList) error {
|
|
return capnp.Struct(s).SetPtr(0, v.ToPtr())
|
|
}
|
|
|
|
// NewLocations sets the locations field to a newly
|
|
// allocated capnp.TextList, preferring placement in s's segment.
|
|
func (s MapdDownloadProgress) NewLocations(n int32) (capnp.TextList, error) {
|
|
l, err := capnp.NewTextList(capnp.Struct(s).Segment(), n)
|
|
if err != nil {
|
|
return capnp.TextList{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(0, l.ToPtr())
|
|
return l, err
|
|
}
|
|
func (s MapdDownloadProgress) LocationDetails() (MapdDownloadLocationDetails_List, error) {
|
|
p, err := capnp.Struct(s).Ptr(1)
|
|
return MapdDownloadLocationDetails_List(p.List()), err
|
|
}
|
|
|
|
func (s MapdDownloadProgress) HasLocationDetails() bool {
|
|
return capnp.Struct(s).HasPtr(1)
|
|
}
|
|
|
|
func (s MapdDownloadProgress) SetLocationDetails(v MapdDownloadLocationDetails_List) error {
|
|
return capnp.Struct(s).SetPtr(1, v.ToPtr())
|
|
}
|
|
|
|
// NewLocationDetails sets the locationDetails field to a newly
|
|
// allocated MapdDownloadLocationDetails_List, preferring placement in s's segment.
|
|
func (s MapdDownloadProgress) NewLocationDetails(n int32) (MapdDownloadLocationDetails_List, error) {
|
|
l, err := NewMapdDownloadLocationDetails_List(capnp.Struct(s).Segment(), n)
|
|
if err != nil {
|
|
return MapdDownloadLocationDetails_List{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(1, l.ToPtr())
|
|
return l, err
|
|
}
|
|
|
|
// MapdDownloadProgress_List is a list of MapdDownloadProgress.
|
|
type MapdDownloadProgress_List = capnp.StructList[MapdDownloadProgress]
|
|
|
|
// NewMapdDownloadProgress creates a new list of MapdDownloadProgress.
|
|
func NewMapdDownloadProgress_List(s *capnp.Segment, sz int32) (MapdDownloadProgress_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 2}, sz)
|
|
return capnp.StructList[MapdDownloadProgress](l), err
|
|
}
|
|
|
|
// MapdDownloadProgress_Future is a wrapper for a MapdDownloadProgress promised by a client call.
|
|
type MapdDownloadProgress_Future struct{ *capnp.Future }
|
|
|
|
func (f MapdDownloadProgress_Future) Struct() (MapdDownloadProgress, error) {
|
|
p, err := f.Future.Ptr()
|
|
return MapdDownloadProgress(p.Struct()), err
|
|
}
|
|
|
|
type MapdPathPoint capnp.Struct
|
|
|
|
// MapdPathPoint_TypeID is the unique identifier for the type MapdPathPoint.
|
|
const MapdPathPoint_TypeID = 0xd6f78acca1bc3939
|
|
|
|
func NewMapdPathPoint(s *capnp.Segment) (MapdPathPoint, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 24, PointerCount: 0})
|
|
return MapdPathPoint(st), err
|
|
}
|
|
|
|
func NewRootMapdPathPoint(s *capnp.Segment) (MapdPathPoint, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 24, PointerCount: 0})
|
|
return MapdPathPoint(st), err
|
|
}
|
|
|
|
func ReadRootMapdPathPoint(msg *capnp.Message) (MapdPathPoint, error) {
|
|
root, err := msg.Root()
|
|
return MapdPathPoint(root.Struct()), err
|
|
}
|
|
|
|
func (s MapdPathPoint) String() string {
|
|
str, _ := text.Marshal(0xd6f78acca1bc3939, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s MapdPathPoint) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (MapdPathPoint) DecodeFromPtr(p capnp.Ptr) MapdPathPoint {
|
|
return MapdPathPoint(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s MapdPathPoint) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s MapdPathPoint) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s MapdPathPoint) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s MapdPathPoint) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s MapdPathPoint) Latitude() float64 {
|
|
return math.Float64frombits(capnp.Struct(s).Uint64(0))
|
|
}
|
|
|
|
func (s MapdPathPoint) SetLatitude(v float64) {
|
|
capnp.Struct(s).SetUint64(0, math.Float64bits(v))
|
|
}
|
|
|
|
func (s MapdPathPoint) Longitude() float64 {
|
|
return math.Float64frombits(capnp.Struct(s).Uint64(8))
|
|
}
|
|
|
|
func (s MapdPathPoint) SetLongitude(v float64) {
|
|
capnp.Struct(s).SetUint64(8, math.Float64bits(v))
|
|
}
|
|
|
|
func (s MapdPathPoint) Curvature() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(16))
|
|
}
|
|
|
|
func (s MapdPathPoint) SetCurvature(v float32) {
|
|
capnp.Struct(s).SetUint32(16, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdPathPoint) TargetVelocity() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(20))
|
|
}
|
|
|
|
func (s MapdPathPoint) SetTargetVelocity(v float32) {
|
|
capnp.Struct(s).SetUint32(20, math.Float32bits(v))
|
|
}
|
|
|
|
// MapdPathPoint_List is a list of MapdPathPoint.
|
|
type MapdPathPoint_List = capnp.StructList[MapdPathPoint]
|
|
|
|
// NewMapdPathPoint creates a new list of MapdPathPoint.
|
|
func NewMapdPathPoint_List(s *capnp.Segment, sz int32) (MapdPathPoint_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 24, PointerCount: 0}, sz)
|
|
return capnp.StructList[MapdPathPoint](l), err
|
|
}
|
|
|
|
// MapdPathPoint_Future is a wrapper for a MapdPathPoint promised by a client call.
|
|
type MapdPathPoint_Future struct{ *capnp.Future }
|
|
|
|
func (f MapdPathPoint_Future) Struct() (MapdPathPoint, error) {
|
|
p, err := f.Future.Ptr()
|
|
return MapdPathPoint(p.Struct()), err
|
|
}
|
|
|
|
type MapdPosition capnp.Struct
|
|
|
|
// MapdPosition_TypeID is the unique identifier for the type MapdPosition.
|
|
const MapdPosition_TypeID = 0xde9705979aca8339
|
|
|
|
func NewMapdPosition(s *capnp.Segment) (MapdPosition, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 0})
|
|
return MapdPosition(st), err
|
|
}
|
|
|
|
func NewRootMapdPosition(s *capnp.Segment) (MapdPosition, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 16, PointerCount: 0})
|
|
return MapdPosition(st), err
|
|
}
|
|
|
|
func ReadRootMapdPosition(msg *capnp.Message) (MapdPosition, error) {
|
|
root, err := msg.Root()
|
|
return MapdPosition(root.Struct()), err
|
|
}
|
|
|
|
func (s MapdPosition) String() string {
|
|
str, _ := text.Marshal(0xde9705979aca8339, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s MapdPosition) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (MapdPosition) DecodeFromPtr(p capnp.Ptr) MapdPosition {
|
|
return MapdPosition(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s MapdPosition) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s MapdPosition) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s MapdPosition) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s MapdPosition) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s MapdPosition) Latitude() float64 {
|
|
return math.Float64frombits(capnp.Struct(s).Uint64(0))
|
|
}
|
|
|
|
func (s MapdPosition) SetLatitude(v float64) {
|
|
capnp.Struct(s).SetUint64(0, math.Float64bits(v))
|
|
}
|
|
|
|
func (s MapdPosition) Longitude() float64 {
|
|
return math.Float64frombits(capnp.Struct(s).Uint64(8))
|
|
}
|
|
|
|
func (s MapdPosition) SetLongitude(v float64) {
|
|
capnp.Struct(s).SetUint64(8, math.Float64bits(v))
|
|
}
|
|
|
|
// MapdPosition_List is a list of MapdPosition.
|
|
type MapdPosition_List = capnp.StructList[MapdPosition]
|
|
|
|
// NewMapdPosition creates a new list of MapdPosition.
|
|
func NewMapdPosition_List(s *capnp.Segment, sz int32) (MapdPosition_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 16, PointerCount: 0}, sz)
|
|
return capnp.StructList[MapdPosition](l), err
|
|
}
|
|
|
|
// MapdPosition_Future is a wrapper for a MapdPosition promised by a client call.
|
|
type MapdPosition_Future struct{ *capnp.Future }
|
|
|
|
func (f MapdPosition_Future) Struct() (MapdPosition, error) {
|
|
p, err := f.Future.Ptr()
|
|
return MapdPosition(p.Struct()), err
|
|
}
|
|
|
|
type MapdExtendedOut capnp.Struct
|
|
|
|
// MapdExtendedOut_TypeID is the unique identifier for the type MapdExtendedOut.
|
|
const MapdExtendedOut_TypeID = 0xa30662f84033036c
|
|
|
|
func NewMapdExtendedOut(s *capnp.Segment) (MapdExtendedOut, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4})
|
|
return MapdExtendedOut(st), err
|
|
}
|
|
|
|
func NewRootMapdExtendedOut(s *capnp.Segment) (MapdExtendedOut, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4})
|
|
return MapdExtendedOut(st), err
|
|
}
|
|
|
|
func ReadRootMapdExtendedOut(msg *capnp.Message) (MapdExtendedOut, error) {
|
|
root, err := msg.Root()
|
|
return MapdExtendedOut(root.Struct()), err
|
|
}
|
|
|
|
func (s MapdExtendedOut) String() string {
|
|
str, _ := text.Marshal(0xa30662f84033036c, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s MapdExtendedOut) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (MapdExtendedOut) DecodeFromPtr(p capnp.Ptr) MapdExtendedOut {
|
|
return MapdExtendedOut(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s MapdExtendedOut) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s MapdExtendedOut) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s MapdExtendedOut) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s MapdExtendedOut) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s MapdExtendedOut) DownloadProgress() (MapdDownloadProgress, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return MapdDownloadProgress(p.Struct()), err
|
|
}
|
|
|
|
func (s MapdExtendedOut) HasDownloadProgress() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s MapdExtendedOut) SetDownloadProgress(v MapdDownloadProgress) error {
|
|
return capnp.Struct(s).SetPtr(0, capnp.Struct(v).ToPtr())
|
|
}
|
|
|
|
// NewDownloadProgress sets the downloadProgress field to a newly
|
|
// allocated MapdDownloadProgress struct, preferring placement in s's segment.
|
|
func (s MapdExtendedOut) NewDownloadProgress() (MapdDownloadProgress, error) {
|
|
ss, err := NewMapdDownloadProgress(capnp.Struct(s).Segment())
|
|
if err != nil {
|
|
return MapdDownloadProgress{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(0, capnp.Struct(ss).ToPtr())
|
|
return ss, err
|
|
}
|
|
|
|
func (s MapdExtendedOut) Settings() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(1)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdExtendedOut) HasSettings() bool {
|
|
return capnp.Struct(s).HasPtr(1)
|
|
}
|
|
|
|
func (s MapdExtendedOut) SettingsBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(1)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdExtendedOut) SetSettings(v string) error {
|
|
return capnp.Struct(s).SetText(1, v)
|
|
}
|
|
|
|
func (s MapdExtendedOut) Path() (MapdPathPoint_List, error) {
|
|
p, err := capnp.Struct(s).Ptr(2)
|
|
return MapdPathPoint_List(p.List()), err
|
|
}
|
|
|
|
func (s MapdExtendedOut) HasPath() bool {
|
|
return capnp.Struct(s).HasPtr(2)
|
|
}
|
|
|
|
func (s MapdExtendedOut) SetPath(v MapdPathPoint_List) error {
|
|
return capnp.Struct(s).SetPtr(2, v.ToPtr())
|
|
}
|
|
|
|
// NewPath sets the path field to a newly
|
|
// allocated MapdPathPoint_List, preferring placement in s's segment.
|
|
func (s MapdExtendedOut) NewPath(n int32) (MapdPathPoint_List, error) {
|
|
l, err := NewMapdPathPoint_List(capnp.Struct(s).Segment(), n)
|
|
if err != nil {
|
|
return MapdPathPoint_List{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(2, l.ToPtr())
|
|
return l, err
|
|
}
|
|
func (s MapdExtendedOut) Position() (MapdPosition, error) {
|
|
p, err := capnp.Struct(s).Ptr(3)
|
|
return MapdPosition(p.Struct()), err
|
|
}
|
|
|
|
func (s MapdExtendedOut) HasPosition() bool {
|
|
return capnp.Struct(s).HasPtr(3)
|
|
}
|
|
|
|
func (s MapdExtendedOut) SetPosition(v MapdPosition) error {
|
|
return capnp.Struct(s).SetPtr(3, capnp.Struct(v).ToPtr())
|
|
}
|
|
|
|
// NewPosition sets the position field to a newly
|
|
// allocated MapdPosition struct, preferring placement in s's segment.
|
|
func (s MapdExtendedOut) NewPosition() (MapdPosition, error) {
|
|
ss, err := NewMapdPosition(capnp.Struct(s).Segment())
|
|
if err != nil {
|
|
return MapdPosition{}, err
|
|
}
|
|
err = capnp.Struct(s).SetPtr(3, capnp.Struct(ss).ToPtr())
|
|
return ss, err
|
|
}
|
|
|
|
func (s MapdExtendedOut) LoopRateAverage() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(0))
|
|
}
|
|
|
|
func (s MapdExtendedOut) SetLoopRateAverage(v float32) {
|
|
capnp.Struct(s).SetUint32(0, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdExtendedOut) LoopRateMin() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(4))
|
|
}
|
|
|
|
func (s MapdExtendedOut) SetLoopRateMin(v float32) {
|
|
capnp.Struct(s).SetUint32(4, math.Float32bits(v))
|
|
}
|
|
|
|
// MapdExtendedOut_List is a list of MapdExtendedOut.
|
|
type MapdExtendedOut_List = capnp.StructList[MapdExtendedOut]
|
|
|
|
// NewMapdExtendedOut creates a new list of MapdExtendedOut.
|
|
func NewMapdExtendedOut_List(s *capnp.Segment, sz int32) (MapdExtendedOut_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 4}, sz)
|
|
return capnp.StructList[MapdExtendedOut](l), err
|
|
}
|
|
|
|
// MapdExtendedOut_Future is a wrapper for a MapdExtendedOut promised by a client call.
|
|
type MapdExtendedOut_Future struct{ *capnp.Future }
|
|
|
|
func (f MapdExtendedOut_Future) Struct() (MapdExtendedOut, error) {
|
|
p, err := f.Future.Ptr()
|
|
return MapdExtendedOut(p.Struct()), err
|
|
}
|
|
func (p MapdExtendedOut_Future) DownloadProgress() MapdDownloadProgress_Future {
|
|
return MapdDownloadProgress_Future{Future: p.Future.Field(0, nil)}
|
|
}
|
|
func (p MapdExtendedOut_Future) Position() MapdPosition_Future {
|
|
return MapdPosition_Future{Future: p.Future.Field(3, nil)}
|
|
}
|
|
|
|
type MapdInputType uint16
|
|
|
|
// MapdInputType_TypeID is the unique identifier for the type MapdInputType.
|
|
const MapdInputType_TypeID = 0x859f26628fc24358
|
|
|
|
// Values of MapdInputType.
|
|
const (
|
|
MapdInputType_download MapdInputType = 0
|
|
MapdInputType_reloadSettings MapdInputType = 9
|
|
MapdInputType_saveSettings MapdInputType = 10
|
|
MapdInputType_loadDefaultSettings MapdInputType = 21
|
|
MapdInputType_loadRecommendedSettings MapdInputType = 22
|
|
MapdInputType_loadPersistentSettings MapdInputType = 26
|
|
MapdInputType_cancelDownload MapdInputType = 27
|
|
MapdInputType_setJsonPathFloat MapdInputType = 43
|
|
MapdInputType_setJsonPathText MapdInputType = 44
|
|
MapdInputType_setJsonPathBool MapdInputType = 45
|
|
MapdInputType_acceptSpeedLimit MapdInputType = 34
|
|
MapdInputType_setLogLevel MapdInputType = 6
|
|
MapdInputType_setLogSource MapdInputType = 29
|
|
MapdInputType_setLogJson MapdInputType = 28
|
|
MapdInputType_setTargetLateralAccel MapdInputType = 1
|
|
MapdInputType_setSpeedLimitOffset MapdInputType = 2
|
|
MapdInputType_setSpeedLimitControl MapdInputType = 3
|
|
MapdInputType_setMapCurveSpeedControl MapdInputType = 4
|
|
MapdInputType_setVisionCurveSpeedControl MapdInputType = 5
|
|
MapdInputType_setVisionCurveTargetLatA MapdInputType = 7
|
|
MapdInputType_setVisionCurveMinTargetV MapdInputType = 8
|
|
MapdInputType_setEnableSpeed MapdInputType = 11
|
|
MapdInputType_setVisionCurveUseEnableSpeed MapdInputType = 12
|
|
MapdInputType_setMapCurveUseEnableSpeed MapdInputType = 13
|
|
MapdInputType_setSpeedLimitUseEnableSpeed MapdInputType = 14
|
|
MapdInputType_setHoldLastSeenSpeedLimit MapdInputType = 15
|
|
MapdInputType_setTargetSpeedJerk MapdInputType = 16
|
|
MapdInputType_setTargetSpeedAccel MapdInputType = 17
|
|
MapdInputType_setTargetSpeedTimeOffset MapdInputType = 18
|
|
MapdInputType_setDefaultLaneWidth MapdInputType = 19
|
|
MapdInputType_setMapCurveTargetLatA MapdInputType = 20
|
|
MapdInputType_setSlowDownForNextSpeedLimit MapdInputType = 23
|
|
MapdInputType_setSpeedUpForNextSpeedLimit MapdInputType = 24
|
|
MapdInputType_setHoldSpeedLimitWhileChangingSetSpeed MapdInputType = 25
|
|
MapdInputType_setExternalSpeedLimitControl MapdInputType = 30
|
|
MapdInputType_setExternalSpeedLimit MapdInputType = 31
|
|
MapdInputType_setSpeedLimitPriority MapdInputType = 32
|
|
MapdInputType_setSpeedLimitChangeRequiresAccept MapdInputType = 33
|
|
MapdInputType_setPressGasToAcceptSpeedLimit MapdInputType = 35
|
|
MapdInputType_setAdjustSetSpeedToAcceptSpeedLimit MapdInputType = 36
|
|
MapdInputType_setAcceptSpeedLimitTimeout MapdInputType = 37
|
|
MapdInputType_setPressGasToOverrideSpeedLimit MapdInputType = 38
|
|
MapdInputType_setConditionalSpeedLimitControl MapdInputType = 39
|
|
MapdInputType_setShadowCarState MapdInputType = 40
|
|
MapdInputType_setShadowModelV2 MapdInputType = 41
|
|
MapdInputType_setShadowGpsLocation MapdInputType = 42
|
|
MapdInputType_setShadowGpsLocationExternal MapdInputType = 46
|
|
)
|
|
|
|
// String returns the enum's constant name.
|
|
func (c MapdInputType) String() string {
|
|
switch c {
|
|
case MapdInputType_download:
|
|
return "download"
|
|
case MapdInputType_reloadSettings:
|
|
return "reloadSettings"
|
|
case MapdInputType_saveSettings:
|
|
return "saveSettings"
|
|
case MapdInputType_loadDefaultSettings:
|
|
return "loadDefaultSettings"
|
|
case MapdInputType_loadRecommendedSettings:
|
|
return "loadRecommendedSettings"
|
|
case MapdInputType_loadPersistentSettings:
|
|
return "loadPersistentSettings"
|
|
case MapdInputType_cancelDownload:
|
|
return "cancelDownload"
|
|
case MapdInputType_setJsonPathFloat:
|
|
return "setJsonPathFloat"
|
|
case MapdInputType_setJsonPathText:
|
|
return "setJsonPathText"
|
|
case MapdInputType_setJsonPathBool:
|
|
return "setJsonPathBool"
|
|
case MapdInputType_acceptSpeedLimit:
|
|
return "acceptSpeedLimit"
|
|
case MapdInputType_setLogLevel:
|
|
return "setLogLevel"
|
|
case MapdInputType_setLogSource:
|
|
return "setLogSource"
|
|
case MapdInputType_setLogJson:
|
|
return "setLogJson"
|
|
case MapdInputType_setTargetLateralAccel:
|
|
return "setTargetLateralAccel"
|
|
case MapdInputType_setSpeedLimitOffset:
|
|
return "setSpeedLimitOffset"
|
|
case MapdInputType_setSpeedLimitControl:
|
|
return "setSpeedLimitControl"
|
|
case MapdInputType_setMapCurveSpeedControl:
|
|
return "setMapCurveSpeedControl"
|
|
case MapdInputType_setVisionCurveSpeedControl:
|
|
return "setVisionCurveSpeedControl"
|
|
case MapdInputType_setVisionCurveTargetLatA:
|
|
return "setVisionCurveTargetLatA"
|
|
case MapdInputType_setVisionCurveMinTargetV:
|
|
return "setVisionCurveMinTargetV"
|
|
case MapdInputType_setEnableSpeed:
|
|
return "setEnableSpeed"
|
|
case MapdInputType_setVisionCurveUseEnableSpeed:
|
|
return "setVisionCurveUseEnableSpeed"
|
|
case MapdInputType_setMapCurveUseEnableSpeed:
|
|
return "setMapCurveUseEnableSpeed"
|
|
case MapdInputType_setSpeedLimitUseEnableSpeed:
|
|
return "setSpeedLimitUseEnableSpeed"
|
|
case MapdInputType_setHoldLastSeenSpeedLimit:
|
|
return "setHoldLastSeenSpeedLimit"
|
|
case MapdInputType_setTargetSpeedJerk:
|
|
return "setTargetSpeedJerk"
|
|
case MapdInputType_setTargetSpeedAccel:
|
|
return "setTargetSpeedAccel"
|
|
case MapdInputType_setTargetSpeedTimeOffset:
|
|
return "setTargetSpeedTimeOffset"
|
|
case MapdInputType_setDefaultLaneWidth:
|
|
return "setDefaultLaneWidth"
|
|
case MapdInputType_setMapCurveTargetLatA:
|
|
return "setMapCurveTargetLatA"
|
|
case MapdInputType_setSlowDownForNextSpeedLimit:
|
|
return "setSlowDownForNextSpeedLimit"
|
|
case MapdInputType_setSpeedUpForNextSpeedLimit:
|
|
return "setSpeedUpForNextSpeedLimit"
|
|
case MapdInputType_setHoldSpeedLimitWhileChangingSetSpeed:
|
|
return "setHoldSpeedLimitWhileChangingSetSpeed"
|
|
case MapdInputType_setExternalSpeedLimitControl:
|
|
return "setExternalSpeedLimitControl"
|
|
case MapdInputType_setExternalSpeedLimit:
|
|
return "setExternalSpeedLimit"
|
|
case MapdInputType_setSpeedLimitPriority:
|
|
return "setSpeedLimitPriority"
|
|
case MapdInputType_setSpeedLimitChangeRequiresAccept:
|
|
return "setSpeedLimitChangeRequiresAccept"
|
|
case MapdInputType_setPressGasToAcceptSpeedLimit:
|
|
return "setPressGasToAcceptSpeedLimit"
|
|
case MapdInputType_setAdjustSetSpeedToAcceptSpeedLimit:
|
|
return "setAdjustSetSpeedToAcceptSpeedLimit"
|
|
case MapdInputType_setAcceptSpeedLimitTimeout:
|
|
return "setAcceptSpeedLimitTimeout"
|
|
case MapdInputType_setPressGasToOverrideSpeedLimit:
|
|
return "setPressGasToOverrideSpeedLimit"
|
|
case MapdInputType_setConditionalSpeedLimitControl:
|
|
return "setConditionalSpeedLimitControl"
|
|
case MapdInputType_setShadowCarState:
|
|
return "setShadowCarState"
|
|
case MapdInputType_setShadowModelV2:
|
|
return "setShadowModelV2"
|
|
case MapdInputType_setShadowGpsLocation:
|
|
return "setShadowGpsLocation"
|
|
case MapdInputType_setShadowGpsLocationExternal:
|
|
return "setShadowGpsLocationExternal"
|
|
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
// MapdInputTypeFromString returns the enum value with a name,
|
|
// or the zero value if there's no such value.
|
|
func MapdInputTypeFromString(c string) MapdInputType {
|
|
switch c {
|
|
case "download":
|
|
return MapdInputType_download
|
|
case "reloadSettings":
|
|
return MapdInputType_reloadSettings
|
|
case "saveSettings":
|
|
return MapdInputType_saveSettings
|
|
case "loadDefaultSettings":
|
|
return MapdInputType_loadDefaultSettings
|
|
case "loadRecommendedSettings":
|
|
return MapdInputType_loadRecommendedSettings
|
|
case "loadPersistentSettings":
|
|
return MapdInputType_loadPersistentSettings
|
|
case "cancelDownload":
|
|
return MapdInputType_cancelDownload
|
|
case "setJsonPathFloat":
|
|
return MapdInputType_setJsonPathFloat
|
|
case "setJsonPathText":
|
|
return MapdInputType_setJsonPathText
|
|
case "setJsonPathBool":
|
|
return MapdInputType_setJsonPathBool
|
|
case "acceptSpeedLimit":
|
|
return MapdInputType_acceptSpeedLimit
|
|
case "setLogLevel":
|
|
return MapdInputType_setLogLevel
|
|
case "setLogSource":
|
|
return MapdInputType_setLogSource
|
|
case "setLogJson":
|
|
return MapdInputType_setLogJson
|
|
case "setTargetLateralAccel":
|
|
return MapdInputType_setTargetLateralAccel
|
|
case "setSpeedLimitOffset":
|
|
return MapdInputType_setSpeedLimitOffset
|
|
case "setSpeedLimitControl":
|
|
return MapdInputType_setSpeedLimitControl
|
|
case "setMapCurveSpeedControl":
|
|
return MapdInputType_setMapCurveSpeedControl
|
|
case "setVisionCurveSpeedControl":
|
|
return MapdInputType_setVisionCurveSpeedControl
|
|
case "setVisionCurveTargetLatA":
|
|
return MapdInputType_setVisionCurveTargetLatA
|
|
case "setVisionCurveMinTargetV":
|
|
return MapdInputType_setVisionCurveMinTargetV
|
|
case "setEnableSpeed":
|
|
return MapdInputType_setEnableSpeed
|
|
case "setVisionCurveUseEnableSpeed":
|
|
return MapdInputType_setVisionCurveUseEnableSpeed
|
|
case "setMapCurveUseEnableSpeed":
|
|
return MapdInputType_setMapCurveUseEnableSpeed
|
|
case "setSpeedLimitUseEnableSpeed":
|
|
return MapdInputType_setSpeedLimitUseEnableSpeed
|
|
case "setHoldLastSeenSpeedLimit":
|
|
return MapdInputType_setHoldLastSeenSpeedLimit
|
|
case "setTargetSpeedJerk":
|
|
return MapdInputType_setTargetSpeedJerk
|
|
case "setTargetSpeedAccel":
|
|
return MapdInputType_setTargetSpeedAccel
|
|
case "setTargetSpeedTimeOffset":
|
|
return MapdInputType_setTargetSpeedTimeOffset
|
|
case "setDefaultLaneWidth":
|
|
return MapdInputType_setDefaultLaneWidth
|
|
case "setMapCurveTargetLatA":
|
|
return MapdInputType_setMapCurveTargetLatA
|
|
case "setSlowDownForNextSpeedLimit":
|
|
return MapdInputType_setSlowDownForNextSpeedLimit
|
|
case "setSpeedUpForNextSpeedLimit":
|
|
return MapdInputType_setSpeedUpForNextSpeedLimit
|
|
case "setHoldSpeedLimitWhileChangingSetSpeed":
|
|
return MapdInputType_setHoldSpeedLimitWhileChangingSetSpeed
|
|
case "setExternalSpeedLimitControl":
|
|
return MapdInputType_setExternalSpeedLimitControl
|
|
case "setExternalSpeedLimit":
|
|
return MapdInputType_setExternalSpeedLimit
|
|
case "setSpeedLimitPriority":
|
|
return MapdInputType_setSpeedLimitPriority
|
|
case "setSpeedLimitChangeRequiresAccept":
|
|
return MapdInputType_setSpeedLimitChangeRequiresAccept
|
|
case "setPressGasToAcceptSpeedLimit":
|
|
return MapdInputType_setPressGasToAcceptSpeedLimit
|
|
case "setAdjustSetSpeedToAcceptSpeedLimit":
|
|
return MapdInputType_setAdjustSetSpeedToAcceptSpeedLimit
|
|
case "setAcceptSpeedLimitTimeout":
|
|
return MapdInputType_setAcceptSpeedLimitTimeout
|
|
case "setPressGasToOverrideSpeedLimit":
|
|
return MapdInputType_setPressGasToOverrideSpeedLimit
|
|
case "setConditionalSpeedLimitControl":
|
|
return MapdInputType_setConditionalSpeedLimitControl
|
|
case "setShadowCarState":
|
|
return MapdInputType_setShadowCarState
|
|
case "setShadowModelV2":
|
|
return MapdInputType_setShadowModelV2
|
|
case "setShadowGpsLocation":
|
|
return MapdInputType_setShadowGpsLocation
|
|
case "setShadowGpsLocationExternal":
|
|
return MapdInputType_setShadowGpsLocationExternal
|
|
|
|
default:
|
|
return 0
|
|
}
|
|
}
|
|
|
|
type MapdInputType_List = capnp.EnumList[MapdInputType]
|
|
|
|
func NewMapdInputType_List(s *capnp.Segment, sz int32) (MapdInputType_List, error) {
|
|
return capnp.NewEnumList[MapdInputType](s, sz)
|
|
}
|
|
|
|
type WaySelectionType uint16
|
|
|
|
// WaySelectionType_TypeID is the unique identifier for the type WaySelectionType.
|
|
const WaySelectionType_TypeID = 0xfa3e5ce74e25e82a
|
|
|
|
// Values of WaySelectionType.
|
|
const (
|
|
WaySelectionType_current WaySelectionType = 0
|
|
WaySelectionType_predicted WaySelectionType = 1
|
|
WaySelectionType_possible WaySelectionType = 2
|
|
WaySelectionType_extended WaySelectionType = 3
|
|
WaySelectionType_fail WaySelectionType = 4
|
|
)
|
|
|
|
// String returns the enum's constant name.
|
|
func (c WaySelectionType) String() string {
|
|
switch c {
|
|
case WaySelectionType_current:
|
|
return "current"
|
|
case WaySelectionType_predicted:
|
|
return "predicted"
|
|
case WaySelectionType_possible:
|
|
return "possible"
|
|
case WaySelectionType_extended:
|
|
return "extended"
|
|
case WaySelectionType_fail:
|
|
return "fail"
|
|
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
// WaySelectionTypeFromString returns the enum value with a name,
|
|
// or the zero value if there's no such value.
|
|
func WaySelectionTypeFromString(c string) WaySelectionType {
|
|
switch c {
|
|
case "current":
|
|
return WaySelectionType_current
|
|
case "predicted":
|
|
return WaySelectionType_predicted
|
|
case "possible":
|
|
return WaySelectionType_possible
|
|
case "extended":
|
|
return WaySelectionType_extended
|
|
case "fail":
|
|
return WaySelectionType_fail
|
|
|
|
default:
|
|
return 0
|
|
}
|
|
}
|
|
|
|
type WaySelectionType_List = capnp.EnumList[WaySelectionType]
|
|
|
|
func NewWaySelectionType_List(s *capnp.Segment, sz int32) (WaySelectionType_List, error) {
|
|
return capnp.NewEnumList[WaySelectionType](s, sz)
|
|
}
|
|
|
|
type SpeedLimitOffsetType uint16
|
|
|
|
// SpeedLimitOffsetType_TypeID is the unique identifier for the type SpeedLimitOffsetType.
|
|
const SpeedLimitOffsetType_TypeID = 0xa5a3dfadcac04344
|
|
|
|
// Values of SpeedLimitOffsetType.
|
|
const (
|
|
SpeedLimitOffsetType_static SpeedLimitOffsetType = 0
|
|
SpeedLimitOffsetType_percent SpeedLimitOffsetType = 1
|
|
)
|
|
|
|
// String returns the enum's constant name.
|
|
func (c SpeedLimitOffsetType) String() string {
|
|
switch c {
|
|
case SpeedLimitOffsetType_static:
|
|
return "static"
|
|
case SpeedLimitOffsetType_percent:
|
|
return "percent"
|
|
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
// SpeedLimitOffsetTypeFromString returns the enum value with a name,
|
|
// or the zero value if there's no such value.
|
|
func SpeedLimitOffsetTypeFromString(c string) SpeedLimitOffsetType {
|
|
switch c {
|
|
case "static":
|
|
return SpeedLimitOffsetType_static
|
|
case "percent":
|
|
return SpeedLimitOffsetType_percent
|
|
|
|
default:
|
|
return 0
|
|
}
|
|
}
|
|
|
|
type SpeedLimitOffsetType_List = capnp.EnumList[SpeedLimitOffsetType]
|
|
|
|
func NewSpeedLimitOffsetType_List(s *capnp.Segment, sz int32) (SpeedLimitOffsetType_List, error) {
|
|
return capnp.NewEnumList[SpeedLimitOffsetType](s, sz)
|
|
}
|
|
|
|
type MapdIn capnp.Struct
|
|
|
|
// MapdIn_TypeID is the unique identifier for the type MapdIn.
|
|
const MapdIn_TypeID = 0xc86a3d38d13eb3ef
|
|
|
|
func NewMapdIn(s *capnp.Segment) (MapdIn, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
|
|
return MapdIn(st), err
|
|
}
|
|
|
|
func NewRootMapdIn(s *capnp.Segment) (MapdIn, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2})
|
|
return MapdIn(st), err
|
|
}
|
|
|
|
func ReadRootMapdIn(msg *capnp.Message) (MapdIn, error) {
|
|
root, err := msg.Root()
|
|
return MapdIn(root.Struct()), err
|
|
}
|
|
|
|
func (s MapdIn) String() string {
|
|
str, _ := text.Marshal(0xc86a3d38d13eb3ef, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s MapdIn) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (MapdIn) DecodeFromPtr(p capnp.Ptr) MapdIn {
|
|
return MapdIn(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s MapdIn) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s MapdIn) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s MapdIn) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s MapdIn) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s MapdIn) Type() MapdInputType {
|
|
return MapdInputType(capnp.Struct(s).Uint16(0))
|
|
}
|
|
|
|
func (s MapdIn) SetType(v MapdInputType) {
|
|
capnp.Struct(s).SetUint16(0, uint16(v))
|
|
}
|
|
|
|
func (s MapdIn) Float() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(4))
|
|
}
|
|
|
|
func (s MapdIn) SetFloat(v float32) {
|
|
capnp.Struct(s).SetUint32(4, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdIn) Str() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdIn) HasStr() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s MapdIn) StrBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdIn) SetStr(v string) error {
|
|
return capnp.Struct(s).SetText(0, v)
|
|
}
|
|
|
|
func (s MapdIn) Bool() bool {
|
|
return capnp.Struct(s).Bit(16)
|
|
}
|
|
|
|
func (s MapdIn) SetBool(v bool) {
|
|
capnp.Struct(s).SetBit(16, v)
|
|
}
|
|
|
|
func (s MapdIn) JsonPath() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(1)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdIn) HasJsonPath() bool {
|
|
return capnp.Struct(s).HasPtr(1)
|
|
}
|
|
|
|
func (s MapdIn) JsonPathBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(1)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdIn) SetJsonPath(v string) error {
|
|
return capnp.Struct(s).SetText(1, v)
|
|
}
|
|
|
|
// MapdIn_List is a list of MapdIn.
|
|
type MapdIn_List = capnp.StructList[MapdIn]
|
|
|
|
// NewMapdIn creates a new list of MapdIn.
|
|
func NewMapdIn_List(s *capnp.Segment, sz int32) (MapdIn_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 8, PointerCount: 2}, sz)
|
|
return capnp.StructList[MapdIn](l), err
|
|
}
|
|
|
|
// MapdIn_Future is a wrapper for a MapdIn promised by a client call.
|
|
type MapdIn_Future struct{ *capnp.Future }
|
|
|
|
func (f MapdIn_Future) Struct() (MapdIn, error) {
|
|
p, err := f.Future.Ptr()
|
|
return MapdIn(p.Struct()), err
|
|
}
|
|
|
|
type RoadContext uint16
|
|
|
|
// RoadContext_TypeID is the unique identifier for the type RoadContext.
|
|
const RoadContext_TypeID = 0xabefa88b9563dbae
|
|
|
|
// Values of RoadContext.
|
|
const (
|
|
RoadContext_freeway RoadContext = 0
|
|
RoadContext_city RoadContext = 1
|
|
RoadContext_unknown RoadContext = 2
|
|
)
|
|
|
|
// String returns the enum's constant name.
|
|
func (c RoadContext) String() string {
|
|
switch c {
|
|
case RoadContext_freeway:
|
|
return "freeway"
|
|
case RoadContext_city:
|
|
return "city"
|
|
case RoadContext_unknown:
|
|
return "unknown"
|
|
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
// RoadContextFromString returns the enum value with a name,
|
|
// or the zero value if there's no such value.
|
|
func RoadContextFromString(c string) RoadContext {
|
|
switch c {
|
|
case "freeway":
|
|
return RoadContext_freeway
|
|
case "city":
|
|
return RoadContext_city
|
|
case "unknown":
|
|
return RoadContext_unknown
|
|
|
|
default:
|
|
return 0
|
|
}
|
|
}
|
|
|
|
type RoadContext_List = capnp.EnumList[RoadContext]
|
|
|
|
func NewRoadContext_List(s *capnp.Segment, sz int32) (RoadContext_List, error) {
|
|
return capnp.NewEnumList[RoadContext](s, sz)
|
|
}
|
|
|
|
type HighwayClass uint16
|
|
|
|
// HighwayClass_TypeID is the unique identifier for the type HighwayClass.
|
|
const HighwayClass_TypeID = 0xd18274dcdc63c41d
|
|
|
|
// Values of HighwayClass.
|
|
const (
|
|
HighwayClass_unknown HighwayClass = 0
|
|
HighwayClass_motorway HighwayClass = 1
|
|
HighwayClass_motorwayLink HighwayClass = 2
|
|
HighwayClass_trunk HighwayClass = 3
|
|
HighwayClass_trunkLink HighwayClass = 4
|
|
HighwayClass_primary HighwayClass = 5
|
|
HighwayClass_primaryLink HighwayClass = 6
|
|
HighwayClass_secondary HighwayClass = 7
|
|
HighwayClass_secondaryLink HighwayClass = 8
|
|
HighwayClass_tertiary HighwayClass = 9
|
|
HighwayClass_tertiaryLink HighwayClass = 10
|
|
HighwayClass_unclassified HighwayClass = 11
|
|
HighwayClass_residential HighwayClass = 12
|
|
HighwayClass_livingStreet HighwayClass = 13
|
|
)
|
|
|
|
// String returns the enum's constant name.
|
|
func (c HighwayClass) String() string {
|
|
switch c {
|
|
case HighwayClass_unknown:
|
|
return "unknown"
|
|
case HighwayClass_motorway:
|
|
return "motorway"
|
|
case HighwayClass_motorwayLink:
|
|
return "motorwayLink"
|
|
case HighwayClass_trunk:
|
|
return "trunk"
|
|
case HighwayClass_trunkLink:
|
|
return "trunkLink"
|
|
case HighwayClass_primary:
|
|
return "primary"
|
|
case HighwayClass_primaryLink:
|
|
return "primaryLink"
|
|
case HighwayClass_secondary:
|
|
return "secondary"
|
|
case HighwayClass_secondaryLink:
|
|
return "secondaryLink"
|
|
case HighwayClass_tertiary:
|
|
return "tertiary"
|
|
case HighwayClass_tertiaryLink:
|
|
return "tertiaryLink"
|
|
case HighwayClass_unclassified:
|
|
return "unclassified"
|
|
case HighwayClass_residential:
|
|
return "residential"
|
|
case HighwayClass_livingStreet:
|
|
return "livingStreet"
|
|
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
// HighwayClassFromString returns the enum value with a name,
|
|
// or the zero value if there's no such value.
|
|
func HighwayClassFromString(c string) HighwayClass {
|
|
switch c {
|
|
case "unknown":
|
|
return HighwayClass_unknown
|
|
case "motorway":
|
|
return HighwayClass_motorway
|
|
case "motorwayLink":
|
|
return HighwayClass_motorwayLink
|
|
case "trunk":
|
|
return HighwayClass_trunk
|
|
case "trunkLink":
|
|
return HighwayClass_trunkLink
|
|
case "primary":
|
|
return HighwayClass_primary
|
|
case "primaryLink":
|
|
return HighwayClass_primaryLink
|
|
case "secondary":
|
|
return HighwayClass_secondary
|
|
case "secondaryLink":
|
|
return HighwayClass_secondaryLink
|
|
case "tertiary":
|
|
return HighwayClass_tertiary
|
|
case "tertiaryLink":
|
|
return HighwayClass_tertiaryLink
|
|
case "unclassified":
|
|
return HighwayClass_unclassified
|
|
case "residential":
|
|
return HighwayClass_residential
|
|
case "livingStreet":
|
|
return HighwayClass_livingStreet
|
|
|
|
default:
|
|
return 0
|
|
}
|
|
}
|
|
|
|
type HighwayClass_List = capnp.EnumList[HighwayClass]
|
|
|
|
func NewHighwayClass_List(s *capnp.Segment, sz int32) (HighwayClass_List, error) {
|
|
return capnp.NewEnumList[HighwayClass](s, sz)
|
|
}
|
|
|
|
type MapdOut capnp.Struct
|
|
|
|
// MapdOut_TypeID is the unique identifier for the type MapdOut.
|
|
const MapdOut_TypeID = 0xa4f1eb3323f5f582
|
|
|
|
func NewMapdOut(s *capnp.Segment) (MapdOut, error) {
|
|
st, err := capnp.NewStruct(s, capnp.ObjectSize{DataSize: 112, PointerCount: 6})
|
|
return MapdOut(st), err
|
|
}
|
|
|
|
func NewRootMapdOut(s *capnp.Segment) (MapdOut, error) {
|
|
st, err := capnp.NewRootStruct(s, capnp.ObjectSize{DataSize: 112, PointerCount: 6})
|
|
return MapdOut(st), err
|
|
}
|
|
|
|
func ReadRootMapdOut(msg *capnp.Message) (MapdOut, error) {
|
|
root, err := msg.Root()
|
|
return MapdOut(root.Struct()), err
|
|
}
|
|
|
|
func (s MapdOut) String() string {
|
|
str, _ := text.Marshal(0xa4f1eb3323f5f582, capnp.Struct(s))
|
|
return str
|
|
}
|
|
|
|
func (s MapdOut) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr {
|
|
return capnp.Struct(s).EncodeAsPtr(seg)
|
|
}
|
|
|
|
func (MapdOut) DecodeFromPtr(p capnp.Ptr) MapdOut {
|
|
return MapdOut(capnp.Struct{}.DecodeFromPtr(p))
|
|
}
|
|
|
|
func (s MapdOut) ToPtr() capnp.Ptr {
|
|
return capnp.Struct(s).ToPtr()
|
|
}
|
|
func (s MapdOut) IsValid() bool {
|
|
return capnp.Struct(s).IsValid()
|
|
}
|
|
|
|
func (s MapdOut) Message() *capnp.Message {
|
|
return capnp.Struct(s).Message()
|
|
}
|
|
|
|
func (s MapdOut) Segment() *capnp.Segment {
|
|
return capnp.Struct(s).Segment()
|
|
}
|
|
func (s MapdOut) WayName() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdOut) HasWayName() bool {
|
|
return capnp.Struct(s).HasPtr(0)
|
|
}
|
|
|
|
func (s MapdOut) WayNameBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(0)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdOut) SetWayName(v string) error {
|
|
return capnp.Struct(s).SetText(0, v)
|
|
}
|
|
|
|
func (s MapdOut) WayRef() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(1)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdOut) HasWayRef() bool {
|
|
return capnp.Struct(s).HasPtr(1)
|
|
}
|
|
|
|
func (s MapdOut) WayRefBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(1)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdOut) SetWayRef(v string) error {
|
|
return capnp.Struct(s).SetText(1, v)
|
|
}
|
|
|
|
func (s MapdOut) RoadName() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(2)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdOut) HasRoadName() bool {
|
|
return capnp.Struct(s).HasPtr(2)
|
|
}
|
|
|
|
func (s MapdOut) RoadNameBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(2)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdOut) SetRoadName(v string) error {
|
|
return capnp.Struct(s).SetText(2, v)
|
|
}
|
|
|
|
func (s MapdOut) SpeedLimit() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(0))
|
|
}
|
|
|
|
func (s MapdOut) SetSpeedLimit(v float32) {
|
|
capnp.Struct(s).SetUint32(0, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) NextSpeedLimit() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(4))
|
|
}
|
|
|
|
func (s MapdOut) SetNextSpeedLimit(v float32) {
|
|
capnp.Struct(s).SetUint32(4, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) NextSpeedLimitDistance() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(8))
|
|
}
|
|
|
|
func (s MapdOut) SetNextSpeedLimitDistance(v float32) {
|
|
capnp.Struct(s).SetUint32(8, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) Hazard() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(3)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdOut) HasHazard() bool {
|
|
return capnp.Struct(s).HasPtr(3)
|
|
}
|
|
|
|
func (s MapdOut) HazardBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(3)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdOut) SetHazard(v string) error {
|
|
return capnp.Struct(s).SetText(3, v)
|
|
}
|
|
|
|
func (s MapdOut) NextHazard() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(4)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdOut) HasNextHazard() bool {
|
|
return capnp.Struct(s).HasPtr(4)
|
|
}
|
|
|
|
func (s MapdOut) NextHazardBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(4)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdOut) SetNextHazard(v string) error {
|
|
return capnp.Struct(s).SetText(4, v)
|
|
}
|
|
|
|
func (s MapdOut) NextHazardDistance() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(12))
|
|
}
|
|
|
|
func (s MapdOut) SetNextHazardDistance(v float32) {
|
|
capnp.Struct(s).SetUint32(12, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) AdvisorySpeed() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(16))
|
|
}
|
|
|
|
func (s MapdOut) SetAdvisorySpeed(v float32) {
|
|
capnp.Struct(s).SetUint32(16, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) NextAdvisorySpeed() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(20))
|
|
}
|
|
|
|
func (s MapdOut) SetNextAdvisorySpeed(v float32) {
|
|
capnp.Struct(s).SetUint32(20, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) NextAdvisorySpeedDistance() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(24))
|
|
}
|
|
|
|
func (s MapdOut) SetNextAdvisorySpeedDistance(v float32) {
|
|
capnp.Struct(s).SetUint32(24, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) OneWay() bool {
|
|
return capnp.Struct(s).Bit(224)
|
|
}
|
|
|
|
func (s MapdOut) SetOneWay(v bool) {
|
|
capnp.Struct(s).SetBit(224, v)
|
|
}
|
|
|
|
func (s MapdOut) Lanes() uint8 {
|
|
return capnp.Struct(s).Uint8(29)
|
|
}
|
|
|
|
func (s MapdOut) SetLanes(v uint8) {
|
|
capnp.Struct(s).SetUint8(29, v)
|
|
}
|
|
|
|
func (s MapdOut) TileLoaded() bool {
|
|
return capnp.Struct(s).Bit(225)
|
|
}
|
|
|
|
func (s MapdOut) SetTileLoaded(v bool) {
|
|
capnp.Struct(s).SetBit(225, v)
|
|
}
|
|
|
|
func (s MapdOut) SpeedLimitSuggestedSpeed() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(32))
|
|
}
|
|
|
|
func (s MapdOut) SetSpeedLimitSuggestedSpeed(v float32) {
|
|
capnp.Struct(s).SetUint32(32, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) SuggestedSpeed() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(36))
|
|
}
|
|
|
|
func (s MapdOut) SetSuggestedSpeed(v float32) {
|
|
capnp.Struct(s).SetUint32(36, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) EstimatedRoadWidth() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(40))
|
|
}
|
|
|
|
func (s MapdOut) SetEstimatedRoadWidth(v float32) {
|
|
capnp.Struct(s).SetUint32(40, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) RoadContext() RoadContext {
|
|
return RoadContext(capnp.Struct(s).Uint16(30))
|
|
}
|
|
|
|
func (s MapdOut) SetRoadContext(v RoadContext) {
|
|
capnp.Struct(s).SetUint16(30, uint16(v))
|
|
}
|
|
|
|
func (s MapdOut) DistanceFromWayCenter() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(44))
|
|
}
|
|
|
|
func (s MapdOut) SetDistanceFromWayCenter(v float32) {
|
|
capnp.Struct(s).SetUint32(44, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) VisionCurveSpeed() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(48))
|
|
}
|
|
|
|
func (s MapdOut) SetVisionCurveSpeed(v float32) {
|
|
capnp.Struct(s).SetUint32(48, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) MapCurveSpeed() float32 {
|
|
return math.Float32frombits(capnp.Struct(s).Uint32(52))
|
|
}
|
|
|
|
func (s MapdOut) SetMapCurveSpeed(v float32) {
|
|
capnp.Struct(s).SetUint32(52, math.Float32bits(v))
|
|
}
|
|
|
|
func (s MapdOut) WaySelectionType() WaySelectionType {
|
|
return WaySelectionType(capnp.Struct(s).Uint16(56))
|
|
}
|
|
|
|
func (s MapdOut) SetWaySelectionType(v WaySelectionType) {
|
|
capnp.Struct(s).SetUint16(56, uint16(v))
|
|
}
|
|
|
|
func (s MapdOut) SpeedLimitAccepted() bool {
|
|
return capnp.Struct(s).Bit(226)
|
|
}
|
|
|
|
func (s MapdOut) SetSpeedLimitAccepted(v bool) {
|
|
capnp.Struct(s).SetBit(226, v)
|
|
}
|
|
|
|
func (s MapdOut) HighwayClass() HighwayClass {
|
|
return HighwayClass(capnp.Struct(s).Uint16(58))
|
|
}
|
|
|
|
func (s MapdOut) SetHighwayClass(v HighwayClass) {
|
|
capnp.Struct(s).SetUint16(58, uint16(v))
|
|
}
|
|
|
|
func (s MapdOut) WayId() int64 {
|
|
return int64(capnp.Struct(s).Uint64(64))
|
|
}
|
|
|
|
func (s MapdOut) SetWayId(v int64) {
|
|
capnp.Struct(s).SetUint64(64, uint64(v))
|
|
}
|
|
|
|
func (s MapdOut) ConditionalSpeedLimit() (string, error) {
|
|
p, err := capnp.Struct(s).Ptr(5)
|
|
return p.Text(), err
|
|
}
|
|
|
|
func (s MapdOut) HasConditionalSpeedLimit() bool {
|
|
return capnp.Struct(s).HasPtr(5)
|
|
}
|
|
|
|
func (s MapdOut) ConditionalSpeedLimitBytes() ([]byte, error) {
|
|
p, err := capnp.Struct(s).Ptr(5)
|
|
return p.TextBytes(), err
|
|
}
|
|
|
|
func (s MapdOut) SetConditionalSpeedLimit(v string) error {
|
|
return capnp.Struct(s).SetText(5, v)
|
|
}
|
|
|
|
func (s MapdOut) SampleVersion() uint16 {
|
|
return capnp.Struct(s).Uint16(60)
|
|
}
|
|
|
|
func (s MapdOut) SetSampleVersion(v uint16) {
|
|
capnp.Struct(s).SetUint16(60, v)
|
|
}
|
|
|
|
func (s MapdOut) RoadStatus() MapdOut_SampleStatus {
|
|
return MapdOut_SampleStatus(capnp.Struct(s).Uint16(62))
|
|
}
|
|
|
|
func (s MapdOut) SetRoadStatus(v MapdOut_SampleStatus) {
|
|
capnp.Struct(s).SetUint16(62, uint16(v))
|
|
}
|
|
|
|
func (s MapdOut) GpsSource() MapdOut_GpsSource {
|
|
return MapdOut_GpsSource(capnp.Struct(s).Uint16(72))
|
|
}
|
|
|
|
func (s MapdOut) SetGpsSource(v MapdOut_GpsSource) {
|
|
capnp.Struct(s).SetUint16(72, uint16(v))
|
|
}
|
|
|
|
func (s MapdOut) GpsMonoTime() uint64 {
|
|
return capnp.Struct(s).Uint64(80)
|
|
}
|
|
|
|
func (s MapdOut) SetGpsMonoTime(v uint64) {
|
|
capnp.Struct(s).SetUint64(80, v)
|
|
}
|
|
|
|
func (s MapdOut) ComputedMonoTime() uint64 {
|
|
return capnp.Struct(s).Uint64(88)
|
|
}
|
|
|
|
func (s MapdOut) SetComputedMonoTime(v uint64) {
|
|
capnp.Struct(s).SetUint64(88, v)
|
|
}
|
|
|
|
func (s MapdOut) SourceGeneration() uint64 {
|
|
return capnp.Struct(s).Uint64(96)
|
|
}
|
|
|
|
func (s MapdOut) SetSourceGeneration(v uint64) {
|
|
capnp.Struct(s).SetUint64(96, v)
|
|
}
|
|
|
|
func (s MapdOut) ProducerSession() uint64 {
|
|
return capnp.Struct(s).Uint64(104)
|
|
}
|
|
|
|
func (s MapdOut) SetProducerSession(v uint64) {
|
|
capnp.Struct(s).SetUint64(104, v)
|
|
}
|
|
|
|
// MapdOut_List is a list of MapdOut.
|
|
type MapdOut_List = capnp.StructList[MapdOut]
|
|
|
|
// NewMapdOut creates a new list of MapdOut.
|
|
func NewMapdOut_List(s *capnp.Segment, sz int32) (MapdOut_List, error) {
|
|
l, err := capnp.NewCompositeList(s, capnp.ObjectSize{DataSize: 112, PointerCount: 6}, sz)
|
|
return capnp.StructList[MapdOut](l), err
|
|
}
|
|
|
|
// MapdOut_Future is a wrapper for a MapdOut promised by a client call.
|
|
type MapdOut_Future struct{ *capnp.Future }
|
|
|
|
func (f MapdOut_Future) Struct() (MapdOut, error) {
|
|
p, err := f.Future.Ptr()
|
|
return MapdOut(p.Struct()), err
|
|
}
|
|
|
|
type MapdOut_SampleStatus uint16
|
|
|
|
// MapdOut_SampleStatus_TypeID is the unique identifier for the type MapdOut_SampleStatus.
|
|
const MapdOut_SampleStatus_TypeID = 0x965a7a6975ef2b9e
|
|
|
|
// Values of MapdOut_SampleStatus.
|
|
const (
|
|
MapdOut_SampleStatus_unknown MapdOut_SampleStatus = 0
|
|
MapdOut_SampleStatus_noGps MapdOut_SampleStatus = 1
|
|
MapdOut_SampleStatus_noCoverage MapdOut_SampleStatus = 2
|
|
MapdOut_SampleStatus_noMatch MapdOut_SampleStatus = 3
|
|
MapdOut_SampleStatus_matchedNoLimit MapdOut_SampleStatus = 4
|
|
MapdOut_SampleStatus_matchedLimit MapdOut_SampleStatus = 5
|
|
)
|
|
|
|
// String returns the enum's constant name.
|
|
func (c MapdOut_SampleStatus) String() string {
|
|
switch c {
|
|
case MapdOut_SampleStatus_unknown:
|
|
return "unknown"
|
|
case MapdOut_SampleStatus_noGps:
|
|
return "noGps"
|
|
case MapdOut_SampleStatus_noCoverage:
|
|
return "noCoverage"
|
|
case MapdOut_SampleStatus_noMatch:
|
|
return "noMatch"
|
|
case MapdOut_SampleStatus_matchedNoLimit:
|
|
return "matchedNoLimit"
|
|
case MapdOut_SampleStatus_matchedLimit:
|
|
return "matchedLimit"
|
|
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
// MapdOut_SampleStatusFromString returns the enum value with a name,
|
|
// or the zero value if there's no such value.
|
|
func MapdOut_SampleStatusFromString(c string) MapdOut_SampleStatus {
|
|
switch c {
|
|
case "unknown":
|
|
return MapdOut_SampleStatus_unknown
|
|
case "noGps":
|
|
return MapdOut_SampleStatus_noGps
|
|
case "noCoverage":
|
|
return MapdOut_SampleStatus_noCoverage
|
|
case "noMatch":
|
|
return MapdOut_SampleStatus_noMatch
|
|
case "matchedNoLimit":
|
|
return MapdOut_SampleStatus_matchedNoLimit
|
|
case "matchedLimit":
|
|
return MapdOut_SampleStatus_matchedLimit
|
|
|
|
default:
|
|
return 0
|
|
}
|
|
}
|
|
|
|
type MapdOut_SampleStatus_List = capnp.EnumList[MapdOut_SampleStatus]
|
|
|
|
func NewMapdOut_SampleStatus_List(s *capnp.Segment, sz int32) (MapdOut_SampleStatus_List, error) {
|
|
return capnp.NewEnumList[MapdOut_SampleStatus](s, sz)
|
|
}
|
|
|
|
type MapdOut_GpsSource uint16
|
|
|
|
// MapdOut_GpsSource_TypeID is the unique identifier for the type MapdOut_GpsSource.
|
|
const MapdOut_GpsSource_TypeID = 0xf2b4452cefd6d128
|
|
|
|
// Values of MapdOut_GpsSource.
|
|
const (
|
|
MapdOut_GpsSource_none MapdOut_GpsSource = 0
|
|
MapdOut_GpsSource_internal MapdOut_GpsSource = 1
|
|
MapdOut_GpsSource_external MapdOut_GpsSource = 2
|
|
MapdOut_GpsSource_car MapdOut_GpsSource = 3
|
|
)
|
|
|
|
// String returns the enum's constant name.
|
|
func (c MapdOut_GpsSource) String() string {
|
|
switch c {
|
|
case MapdOut_GpsSource_none:
|
|
return "none"
|
|
case MapdOut_GpsSource_internal:
|
|
return "internal"
|
|
case MapdOut_GpsSource_external:
|
|
return "external"
|
|
case MapdOut_GpsSource_car:
|
|
return "car"
|
|
|
|
default:
|
|
return ""
|
|
}
|
|
}
|
|
|
|
// MapdOut_GpsSourceFromString returns the enum value with a name,
|
|
// or the zero value if there's no such value.
|
|
func MapdOut_GpsSourceFromString(c string) MapdOut_GpsSource {
|
|
switch c {
|
|
case "none":
|
|
return MapdOut_GpsSource_none
|
|
case "internal":
|
|
return MapdOut_GpsSource_internal
|
|
case "external":
|
|
return MapdOut_GpsSource_external
|
|
case "car":
|
|
return MapdOut_GpsSource_car
|
|
|
|
default:
|
|
return 0
|
|
}
|
|
}
|
|
|
|
type MapdOut_GpsSource_List = capnp.EnumList[MapdOut_GpsSource]
|
|
|
|
func NewMapdOut_GpsSource_List(s *capnp.Segment, sz int32) (MapdOut_GpsSource_List, error) {
|
|
return capnp.NewEnumList[MapdOut_GpsSource](s, sz)
|
|
}
|
|
|
|
const schema_b526ba661d550a59 = "x\xda\x94Z}lT\xd7\x95?\xe7\xbd\xb1\xc7\x9f\x8c" +
|
|
"\x877\x04\x0c&\x13(\xd0\x98\xc6i\x8c\xf16\xa6I" +
|
|
"]c\x03\xc1\x1a\x83\xc7\xc3G@A\xea\xf5\xbc\xeb\x99" +
|
|
"\x07\xcf\xefM\xde{c{\x10\x11\x84\x82\x04YP\x93" +
|
|
"n\xd2\x92*lC\x02R\xda\x0d-\xed\x86\x15\x1bQ" +
|
|
"-AD\"Y\x90\x92\xaa\xa9\x9a4\xbbI\xa3JI" +
|
|
"\xba\x89\xd2v\x13m\xb6\xdb\xe8\xad\xce\xbd\xf3\xf1\xfc\xd1" +
|
|
"\x10\xff\xc3\xf8\xfd\xcey\xe7\x9e{\xee\xb9\xe7\x9e\xdf}" +
|
|
"\xdc\xf1\xf5\xfao\x86\xda\x1b3\x0d\xa0$\x1f\xae\xaa\xf6" +
|
|
"\xa3{v\xbccy?9\x00\xd1E\xe8\xef\xa8\xdb\xba" +
|
|
"x\xe4\xf9\x15\xe7!\x14\x06\xe8h\xae\xde\x89Z[u" +
|
|
"\x18T\xff\xa7\x1f'\xbav\xfe\xf1\xf2\x83\x93\xb5\xaa\x84" +
|
|
"Zm\xf5^\xd4\x16W\x87\x01\xb4\xe6\xeaw\x01\xfd{" +
|
|
"{/\x7fgx\xc5\x0f\x0fCt\x91RQ\x06\xec\xc0" +
|
|
"p?j\xf3\xc2\xf4R4l\x87\x00\xfd\xb6\x97\xf2\xf7" +
|
|
"\xfe\xb8\xf9\xf8#\x90l\xc3Z\xff\xb2\xf5o\xf5\xdb\xae" +
|
|
"\xdc\xf7\xdfP\x85\xa4s\xbc\xfe!\xd4\xce\xd4\xd3\x9f\xa7" +
|
|
"\xea\xdfR\x00\xfd\x7f\xfc\xcaGyc\xef\xce\xefA\xf4" +
|
|
"K\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
|
|
"q\x97;c\\\xd5W\x0f\"~\xae~\xcac\xce\xa0" +
|
|
"a\xda^/sz\xbbm\xcbsls\x101\xd9\xa4" +
|
|
"\x86\x00B\x08\x10e;\x01\x92\xdfR1i*\x18E" +
|
|
"\x8c!\x81\xc6w\x01\x92\xa6\x8a\xc9\x09\x05\xa3\x8a\x12C" +
|
|
"\x05 \x9a'MO\xc5\xe4\x01\x05\xa3\xaa\x1aC\x15 " +
|
|
"\xfa@?@r\x9f\x8a\xc9#\x0a\xfa\xd9\xbc\xdeKc" +
|
|
"\x80j\x9b8\x17\x14\x9c\x0b\xe8\xbb\x1e\xe7\x8eae0" +
|
|
"a\x8c\x1a\xdeFk\x04\xed\xb2\xccbcF\x86y\x06" +
|
|
"\xa8\xb6U\x06sY\xdb\xe2\x1br.\x00`S\xa5\x80" +
|
|
"\x03b\x13|\xfel\x07XN\xdfh\xe5\xf2\xde\x96B" +
|
|
"\x8e\x03\xd0D/\x92\xebZ\x9b\xd2\x0f\x80s\xb4V\xe5" +
|
|
"\xe7\x00\x18\xd1Z\x95\xa7\xc8\xb8\xd6\xaa\xfc\x18\x00\xa3Z" +
|
|
"\xabr\x19\x00\xe7j\xad\xca\x1b\x00X\xaf\xb5)\xc3\x00" +
|
|
"\xa8i\xad\xca\xcb\x00\x18\xd3\xda\xc4/j\xed\xca^\x00" +
|
|
"T\xb46e7\x00\xce\xd3Z\xc5\xf3M\xdar\xe5\x0f" +
|
|
"\x008_kU~\x09\x80\x0b\xb46\xe5\x1d\x00l\xd6" +
|
|
"\xda\xc5\xf3B\xadS\xf9\x01\x00.\xd2:\xc5\xb8-Z" +
|
|
"\xa7\xb0\xb7X\xeb\x12\xcf7k]\xc2/\xb5\xf8\x1c\xd2" +
|
|
"\xba\x84?q\xadK\xd8\xbdE\xbb[\xd8[\xd2\xd1\xa3" +
|
|
"\xacA\x00\xac\xd26*\xcf\x03`\xb5\xb6Q8\xd0\xa8" +
|
|
"\xadSv\x02`\x83\xd6#\x1c[\xaa\xdd-^\xfc\x92" +
|
|
"\xd6#\x0c/+\xfe.\xef\xe8Q\xe6\x92\x81:m\xa3" +
|
|
"\xf2\x10\x00\xae\xd06*\x7f\x06\xc0/w\x0c(KI" +
|
|
"p\xab\xb6U\x84\xa0\xb5c\x87\xa2\x10\xb0\xb2c\x97\xfc" +
|
|
"\xe3+\x1aS\xbe\x0b\x80\xb7iL\xbc\xda\xa61\x11\xbc" +
|
|
"p\xf1\xb9Fc\xcaA\x00\xac\xd5v\x89\xdf\xdb\xb5\x1d" +
|
|
"\xe4\x83\xaf\xdb\xe3\x96i3\x1d\x00|\x97{[\x98\x93" +
|
|
"\xe1\xe8%\x98\xc7\x1df\xc6{\xd2in\x12\x9e\xcaq" +
|
|
"\xae\xcb\x14\xd9<2\x12v\xb97\x05\xed\xb5\xad\x08e" +
|
|
"/\xc1\x03,\xd7\x9b\xafr\xc6\xb8\x90\xf7\xca\xb4\x06\x97" +
|
|
"{\xdb\x0c\xd7\xb0\xad\xde\xfc$\x91*_J\xd8\x99\x04" +
|
|
"\x87\xf0\x98\x1cOh*RU\xf8D.\xf5H\x1f\x83" +
|
|
"\xb2\x01\xc3\x92\xe2m\x00\xbe\xc3i&)\x0e\xdd\x9eg" +
|
|
"X\x19\xd7w\xd9\x18Oq\xcf\x83\x88|\xe4\xde:\x8b" +
|
|
"\x0d\x9b\xd0-\x87\x9fjl\xab\xcb\x85\x9c\xa7\"%\xb1" +
|
|
"\x98\x8a2I\x96\xe3\x1c\xf5\xf2\xec\x151\xfb\x804\\" +
|
|
"|\xf3\x1e\xdb\xd4\x13\x0as\xbd\x14\xe7\x96P%M\xf4" +
|
|
"\x02Q\x16h?W\x9d=S\xc1\x9et\xb8\x18x\x81" +
|
|
"*\x12\xddb\x8c\xf2\xcd##.\xf7d \xfa\xf8\x08" +
|
|
"\xcb\xa3\xe9%\x98\xc5\xb7\x1ba\xdd\xcb\x96]\xc6R\xdc" +
|
|
"\xe2\"p>\x05\x86\xd41oz\x14\x11#L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d48\xf6\x03\xa4t" +
|
|
"\xc2sX9#\xb5Q\x1c\x02H\x99\x84O`\xe5\x98" +
|
|
"\xd4\xf2B\xdf#\xfc\x00\xe1\xa1\x9a\x18\x86\x00\xb4\x07p" +
|
|
"\x15@j\x82\xf0C\x84W\xd5\xc6\xb0\x0a@{\x10w" +
|
|
"\x02\xa4\x0e\x10~\x8c\xf0\xea\xba\x18V\x03hG\xf1\x07" +
|
|
"\x00\xa9c\x84\x9f <\\\x1f\xa3&B{\x0c\x1f\x02" +
|
|
"H\x9d \xfc4\xe15\x0d1\xac\x01\xd0N\x09\xfd\xd3" +
|
|
"\x84\x9f#\xbc\xb61\x86\xb5\x00\xdaYt\x00R\xcf\x12" +
|
|
"~\x81\xf0\xbap\x0c\xeb\x00\xb4\xf3\xf8\x14@\xea\x02\xe1" +
|
|
"WP\xc1%\xf5J\x0c\xeb\x01\xb4\x17p\x0d@\xea\"" +
|
|
"\xe1WQAl\x88a\x03\xf5L\xb8\x12 u\x89\xe0" +
|
|
"7QA\xdf\xb5i\xcb\x0c\xd8\xd0m\xd9\x94VX\x0b" +
|
|
"\x0a\xd6\x02\xfa&\xf3\x0c/\xafs:\xd3\xebA\xc1z" +
|
|
"\xc2l+C /c\xcc\x9c\xa6\x17w\xc56\xaa" +
|
|
"\x03\x05\xeb\x00\xfda\xce\xa8\x9b\xe8\x03\x95g\xca`\xd6" +
|
|
"v\x8c\xbd\xb6\xe5!3{\xd2\xe9\xbc\xc3\xd4t\xa1," +
|
|
"\x1c\xe3\x8eg\xa4\x99\x89R\x94.\xd0\x018\xd9Z\x0f" +
|
|
"\x16E}A\xab\xae\xac\x94i\x88\x0bY\x19\xcf[\xc6" +
|
|
"\x84\x98\x9d\xeb\xb1\xd1\xdc\x80a\x86M\xc3\xc5*P\xb0" +
|
|
"\x0a\xb0;\xcb\xdc\xf5\xc6\x04\"(\x88\x80\x91\xb1M\xeb" +
|
|
"\xfap\x0e\xe0\xa0\x8a\xc2\xc0\x9c@\x0fS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\x95\xe2\x19\xc2" +
|
|
"\x9fS\x03\x95\xf1g*U\xc0s\x84_T\x15\xc4b" +
|
|
"a\xfcW\x95\x0a\xdd\x05\x82\xaf\x90z\x08ea|A" +
|
|
"\xa5\xc2{\x89\xf0k\x84W)\xb20\xbe\xa4>\x0f\x90" +
|
|
"\xbaF\xf8o\x08\xafVea|M\x0c\xfb\x0a\xe1o" +
|
|
"\x12\x1e\x0e\xc9\xc2\xf8\xba\xb0\xff\x1b\xc2\x7fOx\x8d*" +
|
|
"\x0b\xe3\xefT*\x8c\xbf'\xfc\x8f\x84\xd7\x86da\xfc" +
|
|
"P\xa5\xc2\xf8\x01\xe1\x9f\x12^W%\x0b\xe3'\xeaw" +
|
|
"\x01R\x9f\x12\x1e\x0a)\x18\xad\xaf\x96\x85\x11C\xbf\x04" +
|
|
"H\xd5\x84TL\xc5\x08ox[V\xc6h\x88\xfci" +
|
|
" |\x01\xe1\x8d\x8bc\xd8\x08\xa0\xcd\x0bQ\xc1o\"" +
|
|
"\xbc\x85\xf09\xbf\x8b\xe1\x1c\x00\xad9D~. |" +
|
|
"\x19\xe1\x91\x9a\x18F\x00\xb4%\xa1\x97\x01R\xb7\x12\xbe" +
|
|
"\x9a\xf0\xa6\xda\x186\x11\x9f\x0fQ|\xee \xfc.\xc2" +
|
|
"\xa3u1\x8c\x02h]!\x9a\xd7]\x84\xdfC\xf8\xdc" +
|
|
"H\x0c\xe7\x02h\xebB\xc3\x00\xa9>\xc2\x07\x09\xd7\xea" +
|
|
"c\xa8\x01h\x03\xa1\x9f\x03\xa4\x06\x09\xbf\x8f\xf0XC" +
|
|
"\x0cc\x00\xda\x8e\x10\x1d(\xf7\x11\x9e%|^c\x0c" +
|
|
"\xe7\xd1\xc1\x17\xa2\xf8\xe8\x84\xe7\x08\xbf\xa9%\x867\xd1" +
|
|
"\xc1'\xf4s\x84\xef#|\xfe;1\x9c\x0f\xa0\x15\x84" +
|
|
"?\xfb\x08?B\xf8\x82\xc51\\\x00\xa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|
"C\xb0\xa6\xb9\x925\xb5\x09;\xb7\x11~\xa7`M\x9a" +
|
|
"dM\x9dB\xffN\xc2\xfb\x04k\x8aI\xd6\xd4#X" +
|
|
"M\x85\x95\xcd\x9f'Y\xd3\x80\xb0\x93 \xfc^\xc1\x9a" +
|
|
"n\x92\xaci\xab`\x17[\x08\xff\x96`M\xf3%k" +
|
|
"\xda%\xd8`\x85\xad-\xfc\xa6dM\\\x8c\x9b%\xdc" +
|
|
"\x13\xac\xa9G\xb2\xa6\xfb\x85\x9d\x0a[kY+YS" +
|
|
"A\xe0\x13\x84\x1f\x12\xac\xa9W\xb2\xa6\x07\x05~\x80\xf0" +
|
|
"c\x825\xf5I\xd6tT\xf8Yfk\x18\x97\xa4\xe9" +
|
|
"\x91\xd0R\x80\xd41\x82O\x84\x14\x14\xf7\xd9\xe6\xa0\xc3" +
|
|
"!\xe2\xba\x81\xee\x95\x99\xe3\xac\xe0n\xb6\xb0\xf85h" +
|
|
"]\xb7\xf8\xc4QQ\x18v\xd8\x1e\x9e02\x10\xcez" +
|
|
"n\x19\xd5\x99\x9b\x1d\xb6\x99\x83z\xe0f\xbb\\\xd3t" +
|
|
">\xe3X\xe5\x06^\xdcps\x1d\xa6K\x12\xb6\x95!" +
|
|
"ix\xa6\xf7\x94m\xdc)\x944\x82\xef\xef\xe7i{" +
|
|
"\x03gN\xf9\x8d\x11\xdbI\xf3^\x9b\x81\xeaze\xd0" +
|
|
"p\x07\x99\xb3\x87hAe\xe0\x1c\xcb\xbb<\xc1<\x88" +
|
|
"\xd0\xe4\xa7\xc0\xb6\x85\xa2\xfa\x19\x16C3@\x80l\xc7" +
|
|
"\xdb\xc0\x19`e<\xcfa##Fz\x00m]~" +
|
|
"#\x0a\x12\x84\x0csS\x1eK\xef\x09\x8e;j\xeb\x9c" +
|
|
"f\x01\x93&*\x0b\xdb\xa0\x03q\xfe\xb9\x8b\xd4\xd3m" +
|
|
"\x9a\xf6x0B\x95\xe5\xf0\xec\\\xca\xc8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|
|
"l\x88\xc1\xa4,\xb8Q\xf0K\x9f\xd5\xfa\xba\xa5\x0f\x82" +
|
|
"\xba\x96\xd7`\x1d5w}*&\x07\x15,-\xc1\x00" +
|
|
"E;\xa1b\xf2\xde\xc0\x12l\xa5 nQ1\xf9-" +
|
|
"%0\xe5\x00\x15\x9a]\xd4\xfe?\x00\x00\xff\xff\xd6\xbd" +
|
|
"\x94\xef"
|
|
|
|
func RegisterSchema(reg *schemas.Registry) {
|
|
reg.Register(&schemas.Schema{
|
|
String: schema_b526ba661d550a59,
|
|
Nodes: []uint64{
|
|
0x80ae746ee2596b11,
|
|
0x81c2f05a394cf4af,
|
|
0x859f26628fc24358,
|
|
0x918d19aa5875c92d,
|
|
0x965a7a6975ef2b9e,
|
|
0x9ccdc8676701b412,
|
|
0xa1680744031fdb2d,
|
|
0xa30662f84033036c,
|
|
0xa4f1eb3323f5f582,
|
|
0xa5a3dfadcac04344,
|
|
0xa5cd762cd951a455,
|
|
0xabefa88b9563dbae,
|
|
0xaedffd8f31e7b55d,
|
|
0xb057204d7deadf3f,
|
|
0xb86e6369214c01c8,
|
|
0xbd443b539493bc68,
|
|
0xc2243c65e0340384,
|
|
0xc86a3d38d13eb3ef,
|
|
0xcb9fd56c7057593a,
|
|
0xcd96dafb67a082d0,
|
|
0xd18274dcdc63c41d,
|
|
0xd6f78acca1bc3939,
|
|
0xda96579883444c35,
|
|
0xde9705979aca8339,
|
|
0xf2b4452cefd6d128,
|
|
0xf35cc4560bbf6ec2,
|
|
0xf416ec09499d9d19,
|
|
0xf98d843bfd7004a3,
|
|
0xfa3e5ce74e25e82a,
|
|
0xfaa35dcac85073a2,
|
|
0xfc6241ed8877b611,
|
|
0xff889853e7b0987f,
|
|
},
|
|
Compressed: true,
|
|
})
|
|
}
|