github.com/annwntech/go-micro/v2@v2.9.5/api/proto/api.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.25.0 4 // protoc v3.13.0 5 // source: api/proto/api.proto 6 7 package go_api 8 9 import ( 10 proto "github.com/golang/protobuf/proto" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // This is a compile-time assertion that a sufficiently up-to-date version 25 // of the legacy proto package is being used. 26 const _ = proto.ProtoPackageIsVersion4 27 28 type Pair struct { 29 state protoimpl.MessageState 30 sizeCache protoimpl.SizeCache 31 unknownFields protoimpl.UnknownFields 32 33 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 34 Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` 35 } 36 37 func (x *Pair) Reset() { 38 *x = Pair{} 39 if protoimpl.UnsafeEnabled { 40 mi := &file_api_proto_api_proto_msgTypes[0] 41 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 42 ms.StoreMessageInfo(mi) 43 } 44 } 45 46 func (x *Pair) String() string { 47 return protoimpl.X.MessageStringOf(x) 48 } 49 50 func (*Pair) ProtoMessage() {} 51 52 func (x *Pair) ProtoReflect() protoreflect.Message { 53 mi := &file_api_proto_api_proto_msgTypes[0] 54 if protoimpl.UnsafeEnabled && x != nil { 55 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 56 if ms.LoadMessageInfo() == nil { 57 ms.StoreMessageInfo(mi) 58 } 59 return ms 60 } 61 return mi.MessageOf(x) 62 } 63 64 // Deprecated: Use Pair.ProtoReflect.Descriptor instead. 65 func (*Pair) Descriptor() ([]byte, []int) { 66 return file_api_proto_api_proto_rawDescGZIP(), []int{0} 67 } 68 69 func (x *Pair) GetKey() string { 70 if x != nil { 71 return x.Key 72 } 73 return "" 74 } 75 76 func (x *Pair) GetValues() []string { 77 if x != nil { 78 return x.Values 79 } 80 return nil 81 } 82 83 // A HTTP request as RPC 84 // Forward by the api handler 85 type Request struct { 86 state protoimpl.MessageState 87 sizeCache protoimpl.SizeCache 88 unknownFields protoimpl.UnknownFields 89 90 Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` 91 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 92 Header map[string]*Pair `protobuf:"bytes,3,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 93 Get map[string]*Pair `protobuf:"bytes,4,rep,name=get,proto3" json:"get,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 94 Post map[string]*Pair `protobuf:"bytes,5,rep,name=post,proto3" json:"post,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 95 Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"` // raw request body; if not application/x-www-form-urlencoded 96 Url string `protobuf:"bytes,7,opt,name=url,proto3" json:"url,omitempty"` 97 } 98 99 func (x *Request) Reset() { 100 *x = Request{} 101 if protoimpl.UnsafeEnabled { 102 mi := &file_api_proto_api_proto_msgTypes[1] 103 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 104 ms.StoreMessageInfo(mi) 105 } 106 } 107 108 func (x *Request) String() string { 109 return protoimpl.X.MessageStringOf(x) 110 } 111 112 func (*Request) ProtoMessage() {} 113 114 func (x *Request) ProtoReflect() protoreflect.Message { 115 mi := &file_api_proto_api_proto_msgTypes[1] 116 if protoimpl.UnsafeEnabled && x != nil { 117 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 118 if ms.LoadMessageInfo() == nil { 119 ms.StoreMessageInfo(mi) 120 } 121 return ms 122 } 123 return mi.MessageOf(x) 124 } 125 126 // Deprecated: Use Request.ProtoReflect.Descriptor instead. 127 func (*Request) Descriptor() ([]byte, []int) { 128 return file_api_proto_api_proto_rawDescGZIP(), []int{1} 129 } 130 131 func (x *Request) GetMethod() string { 132 if x != nil { 133 return x.Method 134 } 135 return "" 136 } 137 138 func (x *Request) GetPath() string { 139 if x != nil { 140 return x.Path 141 } 142 return "" 143 } 144 145 func (x *Request) GetHeader() map[string]*Pair { 146 if x != nil { 147 return x.Header 148 } 149 return nil 150 } 151 152 func (x *Request) GetGet() map[string]*Pair { 153 if x != nil { 154 return x.Get 155 } 156 return nil 157 } 158 159 func (x *Request) GetPost() map[string]*Pair { 160 if x != nil { 161 return x.Post 162 } 163 return nil 164 } 165 166 func (x *Request) GetBody() string { 167 if x != nil { 168 return x.Body 169 } 170 return "" 171 } 172 173 func (x *Request) GetUrl() string { 174 if x != nil { 175 return x.Url 176 } 177 return "" 178 } 179 180 // A HTTP response as RPC 181 // Expected response for the api handler 182 type Response struct { 183 state protoimpl.MessageState 184 sizeCache protoimpl.SizeCache 185 unknownFields protoimpl.UnknownFields 186 187 StatusCode int32 `protobuf:"varint,1,opt,name=statusCode,proto3" json:"statusCode,omitempty"` 188 Header map[string]*Pair `protobuf:"bytes,2,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 189 Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` 190 } 191 192 func (x *Response) Reset() { 193 *x = Response{} 194 if protoimpl.UnsafeEnabled { 195 mi := &file_api_proto_api_proto_msgTypes[2] 196 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 197 ms.StoreMessageInfo(mi) 198 } 199 } 200 201 func (x *Response) String() string { 202 return protoimpl.X.MessageStringOf(x) 203 } 204 205 func (*Response) ProtoMessage() {} 206 207 func (x *Response) ProtoReflect() protoreflect.Message { 208 mi := &file_api_proto_api_proto_msgTypes[2] 209 if protoimpl.UnsafeEnabled && x != nil { 210 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 211 if ms.LoadMessageInfo() == nil { 212 ms.StoreMessageInfo(mi) 213 } 214 return ms 215 } 216 return mi.MessageOf(x) 217 } 218 219 // Deprecated: Use Response.ProtoReflect.Descriptor instead. 220 func (*Response) Descriptor() ([]byte, []int) { 221 return file_api_proto_api_proto_rawDescGZIP(), []int{2} 222 } 223 224 func (x *Response) GetStatusCode() int32 { 225 if x != nil { 226 return x.StatusCode 227 } 228 return 0 229 } 230 231 func (x *Response) GetHeader() map[string]*Pair { 232 if x != nil { 233 return x.Header 234 } 235 return nil 236 } 237 238 func (x *Response) GetBody() string { 239 if x != nil { 240 return x.Body 241 } 242 return "" 243 } 244 245 // A HTTP event as RPC 246 // Forwarded by the event handler 247 type Event struct { 248 state protoimpl.MessageState 249 sizeCache protoimpl.SizeCache 250 unknownFields protoimpl.UnknownFields 251 252 // e.g login 253 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 254 // uuid 255 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 256 // unix timestamp of event 257 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 258 // event headers 259 Header map[string]*Pair `protobuf:"bytes,4,rep,name=header,proto3" json:"header,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 260 // the event data 261 Data string `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` 262 } 263 264 func (x *Event) Reset() { 265 *x = Event{} 266 if protoimpl.UnsafeEnabled { 267 mi := &file_api_proto_api_proto_msgTypes[3] 268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 269 ms.StoreMessageInfo(mi) 270 } 271 } 272 273 func (x *Event) String() string { 274 return protoimpl.X.MessageStringOf(x) 275 } 276 277 func (*Event) ProtoMessage() {} 278 279 func (x *Event) ProtoReflect() protoreflect.Message { 280 mi := &file_api_proto_api_proto_msgTypes[3] 281 if protoimpl.UnsafeEnabled && x != nil { 282 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 283 if ms.LoadMessageInfo() == nil { 284 ms.StoreMessageInfo(mi) 285 } 286 return ms 287 } 288 return mi.MessageOf(x) 289 } 290 291 // Deprecated: Use Event.ProtoReflect.Descriptor instead. 292 func (*Event) Descriptor() ([]byte, []int) { 293 return file_api_proto_api_proto_rawDescGZIP(), []int{3} 294 } 295 296 func (x *Event) GetName() string { 297 if x != nil { 298 return x.Name 299 } 300 return "" 301 } 302 303 func (x *Event) GetId() string { 304 if x != nil { 305 return x.Id 306 } 307 return "" 308 } 309 310 func (x *Event) GetTimestamp() int64 { 311 if x != nil { 312 return x.Timestamp 313 } 314 return 0 315 } 316 317 func (x *Event) GetHeader() map[string]*Pair { 318 if x != nil { 319 return x.Header 320 } 321 return nil 322 } 323 324 func (x *Event) GetData() string { 325 if x != nil { 326 return x.Data 327 } 328 return "" 329 } 330 331 var File_api_proto_api_proto protoreflect.FileDescriptor 332 333 var file_api_proto_api_proto_rawDesc = []byte{ 334 0x0a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x2e, 335 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x22, 0x30, 0x0a, 336 0x04, 0x50, 0x61, 0x69, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 337 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 338 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 339 0xc1, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6d, 340 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 341 0x68, 0x6f, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 342 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x33, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 343 0x72, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 344 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 345 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x03, 346 0x67, 0x65, 0x74, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x2e, 0x61, 347 0x70, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x47, 0x65, 0x74, 0x45, 0x6e, 348 0x74, 0x72, 0x79, 0x52, 0x03, 0x67, 0x65, 0x74, 0x12, 0x2d, 0x0a, 0x04, 0x70, 0x6f, 0x73, 0x74, 349 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 350 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 351 0x79, 0x52, 0x04, 0x70, 0x6f, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 352 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x75, 353 0x72, 0x6c, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x47, 0x0a, 354 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 355 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 356 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 357 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 358 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x44, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x45, 0x6e, 0x74, 359 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 360 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 361 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x69, 362 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x45, 0x0a, 0x09, 363 0x50, 0x6f, 0x73, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 364 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 365 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x6f, 0x2e, 366 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 367 0x02, 0x38, 0x01, 0x22, 0xbd, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 368 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x18, 0x01, 369 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 370 0x12, 0x34, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 371 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 372 0x73, 0x65, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 373 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 374 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x1a, 0x47, 0x0a, 0x0b, 0x48, 0x65, 375 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 376 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 377 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x6f, 0x2e, 378 0x61, 0x70, 0x69, 0x2e, 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 379 0x02, 0x38, 0x01, 0x22, 0xd9, 0x01, 0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x12, 0x0a, 380 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 381 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 382 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 383 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 384 0x31, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 385 0x19, 0x2e, 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x48, 386 0x65, 0x61, 0x64, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 387 0x65, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 388 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x47, 0x0a, 0x0b, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 389 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 390 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 391 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x67, 0x6f, 0x2e, 0x61, 0x70, 0x69, 0x2e, 392 0x50, 0x61, 0x69, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 393 0x33, 0x5a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x6e, 394 0x6e, 0x77, 0x6e, 0x74, 0x65, 0x63, 0x68, 0x2f, 0x67, 0x6f, 0x2d, 0x6d, 0x69, 0x63, 0x72, 0x6f, 395 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x67, 0x6f, 396 0x5f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 397 } 398 399 var ( 400 file_api_proto_api_proto_rawDescOnce sync.Once 401 file_api_proto_api_proto_rawDescData = file_api_proto_api_proto_rawDesc 402 ) 403 404 func file_api_proto_api_proto_rawDescGZIP() []byte { 405 file_api_proto_api_proto_rawDescOnce.Do(func() { 406 file_api_proto_api_proto_rawDescData = protoimpl.X.CompressGZIP(file_api_proto_api_proto_rawDescData) 407 }) 408 return file_api_proto_api_proto_rawDescData 409 } 410 411 var file_api_proto_api_proto_msgTypes = make([]protoimpl.MessageInfo, 9) 412 var file_api_proto_api_proto_goTypes = []interface{}{ 413 (*Pair)(nil), // 0: go.api.Pair 414 (*Request)(nil), // 1: go.api.Request 415 (*Response)(nil), // 2: go.api.Response 416 (*Event)(nil), // 3: go.api.Event 417 nil, // 4: go.api.Request.HeaderEntry 418 nil, // 5: go.api.Request.GetEntry 419 nil, // 6: go.api.Request.PostEntry 420 nil, // 7: go.api.Response.HeaderEntry 421 nil, // 8: go.api.Event.HeaderEntry 422 } 423 var file_api_proto_api_proto_depIdxs = []int32{ 424 4, // 0: go.api.Request.header:type_name -> go.api.Request.HeaderEntry 425 5, // 1: go.api.Request.get:type_name -> go.api.Request.GetEntry 426 6, // 2: go.api.Request.post:type_name -> go.api.Request.PostEntry 427 7, // 3: go.api.Response.header:type_name -> go.api.Response.HeaderEntry 428 8, // 4: go.api.Event.header:type_name -> go.api.Event.HeaderEntry 429 0, // 5: go.api.Request.HeaderEntry.value:type_name -> go.api.Pair 430 0, // 6: go.api.Request.GetEntry.value:type_name -> go.api.Pair 431 0, // 7: go.api.Request.PostEntry.value:type_name -> go.api.Pair 432 0, // 8: go.api.Response.HeaderEntry.value:type_name -> go.api.Pair 433 0, // 9: go.api.Event.HeaderEntry.value:type_name -> go.api.Pair 434 10, // [10:10] is the sub-list for method output_type 435 10, // [10:10] is the sub-list for method input_type 436 10, // [10:10] is the sub-list for extension type_name 437 10, // [10:10] is the sub-list for extension extendee 438 0, // [0:10] is the sub-list for field type_name 439 } 440 441 func init() { file_api_proto_api_proto_init() } 442 func file_api_proto_api_proto_init() { 443 if File_api_proto_api_proto != nil { 444 return 445 } 446 if !protoimpl.UnsafeEnabled { 447 file_api_proto_api_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 448 switch v := v.(*Pair); i { 449 case 0: 450 return &v.state 451 case 1: 452 return &v.sizeCache 453 case 2: 454 return &v.unknownFields 455 default: 456 return nil 457 } 458 } 459 file_api_proto_api_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 460 switch v := v.(*Request); i { 461 case 0: 462 return &v.state 463 case 1: 464 return &v.sizeCache 465 case 2: 466 return &v.unknownFields 467 default: 468 return nil 469 } 470 } 471 file_api_proto_api_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 472 switch v := v.(*Response); i { 473 case 0: 474 return &v.state 475 case 1: 476 return &v.sizeCache 477 case 2: 478 return &v.unknownFields 479 default: 480 return nil 481 } 482 } 483 file_api_proto_api_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 484 switch v := v.(*Event); i { 485 case 0: 486 return &v.state 487 case 1: 488 return &v.sizeCache 489 case 2: 490 return &v.unknownFields 491 default: 492 return nil 493 } 494 } 495 } 496 type x struct{} 497 out := protoimpl.TypeBuilder{ 498 File: protoimpl.DescBuilder{ 499 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 500 RawDescriptor: file_api_proto_api_proto_rawDesc, 501 NumEnums: 0, 502 NumMessages: 9, 503 NumExtensions: 0, 504 NumServices: 0, 505 }, 506 GoTypes: file_api_proto_api_proto_goTypes, 507 DependencyIndexes: file_api_proto_api_proto_depIdxs, 508 MessageInfos: file_api_proto_api_proto_msgTypes, 509 }.Build() 510 File_api_proto_api_proto = out.File 511 file_api_proto_api_proto_rawDesc = nil 512 file_api_proto_api_proto_goTypes = nil 513 file_api_proto_api_proto_depIdxs = nil 514 }