package microtraffic
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AgentType int32
const (
AgentType_AGENT_TYPE_UNDEFINED AgentType = 0
AgentType_AGENT_TYPE_CAR AgentType = 1
AgentType_AGENT_TYPE_BUS AgentType = 2
AgentType_AGENT_TYPE_TAXI AgentType = 3
AgentType_AGENT_TYPE_PEDESTRIAN AgentType = 4
AgentType_AGENT_TYPE_TRUCK AgentType = 5
AgentType_AGENT_TYPE_LARGE_BUS AgentType = 6
)
var (
AgentType_name = map[int32]string{
0: "AGENT_TYPE_UNDEFINED",
1: "AGENT_TYPE_CAR",
2: "AGENT_TYPE_BUS",
3: "AGENT_TYPE_TAXI",
4: "AGENT_TYPE_PEDESTRIAN",
5: "AGENT_TYPE_TRUCK",
6: "AGENT_TYPE_LARGE_BUS",
}
AgentType_value = map[string]int32{
"AGENT_TYPE_UNDEFINED": 0,
"AGENT_TYPE_CAR": 1,
"AGENT_TYPE_BUS": 2,
"AGENT_TYPE_TAXI": 3,
"AGENT_TYPE_PEDESTRIAN": 4,
"AGENT_TYPE_TRUCK": 5,
"AGENT_TYPE_LARGE_BUS": 6,
}
)
func (x AgentType) Enum() *AgentType {
p := new(AgentType)
*p = x
return p
}
func (x AgentType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AgentType) Descriptor() protoreflect.EnumDescriptor {
return file_step_proto_enumTypes[0].Descriptor()
}
func (AgentType) Type() protoreflect.EnumType {
return &file_step_proto_enumTypes[0]
}
func (x AgentType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
func (AgentType) EnumDescriptor() ([]byte, []int) {
return file_step_proto_rawDescGZIP(), []int{0}
}
type SessionStep struct {
state protoimpl.MessageState `protogen:"open.v1"`
SessionId *UUIDv4 `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SessionStep) Reset() {
*x = SessionStep{}
mi := &file_step_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SessionStep) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SessionStep) ProtoMessage() {}
func (x *SessionStep) ProtoReflect() protoreflect.Message {
mi := &file_step_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*SessionStep) Descriptor() ([]byte, []int) {
return file_step_proto_rawDescGZIP(), []int{0}
}
func (x *SessionStep) GetSessionId() *UUIDv4 {
if x != nil {
return x.SessionId
}
return nil
}
type SessionStepResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
VehicleData []*VehicleState `protobuf:"bytes,4,rep,name=vehicle_data,json=vehicleData,proto3" json:"vehicle_data,omitempty"`
TlsData []*TLSState `protobuf:"bytes,5,rep,name=tls_data,json=tlsData,proto3" json:"tls_data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SessionStepResponse) Reset() {
*x = SessionStepResponse{}
mi := &file_step_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SessionStepResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SessionStepResponse) ProtoMessage() {}
func (x *SessionStepResponse) ProtoReflect() protoreflect.Message {
mi := &file_step_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*SessionStepResponse) Descriptor() ([]byte, []int) {
return file_step_proto_rawDescGZIP(), []int{1}
}
func (x *SessionStepResponse) GetCode() uint32 {
if x != nil {
return x.Code
}
return 0
}
func (x *SessionStepResponse) GetText() string {
if x != nil {
return x.Text
}
return ""
}
func (x *SessionStepResponse) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *SessionStepResponse) GetVehicleData() []*VehicleState {
if x != nil {
return x.VehicleData
}
return nil
}
func (x *SessionStepResponse) GetTlsData() []*TLSState {
if x != nil {
return x.TlsData
}
return nil
}
type VehicleState struct {
state protoimpl.MessageState `protogen:"open.v1"`
VehicleId int64 `protobuf:"varint,1,opt,name=vehicle_id,json=vehicleId,proto3" json:"vehicle_id,omitempty"`
VehicleType AgentType `protobuf:"varint,2,opt,name=vehicle_type,json=vehicleType,proto3,enum=micro_traffic_sim.AgentType" json:"vehicle_type,omitempty"`
Bearing float64 `protobuf:"fixed64,3,opt,name=bearing,proto3" json:"bearing,omitempty"`
Speed int64 `protobuf:"varint,4,opt,name=speed,proto3" json:"speed,omitempty"`
Cell int64 `protobuf:"varint,5,opt,name=cell,proto3" json:"cell,omitempty"`
IntermediateCells []int64 `protobuf:"varint,6,rep,packed,name=intermediate_cells,json=intermediateCells,proto3" json:"intermediate_cells,omitempty"`
TravelTime int64 `protobuf:"varint,7,opt,name=travel_time,json=travelTime,proto3" json:"travel_time,omitempty"`
TripId int64 `protobuf:"varint,8,opt,name=trip_id,json=tripId,proto3" json:"trip_id,omitempty"`
TailCells []int64 `protobuf:"varint,9,rep,packed,name=tail_cells,json=tailCells,proto3" json:"tail_cells,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *VehicleState) Reset() {
*x = VehicleState{}
mi := &file_step_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *VehicleState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VehicleState) ProtoMessage() {}
func (x *VehicleState) ProtoReflect() protoreflect.Message {
mi := &file_step_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*VehicleState) Descriptor() ([]byte, []int) {
return file_step_proto_rawDescGZIP(), []int{2}
}
func (x *VehicleState) GetVehicleId() int64 {
if x != nil {
return x.VehicleId
}
return 0
}
func (x *VehicleState) GetVehicleType() AgentType {
if x != nil {
return x.VehicleType
}
return AgentType_AGENT_TYPE_UNDEFINED
}
func (x *VehicleState) GetBearing() float64 {
if x != nil {
return x.Bearing
}
return 0
}
func (x *VehicleState) GetSpeed() int64 {
if x != nil {
return x.Speed
}
return 0
}
func (x *VehicleState) GetCell() int64 {
if x != nil {
return x.Cell
}
return 0
}
func (x *VehicleState) GetIntermediateCells() []int64 {
if x != nil {
return x.IntermediateCells
}
return nil
}
func (x *VehicleState) GetTravelTime() int64 {
if x != nil {
return x.TravelTime
}
return 0
}
func (x *VehicleState) GetTripId() int64 {
if x != nil {
return x.TripId
}
return 0
}
func (x *VehicleState) GetTailCells() []int64 {
if x != nil {
return x.TailCells
}
return nil
}
type TLSState struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Groups []*TLGroup `protobuf:"bytes,2,rep,name=groups,proto3" json:"groups,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TLSState) Reset() {
*x = TLSState{}
mi := &file_step_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TLSState) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TLSState) ProtoMessage() {}
func (x *TLSState) ProtoReflect() protoreflect.Message {
mi := &file_step_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*TLSState) Descriptor() ([]byte, []int) {
return file_step_proto_rawDescGZIP(), []int{3}
}
func (x *TLSState) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *TLSState) GetGroups() []*TLGroup {
if x != nil {
return x.Groups
}
return nil
}
type TLGroup struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Signal string `protobuf:"bytes,2,opt,name=signal,proto3" json:"signal,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TLGroup) Reset() {
*x = TLGroup{}
mi := &file_step_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TLGroup) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TLGroup) ProtoMessage() {}
func (x *TLGroup) ProtoReflect() protoreflect.Message {
mi := &file_step_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*TLGroup) Descriptor() ([]byte, []int) {
return file_step_proto_rawDescGZIP(), []int{4}
}
func (x *TLGroup) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *TLGroup) GetSignal() string {
if x != nil {
return x.Signal
}
return ""
}
var File_step_proto protoreflect.FileDescriptor
const file_step_proto_rawDesc = "" +
"\n" +
"\n" +
"step.proto\x12\x11micro_traffic_sim\x1a\n" +
"uuid.proto\"G\n" +
"\vSessionStep\x128\n" +
"\n" +
"session_id\x18\x01 \x01(\v2\x19.micro_traffic_sim.UUIDv4R\tsessionId\"\xd7\x01\n" +
"\x13SessionStepResponse\x12\x12\n" +
"\x04code\x18\x01 \x01(\rR\x04code\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text\x12\x1c\n" +
"\ttimestamp\x18\x03 \x01(\x03R\ttimestamp\x12B\n" +
"\fvehicle_data\x18\x04 \x03(\v2\x1f.micro_traffic_sim.VehicleStateR\vvehicleData\x126\n" +
"\btls_data\x18\x05 \x03(\v2\x1b.micro_traffic_sim.TLSStateR\atlsData\"\xba\x02\n" +
"\fVehicleState\x12\x1d\n" +
"\n" +
"vehicle_id\x18\x01 \x01(\x03R\tvehicleId\x12?\n" +
"\fvehicle_type\x18\x02 \x01(\x0e2\x1c.micro_traffic_sim.AgentTypeR\vvehicleType\x12\x18\n" +
"\abearing\x18\x03 \x01(\x01R\abearing\x12\x14\n" +
"\x05speed\x18\x04 \x01(\x03R\x05speed\x12\x12\n" +
"\x04cell\x18\x05 \x01(\x03R\x04cell\x12-\n" +
"\x12intermediate_cells\x18\x06 \x03(\x03R\x11intermediateCells\x12\x1f\n" +
"\vtravel_time\x18\a \x01(\x03R\n" +
"travelTime\x12\x17\n" +
"\atrip_id\x18\b \x01(\x03R\x06tripId\x12\x1d\n" +
"\n" +
"tail_cells\x18\t \x03(\x03R\ttailCells\"N\n" +
"\bTLSState\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x122\n" +
"\x06groups\x18\x02 \x03(\v2\x1a.micro_traffic_sim.TLGroupR\x06groups\"1\n" +
"\aTLGroup\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
"\x06signal\x18\x02 \x01(\tR\x06signal*\xad\x01\n" +
"\tAgentType\x12\x18\n" +
"\x14AGENT_TYPE_UNDEFINED\x10\x00\x12\x12\n" +
"\x0eAGENT_TYPE_CAR\x10\x01\x12\x12\n" +
"\x0eAGENT_TYPE_BUS\x10\x02\x12\x13\n" +
"\x0fAGENT_TYPE_TAXI\x10\x03\x12\x19\n" +
"\x15AGENT_TYPE_PEDESTRIAN\x10\x04\x12\x14\n" +
"\x10AGENT_TYPE_TRUCK\x10\x05\x12\x18\n" +
"\x14AGENT_TYPE_LARGE_BUS\x10\x06B@Z>github.com/LdDl/micro_traffic_sim_grpc/clients/go;microtrafficb\x06proto3"
var (
file_step_proto_rawDescOnce sync.Once
file_step_proto_rawDescData []byte
)
func file_step_proto_rawDescGZIP() []byte {
file_step_proto_rawDescOnce.Do(func() {
file_step_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_step_proto_rawDesc), len(file_step_proto_rawDesc)))
})
return file_step_proto_rawDescData
}
var file_step_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_step_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_step_proto_goTypes = []any{
(AgentType)(0), (*SessionStep)(nil), (*SessionStepResponse)(nil), (*VehicleState)(nil), (*TLSState)(nil), (*TLGroup)(nil), (*UUIDv4)(nil), }
var file_step_proto_depIdxs = []int32{
6, 3, 4, 0, 5, 5, 5, 5, 5, 0, }
func init() { file_step_proto_init() }
func file_step_proto_init() {
if File_step_proto != nil {
return
}
file_uuid_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_step_proto_rawDesc), len(file_step_proto_rawDesc)),
NumEnums: 1,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_step_proto_goTypes,
DependencyIndexes: file_step_proto_depIdxs,
EnumInfos: file_step_proto_enumTypes,
MessageInfos: file_step_proto_msgTypes,
}.Build()
File_step_proto = out.File
file_step_proto_goTypes = nil
file_step_proto_depIdxs = nil
}