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