compose.pb.go 17 KB

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