github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/examples/internal/proto/examplepb/unannotated_echo_service.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.28.1 4 // protoc (unknown) 5 // source: examples/internal/proto/examplepb/unannotated_echo_service.proto 6 7 // Unannotated Echo Service 8 // Similar to echo_service.proto but without annotations. See 9 // unannotated_echo_service.yaml for the equivalent of the annotations in 10 // gRPC API configuration format. 11 // 12 // Echo Service API consists of a single service which returns 13 // a message. 14 15 package examplepb 16 17 import ( 18 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 19 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 20 durationpb "google.golang.org/protobuf/types/known/durationpb" 21 reflect "reflect" 22 sync "sync" 23 ) 24 25 const ( 26 // Verify that this generated code is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 28 // Verify that runtime/protoimpl is sufficiently up-to-date. 29 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 30 ) 31 32 // Embedded represents a message embedded in SimpleMessage. 33 type UnannotatedEmbedded struct { 34 state protoimpl.MessageState 35 sizeCache protoimpl.SizeCache 36 unknownFields protoimpl.UnknownFields 37 38 // Types that are assignable to Mark: 39 // 40 // *UnannotatedEmbedded_Progress 41 // *UnannotatedEmbedded_Note 42 Mark isUnannotatedEmbedded_Mark `protobuf_oneof:"mark"` 43 } 44 45 func (x *UnannotatedEmbedded) Reset() { 46 *x = UnannotatedEmbedded{} 47 if protoimpl.UnsafeEnabled { 48 mi := &file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[0] 49 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 50 ms.StoreMessageInfo(mi) 51 } 52 } 53 54 func (x *UnannotatedEmbedded) String() string { 55 return protoimpl.X.MessageStringOf(x) 56 } 57 58 func (*UnannotatedEmbedded) ProtoMessage() {} 59 60 func (x *UnannotatedEmbedded) ProtoReflect() protoreflect.Message { 61 mi := &file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[0] 62 if protoimpl.UnsafeEnabled && x != nil { 63 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 64 if ms.LoadMessageInfo() == nil { 65 ms.StoreMessageInfo(mi) 66 } 67 return ms 68 } 69 return mi.MessageOf(x) 70 } 71 72 // Deprecated: Use UnannotatedEmbedded.ProtoReflect.Descriptor instead. 73 func (*UnannotatedEmbedded) Descriptor() ([]byte, []int) { 74 return file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescGZIP(), []int{0} 75 } 76 77 func (m *UnannotatedEmbedded) GetMark() isUnannotatedEmbedded_Mark { 78 if m != nil { 79 return m.Mark 80 } 81 return nil 82 } 83 84 func (x *UnannotatedEmbedded) GetProgress() int64 { 85 if x, ok := x.GetMark().(*UnannotatedEmbedded_Progress); ok { 86 return x.Progress 87 } 88 return 0 89 } 90 91 func (x *UnannotatedEmbedded) GetNote() string { 92 if x, ok := x.GetMark().(*UnannotatedEmbedded_Note); ok { 93 return x.Note 94 } 95 return "" 96 } 97 98 type isUnannotatedEmbedded_Mark interface { 99 isUnannotatedEmbedded_Mark() 100 } 101 102 type UnannotatedEmbedded_Progress struct { 103 Progress int64 `protobuf:"varint,1,opt,name=progress,proto3,oneof"` 104 } 105 106 type UnannotatedEmbedded_Note struct { 107 Note string `protobuf:"bytes,2,opt,name=note,proto3,oneof"` 108 } 109 110 func (*UnannotatedEmbedded_Progress) isUnannotatedEmbedded_Mark() {} 111 112 func (*UnannotatedEmbedded_Note) isUnannotatedEmbedded_Mark() {} 113 114 type UnannotatedNestedMessage struct { 115 state protoimpl.MessageState 116 sizeCache protoimpl.SizeCache 117 unknownFields protoimpl.UnknownFields 118 119 NId string `protobuf:"bytes,1,opt,name=n_id,json=nId,proto3" json:"n_id,omitempty"` 120 Val string `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"` 121 } 122 123 func (x *UnannotatedNestedMessage) Reset() { 124 *x = UnannotatedNestedMessage{} 125 if protoimpl.UnsafeEnabled { 126 mi := &file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[1] 127 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 128 ms.StoreMessageInfo(mi) 129 } 130 } 131 132 func (x *UnannotatedNestedMessage) String() string { 133 return protoimpl.X.MessageStringOf(x) 134 } 135 136 func (*UnannotatedNestedMessage) ProtoMessage() {} 137 138 func (x *UnannotatedNestedMessage) ProtoReflect() protoreflect.Message { 139 mi := &file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[1] 140 if protoimpl.UnsafeEnabled && x != nil { 141 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 142 if ms.LoadMessageInfo() == nil { 143 ms.StoreMessageInfo(mi) 144 } 145 return ms 146 } 147 return mi.MessageOf(x) 148 } 149 150 // Deprecated: Use UnannotatedNestedMessage.ProtoReflect.Descriptor instead. 151 func (*UnannotatedNestedMessage) Descriptor() ([]byte, []int) { 152 return file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescGZIP(), []int{1} 153 } 154 155 func (x *UnannotatedNestedMessage) GetNId() string { 156 if x != nil { 157 return x.NId 158 } 159 return "" 160 } 161 162 func (x *UnannotatedNestedMessage) GetVal() string { 163 if x != nil { 164 return x.Val 165 } 166 return "" 167 } 168 169 // UnannotatedSimpleMessage represents a simple message sent to the unannotated Echo service. 170 type UnannotatedSimpleMessage struct { 171 state protoimpl.MessageState 172 sizeCache protoimpl.SizeCache 173 unknownFields protoimpl.UnknownFields 174 175 // Id represents the message identifier. 176 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 177 Num int64 `protobuf:"varint,2,opt,name=num,proto3" json:"num,omitempty"` 178 Duration *durationpb.Duration `protobuf:"bytes,3,opt,name=duration,proto3" json:"duration,omitempty"` 179 // Types that are assignable to Code: 180 // 181 // *UnannotatedSimpleMessage_LineNum 182 // *UnannotatedSimpleMessage_Lang 183 Code isUnannotatedSimpleMessage_Code `protobuf_oneof:"code"` 184 Status *UnannotatedEmbedded `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` 185 // Types that are assignable to Ext: 186 // 187 // *UnannotatedSimpleMessage_En 188 // *UnannotatedSimpleMessage_No 189 Ext isUnannotatedSimpleMessage_Ext `protobuf_oneof:"ext"` 190 ResourceId string `protobuf:"bytes,9,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` 191 NId *UnannotatedNestedMessage `protobuf:"bytes,10,opt,name=n_id,json=nId,proto3" json:"n_id,omitempty"` 192 } 193 194 func (x *UnannotatedSimpleMessage) Reset() { 195 *x = UnannotatedSimpleMessage{} 196 if protoimpl.UnsafeEnabled { 197 mi := &file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[2] 198 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 199 ms.StoreMessageInfo(mi) 200 } 201 } 202 203 func (x *UnannotatedSimpleMessage) String() string { 204 return protoimpl.X.MessageStringOf(x) 205 } 206 207 func (*UnannotatedSimpleMessage) ProtoMessage() {} 208 209 func (x *UnannotatedSimpleMessage) ProtoReflect() protoreflect.Message { 210 mi := &file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[2] 211 if protoimpl.UnsafeEnabled && x != nil { 212 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 213 if ms.LoadMessageInfo() == nil { 214 ms.StoreMessageInfo(mi) 215 } 216 return ms 217 } 218 return mi.MessageOf(x) 219 } 220 221 // Deprecated: Use UnannotatedSimpleMessage.ProtoReflect.Descriptor instead. 222 func (*UnannotatedSimpleMessage) Descriptor() ([]byte, []int) { 223 return file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescGZIP(), []int{2} 224 } 225 226 func (x *UnannotatedSimpleMessage) GetId() string { 227 if x != nil { 228 return x.Id 229 } 230 return "" 231 } 232 233 func (x *UnannotatedSimpleMessage) GetNum() int64 { 234 if x != nil { 235 return x.Num 236 } 237 return 0 238 } 239 240 func (x *UnannotatedSimpleMessage) GetDuration() *durationpb.Duration { 241 if x != nil { 242 return x.Duration 243 } 244 return nil 245 } 246 247 func (m *UnannotatedSimpleMessage) GetCode() isUnannotatedSimpleMessage_Code { 248 if m != nil { 249 return m.Code 250 } 251 return nil 252 } 253 254 func (x *UnannotatedSimpleMessage) GetLineNum() int64 { 255 if x, ok := x.GetCode().(*UnannotatedSimpleMessage_LineNum); ok { 256 return x.LineNum 257 } 258 return 0 259 } 260 261 func (x *UnannotatedSimpleMessage) GetLang() string { 262 if x, ok := x.GetCode().(*UnannotatedSimpleMessage_Lang); ok { 263 return x.Lang 264 } 265 return "" 266 } 267 268 func (x *UnannotatedSimpleMessage) GetStatus() *UnannotatedEmbedded { 269 if x != nil { 270 return x.Status 271 } 272 return nil 273 } 274 275 func (m *UnannotatedSimpleMessage) GetExt() isUnannotatedSimpleMessage_Ext { 276 if m != nil { 277 return m.Ext 278 } 279 return nil 280 } 281 282 func (x *UnannotatedSimpleMessage) GetEn() int64 { 283 if x, ok := x.GetExt().(*UnannotatedSimpleMessage_En); ok { 284 return x.En 285 } 286 return 0 287 } 288 289 func (x *UnannotatedSimpleMessage) GetNo() *UnannotatedEmbedded { 290 if x, ok := x.GetExt().(*UnannotatedSimpleMessage_No); ok { 291 return x.No 292 } 293 return nil 294 } 295 296 func (x *UnannotatedSimpleMessage) GetResourceId() string { 297 if x != nil { 298 return x.ResourceId 299 } 300 return "" 301 } 302 303 func (x *UnannotatedSimpleMessage) GetNId() *UnannotatedNestedMessage { 304 if x != nil { 305 return x.NId 306 } 307 return nil 308 } 309 310 type isUnannotatedSimpleMessage_Code interface { 311 isUnannotatedSimpleMessage_Code() 312 } 313 314 type UnannotatedSimpleMessage_LineNum struct { 315 LineNum int64 `protobuf:"varint,4,opt,name=line_num,json=lineNum,proto3,oneof"` 316 } 317 318 type UnannotatedSimpleMessage_Lang struct { 319 Lang string `protobuf:"bytes,5,opt,name=lang,proto3,oneof"` 320 } 321 322 func (*UnannotatedSimpleMessage_LineNum) isUnannotatedSimpleMessage_Code() {} 323 324 func (*UnannotatedSimpleMessage_Lang) isUnannotatedSimpleMessage_Code() {} 325 326 type isUnannotatedSimpleMessage_Ext interface { 327 isUnannotatedSimpleMessage_Ext() 328 } 329 330 type UnannotatedSimpleMessage_En struct { 331 En int64 `protobuf:"varint,7,opt,name=en,proto3,oneof"` 332 } 333 334 type UnannotatedSimpleMessage_No struct { 335 No *UnannotatedEmbedded `protobuf:"bytes,8,opt,name=no,proto3,oneof"` 336 } 337 338 func (*UnannotatedSimpleMessage_En) isUnannotatedSimpleMessage_Ext() {} 339 340 func (*UnannotatedSimpleMessage_No) isUnannotatedSimpleMessage_Ext() {} 341 342 var File_examples_internal_proto_examplepb_unannotated_echo_service_proto protoreflect.FileDescriptor 343 344 var file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDesc = []byte{ 345 0x0a, 0x40, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 346 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 347 0x65, 0x70, 0x62, 0x2f, 0x75, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x5f, 348 0x65, 0x63, 0x68, 0x6f, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 349 0x74, 0x6f, 0x12, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 350 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 351 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 352 0x70, 0x62, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 353 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 354 0x74, 0x6f, 0x22, 0x51, 0x0a, 0x13, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 355 0x64, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x08, 0x70, 0x72, 0x6f, 356 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x70, 357 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x14, 0x0a, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x18, 358 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x6f, 0x74, 0x65, 0x42, 0x06, 0x0a, 359 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x22, 0x3f, 0x0a, 0x18, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 360 0x61, 0x74, 0x65, 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 361 0x65, 0x12, 0x11, 0x0a, 0x04, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 362 0x03, 0x6e, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x76, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 363 0x09, 0x52, 0x03, 0x76, 0x61, 0x6c, 0x22, 0xf9, 0x03, 0x0a, 0x18, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 364 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 365 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 366 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 367 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x12, 0x35, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 368 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 369 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 370 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x08, 371 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 372 0x52, 0x07, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x12, 0x14, 0x0a, 0x04, 0x6c, 0x61, 0x6e, 373 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6c, 0x61, 0x6e, 0x67, 0x12, 374 0x5b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 375 0x43, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 376 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 377 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 378 0x2e, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x45, 0x6d, 0x62, 0x65, 379 0x64, 0x64, 0x65, 0x64, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x10, 0x0a, 0x02, 380 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01, 0x52, 0x02, 0x65, 0x6e, 0x12, 0x55, 381 0x0a, 0x02, 0x6e, 0x6f, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x67, 0x72, 0x70, 382 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 383 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 384 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 385 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x45, 0x6d, 0x62, 0x65, 0x64, 0x64, 0x65, 0x64, 0x48, 386 0x01, 0x52, 0x02, 0x6e, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 387 0x65, 0x5f, 0x69, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 388 0x75, 0x72, 0x63, 0x65, 0x49, 0x64, 0x12, 0x5b, 0x0a, 0x04, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x0a, 389 0x20, 0x01, 0x28, 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 390 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 391 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 392 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 393 0x64, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x03, 394 0x6e, 0x49, 0x64, 0x42, 0x06, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x65, 395 0x78, 0x74, 0x32, 0xf9, 0x03, 0x0a, 0x16, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 396 0x65, 0x64, 0x45, 0x63, 0x68, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x9a, 0x01, 397 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x48, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 398 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 399 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 400 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 401 0x74, 0x65, 0x64, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 402 0x1a, 0x48, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 403 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 404 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 405 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6d, 406 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x9e, 0x01, 0x0a, 0x08, 0x45, 407 0x63, 0x68, 0x6f, 0x42, 0x6f, 0x64, 0x79, 0x12, 0x48, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 408 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 409 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 410 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 411 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 412 0x65, 0x1a, 0x48, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 413 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 414 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 415 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 416 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0xa0, 0x01, 0x0a, 0x0a, 417 0x45, 0x63, 0x68, 0x6f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x48, 0x2e, 0x67, 0x72, 0x70, 418 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 419 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 420 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 421 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 0x64, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 422 0x73, 0x61, 0x67, 0x65, 0x1a, 0x48, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x67, 0x61, 0x74, 0x65, 423 0x77, 0x61, 0x79, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x69, 0x6e, 0x74, 424 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x65, 0x78, 0x61, 0x6d, 425 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2e, 0x55, 0x6e, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x65, 426 0x64, 0x53, 0x69, 0x6d, 0x70, 0x6c, 0x65, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x57, 427 0x5a, 0x55, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x70, 428 0x63, 0x2d, 0x65, 0x63, 0x6f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 429 0x2d, 0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x65, 0x78, 0x61, 0x6d, 430 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 431 0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x3b, 0x65, 0x78, 432 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 433 } 434 435 var ( 436 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescOnce sync.Once 437 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescData = file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDesc 438 ) 439 440 func file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescGZIP() []byte { 441 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescOnce.Do(func() { 442 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescData) 443 }) 444 return file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDescData 445 } 446 447 var file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 448 var file_examples_internal_proto_examplepb_unannotated_echo_service_proto_goTypes = []interface{}{ 449 (*UnannotatedEmbedded)(nil), // 0: grpc.gateway.examples.internal.proto.examplepb.UnannotatedEmbedded 450 (*UnannotatedNestedMessage)(nil), // 1: grpc.gateway.examples.internal.proto.examplepb.UnannotatedNestedMessage 451 (*UnannotatedSimpleMessage)(nil), // 2: grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage 452 (*durationpb.Duration)(nil), // 3: google.protobuf.Duration 453 } 454 var file_examples_internal_proto_examplepb_unannotated_echo_service_proto_depIdxs = []int32{ 455 3, // 0: grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage.duration:type_name -> google.protobuf.Duration 456 0, // 1: grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage.status:type_name -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedEmbedded 457 0, // 2: grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage.no:type_name -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedEmbedded 458 1, // 3: grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage.n_id:type_name -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedNestedMessage 459 2, // 4: grpc.gateway.examples.internal.proto.examplepb.UnannotatedEchoService.Echo:input_type -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage 460 2, // 5: grpc.gateway.examples.internal.proto.examplepb.UnannotatedEchoService.EchoBody:input_type -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage 461 2, // 6: grpc.gateway.examples.internal.proto.examplepb.UnannotatedEchoService.EchoDelete:input_type -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage 462 2, // 7: grpc.gateway.examples.internal.proto.examplepb.UnannotatedEchoService.Echo:output_type -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage 463 2, // 8: grpc.gateway.examples.internal.proto.examplepb.UnannotatedEchoService.EchoBody:output_type -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage 464 2, // 9: grpc.gateway.examples.internal.proto.examplepb.UnannotatedEchoService.EchoDelete:output_type -> grpc.gateway.examples.internal.proto.examplepb.UnannotatedSimpleMessage 465 7, // [7:10] is the sub-list for method output_type 466 4, // [4:7] is the sub-list for method input_type 467 4, // [4:4] is the sub-list for extension type_name 468 4, // [4:4] is the sub-list for extension extendee 469 0, // [0:4] is the sub-list for field type_name 470 } 471 472 func init() { file_examples_internal_proto_examplepb_unannotated_echo_service_proto_init() } 473 func file_examples_internal_proto_examplepb_unannotated_echo_service_proto_init() { 474 if File_examples_internal_proto_examplepb_unannotated_echo_service_proto != nil { 475 return 476 } 477 if !protoimpl.UnsafeEnabled { 478 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 479 switch v := v.(*UnannotatedEmbedded); i { 480 case 0: 481 return &v.state 482 case 1: 483 return &v.sizeCache 484 case 2: 485 return &v.unknownFields 486 default: 487 return nil 488 } 489 } 490 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 491 switch v := v.(*UnannotatedNestedMessage); i { 492 case 0: 493 return &v.state 494 case 1: 495 return &v.sizeCache 496 case 2: 497 return &v.unknownFields 498 default: 499 return nil 500 } 501 } 502 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 503 switch v := v.(*UnannotatedSimpleMessage); i { 504 case 0: 505 return &v.state 506 case 1: 507 return &v.sizeCache 508 case 2: 509 return &v.unknownFields 510 default: 511 return nil 512 } 513 } 514 } 515 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[0].OneofWrappers = []interface{}{ 516 (*UnannotatedEmbedded_Progress)(nil), 517 (*UnannotatedEmbedded_Note)(nil), 518 } 519 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes[2].OneofWrappers = []interface{}{ 520 (*UnannotatedSimpleMessage_LineNum)(nil), 521 (*UnannotatedSimpleMessage_Lang)(nil), 522 (*UnannotatedSimpleMessage_En)(nil), 523 (*UnannotatedSimpleMessage_No)(nil), 524 } 525 type x struct{} 526 out := protoimpl.TypeBuilder{ 527 File: protoimpl.DescBuilder{ 528 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 529 RawDescriptor: file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDesc, 530 NumEnums: 0, 531 NumMessages: 3, 532 NumExtensions: 0, 533 NumServices: 1, 534 }, 535 GoTypes: file_examples_internal_proto_examplepb_unannotated_echo_service_proto_goTypes, 536 DependencyIndexes: file_examples_internal_proto_examplepb_unannotated_echo_service_proto_depIdxs, 537 MessageInfos: file_examples_internal_proto_examplepb_unannotated_echo_service_proto_msgTypes, 538 }.Build() 539 File_examples_internal_proto_examplepb_unannotated_echo_service_proto = out.File 540 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_rawDesc = nil 541 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_goTypes = nil 542 file_examples_internal_proto_examplepb_unannotated_echo_service_proto_depIdxs = nil 543 }