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 SessionReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Srid uint32 `protobuf:"varint,1,opt,name=srid,proto3" json:"srid,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SessionReq) Reset() {
*x = SessionReq{}
mi := &file_session_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SessionReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SessionReq) ProtoMessage() {}
func (x *SessionReq) ProtoReflect() protoreflect.Message {
mi := &file_session_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 (*SessionReq) Descriptor() ([]byte, []int) {
return file_session_proto_rawDescGZIP(), []int{0}
}
func (x *SessionReq) GetSrid() uint32 {
if x != nil {
return x.Srid
}
return 0
}
type Session struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id *UUIDv4 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Session) Reset() {
*x = Session{}
mi := &file_session_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Session) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Session) ProtoMessage() {}
func (x *Session) ProtoReflect() protoreflect.Message {
mi := &file_session_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 (*Session) Descriptor() ([]byte, []int) {
return file_session_proto_rawDescGZIP(), []int{1}
}
func (x *Session) GetId() *UUIDv4 {
if x != nil {
return x.Id
}
return nil
}
type NewSessionResponse 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"`
Id *UUIDv4 `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *NewSessionResponse) Reset() {
*x = NewSessionResponse{}
mi := &file_session_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *NewSessionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NewSessionResponse) ProtoMessage() {}
func (x *NewSessionResponse) ProtoReflect() protoreflect.Message {
mi := &file_session_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 (*NewSessionResponse) Descriptor() ([]byte, []int) {
return file_session_proto_rawDescGZIP(), []int{2}
}
func (x *NewSessionResponse) GetCode() uint32 {
if x != nil {
return x.Code
}
return 0
}
func (x *NewSessionResponse) GetText() string {
if x != nil {
return x.Text
}
return ""
}
func (x *NewSessionResponse) GetId() *UUIDv4 {
if x != nil {
return x.Id
}
return nil
}
type InfoSessionResponse 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"`
Data *Session `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *InfoSessionResponse) Reset() {
*x = InfoSessionResponse{}
mi := &file_session_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *InfoSessionResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InfoSessionResponse) ProtoMessage() {}
func (x *InfoSessionResponse) ProtoReflect() protoreflect.Message {
mi := &file_session_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 (*InfoSessionResponse) Descriptor() ([]byte, []int) {
return file_session_proto_rawDescGZIP(), []int{3}
}
func (x *InfoSessionResponse) GetCode() uint32 {
if x != nil {
return x.Code
}
return 0
}
func (x *InfoSessionResponse) GetText() string {
if x != nil {
return x.Text
}
return ""
}
func (x *InfoSessionResponse) GetData() *Session {
if x != nil {
return x.Data
}
return nil
}
var File_session_proto protoreflect.FileDescriptor
const file_session_proto_rawDesc = "" +
"\n" +
"\rsession.proto\x12\x11micro_traffic_sim\x1a\n" +
"uuid.proto\" \n" +
"\n" +
"SessionReq\x12\x12\n" +
"\x04srid\x18\x01 \x01(\rR\x04srid\"4\n" +
"\aSession\x12)\n" +
"\x02id\x18\x01 \x01(\v2\x19.micro_traffic_sim.UUIDv4R\x02id\"g\n" +
"\x12NewSessionResponse\x12\x12\n" +
"\x04code\x18\x01 \x01(\rR\x04code\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text\x12)\n" +
"\x02id\x18\x03 \x01(\v2\x19.micro_traffic_sim.UUIDv4R\x02id\"m\n" +
"\x13InfoSessionResponse\x12\x12\n" +
"\x04code\x18\x01 \x01(\rR\x04code\x12\x12\n" +
"\x04text\x18\x02 \x01(\tR\x04text\x12.\n" +
"\x04data\x18\x03 \x01(\v2\x1a.micro_traffic_sim.SessionR\x04dataB@Z>github.com/LdDl/micro_traffic_sim_grpc/clients/go;microtrafficb\x06proto3"
var (
file_session_proto_rawDescOnce sync.Once
file_session_proto_rawDescData []byte
)
func file_session_proto_rawDescGZIP() []byte {
file_session_proto_rawDescOnce.Do(func() {
file_session_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_session_proto_rawDesc), len(file_session_proto_rawDesc)))
})
return file_session_proto_rawDescData
}
var file_session_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_session_proto_goTypes = []any{
(*SessionReq)(nil), (*Session)(nil), (*NewSessionResponse)(nil), (*InfoSessionResponse)(nil), (*UUIDv4)(nil), }
var file_session_proto_depIdxs = []int32{
4, 4, 1, 3, 3, 3, 3, 0, }
func init() { file_session_proto_init() }
func file_session_proto_init() {
if File_session_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_session_proto_rawDesc), len(file_session_proto_rawDesc)),
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_session_proto_goTypes,
DependencyIndexes: file_session_proto_depIdxs,
MessageInfos: file_session_proto_msgTypes,
}.Build()
File_session_proto = out.File
file_session_proto_goTypes = nil
file_session_proto_depIdxs = nil
}