predictv1

package
v1.36.10-2025101912503... Latest Latest
Warning

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

Go to latest
Published: unknown License: MIT Imports: 6 Imported by: 9

Documentation

Index

Constants

View Source
const Part_PartType_not_set_case case_Part_PartType = 0
View Source
const Part_Pit_case case_Part_PartType = 5
View Source
const Part_Stint_case case_Part_PartType = 4

Variables

View Source
var (
	LaptimeSelector_name = map[int32]string{
		0: "LAPTIME_SELECTOR_UNSPECIFIED",
		1: "LAPTIME_SELECTOR_LAST",
		2: "LAPTIME_SELECTOR_CURRENT_STINT_AVG",
		3: "LAPTIME_SELECTOR_PREVIOUS_STINT_AVG",
	}
	LaptimeSelector_value = map[string]int32{
		"LAPTIME_SELECTOR_UNSPECIFIED":        0,
		"LAPTIME_SELECTOR_LAST":               1,
		"LAPTIME_SELECTOR_CURRENT_STINT_AVG":  2,
		"LAPTIME_SELECTOR_PREVIOUS_STINT_AVG": 3,
	}
)

Enum value maps for LaptimeSelector.

View Source
var File_iracelog_predict_v1_predict_proto protoreflect.FileDescriptor
View Source
var File_iracelog_predict_v1_predict_service_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CarParam

type CarParam struct {

	// where is the car right now on the track
	CurrentTrackPos float32 `protobuf:"fixed32,1,opt,name=current_track_pos,json=currentTrackPos,proto3" json:"current_track_pos,omitempty"`
	// is the car in pits
	InPit bool `protobuf:"varint,2,opt,name=in_pit,json=inPit,proto3" json:"in_pit,omitempty"`
	// the lap of the stint the car is currently on
	StintLap int32 `protobuf:"varint,3,opt,name=stint_lap,json=stintLap,proto3" json:"stint_lap,omitempty"`
	// how long does the car take to complete the current stint lap
	RemainLapTime *durationpb.Duration `protobuf:"bytes,4,opt,name=remain_lap_time,json=remainLapTime,proto3" json:"remain_lap_time,omitempty"`
	// contains filtered or unexported fields
}

func (*CarParam) ClearRemainLapTime

func (x *CarParam) ClearRemainLapTime()

func (*CarParam) GetCurrentTrackPos

func (x *CarParam) GetCurrentTrackPos() float32

func (*CarParam) GetInPit

func (x *CarParam) GetInPit() bool

func (*CarParam) GetRemainLapTime

func (x *CarParam) GetRemainLapTime() *durationpb.Duration

func (*CarParam) GetStintLap

func (x *CarParam) GetStintLap() int32

func (*CarParam) HasRemainLapTime

func (x *CarParam) HasRemainLapTime() bool

func (*CarParam) ProtoMessage

func (*CarParam) ProtoMessage()

func (*CarParam) ProtoReflect

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

func (*CarParam) Reset

func (x *CarParam) Reset()

func (*CarParam) SetCurrentTrackPos

func (x *CarParam) SetCurrentTrackPos(v float32)

func (*CarParam) SetInPit

func (x *CarParam) SetInPit(v bool)

func (*CarParam) SetRemainLapTime

func (x *CarParam) SetRemainLapTime(v *durationpb.Duration)

func (*CarParam) SetStintLap

func (x *CarParam) SetStintLap(v int32)

func (*CarParam) String

func (x *CarParam) String() string

type CarParam_builder

type CarParam_builder struct {

	// where is the car right now on the track
	CurrentTrackPos float32
	// is the car in pits
	InPit bool
	// the lap of the stint the car is currently on
	StintLap int32
	// how long does the car take to complete the current stint lap
	RemainLapTime *durationpb.Duration
	// contains filtered or unexported fields
}

func (CarParam_builder) Build

func (b0 CarParam_builder) Build() *CarParam

type FuelParam

type FuelParam struct {

	// available tank volume
	TankVolume float32 `protobuf:"fixed32,1,opt,name=tank_volume,json=tankVolume,proto3" json:"tank_volume,omitempty"`
	// how many units can be refueled per second
	RefuelRate float32 `protobuf:"fixed32,2,opt,name=refuel_rate,json=refuelRate,proto3" json:"refuel_rate,omitempty"`
	// how many units does the car burn per lap
	LapConsumption float32 `protobuf:"fixed32,3,opt,name=lap_consumption,json=lapConsumption,proto3" json:"lap_consumption,omitempty"`
	// contains filtered or unexported fields
}

func (*FuelParam) GetLapConsumption

func (x *FuelParam) GetLapConsumption() float32

func (*FuelParam) GetRefuelRate

func (x *FuelParam) GetRefuelRate() float32

func (*FuelParam) GetTankVolume

func (x *FuelParam) GetTankVolume() float32

func (*FuelParam) ProtoMessage

func (*FuelParam) ProtoMessage()

func (*FuelParam) ProtoReflect

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

func (*FuelParam) Reset

func (x *FuelParam) Reset()

func (*FuelParam) SetLapConsumption

func (x *FuelParam) SetLapConsumption(v float32)

func (*FuelParam) SetRefuelRate

func (x *FuelParam) SetRefuelRate(v float32)

func (*FuelParam) SetTankVolume

func (x *FuelParam) SetTankVolume(v float32)

func (*FuelParam) String

func (x *FuelParam) String() string

type FuelParam_builder

type FuelParam_builder struct {

	// available tank volume
	TankVolume float32
	// how many units can be refueled per second
	RefuelRate float32
	// how many units does the car burn per lap
	LapConsumption float32
	// contains filtered or unexported fields
}

func (FuelParam_builder) Build

func (b0 FuelParam_builder) Build() *FuelParam

type GetLivePredictParamRequest

type GetLivePredictParamRequest struct {
	EventSelector   *v1.EventSelector `protobuf:"bytes,1,opt,name=event_selector,json=eventSelector,proto3" json:"event_selector,omitempty"`
	CarNum          string            `protobuf:"bytes,2,opt,name=car_num,json=carNum,proto3" json:"car_num,omitempty"`
	LaptimeSelector LaptimeSelector   `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetLivePredictParamRequest) ClearEventSelector

func (x *GetLivePredictParamRequest) ClearEventSelector()

func (*GetLivePredictParamRequest) GetCarNum

func (x *GetLivePredictParamRequest) GetCarNum() string

func (*GetLivePredictParamRequest) GetEventSelector

func (x *GetLivePredictParamRequest) GetEventSelector() *v1.EventSelector

func (*GetLivePredictParamRequest) GetLaptimeSelector

func (x *GetLivePredictParamRequest) GetLaptimeSelector() LaptimeSelector

func (*GetLivePredictParamRequest) HasEventSelector

func (x *GetLivePredictParamRequest) HasEventSelector() bool

func (*GetLivePredictParamRequest) ProtoMessage

func (*GetLivePredictParamRequest) ProtoMessage()

func (*GetLivePredictParamRequest) ProtoReflect

func (*GetLivePredictParamRequest) Reset

func (x *GetLivePredictParamRequest) Reset()

func (*GetLivePredictParamRequest) SetCarNum

func (x *GetLivePredictParamRequest) SetCarNum(v string)

func (*GetLivePredictParamRequest) SetEventSelector

func (x *GetLivePredictParamRequest) SetEventSelector(v *v1.EventSelector)

func (*GetLivePredictParamRequest) SetLaptimeSelector

func (x *GetLivePredictParamRequest) SetLaptimeSelector(v LaptimeSelector)

func (*GetLivePredictParamRequest) String

func (x *GetLivePredictParamRequest) String() string

type GetLivePredictParamRequest_builder

type GetLivePredictParamRequest_builder struct {
	EventSelector   *v1.EventSelector
	CarNum          string
	LaptimeSelector LaptimeSelector
	// contains filtered or unexported fields
}

func (GetLivePredictParamRequest_builder) Build

type GetLivePredictParamResponse

type GetLivePredictParamResponse struct {
	Param *PredictParam `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*GetLivePredictParamResponse) ClearParam

func (x *GetLivePredictParamResponse) ClearParam()

func (*GetLivePredictParamResponse) GetParam

func (*GetLivePredictParamResponse) HasParam

func (x *GetLivePredictParamResponse) HasParam() bool

func (*GetLivePredictParamResponse) ProtoMessage

func (*GetLivePredictParamResponse) ProtoMessage()

func (*GetLivePredictParamResponse) ProtoReflect

func (*GetLivePredictParamResponse) Reset

func (x *GetLivePredictParamResponse) Reset()

func (*GetLivePredictParamResponse) SetParam

func (x *GetLivePredictParamResponse) SetParam(v *PredictParam)

func (*GetLivePredictParamResponse) String

func (x *GetLivePredictParamResponse) String() string

type GetLivePredictParamResponse_builder

type GetLivePredictParamResponse_builder struct {
	Param *PredictParam
	// contains filtered or unexported fields
}

func (GetLivePredictParamResponse_builder) Build

type GetPredictParamRequest

type GetPredictParamRequest struct {
	EventSelector   *v1.EventSelector `protobuf:"bytes,1,opt,name=event_selector,json=eventSelector,proto3" json:"event_selector,omitempty"`
	StartSelector   *v1.StartSelector `protobuf:"bytes,2,opt,name=start_selector,json=startSelector,proto3" json:"start_selector,omitempty"`
	CarNum          string            `protobuf:"bytes,3,opt,name=car_num,json=carNum,proto3" json:"car_num,omitempty"`
	LaptimeSelector LaptimeSelector   `` /* 148-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetPredictParamRequest) ClearEventSelector

func (x *GetPredictParamRequest) ClearEventSelector()

func (*GetPredictParamRequest) ClearStartSelector

func (x *GetPredictParamRequest) ClearStartSelector()

func (*GetPredictParamRequest) GetCarNum

func (x *GetPredictParamRequest) GetCarNum() string

func (*GetPredictParamRequest) GetEventSelector

func (x *GetPredictParamRequest) GetEventSelector() *v1.EventSelector

func (*GetPredictParamRequest) GetLaptimeSelector

func (x *GetPredictParamRequest) GetLaptimeSelector() LaptimeSelector

func (*GetPredictParamRequest) GetStartSelector

func (x *GetPredictParamRequest) GetStartSelector() *v1.StartSelector

func (*GetPredictParamRequest) HasEventSelector

func (x *GetPredictParamRequest) HasEventSelector() bool

func (*GetPredictParamRequest) HasStartSelector

func (x *GetPredictParamRequest) HasStartSelector() bool

func (*GetPredictParamRequest) ProtoMessage

func (*GetPredictParamRequest) ProtoMessage()

func (*GetPredictParamRequest) ProtoReflect

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

func (*GetPredictParamRequest) Reset

func (x *GetPredictParamRequest) Reset()

func (*GetPredictParamRequest) SetCarNum

func (x *GetPredictParamRequest) SetCarNum(v string)

func (*GetPredictParamRequest) SetEventSelector

func (x *GetPredictParamRequest) SetEventSelector(v *v1.EventSelector)

func (*GetPredictParamRequest) SetLaptimeSelector

func (x *GetPredictParamRequest) SetLaptimeSelector(v LaptimeSelector)

func (*GetPredictParamRequest) SetStartSelector

func (x *GetPredictParamRequest) SetStartSelector(v *v1.StartSelector)

func (*GetPredictParamRequest) String

func (x *GetPredictParamRequest) String() string

type GetPredictParamRequest_builder

type GetPredictParamRequest_builder struct {
	EventSelector   *v1.EventSelector
	StartSelector   *v1.StartSelector
	CarNum          string
	LaptimeSelector LaptimeSelector
	// contains filtered or unexported fields
}

func (GetPredictParamRequest_builder) Build

type GetPredictParamResponse

type GetPredictParamResponse struct {
	Param *PredictParam `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPredictParamResponse) ClearParam

func (x *GetPredictParamResponse) ClearParam()

func (*GetPredictParamResponse) GetParam

func (x *GetPredictParamResponse) GetParam() *PredictParam

func (*GetPredictParamResponse) HasParam

func (x *GetPredictParamResponse) HasParam() bool

func (*GetPredictParamResponse) ProtoMessage

func (*GetPredictParamResponse) ProtoMessage()

func (*GetPredictParamResponse) ProtoReflect

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

func (*GetPredictParamResponse) Reset

func (x *GetPredictParamResponse) Reset()

func (*GetPredictParamResponse) SetParam

func (x *GetPredictParamResponse) SetParam(v *PredictParam)

func (*GetPredictParamResponse) String

func (x *GetPredictParamResponse) String() string

type GetPredictParamResponse_builder

type GetPredictParamResponse_builder struct {
	Param *PredictParam
	// contains filtered or unexported fields
}

func (GetPredictParamResponse_builder) Build

type LaptimeSelector

type LaptimeSelector int32
const (
	LaptimeSelector_LAPTIME_SELECTOR_UNSPECIFIED        LaptimeSelector = 0
	LaptimeSelector_LAPTIME_SELECTOR_LAST               LaptimeSelector = 1
	LaptimeSelector_LAPTIME_SELECTOR_CURRENT_STINT_AVG  LaptimeSelector = 2
	LaptimeSelector_LAPTIME_SELECTOR_PREVIOUS_STINT_AVG LaptimeSelector = 3
)

func (LaptimeSelector) Descriptor

func (LaptimeSelector) Enum

func (x LaptimeSelector) Enum() *LaptimeSelector

func (LaptimeSelector) Number

func (LaptimeSelector) String

func (x LaptimeSelector) String() string

func (LaptimeSelector) Type

type Part

type Part struct {

	// duration measured from race start
	Start *durationpb.Duration `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"`
	// duration measured from race start
	End *durationpb.Duration `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"`
	// the effective duration of that part
	Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"`
	// Types that are valid to be assigned to PartType:
	//
	//	*Part_Stint
	//	*Part_Pit
	PartType isPart_PartType `protobuf_oneof:"part_type"`
	// contains filtered or unexported fields
}

func (*Part) ClearDuration

func (x *Part) ClearDuration()

func (*Part) ClearEnd

func (x *Part) ClearEnd()

func (*Part) ClearPartType

func (x *Part) ClearPartType()

func (*Part) ClearPit

func (x *Part) ClearPit()

func (*Part) ClearStart

func (x *Part) ClearStart()

func (*Part) ClearStint

func (x *Part) ClearStint()

func (*Part) GetDuration

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

func (*Part) GetEnd

func (x *Part) GetEnd() *durationpb.Duration

func (*Part) GetPartType

func (x *Part) GetPartType() isPart_PartType

func (*Part) GetPit

func (x *Part) GetPit() *PitPart

func (*Part) GetStart

func (x *Part) GetStart() *durationpb.Duration

func (*Part) GetStint

func (x *Part) GetStint() *StintPart

func (*Part) HasDuration

func (x *Part) HasDuration() bool

func (*Part) HasEnd

func (x *Part) HasEnd() bool

func (*Part) HasPartType

func (x *Part) HasPartType() bool

func (*Part) HasPit

func (x *Part) HasPit() bool

func (*Part) HasStart

func (x *Part) HasStart() bool

func (*Part) HasStint

func (x *Part) HasStint() bool

func (*Part) ProtoMessage

func (*Part) ProtoMessage()

func (*Part) ProtoReflect

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

func (*Part) Reset

func (x *Part) Reset()

func (*Part) SetDuration

func (x *Part) SetDuration(v *durationpb.Duration)

func (*Part) SetEnd

func (x *Part) SetEnd(v *durationpb.Duration)

func (*Part) SetPit

func (x *Part) SetPit(v *PitPart)

func (*Part) SetStart

func (x *Part) SetStart(v *durationpb.Duration)

func (*Part) SetStint

func (x *Part) SetStint(v *StintPart)

func (*Part) String

func (x *Part) String() string

func (*Part) WhichPartType

func (x *Part) WhichPartType() case_Part_PartType

type Part_Pit

type Part_Pit struct {
	Pit *PitPart `protobuf:"bytes,5,opt,name=pit,proto3,oneof"`
}

type Part_Stint

type Part_Stint struct {
	Stint *StintPart `protobuf:"bytes,4,opt,name=stint,proto3,oneof"`
}

type Part_builder

type Part_builder struct {

	// duration measured from race start
	Start *durationpb.Duration
	// duration measured from race start
	End *durationpb.Duration
	// the effective duration of that part
	Duration *durationpb.Duration
	// Fields of oneof PartType:
	Stint *StintPart
	Pit   *PitPart
	// contains filtered or unexported fields
}

func (Part_builder) Build

func (b0 Part_builder) Build() *Part

type PitParam

type PitParam struct {

	// the overall pit time to use for calculation
	Overall *durationpb.Duration `protobuf:"bytes,1,opt,name=overall,proto3" json:"overall,omitempty"`
	// the time the car uses when driving in the pit lane
	Lane *durationpb.Duration `protobuf:"bytes,2,opt,name=lane,proto3" json:"lane,omitempty"`
	// contains filtered or unexported fields
}

func (*PitParam) ClearLane

func (x *PitParam) ClearLane()

func (*PitParam) ClearOverall

func (x *PitParam) ClearOverall()

func (*PitParam) GetLane

func (x *PitParam) GetLane() *durationpb.Duration

func (*PitParam) GetOverall

func (x *PitParam) GetOverall() *durationpb.Duration

func (*PitParam) HasLane

func (x *PitParam) HasLane() bool

func (*PitParam) HasOverall

func (x *PitParam) HasOverall() bool

func (*PitParam) ProtoMessage

func (*PitParam) ProtoMessage()

func (*PitParam) ProtoReflect

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

func (*PitParam) Reset

func (x *PitParam) Reset()

func (*PitParam) SetLane

func (x *PitParam) SetLane(v *durationpb.Duration)

func (*PitParam) SetOverall

func (x *PitParam) SetOverall(v *durationpb.Duration)

func (*PitParam) String

func (x *PitParam) String() string

type PitParam_builder

type PitParam_builder struct {

	// the overall pit time to use for calculation
	Overall *durationpb.Duration
	// the time the car uses when driving in the pit lane
	Lane *durationpb.Duration
	// contains filtered or unexported fields
}

func (PitParam_builder) Build

func (b0 PitParam_builder) Build() *PitParam

type PitPart

type PitPart struct {
	// contains filtered or unexported fields
}

func (*PitPart) ProtoMessage

func (*PitPart) ProtoMessage()

func (*PitPart) ProtoReflect

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

func (*PitPart) Reset

func (x *PitPart) Reset()

func (*PitPart) String

func (x *PitPart) String() string

type PitPart_builder

type PitPart_builder struct {
	// contains filtered or unexported fields
}

func (PitPart_builder) Build

func (b0 PitPart_builder) Build() *PitPart

type PredictParam

type PredictParam struct {
	Race  *RaceParam  `protobuf:"bytes,1,opt,name=race,proto3" json:"race,omitempty"`
	Stint *StintParam `protobuf:"bytes,2,opt,name=stint,proto3" json:"stint,omitempty"`
	Car   *CarParam   `protobuf:"bytes,3,opt,name=car,proto3" json:"car,omitempty"`
	Fuel  *FuelParam  `protobuf:"bytes,4,opt,name=fuel,proto3" json:"fuel,omitempty"`
	Pit   *PitParam   `protobuf:"bytes,5,opt,name=pit,proto3" json:"pit,omitempty"`
	// contains filtered or unexported fields
}

func (*PredictParam) ClearCar

func (x *PredictParam) ClearCar()

func (*PredictParam) ClearFuel

func (x *PredictParam) ClearFuel()

func (*PredictParam) ClearPit

func (x *PredictParam) ClearPit()

func (*PredictParam) ClearRace

func (x *PredictParam) ClearRace()

func (*PredictParam) ClearStint

func (x *PredictParam) ClearStint()

func (*PredictParam) GetCar

func (x *PredictParam) GetCar() *CarParam

func (*PredictParam) GetFuel

func (x *PredictParam) GetFuel() *FuelParam

func (*PredictParam) GetPit

func (x *PredictParam) GetPit() *PitParam

func (*PredictParam) GetRace

func (x *PredictParam) GetRace() *RaceParam

func (*PredictParam) GetStint

func (x *PredictParam) GetStint() *StintParam

func (*PredictParam) HasCar

func (x *PredictParam) HasCar() bool

func (*PredictParam) HasFuel

func (x *PredictParam) HasFuel() bool

func (*PredictParam) HasPit

func (x *PredictParam) HasPit() bool

func (*PredictParam) HasRace

func (x *PredictParam) HasRace() bool

func (*PredictParam) HasStint

func (x *PredictParam) HasStint() bool

func (*PredictParam) ProtoMessage

func (*PredictParam) ProtoMessage()

func (*PredictParam) ProtoReflect

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

func (*PredictParam) Reset

func (x *PredictParam) Reset()

func (*PredictParam) SetCar

func (x *PredictParam) SetCar(v *CarParam)

func (*PredictParam) SetFuel

func (x *PredictParam) SetFuel(v *FuelParam)

func (*PredictParam) SetPit

func (x *PredictParam) SetPit(v *PitParam)

func (*PredictParam) SetRace

func (x *PredictParam) SetRace(v *RaceParam)

func (*PredictParam) SetStint

func (x *PredictParam) SetStint(v *StintParam)

func (*PredictParam) String

func (x *PredictParam) String() string

type PredictParam_builder

type PredictParam_builder struct {
	Race  *RaceParam
	Stint *StintParam
	Car   *CarParam
	Fuel  *FuelParam
	Pit   *PitParam
	// contains filtered or unexported fields
}

func (PredictParam_builder) Build

func (b0 PredictParam_builder) Build() *PredictParam

type PredictRaceRequest

type PredictRaceRequest struct {
	Param *PredictParam `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*PredictRaceRequest) ClearParam

func (x *PredictRaceRequest) ClearParam()

func (*PredictRaceRequest) GetParam

func (x *PredictRaceRequest) GetParam() *PredictParam

func (*PredictRaceRequest) HasParam

func (x *PredictRaceRequest) HasParam() bool

func (*PredictRaceRequest) ProtoMessage

func (*PredictRaceRequest) ProtoMessage()

func (*PredictRaceRequest) ProtoReflect

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

func (*PredictRaceRequest) Reset

func (x *PredictRaceRequest) Reset()

func (*PredictRaceRequest) SetParam

func (x *PredictRaceRequest) SetParam(v *PredictParam)

func (*PredictRaceRequest) String

func (x *PredictRaceRequest) String() string

type PredictRaceRequest_builder

type PredictRaceRequest_builder struct {
	Param *PredictParam
	// contains filtered or unexported fields
}

func (PredictRaceRequest_builder) Build

type PredictRaceResponse

type PredictRaceResponse struct {
	Result *PredictResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*PredictRaceResponse) ClearResult

func (x *PredictRaceResponse) ClearResult()

func (*PredictRaceResponse) GetResult

func (x *PredictRaceResponse) GetResult() *PredictResult

func (*PredictRaceResponse) HasResult

func (x *PredictRaceResponse) HasResult() bool

func (*PredictRaceResponse) ProtoMessage

func (*PredictRaceResponse) ProtoMessage()

func (*PredictRaceResponse) ProtoReflect

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

func (*PredictRaceResponse) Reset

func (x *PredictRaceResponse) Reset()

func (*PredictRaceResponse) SetResult

func (x *PredictRaceResponse) SetResult(v *PredictResult)

func (*PredictRaceResponse) String

func (x *PredictRaceResponse) String() string

type PredictRaceResponse_builder

type PredictRaceResponse_builder struct {
	Result *PredictResult
	// contains filtered or unexported fields
}

func (PredictRaceResponse_builder) Build

type PredictResult

type PredictResult struct {
	Parts []*Part `protobuf:"bytes,1,rep,name=parts,proto3" json:"parts,omitempty"`
	// contains filtered or unexported fields
}

func (*PredictResult) GetParts

func (x *PredictResult) GetParts() []*Part

func (*PredictResult) ProtoMessage

func (*PredictResult) ProtoMessage()

func (*PredictResult) ProtoReflect

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

func (*PredictResult) Reset

func (x *PredictResult) Reset()

func (*PredictResult) SetParts

func (x *PredictResult) SetParts(v []*Part)

func (*PredictResult) String

func (x *PredictResult) String() string

type PredictResult_builder

type PredictResult_builder struct {
	Parts []*Part
	// contains filtered or unexported fields
}

func (PredictResult_builder) Build

type RaceParam

type RaceParam struct {

	// predict for this (remaining) duration (for live sessions this is the iRacing SessionTimeRemain value)
	Duration *durationpb.Duration `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
	// the current time in the race session (only used to produce meaningful session times when used in a live race)
	Session *durationpb.Duration `protobuf:"bytes,2,opt,name=session,proto3" json:"session,omitempty"`
	// how many laps are already completed
	Lc int32 `protobuf:"varint,3,opt,name=lc,proto3" json:"lc,omitempty"`
	// contains filtered or unexported fields
}

func (*RaceParam) ClearDuration

func (x *RaceParam) ClearDuration()

func (*RaceParam) ClearSession

func (x *RaceParam) ClearSession()

func (*RaceParam) GetDuration

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

func (*RaceParam) GetLc

func (x *RaceParam) GetLc() int32

func (*RaceParam) GetSession

func (x *RaceParam) GetSession() *durationpb.Duration

func (*RaceParam) HasDuration

func (x *RaceParam) HasDuration() bool

func (*RaceParam) HasSession

func (x *RaceParam) HasSession() bool

func (*RaceParam) ProtoMessage

func (*RaceParam) ProtoMessage()

func (*RaceParam) ProtoReflect

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

func (*RaceParam) Reset

func (x *RaceParam) Reset()

func (*RaceParam) SetDuration

func (x *RaceParam) SetDuration(v *durationpb.Duration)

func (*RaceParam) SetLc

func (x *RaceParam) SetLc(v int32)

func (*RaceParam) SetSession

func (x *RaceParam) SetSession(v *durationpb.Duration)

func (*RaceParam) String

func (x *RaceParam) String() string

type RaceParam_builder

type RaceParam_builder struct {

	// predict for this (remaining) duration (for live sessions this is the iRacing SessionTimeRemain value)
	Duration *durationpb.Duration
	// the current time in the race session (only used to produce meaningful session times when used in a live race)
	Session *durationpb.Duration
	// how many laps are already completed
	Lc int32
	// contains filtered or unexported fields
}

func (RaceParam_builder) Build

func (b0 RaceParam_builder) Build() *RaceParam

type StintParam

type StintParam struct {
	AvgLaptime *durationpb.Duration `protobuf:"bytes,1,opt,name=avg_laptime,json=avgLaptime,proto3" json:"avg_laptime,omitempty"`
	// how many laps can be done in one stint
	Lps int32 `protobuf:"varint,2,opt,name=lps,proto3" json:"lps,omitempty"`
	// if provided this will be used for the inlap, otherwise avg_laptime
	InLaptime *durationpb.Duration `protobuf:"bytes,3,opt,name=in_laptime,json=inLaptime,proto3" json:"in_laptime,omitempty"`
	// if provided this will be used for the outlap, otherwise avg_laptime
	OutLaptime *durationpb.Duration `protobuf:"bytes,4,opt,name=out_laptime,json=outLaptime,proto3" json:"out_laptime,omitempty"`
	// contains filtered or unexported fields
}

func (*StintParam) ClearAvgLaptime

func (x *StintParam) ClearAvgLaptime()

func (*StintParam) ClearInLaptime

func (x *StintParam) ClearInLaptime()

func (*StintParam) ClearOutLaptime

func (x *StintParam) ClearOutLaptime()

func (*StintParam) GetAvgLaptime

func (x *StintParam) GetAvgLaptime() *durationpb.Duration

func (*StintParam) GetInLaptime

func (x *StintParam) GetInLaptime() *durationpb.Duration

func (*StintParam) GetLps

func (x *StintParam) GetLps() int32

func (*StintParam) GetOutLaptime

func (x *StintParam) GetOutLaptime() *durationpb.Duration

func (*StintParam) HasAvgLaptime

func (x *StintParam) HasAvgLaptime() bool

func (*StintParam) HasInLaptime

func (x *StintParam) HasInLaptime() bool

func (*StintParam) HasOutLaptime

func (x *StintParam) HasOutLaptime() bool

func (*StintParam) ProtoMessage

func (*StintParam) ProtoMessage()

func (*StintParam) ProtoReflect

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

func (*StintParam) Reset

func (x *StintParam) Reset()

func (*StintParam) SetAvgLaptime

func (x *StintParam) SetAvgLaptime(v *durationpb.Duration)

func (*StintParam) SetInLaptime

func (x *StintParam) SetInLaptime(v *durationpb.Duration)

func (*StintParam) SetLps

func (x *StintParam) SetLps(v int32)

func (*StintParam) SetOutLaptime

func (x *StintParam) SetOutLaptime(v *durationpb.Duration)

func (*StintParam) String

func (x *StintParam) String() string

type StintParam_builder

type StintParam_builder struct {
	AvgLaptime *durationpb.Duration
	// how many laps can be done in one stint
	Lps int32
	// if provided this will be used for the inlap, otherwise avg_laptime
	InLaptime *durationpb.Duration
	// if provided this will be used for the outlap, otherwise avg_laptime
	OutLaptime *durationpb.Duration
	// contains filtered or unexported fields
}

func (StintParam_builder) Build

func (b0 StintParam_builder) Build() *StintParam

type StintPart

type StintPart struct {
	Laps     int32 `protobuf:"varint,1,opt,name=laps,proto3" json:"laps,omitempty"`
	LapStart int32 `protobuf:"varint,2,opt,name=lap_start,json=lapStart,proto3" json:"lap_start,omitempty"`
	LapEnd   int32 `protobuf:"varint,3,opt,name=lap_end,json=lapEnd,proto3" json:"lap_end,omitempty"`
	// contains filtered or unexported fields
}

func (*StintPart) GetLapEnd

func (x *StintPart) GetLapEnd() int32

func (*StintPart) GetLapStart

func (x *StintPart) GetLapStart() int32

func (*StintPart) GetLaps

func (x *StintPart) GetLaps() int32

func (*StintPart) ProtoMessage

func (*StintPart) ProtoMessage()

func (*StintPart) ProtoReflect

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

func (*StintPart) Reset

func (x *StintPart) Reset()

func (*StintPart) SetLapEnd

func (x *StintPart) SetLapEnd(v int32)

func (*StintPart) SetLapStart

func (x *StintPart) SetLapStart(v int32)

func (*StintPart) SetLaps

func (x *StintPart) SetLaps(v int32)

func (*StintPart) String

func (x *StintPart) String() string

type StintPart_builder

type StintPart_builder struct {
	Laps     int32
	LapStart int32
	LapEnd   int32
	// contains filtered or unexported fields
}

func (StintPart_builder) Build

func (b0 StintPart_builder) Build() *StintPart

Source Files

  • predict.pb.go
  • predict_service.pb.go

Jump to

Keyboard shortcuts

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