compose.pb.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. //
  2. //Copyright (c) 2020 Docker Inc.
  3. //
  4. //Permission is hereby granted, free of charge, to any person
  5. //obtaining a copy of this software and associated documentation
  6. //files (the "Software"), to deal in the Software without
  7. //restriction, including without limitation the rights to use, copy,
  8. //modify, merge, publish, distribute, sublicense, and/or sell copies
  9. //of the Software, and to permit persons to whom the Software is
  10. //furnished to do so, subject to the following conditions:
  11. //
  12. //The above copyright notice and this permission notice shall be
  13. //included in all copies or substantial portions of the Software.
  14. //
  15. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. //EXPRESS OR IMPLIED,
  17. //INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  19. //IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  20. //HOLDERS BE LIABLE FOR ANY CLAIM,
  21. //DAMAGES OR OTHER LIABILITY,
  22. //WHETHER IN AN ACTION OF CONTRACT,
  23. //TORT OR OTHERWISE,
  24. //ARISING FROM, OUT OF OR IN CONNECTION WITH
  25. //THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. // Code generated by protoc-gen-go. DO NOT EDIT.
  27. // versions:
  28. // protoc-gen-go v1.24.0
  29. // protoc v3.11.2
  30. // source: protos/compose/v1/compose.proto
  31. package v1
  32. import (
  33. context "context"
  34. proto "github.com/golang/protobuf/proto"
  35. grpc "google.golang.org/grpc"
  36. codes "google.golang.org/grpc/codes"
  37. status "google.golang.org/grpc/status"
  38. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  39. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  40. reflect "reflect"
  41. sync "sync"
  42. )
  43. const (
  44. // Verify that this generated code is sufficiently up-to-date.
  45. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  46. // Verify that runtime/protoimpl is sufficiently up-to-date.
  47. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  48. )
  49. // This is a compile-time assertion that a sufficiently up-to-date version
  50. // of the legacy proto package is being used.
  51. const _ = proto.ProtoPackageIsVersion4
  52. type ComposeUpRequest struct {
  53. state protoimpl.MessageState
  54. sizeCache protoimpl.SizeCache
  55. unknownFields protoimpl.UnknownFields
  56. ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"`
  57. WorkDir string `protobuf:"bytes,2,opt,name=workDir,proto3" json:"workDir,omitempty"`
  58. Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
  59. }
  60. func (x *ComposeUpRequest) Reset() {
  61. *x = ComposeUpRequest{}
  62. if protoimpl.UnsafeEnabled {
  63. mi := &file_protos_compose_v1_compose_proto_msgTypes[0]
  64. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  65. ms.StoreMessageInfo(mi)
  66. }
  67. }
  68. func (x *ComposeUpRequest) String() string {
  69. return protoimpl.X.MessageStringOf(x)
  70. }
  71. func (*ComposeUpRequest) ProtoMessage() {}
  72. func (x *ComposeUpRequest) ProtoReflect() protoreflect.Message {
  73. mi := &file_protos_compose_v1_compose_proto_msgTypes[0]
  74. if protoimpl.UnsafeEnabled && x != nil {
  75. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  76. if ms.LoadMessageInfo() == nil {
  77. ms.StoreMessageInfo(mi)
  78. }
  79. return ms
  80. }
  81. return mi.MessageOf(x)
  82. }
  83. // Deprecated: Use ComposeUpRequest.ProtoReflect.Descriptor instead.
  84. func (*ComposeUpRequest) Descriptor() ([]byte, []int) {
  85. return file_protos_compose_v1_compose_proto_rawDescGZIP(), []int{0}
  86. }
  87. func (x *ComposeUpRequest) GetProjectName() string {
  88. if x != nil {
  89. return x.ProjectName
  90. }
  91. return ""
  92. }
  93. func (x *ComposeUpRequest) GetWorkDir() string {
  94. if x != nil {
  95. return x.WorkDir
  96. }
  97. return ""
  98. }
  99. func (x *ComposeUpRequest) GetFiles() []string {
  100. if x != nil {
  101. return x.Files
  102. }
  103. return nil
  104. }
  105. type ComposeUpResponse struct {
  106. state protoimpl.MessageState
  107. sizeCache protoimpl.SizeCache
  108. unknownFields protoimpl.UnknownFields
  109. }
  110. func (x *ComposeUpResponse) Reset() {
  111. *x = ComposeUpResponse{}
  112. if protoimpl.UnsafeEnabled {
  113. mi := &file_protos_compose_v1_compose_proto_msgTypes[1]
  114. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  115. ms.StoreMessageInfo(mi)
  116. }
  117. }
  118. func (x *ComposeUpResponse) String() string {
  119. return protoimpl.X.MessageStringOf(x)
  120. }
  121. func (*ComposeUpResponse) ProtoMessage() {}
  122. func (x *ComposeUpResponse) ProtoReflect() protoreflect.Message {
  123. mi := &file_protos_compose_v1_compose_proto_msgTypes[1]
  124. if protoimpl.UnsafeEnabled && x != nil {
  125. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  126. if ms.LoadMessageInfo() == nil {
  127. ms.StoreMessageInfo(mi)
  128. }
  129. return ms
  130. }
  131. return mi.MessageOf(x)
  132. }
  133. // Deprecated: Use ComposeUpResponse.ProtoReflect.Descriptor instead.
  134. func (*ComposeUpResponse) Descriptor() ([]byte, []int) {
  135. return file_protos_compose_v1_compose_proto_rawDescGZIP(), []int{1}
  136. }
  137. type ComposeDownRequest struct {
  138. state protoimpl.MessageState
  139. sizeCache protoimpl.SizeCache
  140. unknownFields protoimpl.UnknownFields
  141. }
  142. func (x *ComposeDownRequest) Reset() {
  143. *x = ComposeDownRequest{}
  144. if protoimpl.UnsafeEnabled {
  145. mi := &file_protos_compose_v1_compose_proto_msgTypes[2]
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. ms.StoreMessageInfo(mi)
  148. }
  149. }
  150. func (x *ComposeDownRequest) String() string {
  151. return protoimpl.X.MessageStringOf(x)
  152. }
  153. func (*ComposeDownRequest) ProtoMessage() {}
  154. func (x *ComposeDownRequest) ProtoReflect() protoreflect.Message {
  155. mi := &file_protos_compose_v1_compose_proto_msgTypes[2]
  156. if protoimpl.UnsafeEnabled && x != nil {
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. if ms.LoadMessageInfo() == nil {
  159. ms.StoreMessageInfo(mi)
  160. }
  161. return ms
  162. }
  163. return mi.MessageOf(x)
  164. }
  165. // Deprecated: Use ComposeDownRequest.ProtoReflect.Descriptor instead.
  166. func (*ComposeDownRequest) Descriptor() ([]byte, []int) {
  167. return file_protos_compose_v1_compose_proto_rawDescGZIP(), []int{2}
  168. }
  169. type ComposeDownResponse struct {
  170. state protoimpl.MessageState
  171. sizeCache protoimpl.SizeCache
  172. unknownFields protoimpl.UnknownFields
  173. }
  174. func (x *ComposeDownResponse) Reset() {
  175. *x = ComposeDownResponse{}
  176. if protoimpl.UnsafeEnabled {
  177. mi := &file_protos_compose_v1_compose_proto_msgTypes[3]
  178. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  179. ms.StoreMessageInfo(mi)
  180. }
  181. }
  182. func (x *ComposeDownResponse) String() string {
  183. return protoimpl.X.MessageStringOf(x)
  184. }
  185. func (*ComposeDownResponse) ProtoMessage() {}
  186. func (x *ComposeDownResponse) ProtoReflect() protoreflect.Message {
  187. mi := &file_protos_compose_v1_compose_proto_msgTypes[3]
  188. if protoimpl.UnsafeEnabled && x != nil {
  189. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  190. if ms.LoadMessageInfo() == nil {
  191. ms.StoreMessageInfo(mi)
  192. }
  193. return ms
  194. }
  195. return mi.MessageOf(x)
  196. }
  197. // Deprecated: Use ComposeDownResponse.ProtoReflect.Descriptor instead.
  198. func (*ComposeDownResponse) Descriptor() ([]byte, []int) {
  199. return file_protos_compose_v1_compose_proto_rawDescGZIP(), []int{3}
  200. }
  201. var File_protos_compose_v1_compose_proto protoreflect.FileDescriptor
  202. var file_protos_compose_v1_compose_proto_rawDesc = []byte{
  203. 0x0a, 0x1f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  204. 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  205. 0x6f, 0x12, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70,
  206. 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  207. 0x2e, 0x76, 0x31, 0x22, 0x64, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70,
  208. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65,
  209. 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72,
  210. 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72,
  211. 0x6b, 0x44, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b,
  212. 0x44, 0x69, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,
  213. 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x43, 0x6f, 0x6d,
  214. 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x14,
  215. 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71,
  216. 0x75, 0x65, 0x73, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44,
  217. 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xed, 0x01, 0x0a, 0x07,
  218. 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x02, 0x55, 0x70, 0x12, 0x32, 0x2e,
  219. 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  220. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31,
  221. 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  222. 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61,
  223. 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73,
  224. 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65,
  225. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x04, 0x44, 0x6f, 0x77, 0x6e, 0x12, 0x34,
  226. 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  227. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76,
  228. 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71,
  229. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65,
  230. 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
  231. 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44,
  232. 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2c, 0x5a, 0x2a, 0x67,
  233. 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72,
  234. 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70,
  235. 0x6f, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  236. 0x33,
  237. }
  238. var (
  239. file_protos_compose_v1_compose_proto_rawDescOnce sync.Once
  240. file_protos_compose_v1_compose_proto_rawDescData = file_protos_compose_v1_compose_proto_rawDesc
  241. )
  242. func file_protos_compose_v1_compose_proto_rawDescGZIP() []byte {
  243. file_protos_compose_v1_compose_proto_rawDescOnce.Do(func() {
  244. file_protos_compose_v1_compose_proto_rawDescData = protoimpl.X.CompressGZIP(file_protos_compose_v1_compose_proto_rawDescData)
  245. })
  246. return file_protos_compose_v1_compose_proto_rawDescData
  247. }
  248. var file_protos_compose_v1_compose_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  249. var file_protos_compose_v1_compose_proto_goTypes = []interface{}{
  250. (*ComposeUpRequest)(nil), // 0: com.docker.api.protos.compose.v1.ComposeUpRequest
  251. (*ComposeUpResponse)(nil), // 1: com.docker.api.protos.compose.v1.ComposeUpResponse
  252. (*ComposeDownRequest)(nil), // 2: com.docker.api.protos.compose.v1.ComposeDownRequest
  253. (*ComposeDownResponse)(nil), // 3: com.docker.api.protos.compose.v1.ComposeDownResponse
  254. }
  255. var file_protos_compose_v1_compose_proto_depIdxs = []int32{
  256. 0, // 0: com.docker.api.protos.compose.v1.Compose.Up:input_type -> com.docker.api.protos.compose.v1.ComposeUpRequest
  257. 2, // 1: com.docker.api.protos.compose.v1.Compose.Down:input_type -> com.docker.api.protos.compose.v1.ComposeDownRequest
  258. 1, // 2: com.docker.api.protos.compose.v1.Compose.Up:output_type -> com.docker.api.protos.compose.v1.ComposeUpResponse
  259. 3, // 3: com.docker.api.protos.compose.v1.Compose.Down:output_type -> com.docker.api.protos.compose.v1.ComposeDownResponse
  260. 2, // [2:4] is the sub-list for method output_type
  261. 0, // [0:2] is the sub-list for method input_type
  262. 0, // [0:0] is the sub-list for extension type_name
  263. 0, // [0:0] is the sub-list for extension extendee
  264. 0, // [0:0] is the sub-list for field type_name
  265. }
  266. func init() { file_protos_compose_v1_compose_proto_init() }
  267. func file_protos_compose_v1_compose_proto_init() {
  268. if File_protos_compose_v1_compose_proto != nil {
  269. return
  270. }
  271. if !protoimpl.UnsafeEnabled {
  272. file_protos_compose_v1_compose_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  273. switch v := v.(*ComposeUpRequest); i {
  274. case 0:
  275. return &v.state
  276. case 1:
  277. return &v.sizeCache
  278. case 2:
  279. return &v.unknownFields
  280. default:
  281. return nil
  282. }
  283. }
  284. file_protos_compose_v1_compose_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  285. switch v := v.(*ComposeUpResponse); i {
  286. case 0:
  287. return &v.state
  288. case 1:
  289. return &v.sizeCache
  290. case 2:
  291. return &v.unknownFields
  292. default:
  293. return nil
  294. }
  295. }
  296. file_protos_compose_v1_compose_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  297. switch v := v.(*ComposeDownRequest); i {
  298. case 0:
  299. return &v.state
  300. case 1:
  301. return &v.sizeCache
  302. case 2:
  303. return &v.unknownFields
  304. default:
  305. return nil
  306. }
  307. }
  308. file_protos_compose_v1_compose_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  309. switch v := v.(*ComposeDownResponse); i {
  310. case 0:
  311. return &v.state
  312. case 1:
  313. return &v.sizeCache
  314. case 2:
  315. return &v.unknownFields
  316. default:
  317. return nil
  318. }
  319. }
  320. }
  321. type x struct{}
  322. out := protoimpl.TypeBuilder{
  323. File: protoimpl.DescBuilder{
  324. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  325. RawDescriptor: file_protos_compose_v1_compose_proto_rawDesc,
  326. NumEnums: 0,
  327. NumMessages: 4,
  328. NumExtensions: 0,
  329. NumServices: 1,
  330. },
  331. GoTypes: file_protos_compose_v1_compose_proto_goTypes,
  332. DependencyIndexes: file_protos_compose_v1_compose_proto_depIdxs,
  333. MessageInfos: file_protos_compose_v1_compose_proto_msgTypes,
  334. }.Build()
  335. File_protos_compose_v1_compose_proto = out.File
  336. file_protos_compose_v1_compose_proto_rawDesc = nil
  337. file_protos_compose_v1_compose_proto_goTypes = nil
  338. file_protos_compose_v1_compose_proto_depIdxs = nil
  339. }
  340. // Reference imports to suppress errors if they are not otherwise used.
  341. var _ context.Context
  342. var _ grpc.ClientConnInterface
  343. // This is a compile-time assertion to ensure that this generated file
  344. // is compatible with the grpc package it is being compiled against.
  345. const _ = grpc.SupportPackageIsVersion6
  346. // ComposeClient is the client API for Compose service.
  347. //
  348. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  349. type ComposeClient interface {
  350. Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error)
  351. Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error)
  352. }
  353. type composeClient struct {
  354. cc grpc.ClientConnInterface
  355. }
  356. func NewComposeClient(cc grpc.ClientConnInterface) ComposeClient {
  357. return &composeClient{cc}
  358. }
  359. func (c *composeClient) Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error) {
  360. out := new(ComposeUpResponse)
  361. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Up", in, out, opts...)
  362. if err != nil {
  363. return nil, err
  364. }
  365. return out, nil
  366. }
  367. func (c *composeClient) Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error) {
  368. out := new(ComposeDownResponse)
  369. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Down", in, out, opts...)
  370. if err != nil {
  371. return nil, err
  372. }
  373. return out, nil
  374. }
  375. // ComposeServer is the server API for Compose service.
  376. type ComposeServer interface {
  377. Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error)
  378. Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error)
  379. }
  380. // UnimplementedComposeServer can be embedded to have forward compatible implementations.
  381. type UnimplementedComposeServer struct {
  382. }
  383. func (*UnimplementedComposeServer) Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error) {
  384. return nil, status.Errorf(codes.Unimplemented, "method Up not implemented")
  385. }
  386. func (*UnimplementedComposeServer) Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error) {
  387. return nil, status.Errorf(codes.Unimplemented, "method Down not implemented")
  388. }
  389. func RegisterComposeServer(s *grpc.Server, srv ComposeServer) {
  390. s.RegisterService(&_Compose_serviceDesc, srv)
  391. }
  392. func _Compose_Up_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  393. in := new(ComposeUpRequest)
  394. if err := dec(in); err != nil {
  395. return nil, err
  396. }
  397. if interceptor == nil {
  398. return srv.(ComposeServer).Up(ctx, in)
  399. }
  400. info := &grpc.UnaryServerInfo{
  401. Server: srv,
  402. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Up",
  403. }
  404. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  405. return srv.(ComposeServer).Up(ctx, req.(*ComposeUpRequest))
  406. }
  407. return interceptor(ctx, in, info, handler)
  408. }
  409. func _Compose_Down_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  410. in := new(ComposeDownRequest)
  411. if err := dec(in); err != nil {
  412. return nil, err
  413. }
  414. if interceptor == nil {
  415. return srv.(ComposeServer).Down(ctx, in)
  416. }
  417. info := &grpc.UnaryServerInfo{
  418. Server: srv,
  419. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Down",
  420. }
  421. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  422. return srv.(ComposeServer).Down(ctx, req.(*ComposeDownRequest))
  423. }
  424. return interceptor(ctx, in, info, handler)
  425. }
  426. var _Compose_serviceDesc = grpc.ServiceDesc{
  427. ServiceName: "com.docker.api.protos.compose.v1.Compose",
  428. HandlerType: (*ComposeServer)(nil),
  429. Methods: []grpc.MethodDesc{
  430. {
  431. MethodName: "Up",
  432. Handler: _Compose_Up_Handler,
  433. },
  434. {
  435. MethodName: "Down",
  436. Handler: _Compose_Down_Handler,
  437. },
  438. },
  439. Streams: []grpc.StreamDesc{},
  440. Metadata: "protos/compose/v1/compose.proto",
  441. }