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 ZoneType int32
const (
ZoneType_ZONE_TYPE_UNDEFINED ZoneType = 0 ZoneType_ZONE_TYPE_BIRTH ZoneType = 1 ZoneType_ZONE_TYPE_DEATH ZoneType = 2 ZoneType_ZONE_TYPE_COORDINATION ZoneType = 3 ZoneType_ZONE_TYPE_COMMON ZoneType = 4 ZoneType_ZONE_TYPE_ISOLATED ZoneType = 5 ZoneType_ZONE_TYPE_LANE_FOR_BUS ZoneType = 6 ZoneType_ZONE_TYPE_TRANSIT ZoneType = 7 ZoneType_ZONE_TYPE_CROSSWALK ZoneType = 8 )
var (
ZoneType_name = map[int32]string{
0: "ZONE_TYPE_UNDEFINED",
1: "ZONE_TYPE_BIRTH",
2: "ZONE_TYPE_DEATH",
3: "ZONE_TYPE_COORDINATION",
4: "ZONE_TYPE_COMMON",
5: "ZONE_TYPE_ISOLATED",
6: "ZONE_TYPE_LANE_FOR_BUS",
7: "ZONE_TYPE_TRANSIT",
8: "ZONE_TYPE_CROSSWALK",
}
ZoneType_value = map[string]int32{
"ZONE_TYPE_UNDEFINED": 0,
"ZONE_TYPE_BIRTH": 1,
"ZONE_TYPE_DEATH": 2,
"ZONE_TYPE_COORDINATION": 3,
"ZONE_TYPE_COMMON": 4,
"ZONE_TYPE_ISOLATED": 5,
"ZONE_TYPE_LANE_FOR_BUS": 6,
"ZONE_TYPE_TRANSIT": 7,
"ZONE_TYPE_CROSSWALK": 8,
}
)
func (x ZoneType) Enum() *ZoneType {
p := new(ZoneType)
*p = x
return p
}
func (x ZoneType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ZoneType) Descriptor() protoreflect.EnumDescriptor {
return file_cell_proto_enumTypes[0].Descriptor()
}
func (ZoneType) Type() protoreflect.EnumType {
return &file_cell_proto_enumTypes[0]
}
func (x ZoneType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
func (ZoneType) EnumDescriptor() ([]byte, []int) {
return file_cell_proto_rawDescGZIP(), []int{0}
}
type Cell struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Geom *Point `protobuf:"bytes,2,opt,name=geom,proto3" json:"geom,omitempty"`
ZoneType ZoneType `protobuf:"varint,3,opt,name=zone_type,json=zoneType,proto3,enum=micro_traffic_sim.ZoneType" json:"zone_type,omitempty"`
SpeedLimit int64 `protobuf:"varint,4,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"`
LeftNode int64 `protobuf:"varint,5,opt,name=left_node,json=leftNode,proto3" json:"left_node,omitempty"`
ForwardNode int64 `protobuf:"varint,6,opt,name=forward_node,json=forwardNode,proto3" json:"forward_node,omitempty"`
RightNode int64 `protobuf:"varint,7,opt,name=right_node,json=rightNode,proto3" json:"right_node,omitempty"`
MesoLinkId int64 `protobuf:"varint,8,opt,name=meso_link_id,json=mesoLinkId,proto3" json:"meso_link_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Cell) Reset() {
*x = Cell{}
mi := &file_cell_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Cell) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Cell) ProtoMessage() {}
func (x *Cell) ProtoReflect() protoreflect.Message {
mi := &file_cell_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 (*Cell) Descriptor() ([]byte, []int) {
return file_cell_proto_rawDescGZIP(), []int{0}
}
func (x *Cell) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *Cell) GetGeom() *Point {
if x != nil {
return x.Geom
}
return nil
}
func (x *Cell) GetZoneType() ZoneType {
if x != nil {
return x.ZoneType
}
return ZoneType_ZONE_TYPE_UNDEFINED
}
func (x *Cell) GetSpeedLimit() int64 {
if x != nil {
return x.SpeedLimit
}
return 0
}
func (x *Cell) GetLeftNode() int64 {
if x != nil {
return x.LeftNode
}
return 0
}
func (x *Cell) GetForwardNode() int64 {
if x != nil {
return x.ForwardNode
}
return 0
}
func (x *Cell) GetRightNode() int64 {
if x != nil {
return x.RightNode
}
return 0
}
func (x *Cell) GetMesoLinkId() int64 {
if x != nil {
return x.MesoLinkId
}
return 0
}
type Point struct {
state protoimpl.MessageState `protogen:"open.v1"`
X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Point) Reset() {
*x = Point{}
mi := &file_cell_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Point) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Point) ProtoMessage() {}
func (x *Point) ProtoReflect() protoreflect.Message {
mi := &file_cell_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 (*Point) Descriptor() ([]byte, []int) {
return file_cell_proto_rawDescGZIP(), []int{1}
}
func (x *Point) GetX() float64 {
if x != nil {
return x.X
}
return 0
}
func (x *Point) GetY() float64 {
if x != nil {
return x.Y
}
return 0
}
type SessionGrid struct {
state protoimpl.MessageState `protogen:"open.v1"`
SessionId *UUIDv4 `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
Data []*Cell `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SessionGrid) Reset() {
*x = SessionGrid{}
mi := &file_cell_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SessionGrid) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SessionGrid) ProtoMessage() {}
func (x *SessionGrid) ProtoReflect() protoreflect.Message {
mi := &file_cell_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 (*SessionGrid) Descriptor() ([]byte, []int) {
return file_cell_proto_rawDescGZIP(), []int{2}
}
func (x *SessionGrid) GetSessionId() *UUIDv4 {
if x != nil {
return x.SessionId
}
return nil
}
func (x *SessionGrid) GetData() []*Cell {
if x != nil {
return x.Data
}
return nil
}
type SessionGridResponse 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"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SessionGridResponse) Reset() {
*x = SessionGridResponse{}
mi := &file_cell_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SessionGridResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SessionGridResponse) ProtoMessage() {}
func (x *SessionGridResponse) ProtoReflect() protoreflect.Message {
mi := &file_cell_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 (*SessionGridResponse) Descriptor() ([]byte, []int) {
return file_cell_proto_rawDescGZIP(), []int{3}
}
func (x *SessionGridResponse) GetCode() uint32 {
if x != nil {
return x.Code
}
return 0
}
func (x *SessionGridResponse) GetText() string {
if x != nil {
return x.Text
}
return ""
}
var File_cell_proto protoreflect.FileDescriptor
const file_cell_proto_rawDesc = "" +
"\n" +
"\n" +
"cell.proto\x12\x11micro_traffic_sim\x1a\n" +
"uuid.proto\"\xa0\x02\n" +
"\x04Cell\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12,\n" +
"\x04geom\x18\x02 \x01(\v2\x18.micro_traffic_sim.PointR\x04geom\x128\n" +
"\tzone_type\x18\x03 \x01(\x0e2\x1b.micro_traffic_sim.ZoneTypeR\bzoneType\x12\x1f\n" +
"\vspeed_limit\x18\x04 \x01(\x03R\n" +
"speedLimit\x12\x1b\n" +
"\tleft_node\x18\x05 \x01(\x03R\bleftNode\x12!\n" +
"\fforward_node\x18\x06 \x01(\x03R\vforwardNode\x12\x1d\n" +
"\n" +
"right_node\x18\a \x01(\x03R\trightNode\x12 \n" +
"\fmeso_link_id\x18\b \x01(\x03R\n" +
"mesoLinkId\"#\n" +
"\x05Point\x12\f\n" +
"\x01x\x18\x01 \x01(\x01R\x01x\x12\f\n" +
"\x01y\x18\x02 \x01(\x01R\x01y\"t\n" +
"\vSessionGrid\x128\n" +
"\n" +
"session_id\x18\x01 \x01(\v2\x19.micro_traffic_sim.UUIDv4R\tsessionId\x12+\n" +
"\x04data\x18\x02 \x03(\v2\x17.micro_traffic_sim.CellR\x04data\"=\n" +
"\x13SessionGridResponse\x12\x12\n" +
"\x04code\x18\x01 \x01(\rR\x04code\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text*\xe3\x01\n" +
"\bZoneType\x12\x17\n" +
"\x13ZONE_TYPE_UNDEFINED\x10\x00\x12\x13\n" +
"\x0fZONE_TYPE_BIRTH\x10\x01\x12\x13\n" +
"\x0fZONE_TYPE_DEATH\x10\x02\x12\x1a\n" +
"\x16ZONE_TYPE_COORDINATION\x10\x03\x12\x14\n" +
"\x10ZONE_TYPE_COMMON\x10\x04\x12\x16\n" +
"\x12ZONE_TYPE_ISOLATED\x10\x05\x12\x1a\n" +
"\x16ZONE_TYPE_LANE_FOR_BUS\x10\x06\x12\x15\n" +
"\x11ZONE_TYPE_TRANSIT\x10\a\x12\x17\n" +
"\x13ZONE_TYPE_CROSSWALK\x10\bB@Z>github.com/LdDl/micro_traffic_sim_grpc/clients/go;microtrafficb\x06proto3"
var (
file_cell_proto_rawDescOnce sync.Once
file_cell_proto_rawDescData []byte
)
func file_cell_proto_rawDescGZIP() []byte {
file_cell_proto_rawDescOnce.Do(func() {
file_cell_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cell_proto_rawDesc), len(file_cell_proto_rawDesc)))
})
return file_cell_proto_rawDescData
}
var file_cell_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_cell_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_cell_proto_goTypes = []any{
(ZoneType)(0), (*Cell)(nil), (*Point)(nil), (*SessionGrid)(nil), (*SessionGridResponse)(nil), (*UUIDv4)(nil), }
var file_cell_proto_depIdxs = []int32{
2, 0, 5, 1, 4, 4, 4, 4, 0, }
func init() { file_cell_proto_init() }
func file_cell_proto_init() {
if File_cell_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_cell_proto_rawDesc), len(file_cell_proto_rawDesc)),
NumEnums: 1,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_cell_proto_goTypes,
DependencyIndexes: file_cell_proto_depIdxs,
EnumInfos: file_cell_proto_enumTypes,
MessageInfos: file_cell_proto_msgTypes,
}.Build()
File_cell_proto = out.File
file_cell_proto_goTypes = nil
file_cell_proto_depIdxs = nil
}