generated from VLADIMIR/template
add route
This commit is contained in:
+302
-13
@@ -94,6 +94,266 @@ func (*PingRsp) Descriptor() ([]byte, []int) {
|
||||
return file_main_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
type GetDaysReq struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetDaysReq) Reset() {
|
||||
*x = GetDaysReq{}
|
||||
mi := &file_main_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetDaysReq) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetDaysReq) ProtoMessage() {}
|
||||
|
||||
func (x *GetDaysReq) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_main_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)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetDaysReq.ProtoReflect.Descriptor instead.
|
||||
func (*GetDaysReq) Descriptor() ([]byte, []int) {
|
||||
return file_main_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
type GetDaysRsp struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Days []*Day `protobuf:"bytes,1,rep,name=days,proto3" json:"days,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetDaysRsp) Reset() {
|
||||
*x = GetDaysRsp{}
|
||||
mi := &file_main_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetDaysRsp) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetDaysRsp) ProtoMessage() {}
|
||||
|
||||
func (x *GetDaysRsp) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_main_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)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetDaysRsp.ProtoReflect.Descriptor instead.
|
||||
func (*GetDaysRsp) Descriptor() ([]byte, []int) {
|
||||
return file_main_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *GetDaysRsp) GetDays() []*Day {
|
||||
if x != nil {
|
||||
return x.Days
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Day struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Date string `protobuf:"bytes,1,opt,name=date,proto3" json:"date,omitempty"`
|
||||
Performances []*Performance `protobuf:"bytes,2,rep,name=performances,proto3" json:"performances,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Day) Reset() {
|
||||
*x = Day{}
|
||||
mi := &file_main_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Day) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Day) ProtoMessage() {}
|
||||
|
||||
func (x *Day) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_main_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)
|
||||
}
|
||||
|
||||
// Deprecated: Use Day.ProtoReflect.Descriptor instead.
|
||||
func (*Day) Descriptor() ([]byte, []int) {
|
||||
return file_main_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *Day) GetDate() string {
|
||||
if x != nil {
|
||||
return x.Date
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Day) GetPerformances() []*Performance {
|
||||
if x != nil {
|
||||
return x.Performances
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type Performance struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
TimeCollection string `protobuf:"bytes,1,opt,name=time_collection,json=timeCollection,proto3" json:"time_collection,omitempty"`
|
||||
TimeStart string `protobuf:"bytes,2,opt,name=time_start,json=timeStart,proto3" json:"time_start,omitempty"`
|
||||
Place string `protobuf:"bytes,3,opt,name=place,proto3" json:"place,omitempty"`
|
||||
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Numbers []*Number `protobuf:"bytes,5,rep,name=numbers,proto3" json:"numbers,omitempty"`
|
||||
Costumes string `protobuf:"bytes,6,opt,name=costumes,proto3" json:"costumes,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Performance) Reset() {
|
||||
*x = Performance{}
|
||||
mi := &file_main_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Performance) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Performance) ProtoMessage() {}
|
||||
|
||||
func (x *Performance) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_main_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Performance.ProtoReflect.Descriptor instead.
|
||||
func (*Performance) Descriptor() ([]byte, []int) {
|
||||
return file_main_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *Performance) GetTimeCollection() string {
|
||||
if x != nil {
|
||||
return x.TimeCollection
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Performance) GetTimeStart() string {
|
||||
if x != nil {
|
||||
return x.TimeStart
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Performance) GetPlace() string {
|
||||
if x != nil {
|
||||
return x.Place
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Performance) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *Performance) GetNumbers() []*Number {
|
||||
if x != nil {
|
||||
return x.Numbers
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *Performance) GetCostumes() string {
|
||||
if x != nil {
|
||||
return x.Costumes
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type Number struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Number) Reset() {
|
||||
*x = Number{}
|
||||
mi := &file_main_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Number) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Number) ProtoMessage() {}
|
||||
|
||||
func (x *Number) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_main_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Number.ProtoReflect.Descriptor instead.
|
||||
func (*Number) Descriptor() ([]byte, []int) {
|
||||
return file_main_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *Number) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_main_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_main_proto_rawDesc = "" +
|
||||
@@ -101,9 +361,28 @@ const file_main_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"main.proto\x12\x14crabs.pinned_message\x1a\x1cgoogle/api/annotations.proto\"\t\n" +
|
||||
"\aPingReq\"\t\n" +
|
||||
"\aPingRsp2d\n" +
|
||||
"\aPingRsp\"\f\n" +
|
||||
"\n" +
|
||||
"GetDaysReq\";\n" +
|
||||
"\n" +
|
||||
"GetDaysRsp\x12-\n" +
|
||||
"\x04days\x18\x01 \x03(\v2\x19.crabs.pinned_message.DayR\x04days\"`\n" +
|
||||
"\x03Day\x12\x12\n" +
|
||||
"\x04date\x18\x01 \x01(\tR\x04date\x12E\n" +
|
||||
"\fperformances\x18\x02 \x03(\v2!.crabs.pinned_message.PerformanceR\fperformances\"\xd3\x01\n" +
|
||||
"\vPerformance\x12'\n" +
|
||||
"\x0ftime_collection\x18\x01 \x01(\tR\x0etimeCollection\x12\x1d\n" +
|
||||
"\n" +
|
||||
"time_start\x18\x02 \x01(\tR\ttimeStart\x12\x14\n" +
|
||||
"\x05place\x18\x03 \x01(\tR\x05place\x12\x12\n" +
|
||||
"\x04name\x18\x04 \x01(\tR\x04name\x126\n" +
|
||||
"\anumbers\x18\x05 \x03(\v2\x1c.crabs.pinned_message.NumberR\anumbers\x12\x1a\n" +
|
||||
"\bcostumes\x18\x06 \x01(\tR\bcostumes\"\x1c\n" +
|
||||
"\x06Number\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name2\xc6\x01\n" +
|
||||
"\rpinnedMessage\x12S\n" +
|
||||
"\x04Ping\x12\x1d.crabs.pinned_message.PingReq\x1a\x1d.crabs.pinned_message.PingRsp\"\r\x82\xd3\xe4\x93\x02\a\x12\x05/pingB\vZ\tpkg/protob\x06proto3"
|
||||
"\x04Ping\x12\x1d.crabs.pinned_message.PingReq\x1a\x1d.crabs.pinned_message.PingRsp\"\r\x82\xd3\xe4\x93\x02\a\x12\x05/ping\x12`\n" +
|
||||
"\aGetDays\x12 .crabs.pinned_message.GetDaysReq\x1a .crabs.pinned_message.GetDaysRsp\"\x11\x82\xd3\xe4\x93\x02\v\x12\t/scheduleB\vZ\tpkg/protob\x06proto3"
|
||||
|
||||
var (
|
||||
file_main_proto_rawDescOnce sync.Once
|
||||
@@ -117,19 +396,29 @@ func file_main_proto_rawDescGZIP() []byte {
|
||||
return file_main_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_main_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_main_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_main_proto_goTypes = []any{
|
||||
(*PingReq)(nil), // 0: crabs.pinned_message.PingReq
|
||||
(*PingRsp)(nil), // 1: crabs.pinned_message.PingRsp
|
||||
(*PingReq)(nil), // 0: crabs.pinned_message.PingReq
|
||||
(*PingRsp)(nil), // 1: crabs.pinned_message.PingRsp
|
||||
(*GetDaysReq)(nil), // 2: crabs.pinned_message.GetDaysReq
|
||||
(*GetDaysRsp)(nil), // 3: crabs.pinned_message.GetDaysRsp
|
||||
(*Day)(nil), // 4: crabs.pinned_message.Day
|
||||
(*Performance)(nil), // 5: crabs.pinned_message.Performance
|
||||
(*Number)(nil), // 6: crabs.pinned_message.Number
|
||||
}
|
||||
var file_main_proto_depIdxs = []int32{
|
||||
0, // 0: crabs.pinned_message.pinnedMessage.Ping:input_type -> crabs.pinned_message.PingReq
|
||||
1, // 1: crabs.pinned_message.pinnedMessage.Ping:output_type -> crabs.pinned_message.PingRsp
|
||||
1, // [1:2] is the sub-list for method output_type
|
||||
0, // [0:1] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
4, // 0: crabs.pinned_message.GetDaysRsp.days:type_name -> crabs.pinned_message.Day
|
||||
5, // 1: crabs.pinned_message.Day.performances:type_name -> crabs.pinned_message.Performance
|
||||
6, // 2: crabs.pinned_message.Performance.numbers:type_name -> crabs.pinned_message.Number
|
||||
0, // 3: crabs.pinned_message.pinnedMessage.Ping:input_type -> crabs.pinned_message.PingReq
|
||||
2, // 4: crabs.pinned_message.pinnedMessage.GetDays:input_type -> crabs.pinned_message.GetDaysReq
|
||||
1, // 5: crabs.pinned_message.pinnedMessage.Ping:output_type -> crabs.pinned_message.PingRsp
|
||||
3, // 6: crabs.pinned_message.pinnedMessage.GetDays:output_type -> crabs.pinned_message.GetDaysRsp
|
||||
5, // [5:7] is the sub-list for method output_type
|
||||
3, // [3:5] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_main_proto_init() }
|
||||
@@ -143,7 +432,7 @@ func file_main_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_main_proto_rawDesc), len(file_main_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user