compose.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490
  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.21.0-devel
  29. // protoc v3.6.1
  30. // source: 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_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_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_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_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_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_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_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_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_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_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_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_compose_v1_compose_proto_rawDescGZIP(), []int{3}
  200. }
  201. var File_compose_v1_compose_proto protoreflect.FileDescriptor
  202. var file_compose_v1_compose_proto_rawDesc = []byte{
  203. 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d,
  204. 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x6f, 0x6d, 0x2e,
  205. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f,
  206. 0x73, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x64, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  207. 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f,
  208. 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  209. 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77,
  210. 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f,
  211. 0x72, 0x6b, 0x44, 0x69, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03,
  212. 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x43,
  213. 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  214. 0x22, 0x14, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52,
  215. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73,
  216. 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd1, 0x01,
  217. 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x02, 0x55, 0x70, 0x12,
  218. 0x2b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69,
  219. 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
  220. 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x63,
  221. 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f,
  222. 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  223. 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x65, 0x0a, 0x04, 0x44, 0x6f,
  224. 0x77, 0x6e, 0x12, 0x2d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e,
  225. 0x61, 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
  226. 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  227. 0x74, 0x1a, 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61,
  228. 0x70, 0x69, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f,
  229. 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  230. 0x65, 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
  231. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f,
  232. 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  233. }
  234. var (
  235. file_compose_v1_compose_proto_rawDescOnce sync.Once
  236. file_compose_v1_compose_proto_rawDescData = file_compose_v1_compose_proto_rawDesc
  237. )
  238. func file_compose_v1_compose_proto_rawDescGZIP() []byte {
  239. file_compose_v1_compose_proto_rawDescOnce.Do(func() {
  240. file_compose_v1_compose_proto_rawDescData = protoimpl.X.CompressGZIP(file_compose_v1_compose_proto_rawDescData)
  241. })
  242. return file_compose_v1_compose_proto_rawDescData
  243. }
  244. var file_compose_v1_compose_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  245. var file_compose_v1_compose_proto_goTypes = []interface{}{
  246. (*ComposeUpRequest)(nil), // 0: com.docker.api.compose.v1.ComposeUpRequest
  247. (*ComposeUpResponse)(nil), // 1: com.docker.api.compose.v1.ComposeUpResponse
  248. (*ComposeDownRequest)(nil), // 2: com.docker.api.compose.v1.ComposeDownRequest
  249. (*ComposeDownResponse)(nil), // 3: com.docker.api.compose.v1.ComposeDownResponse
  250. }
  251. var file_compose_v1_compose_proto_depIdxs = []int32{
  252. 0, // 0: com.docker.api.compose.v1.Compose.Up:input_type -> com.docker.api.compose.v1.ComposeUpRequest
  253. 2, // 1: com.docker.api.compose.v1.Compose.Down:input_type -> com.docker.api.compose.v1.ComposeDownRequest
  254. 1, // 2: com.docker.api.compose.v1.Compose.Up:output_type -> com.docker.api.compose.v1.ComposeUpResponse
  255. 3, // 3: com.docker.api.compose.v1.Compose.Down:output_type -> com.docker.api.compose.v1.ComposeDownResponse
  256. 2, // [2:4] is the sub-list for method output_type
  257. 0, // [0:2] is the sub-list for method input_type
  258. 0, // [0:0] is the sub-list for extension type_name
  259. 0, // [0:0] is the sub-list for extension extendee
  260. 0, // [0:0] is the sub-list for field type_name
  261. }
  262. func init() { file_compose_v1_compose_proto_init() }
  263. func file_compose_v1_compose_proto_init() {
  264. if File_compose_v1_compose_proto != nil {
  265. return
  266. }
  267. if !protoimpl.UnsafeEnabled {
  268. file_compose_v1_compose_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  269. switch v := v.(*ComposeUpRequest); i {
  270. case 0:
  271. return &v.state
  272. case 1:
  273. return &v.sizeCache
  274. case 2:
  275. return &v.unknownFields
  276. default:
  277. return nil
  278. }
  279. }
  280. file_compose_v1_compose_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  281. switch v := v.(*ComposeUpResponse); i {
  282. case 0:
  283. return &v.state
  284. case 1:
  285. return &v.sizeCache
  286. case 2:
  287. return &v.unknownFields
  288. default:
  289. return nil
  290. }
  291. }
  292. file_compose_v1_compose_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  293. switch v := v.(*ComposeDownRequest); i {
  294. case 0:
  295. return &v.state
  296. case 1:
  297. return &v.sizeCache
  298. case 2:
  299. return &v.unknownFields
  300. default:
  301. return nil
  302. }
  303. }
  304. file_compose_v1_compose_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  305. switch v := v.(*ComposeDownResponse); i {
  306. case 0:
  307. return &v.state
  308. case 1:
  309. return &v.sizeCache
  310. case 2:
  311. return &v.unknownFields
  312. default:
  313. return nil
  314. }
  315. }
  316. }
  317. type x struct{}
  318. out := protoimpl.TypeBuilder{
  319. File: protoimpl.DescBuilder{
  320. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  321. RawDescriptor: file_compose_v1_compose_proto_rawDesc,
  322. NumEnums: 0,
  323. NumMessages: 4,
  324. NumExtensions: 0,
  325. NumServices: 1,
  326. },
  327. GoTypes: file_compose_v1_compose_proto_goTypes,
  328. DependencyIndexes: file_compose_v1_compose_proto_depIdxs,
  329. MessageInfos: file_compose_v1_compose_proto_msgTypes,
  330. }.Build()
  331. File_compose_v1_compose_proto = out.File
  332. file_compose_v1_compose_proto_rawDesc = nil
  333. file_compose_v1_compose_proto_goTypes = nil
  334. file_compose_v1_compose_proto_depIdxs = nil
  335. }
  336. // Reference imports to suppress errors if they are not otherwise used.
  337. var _ context.Context
  338. var _ grpc.ClientConnInterface
  339. // This is a compile-time assertion to ensure that this generated file
  340. // is compatible with the grpc package it is being compiled against.
  341. const _ = grpc.SupportPackageIsVersion6
  342. // ComposeClient is the client API for Compose service.
  343. //
  344. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  345. type ComposeClient interface {
  346. Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error)
  347. Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error)
  348. }
  349. type composeClient struct {
  350. cc grpc.ClientConnInterface
  351. }
  352. func NewComposeClient(cc grpc.ClientConnInterface) ComposeClient {
  353. return &composeClient{cc}
  354. }
  355. func (c *composeClient) Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error) {
  356. out := new(ComposeUpResponse)
  357. err := c.cc.Invoke(ctx, "/com.docker.api.compose.v1.Compose/Up", in, out, opts...)
  358. if err != nil {
  359. return nil, err
  360. }
  361. return out, nil
  362. }
  363. func (c *composeClient) Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error) {
  364. out := new(ComposeDownResponse)
  365. err := c.cc.Invoke(ctx, "/com.docker.api.compose.v1.Compose/Down", in, out, opts...)
  366. if err != nil {
  367. return nil, err
  368. }
  369. return out, nil
  370. }
  371. // ComposeServer is the server API for Compose service.
  372. type ComposeServer interface {
  373. Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error)
  374. Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error)
  375. }
  376. // UnimplementedComposeServer can be embedded to have forward compatible implementations.
  377. type UnimplementedComposeServer struct {
  378. }
  379. func (*UnimplementedComposeServer) Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error) {
  380. return nil, status.Errorf(codes.Unimplemented, "method Up not implemented")
  381. }
  382. func (*UnimplementedComposeServer) Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error) {
  383. return nil, status.Errorf(codes.Unimplemented, "method Down not implemented")
  384. }
  385. func RegisterComposeServer(s *grpc.Server, srv ComposeServer) {
  386. s.RegisterService(&_Compose_serviceDesc, srv)
  387. }
  388. func _Compose_Up_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  389. in := new(ComposeUpRequest)
  390. if err := dec(in); err != nil {
  391. return nil, err
  392. }
  393. if interceptor == nil {
  394. return srv.(ComposeServer).Up(ctx, in)
  395. }
  396. info := &grpc.UnaryServerInfo{
  397. Server: srv,
  398. FullMethod: "/com.docker.api.compose.v1.Compose/Up",
  399. }
  400. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  401. return srv.(ComposeServer).Up(ctx, req.(*ComposeUpRequest))
  402. }
  403. return interceptor(ctx, in, info, handler)
  404. }
  405. func _Compose_Down_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  406. in := new(ComposeDownRequest)
  407. if err := dec(in); err != nil {
  408. return nil, err
  409. }
  410. if interceptor == nil {
  411. return srv.(ComposeServer).Down(ctx, in)
  412. }
  413. info := &grpc.UnaryServerInfo{
  414. Server: srv,
  415. FullMethod: "/com.docker.api.compose.v1.Compose/Down",
  416. }
  417. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  418. return srv.(ComposeServer).Down(ctx, req.(*ComposeDownRequest))
  419. }
  420. return interceptor(ctx, in, info, handler)
  421. }
  422. var _Compose_serviceDesc = grpc.ServiceDesc{
  423. ServiceName: "com.docker.api.compose.v1.Compose",
  424. HandlerType: (*ComposeServer)(nil),
  425. Methods: []grpc.MethodDesc{
  426. {
  427. MethodName: "Up",
  428. Handler: _Compose_Up_Handler,
  429. },
  430. {
  431. MethodName: "Down",
  432. Handler: _Compose_Down_Handler,
  433. },
  434. },
  435. Streams: []grpc.StreamDesc{},
  436. Metadata: "compose/v1/compose.proto",
  437. }