request.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.28.1
  4. // protoc v3.20.1
  5. // source: github.com/containerd/ttrpc/request.proto
  6. package ttrpc
  7. import (
  8. status "google.golang.org/genproto/googleapis/rpc/status"
  9. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  10. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  11. reflect "reflect"
  12. sync "sync"
  13. )
  14. const (
  15. // Verify that this generated code is sufficiently up-to-date.
  16. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  17. // Verify that runtime/protoimpl is sufficiently up-to-date.
  18. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  19. )
  20. type Request struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
  25. Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
  26. Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
  27. TimeoutNano int64 `protobuf:"varint,4,opt,name=timeout_nano,json=timeoutNano,proto3" json:"timeout_nano,omitempty"`
  28. Metadata []*KeyValue `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty"`
  29. }
  30. func (x *Request) Reset() {
  31. *x = Request{}
  32. if protoimpl.UnsafeEnabled {
  33. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[0]
  34. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  35. ms.StoreMessageInfo(mi)
  36. }
  37. }
  38. func (x *Request) String() string {
  39. return protoimpl.X.MessageStringOf(x)
  40. }
  41. func (*Request) ProtoMessage() {}
  42. func (x *Request) ProtoReflect() protoreflect.Message {
  43. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[0]
  44. if protoimpl.UnsafeEnabled && x != nil {
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. if ms.LoadMessageInfo() == nil {
  47. ms.StoreMessageInfo(mi)
  48. }
  49. return ms
  50. }
  51. return mi.MessageOf(x)
  52. }
  53. // Deprecated: Use Request.ProtoReflect.Descriptor instead.
  54. func (*Request) Descriptor() ([]byte, []int) {
  55. return file_github_com_containerd_ttrpc_request_proto_rawDescGZIP(), []int{0}
  56. }
  57. func (x *Request) GetService() string {
  58. if x != nil {
  59. return x.Service
  60. }
  61. return ""
  62. }
  63. func (x *Request) GetMethod() string {
  64. if x != nil {
  65. return x.Method
  66. }
  67. return ""
  68. }
  69. func (x *Request) GetPayload() []byte {
  70. if x != nil {
  71. return x.Payload
  72. }
  73. return nil
  74. }
  75. func (x *Request) GetTimeoutNano() int64 {
  76. if x != nil {
  77. return x.TimeoutNano
  78. }
  79. return 0
  80. }
  81. func (x *Request) GetMetadata() []*KeyValue {
  82. if x != nil {
  83. return x.Metadata
  84. }
  85. return nil
  86. }
  87. type Response struct {
  88. state protoimpl.MessageState
  89. sizeCache protoimpl.SizeCache
  90. unknownFields protoimpl.UnknownFields
  91. Status *status.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
  92. Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
  93. }
  94. func (x *Response) Reset() {
  95. *x = Response{}
  96. if protoimpl.UnsafeEnabled {
  97. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[1]
  98. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  99. ms.StoreMessageInfo(mi)
  100. }
  101. }
  102. func (x *Response) String() string {
  103. return protoimpl.X.MessageStringOf(x)
  104. }
  105. func (*Response) ProtoMessage() {}
  106. func (x *Response) ProtoReflect() protoreflect.Message {
  107. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[1]
  108. if protoimpl.UnsafeEnabled && x != nil {
  109. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  110. if ms.LoadMessageInfo() == nil {
  111. ms.StoreMessageInfo(mi)
  112. }
  113. return ms
  114. }
  115. return mi.MessageOf(x)
  116. }
  117. // Deprecated: Use Response.ProtoReflect.Descriptor instead.
  118. func (*Response) Descriptor() ([]byte, []int) {
  119. return file_github_com_containerd_ttrpc_request_proto_rawDescGZIP(), []int{1}
  120. }
  121. func (x *Response) GetStatus() *status.Status {
  122. if x != nil {
  123. return x.Status
  124. }
  125. return nil
  126. }
  127. func (x *Response) GetPayload() []byte {
  128. if x != nil {
  129. return x.Payload
  130. }
  131. return nil
  132. }
  133. type StringList struct {
  134. state protoimpl.MessageState
  135. sizeCache protoimpl.SizeCache
  136. unknownFields protoimpl.UnknownFields
  137. List []string `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
  138. }
  139. func (x *StringList) Reset() {
  140. *x = StringList{}
  141. if protoimpl.UnsafeEnabled {
  142. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[2]
  143. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  144. ms.StoreMessageInfo(mi)
  145. }
  146. }
  147. func (x *StringList) String() string {
  148. return protoimpl.X.MessageStringOf(x)
  149. }
  150. func (*StringList) ProtoMessage() {}
  151. func (x *StringList) ProtoReflect() protoreflect.Message {
  152. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[2]
  153. if protoimpl.UnsafeEnabled && x != nil {
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. if ms.LoadMessageInfo() == nil {
  156. ms.StoreMessageInfo(mi)
  157. }
  158. return ms
  159. }
  160. return mi.MessageOf(x)
  161. }
  162. // Deprecated: Use StringList.ProtoReflect.Descriptor instead.
  163. func (*StringList) Descriptor() ([]byte, []int) {
  164. return file_github_com_containerd_ttrpc_request_proto_rawDescGZIP(), []int{2}
  165. }
  166. func (x *StringList) GetList() []string {
  167. if x != nil {
  168. return x.List
  169. }
  170. return nil
  171. }
  172. type KeyValue struct {
  173. state protoimpl.MessageState
  174. sizeCache protoimpl.SizeCache
  175. unknownFields protoimpl.UnknownFields
  176. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  177. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  178. }
  179. func (x *KeyValue) Reset() {
  180. *x = KeyValue{}
  181. if protoimpl.UnsafeEnabled {
  182. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[3]
  183. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  184. ms.StoreMessageInfo(mi)
  185. }
  186. }
  187. func (x *KeyValue) String() string {
  188. return protoimpl.X.MessageStringOf(x)
  189. }
  190. func (*KeyValue) ProtoMessage() {}
  191. func (x *KeyValue) ProtoReflect() protoreflect.Message {
  192. mi := &file_github_com_containerd_ttrpc_request_proto_msgTypes[3]
  193. if protoimpl.UnsafeEnabled && x != nil {
  194. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  195. if ms.LoadMessageInfo() == nil {
  196. ms.StoreMessageInfo(mi)
  197. }
  198. return ms
  199. }
  200. return mi.MessageOf(x)
  201. }
  202. // Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.
  203. func (*KeyValue) Descriptor() ([]byte, []int) {
  204. return file_github_com_containerd_ttrpc_request_proto_rawDescGZIP(), []int{3}
  205. }
  206. func (x *KeyValue) GetKey() string {
  207. if x != nil {
  208. return x.Key
  209. }
  210. return ""
  211. }
  212. func (x *KeyValue) GetValue() string {
  213. if x != nil {
  214. return x.Value
  215. }
  216. return ""
  217. }
  218. var File_github_com_containerd_ttrpc_request_proto protoreflect.FileDescriptor
  219. var file_github_com_containerd_ttrpc_request_proto_rawDesc = []byte{
  220. 0x0a, 0x29, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e,
  221. 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2f, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65,
  222. 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, 0x74, 0x72,
  223. 0x70, 0x63, 0x1a, 0x12, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
  224. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa5, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65,
  225. 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x01, 0x20,
  226. 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06,
  227. 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65,
  228. 0x74, 0x68, 0x6f, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18,
  229. 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x21,
  230. 0x0a, 0x0c, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x18, 0x04,
  231. 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x4e, 0x61, 0x6e,
  232. 0x6f, 0x12, 0x2b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20,
  233. 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x4b, 0x65, 0x79, 0x56,
  234. 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x45,
  235. 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x06, 0x73, 0x74,
  236. 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x53, 0x74, 0x61,
  237. 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x70,
  238. 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61,
  239. 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x20, 0x0a, 0x0a, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c,
  240. 0x69, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28,
  241. 0x09, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x32, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61,
  242. 0x6c, 0x75, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  243. 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
  244. 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x1d, 0x5a, 0x1b, 0x67,
  245. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69,
  246. 0x6e, 0x65, 0x72, 0x64, 0x2f, 0x74, 0x74, 0x72, 0x70, 0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  247. 0x6f, 0x33,
  248. }
  249. var (
  250. file_github_com_containerd_ttrpc_request_proto_rawDescOnce sync.Once
  251. file_github_com_containerd_ttrpc_request_proto_rawDescData = file_github_com_containerd_ttrpc_request_proto_rawDesc
  252. )
  253. func file_github_com_containerd_ttrpc_request_proto_rawDescGZIP() []byte {
  254. file_github_com_containerd_ttrpc_request_proto_rawDescOnce.Do(func() {
  255. file_github_com_containerd_ttrpc_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_containerd_ttrpc_request_proto_rawDescData)
  256. })
  257. return file_github_com_containerd_ttrpc_request_proto_rawDescData
  258. }
  259. var file_github_com_containerd_ttrpc_request_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  260. var file_github_com_containerd_ttrpc_request_proto_goTypes = []interface{}{
  261. (*Request)(nil), // 0: ttrpc.Request
  262. (*Response)(nil), // 1: ttrpc.Response
  263. (*StringList)(nil), // 2: ttrpc.StringList
  264. (*KeyValue)(nil), // 3: ttrpc.KeyValue
  265. (*status.Status)(nil), // 4: Status
  266. }
  267. var file_github_com_containerd_ttrpc_request_proto_depIdxs = []int32{
  268. 3, // 0: ttrpc.Request.metadata:type_name -> ttrpc.KeyValue
  269. 4, // 1: ttrpc.Response.status:type_name -> Status
  270. 2, // [2:2] is the sub-list for method output_type
  271. 2, // [2:2] is the sub-list for method input_type
  272. 2, // [2:2] is the sub-list for extension type_name
  273. 2, // [2:2] is the sub-list for extension extendee
  274. 0, // [0:2] is the sub-list for field type_name
  275. }
  276. func init() { file_github_com_containerd_ttrpc_request_proto_init() }
  277. func file_github_com_containerd_ttrpc_request_proto_init() {
  278. if File_github_com_containerd_ttrpc_request_proto != nil {
  279. return
  280. }
  281. if !protoimpl.UnsafeEnabled {
  282. file_github_com_containerd_ttrpc_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  283. switch v := v.(*Request); i {
  284. case 0:
  285. return &v.state
  286. case 1:
  287. return &v.sizeCache
  288. case 2:
  289. return &v.unknownFields
  290. default:
  291. return nil
  292. }
  293. }
  294. file_github_com_containerd_ttrpc_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  295. switch v := v.(*Response); i {
  296. case 0:
  297. return &v.state
  298. case 1:
  299. return &v.sizeCache
  300. case 2:
  301. return &v.unknownFields
  302. default:
  303. return nil
  304. }
  305. }
  306. file_github_com_containerd_ttrpc_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  307. switch v := v.(*StringList); i {
  308. case 0:
  309. return &v.state
  310. case 1:
  311. return &v.sizeCache
  312. case 2:
  313. return &v.unknownFields
  314. default:
  315. return nil
  316. }
  317. }
  318. file_github_com_containerd_ttrpc_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  319. switch v := v.(*KeyValue); i {
  320. case 0:
  321. return &v.state
  322. case 1:
  323. return &v.sizeCache
  324. case 2:
  325. return &v.unknownFields
  326. default:
  327. return nil
  328. }
  329. }
  330. }
  331. type x struct{}
  332. out := protoimpl.TypeBuilder{
  333. File: protoimpl.DescBuilder{
  334. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  335. RawDescriptor: file_github_com_containerd_ttrpc_request_proto_rawDesc,
  336. NumEnums: 0,
  337. NumMessages: 4,
  338. NumExtensions: 0,
  339. NumServices: 0,
  340. },
  341. GoTypes: file_github_com_containerd_ttrpc_request_proto_goTypes,
  342. DependencyIndexes: file_github_com_containerd_ttrpc_request_proto_depIdxs,
  343. MessageInfos: file_github_com_containerd_ttrpc_request_proto_msgTypes,
  344. }.Build()
  345. File_github_com_containerd_ttrpc_request_proto = out.File
  346. file_github_com_containerd_ttrpc_request_proto_rawDesc = nil
  347. file_github_com_containerd_ttrpc_request_proto_goTypes = nil
  348. file_github_com_containerd_ttrpc_request_proto_depIdxs = nil
  349. }