1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 package echo_go_proto
25
26 import (
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 reflect "reflect"
30 sync "sync"
31 )
32
33 const (
34
35 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
36
37 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
38 )
39
40 type EchoRequest struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
46 }
47
48 func (x *EchoRequest) Reset() {
49 *x = EchoRequest{}
50 if protoimpl.UnsafeEnabled {
51 mi := &file_example_proto_echo_proto_msgTypes[0]
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 ms.StoreMessageInfo(mi)
54 }
55 }
56
57 func (x *EchoRequest) String() string {
58 return protoimpl.X.MessageStringOf(x)
59 }
60
61 func (*EchoRequest) ProtoMessage() {}
62
63 func (x *EchoRequest) ProtoReflect() protoreflect.Message {
64 mi := &file_example_proto_echo_proto_msgTypes[0]
65 if protoimpl.UnsafeEnabled && x != nil {
66 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
67 if ms.LoadMessageInfo() == nil {
68 ms.StoreMessageInfo(mi)
69 }
70 return ms
71 }
72 return mi.MessageOf(x)
73 }
74
75
76 func (*EchoRequest) Descriptor() ([]byte, []int) {
77 return file_example_proto_echo_proto_rawDescGZIP(), []int{0}
78 }
79
80 func (x *EchoRequest) GetMsg() string {
81 if x != nil {
82 return x.Msg
83 }
84 return ""
85 }
86
87 type EchoResponse struct {
88 state protoimpl.MessageState
89 sizeCache protoimpl.SizeCache
90 unknownFields protoimpl.UnknownFields
91
92 Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
93 }
94
95 func (x *EchoResponse) Reset() {
96 *x = EchoResponse{}
97 if protoimpl.UnsafeEnabled {
98 mi := &file_example_proto_echo_proto_msgTypes[1]
99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
100 ms.StoreMessageInfo(mi)
101 }
102 }
103
104 func (x *EchoResponse) String() string {
105 return protoimpl.X.MessageStringOf(x)
106 }
107
108 func (*EchoResponse) ProtoMessage() {}
109
110 func (x *EchoResponse) ProtoReflect() protoreflect.Message {
111 mi := &file_example_proto_echo_proto_msgTypes[1]
112 if protoimpl.UnsafeEnabled && x != nil {
113 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
114 if ms.LoadMessageInfo() == nil {
115 ms.StoreMessageInfo(mi)
116 }
117 return ms
118 }
119 return mi.MessageOf(x)
120 }
121
122
123 func (*EchoResponse) Descriptor() ([]byte, []int) {
124 return file_example_proto_echo_proto_rawDescGZIP(), []int{1}
125 }
126
127 func (x *EchoResponse) GetMsg() string {
128 if x != nil {
129 return x.Msg
130 }
131 return ""
132 }
133
134 var File_example_proto_echo_proto protoreflect.FileDescriptor
135
136 var file_example_proto_echo_proto_rawDesc = []byte{
137 0x0a, 0x18, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
138 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x73, 0x32, 0x61, 0x76,
139 0x32, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
140 0x1f, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10,
141 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d, 0x73, 0x67,
142 0x22, 0x20, 0x0a, 0x0c, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
143 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x73, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6d,
144 0x73, 0x67, 0x32, 0x55, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x4d, 0x0a, 0x04, 0x45, 0x63,
145 0x68, 0x6f, 0x12, 0x20, 0x2e, 0x73, 0x32, 0x61, 0x76, 0x32, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70,
146 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71,
147 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x73, 0x32, 0x61, 0x76, 0x32, 0x2e, 0x65, 0x78, 0x61,
148 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x52,
149 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74,
150 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73,
151 0x32, 0x61, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
152 0x2f, 0x65, 0x63, 0x68, 0x6f, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06,
153 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
154 }
155
156 var (
157 file_example_proto_echo_proto_rawDescOnce sync.Once
158 file_example_proto_echo_proto_rawDescData = file_example_proto_echo_proto_rawDesc
159 )
160
161 func file_example_proto_echo_proto_rawDescGZIP() []byte {
162 file_example_proto_echo_proto_rawDescOnce.Do(func() {
163 file_example_proto_echo_proto_rawDescData = protoimpl.X.CompressGZIP(file_example_proto_echo_proto_rawDescData)
164 })
165 return file_example_proto_echo_proto_rawDescData
166 }
167
168 var file_example_proto_echo_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
169 var file_example_proto_echo_proto_goTypes = []interface{}{
170 (*EchoRequest)(nil),
171 (*EchoResponse)(nil),
172 }
173 var file_example_proto_echo_proto_depIdxs = []int32{
174 0,
175 1,
176 1,
177 0,
178 0,
179 0,
180 0,
181 }
182
183 func init() { file_example_proto_echo_proto_init() }
184 func file_example_proto_echo_proto_init() {
185 if File_example_proto_echo_proto != nil {
186 return
187 }
188 if !protoimpl.UnsafeEnabled {
189 file_example_proto_echo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
190 switch v := v.(*EchoRequest); i {
191 case 0:
192 return &v.state
193 case 1:
194 return &v.sizeCache
195 case 2:
196 return &v.unknownFields
197 default:
198 return nil
199 }
200 }
201 file_example_proto_echo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
202 switch v := v.(*EchoResponse); i {
203 case 0:
204 return &v.state
205 case 1:
206 return &v.sizeCache
207 case 2:
208 return &v.unknownFields
209 default:
210 return nil
211 }
212 }
213 }
214 type x struct{}
215 out := protoimpl.TypeBuilder{
216 File: protoimpl.DescBuilder{
217 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
218 RawDescriptor: file_example_proto_echo_proto_rawDesc,
219 NumEnums: 0,
220 NumMessages: 2,
221 NumExtensions: 0,
222 NumServices: 1,
223 },
224 GoTypes: file_example_proto_echo_proto_goTypes,
225 DependencyIndexes: file_example_proto_echo_proto_depIdxs,
226 MessageInfos: file_example_proto_echo_proto_msgTypes,
227 }.Build()
228 File_example_proto_echo_proto = out.File
229 file_example_proto_echo_proto_rawDesc = nil
230 file_example_proto_echo_proto_goTypes = nil
231 file_example_proto_echo_proto_depIdxs = nil
232 }
233
View as plain text