compose.pb.go 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098
  1. //
  2. // Copyright 2020 Docker Compose CLI authors
  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.25.0
  15. // protoc v3.12.2
  16. // source: cli/server/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_cli_server_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_cli_server_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_cli_server_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. ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"`
  96. }
  97. func (x *ComposeUpResponse) Reset() {
  98. *x = ComposeUpResponse{}
  99. if protoimpl.UnsafeEnabled {
  100. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[1]
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. ms.StoreMessageInfo(mi)
  103. }
  104. }
  105. func (x *ComposeUpResponse) String() string {
  106. return protoimpl.X.MessageStringOf(x)
  107. }
  108. func (*ComposeUpResponse) ProtoMessage() {}
  109. func (x *ComposeUpResponse) ProtoReflect() protoreflect.Message {
  110. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[1]
  111. if protoimpl.UnsafeEnabled && x != nil {
  112. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  113. if ms.LoadMessageInfo() == nil {
  114. ms.StoreMessageInfo(mi)
  115. }
  116. return ms
  117. }
  118. return mi.MessageOf(x)
  119. }
  120. // Deprecated: Use ComposeUpResponse.ProtoReflect.Descriptor instead.
  121. func (*ComposeUpResponse) Descriptor() ([]byte, []int) {
  122. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{1}
  123. }
  124. func (x *ComposeUpResponse) GetProjectName() string {
  125. if x != nil {
  126. return x.ProjectName
  127. }
  128. return ""
  129. }
  130. type ComposeDownRequest struct {
  131. state protoimpl.MessageState
  132. sizeCache protoimpl.SizeCache
  133. unknownFields protoimpl.UnknownFields
  134. ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"`
  135. WorkDir string `protobuf:"bytes,2,opt,name=workDir,proto3" json:"workDir,omitempty"`
  136. Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
  137. }
  138. func (x *ComposeDownRequest) Reset() {
  139. *x = ComposeDownRequest{}
  140. if protoimpl.UnsafeEnabled {
  141. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[2]
  142. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  143. ms.StoreMessageInfo(mi)
  144. }
  145. }
  146. func (x *ComposeDownRequest) String() string {
  147. return protoimpl.X.MessageStringOf(x)
  148. }
  149. func (*ComposeDownRequest) ProtoMessage() {}
  150. func (x *ComposeDownRequest) ProtoReflect() protoreflect.Message {
  151. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[2]
  152. if protoimpl.UnsafeEnabled && x != nil {
  153. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  154. if ms.LoadMessageInfo() == nil {
  155. ms.StoreMessageInfo(mi)
  156. }
  157. return ms
  158. }
  159. return mi.MessageOf(x)
  160. }
  161. // Deprecated: Use ComposeDownRequest.ProtoReflect.Descriptor instead.
  162. func (*ComposeDownRequest) Descriptor() ([]byte, []int) {
  163. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{2}
  164. }
  165. func (x *ComposeDownRequest) GetProjectName() string {
  166. if x != nil {
  167. return x.ProjectName
  168. }
  169. return ""
  170. }
  171. func (x *ComposeDownRequest) GetWorkDir() string {
  172. if x != nil {
  173. return x.WorkDir
  174. }
  175. return ""
  176. }
  177. func (x *ComposeDownRequest) GetFiles() []string {
  178. if x != nil {
  179. return x.Files
  180. }
  181. return nil
  182. }
  183. type ComposeDownResponse struct {
  184. state protoimpl.MessageState
  185. sizeCache protoimpl.SizeCache
  186. unknownFields protoimpl.UnknownFields
  187. ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"`
  188. }
  189. func (x *ComposeDownResponse) Reset() {
  190. *x = ComposeDownResponse{}
  191. if protoimpl.UnsafeEnabled {
  192. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[3]
  193. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  194. ms.StoreMessageInfo(mi)
  195. }
  196. }
  197. func (x *ComposeDownResponse) String() string {
  198. return protoimpl.X.MessageStringOf(x)
  199. }
  200. func (*ComposeDownResponse) ProtoMessage() {}
  201. func (x *ComposeDownResponse) ProtoReflect() protoreflect.Message {
  202. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[3]
  203. if protoimpl.UnsafeEnabled && x != nil {
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. if ms.LoadMessageInfo() == nil {
  206. ms.StoreMessageInfo(mi)
  207. }
  208. return ms
  209. }
  210. return mi.MessageOf(x)
  211. }
  212. // Deprecated: Use ComposeDownResponse.ProtoReflect.Descriptor instead.
  213. func (*ComposeDownResponse) Descriptor() ([]byte, []int) {
  214. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{3}
  215. }
  216. func (x *ComposeDownResponse) GetProjectName() string {
  217. if x != nil {
  218. return x.ProjectName
  219. }
  220. return ""
  221. }
  222. type ComposeStacksRequest struct {
  223. state protoimpl.MessageState
  224. sizeCache protoimpl.SizeCache
  225. unknownFields protoimpl.UnknownFields
  226. ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"`
  227. }
  228. func (x *ComposeStacksRequest) Reset() {
  229. *x = ComposeStacksRequest{}
  230. if protoimpl.UnsafeEnabled {
  231. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[4]
  232. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  233. ms.StoreMessageInfo(mi)
  234. }
  235. }
  236. func (x *ComposeStacksRequest) String() string {
  237. return protoimpl.X.MessageStringOf(x)
  238. }
  239. func (*ComposeStacksRequest) ProtoMessage() {}
  240. func (x *ComposeStacksRequest) ProtoReflect() protoreflect.Message {
  241. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[4]
  242. if protoimpl.UnsafeEnabled && x != nil {
  243. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  244. if ms.LoadMessageInfo() == nil {
  245. ms.StoreMessageInfo(mi)
  246. }
  247. return ms
  248. }
  249. return mi.MessageOf(x)
  250. }
  251. // Deprecated: Use ComposeStacksRequest.ProtoReflect.Descriptor instead.
  252. func (*ComposeStacksRequest) Descriptor() ([]byte, []int) {
  253. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{4}
  254. }
  255. func (x *ComposeStacksRequest) GetProjectName() string {
  256. if x != nil {
  257. return x.ProjectName
  258. }
  259. return ""
  260. }
  261. type ComposeStacksResponse struct {
  262. state protoimpl.MessageState
  263. sizeCache protoimpl.SizeCache
  264. unknownFields protoimpl.UnknownFields
  265. Stacks []*Stack `protobuf:"bytes,1,rep,name=stacks,proto3" json:"stacks,omitempty"`
  266. }
  267. func (x *ComposeStacksResponse) Reset() {
  268. *x = ComposeStacksResponse{}
  269. if protoimpl.UnsafeEnabled {
  270. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[5]
  271. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  272. ms.StoreMessageInfo(mi)
  273. }
  274. }
  275. func (x *ComposeStacksResponse) String() string {
  276. return protoimpl.X.MessageStringOf(x)
  277. }
  278. func (*ComposeStacksResponse) ProtoMessage() {}
  279. func (x *ComposeStacksResponse) ProtoReflect() protoreflect.Message {
  280. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[5]
  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. // Deprecated: Use ComposeStacksResponse.ProtoReflect.Descriptor instead.
  291. func (*ComposeStacksResponse) Descriptor() ([]byte, []int) {
  292. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{5}
  293. }
  294. func (x *ComposeStacksResponse) GetStacks() []*Stack {
  295. if x != nil {
  296. return x.Stacks
  297. }
  298. return nil
  299. }
  300. type Stack struct {
  301. state protoimpl.MessageState
  302. sizeCache protoimpl.SizeCache
  303. unknownFields protoimpl.UnknownFields
  304. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  305. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  306. Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
  307. Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,omitempty"`
  308. }
  309. func (x *Stack) Reset() {
  310. *x = Stack{}
  311. if protoimpl.UnsafeEnabled {
  312. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[6]
  313. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  314. ms.StoreMessageInfo(mi)
  315. }
  316. }
  317. func (x *Stack) String() string {
  318. return protoimpl.X.MessageStringOf(x)
  319. }
  320. func (*Stack) ProtoMessage() {}
  321. func (x *Stack) ProtoReflect() protoreflect.Message {
  322. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[6]
  323. if protoimpl.UnsafeEnabled && x != nil {
  324. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  325. if ms.LoadMessageInfo() == nil {
  326. ms.StoreMessageInfo(mi)
  327. }
  328. return ms
  329. }
  330. return mi.MessageOf(x)
  331. }
  332. // Deprecated: Use Stack.ProtoReflect.Descriptor instead.
  333. func (*Stack) Descriptor() ([]byte, []int) {
  334. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{6}
  335. }
  336. func (x *Stack) GetId() string {
  337. if x != nil {
  338. return x.Id
  339. }
  340. return ""
  341. }
  342. func (x *Stack) GetName() string {
  343. if x != nil {
  344. return x.Name
  345. }
  346. return ""
  347. }
  348. func (x *Stack) GetStatus() string {
  349. if x != nil {
  350. return x.Status
  351. }
  352. return ""
  353. }
  354. func (x *Stack) GetReason() string {
  355. if x != nil {
  356. return x.Reason
  357. }
  358. return ""
  359. }
  360. type ComposeServicesRequest struct {
  361. state protoimpl.MessageState
  362. sizeCache protoimpl.SizeCache
  363. unknownFields protoimpl.UnknownFields
  364. ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"`
  365. WorkDir string `protobuf:"bytes,2,opt,name=workDir,proto3" json:"workDir,omitempty"`
  366. Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
  367. }
  368. func (x *ComposeServicesRequest) Reset() {
  369. *x = ComposeServicesRequest{}
  370. if protoimpl.UnsafeEnabled {
  371. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[7]
  372. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  373. ms.StoreMessageInfo(mi)
  374. }
  375. }
  376. func (x *ComposeServicesRequest) String() string {
  377. return protoimpl.X.MessageStringOf(x)
  378. }
  379. func (*ComposeServicesRequest) ProtoMessage() {}
  380. func (x *ComposeServicesRequest) ProtoReflect() protoreflect.Message {
  381. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[7]
  382. if protoimpl.UnsafeEnabled && x != nil {
  383. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  384. if ms.LoadMessageInfo() == nil {
  385. ms.StoreMessageInfo(mi)
  386. }
  387. return ms
  388. }
  389. return mi.MessageOf(x)
  390. }
  391. // Deprecated: Use ComposeServicesRequest.ProtoReflect.Descriptor instead.
  392. func (*ComposeServicesRequest) Descriptor() ([]byte, []int) {
  393. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{7}
  394. }
  395. func (x *ComposeServicesRequest) GetProjectName() string {
  396. if x != nil {
  397. return x.ProjectName
  398. }
  399. return ""
  400. }
  401. func (x *ComposeServicesRequest) GetWorkDir() string {
  402. if x != nil {
  403. return x.WorkDir
  404. }
  405. return ""
  406. }
  407. func (x *ComposeServicesRequest) GetFiles() []string {
  408. if x != nil {
  409. return x.Files
  410. }
  411. return nil
  412. }
  413. type ComposeServicesResponse struct {
  414. state protoimpl.MessageState
  415. sizeCache protoimpl.SizeCache
  416. unknownFields protoimpl.UnknownFields
  417. Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
  418. }
  419. func (x *ComposeServicesResponse) Reset() {
  420. *x = ComposeServicesResponse{}
  421. if protoimpl.UnsafeEnabled {
  422. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[8]
  423. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  424. ms.StoreMessageInfo(mi)
  425. }
  426. }
  427. func (x *ComposeServicesResponse) String() string {
  428. return protoimpl.X.MessageStringOf(x)
  429. }
  430. func (*ComposeServicesResponse) ProtoMessage() {}
  431. func (x *ComposeServicesResponse) ProtoReflect() protoreflect.Message {
  432. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[8]
  433. if protoimpl.UnsafeEnabled && x != nil {
  434. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  435. if ms.LoadMessageInfo() == nil {
  436. ms.StoreMessageInfo(mi)
  437. }
  438. return ms
  439. }
  440. return mi.MessageOf(x)
  441. }
  442. // Deprecated: Use ComposeServicesResponse.ProtoReflect.Descriptor instead.
  443. func (*ComposeServicesResponse) Descriptor() ([]byte, []int) {
  444. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{8}
  445. }
  446. func (x *ComposeServicesResponse) GetServices() []*Service {
  447. if x != nil {
  448. return x.Services
  449. }
  450. return nil
  451. }
  452. type Service struct {
  453. state protoimpl.MessageState
  454. sizeCache protoimpl.SizeCache
  455. unknownFields protoimpl.UnknownFields
  456. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  457. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  458. Replicas uint32 `protobuf:"varint,3,opt,name=replicas,proto3" json:"replicas,omitempty"`
  459. Desired uint32 `protobuf:"varint,4,opt,name=desired,proto3" json:"desired,omitempty"`
  460. Ports []string `protobuf:"bytes,5,rep,name=Ports,proto3" json:"Ports,omitempty"`
  461. }
  462. func (x *Service) Reset() {
  463. *x = Service{}
  464. if protoimpl.UnsafeEnabled {
  465. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[9]
  466. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  467. ms.StoreMessageInfo(mi)
  468. }
  469. }
  470. func (x *Service) String() string {
  471. return protoimpl.X.MessageStringOf(x)
  472. }
  473. func (*Service) ProtoMessage() {}
  474. func (x *Service) ProtoReflect() protoreflect.Message {
  475. mi := &file_cli_server_protos_compose_v1_compose_proto_msgTypes[9]
  476. if protoimpl.UnsafeEnabled && x != nil {
  477. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  478. if ms.LoadMessageInfo() == nil {
  479. ms.StoreMessageInfo(mi)
  480. }
  481. return ms
  482. }
  483. return mi.MessageOf(x)
  484. }
  485. // Deprecated: Use Service.ProtoReflect.Descriptor instead.
  486. func (*Service) Descriptor() ([]byte, []int) {
  487. return file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP(), []int{9}
  488. }
  489. func (x *Service) GetId() string {
  490. if x != nil {
  491. return x.Id
  492. }
  493. return ""
  494. }
  495. func (x *Service) GetName() string {
  496. if x != nil {
  497. return x.Name
  498. }
  499. return ""
  500. }
  501. func (x *Service) GetReplicas() uint32 {
  502. if x != nil {
  503. return x.Replicas
  504. }
  505. return 0
  506. }
  507. func (x *Service) GetDesired() uint32 {
  508. if x != nil {
  509. return x.Desired
  510. }
  511. return 0
  512. }
  513. func (x *Service) GetPorts() []string {
  514. if x != nil {
  515. return x.Ports
  516. }
  517. return nil
  518. }
  519. var File_cli_server_protos_compose_v1_compose_proto protoreflect.FileDescriptor
  520. var file_cli_server_protos_compose_v1_compose_proto_rawDesc = []byte{
  521. 0x0a, 0x2a, 0x63, 0x6c, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f,
  522. 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63,
  523. 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x63, 0x6f,
  524. 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f,
  525. 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x64,
  526. 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65,
  527. 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d,
  528. 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
  529. 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x18,
  530. 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x12, 0x14,
  531. 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x66,
  532. 0x69, 0x6c, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x11, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55,
  533. 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f,
  534. 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  535. 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x66, 0x0a, 0x12, 0x43,
  536. 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  537. 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65,
  538. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e,
  539. 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x18, 0x02,
  540. 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x12, 0x14, 0x0a,
  541. 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69,
  542. 0x6c, 0x65, 0x73, 0x22, 0x37, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f,
  543. 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72,
  544. 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
  545. 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x38, 0x0a, 0x14,
  546. 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71,
  547. 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e,
  548. 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65,
  549. 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x15, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73,
  550. 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  551. 0x3f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  552. 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69,
  553. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e,
  554. 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x52, 0x06, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73,
  555. 0x22, 0x5b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
  556. 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
  557. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a,
  558. 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73,
  559. 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18,
  560. 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x6a, 0x0a,
  561. 0x16, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
  562. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65,
  563. 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72,
  564. 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72,
  565. 0x6b, 0x44, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b,
  566. 0x44, 0x69, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,
  567. 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x60, 0x0a, 0x17, 0x43, 0x6f, 0x6d,
  568. 0x70, 0x6f, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70,
  569. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
  570. 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63,
  571. 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63,
  572. 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
  573. 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x79, 0x0a, 0x07, 0x53,
  574. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  575. 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
  576. 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65,
  577. 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x72, 0x65,
  578. 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65,
  579. 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x64, 0x65, 0x73, 0x69, 0x72, 0x65, 0x64,
  580. 0x12, 0x14, 0x0a, 0x05, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52,
  581. 0x05, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x32, 0xe9, 0x03, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x70, 0x6f,
  582. 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x02, 0x55, 0x70, 0x12, 0x32, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64,
  583. 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
  584. 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
  585. 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x63,
  586. 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72,
  587. 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
  588. 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  589. 0x65, 0x12, 0x73, 0x0a, 0x04, 0x44, 0x6f, 0x77, 0x6e, 0x12, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e,
  590. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  591. 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d,
  592. 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  593. 0x35, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69,
  594. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e,
  595. 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65,
  596. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73,
  597. 0x12, 0x36, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70,
  598. 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  599. 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b,
  600. 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64,
  601. 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73,
  602. 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70,
  603. 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  604. 0x65, 0x12, 0x7f, 0x0a, 0x08, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x38, 0x2e,
  605. 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  606. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31,
  607. 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
  608. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f,
  609. 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e,
  610. 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f,
  611. 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  612. 0x73, 0x65, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
  613. 0x2f, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2d,
  614. 0x63, 0x6c, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x2f, 0x70,
  615. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2f, 0x76, 0x31,
  616. 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  617. }
  618. var (
  619. file_cli_server_protos_compose_v1_compose_proto_rawDescOnce sync.Once
  620. file_cli_server_protos_compose_v1_compose_proto_rawDescData = file_cli_server_protos_compose_v1_compose_proto_rawDesc
  621. )
  622. func file_cli_server_protos_compose_v1_compose_proto_rawDescGZIP() []byte {
  623. file_cli_server_protos_compose_v1_compose_proto_rawDescOnce.Do(func() {
  624. file_cli_server_protos_compose_v1_compose_proto_rawDescData = protoimpl.X.CompressGZIP(file_cli_server_protos_compose_v1_compose_proto_rawDescData)
  625. })
  626. return file_cli_server_protos_compose_v1_compose_proto_rawDescData
  627. }
  628. var file_cli_server_protos_compose_v1_compose_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  629. var file_cli_server_protos_compose_v1_compose_proto_goTypes = []interface{}{
  630. (*ComposeUpRequest)(nil), // 0: com.docker.api.protos.compose.v1.ComposeUpRequest
  631. (*ComposeUpResponse)(nil), // 1: com.docker.api.protos.compose.v1.ComposeUpResponse
  632. (*ComposeDownRequest)(nil), // 2: com.docker.api.protos.compose.v1.ComposeDownRequest
  633. (*ComposeDownResponse)(nil), // 3: com.docker.api.protos.compose.v1.ComposeDownResponse
  634. (*ComposeStacksRequest)(nil), // 4: com.docker.api.protos.compose.v1.ComposeStacksRequest
  635. (*ComposeStacksResponse)(nil), // 5: com.docker.api.protos.compose.v1.ComposeStacksResponse
  636. (*Stack)(nil), // 6: com.docker.api.protos.compose.v1.Stack
  637. (*ComposeServicesRequest)(nil), // 7: com.docker.api.protos.compose.v1.ComposeServicesRequest
  638. (*ComposeServicesResponse)(nil), // 8: com.docker.api.protos.compose.v1.ComposeServicesResponse
  639. (*Service)(nil), // 9: com.docker.api.protos.compose.v1.Service
  640. }
  641. var file_cli_server_protos_compose_v1_compose_proto_depIdxs = []int32{
  642. 6, // 0: com.docker.api.protos.compose.v1.ComposeStacksResponse.stacks:type_name -> com.docker.api.protos.compose.v1.Stack
  643. 9, // 1: com.docker.api.protos.compose.v1.ComposeServicesResponse.services:type_name -> com.docker.api.protos.compose.v1.Service
  644. 0, // 2: com.docker.api.protos.compose.v1.Compose.Up:input_type -> com.docker.api.protos.compose.v1.ComposeUpRequest
  645. 2, // 3: com.docker.api.protos.compose.v1.Compose.Down:input_type -> com.docker.api.protos.compose.v1.ComposeDownRequest
  646. 4, // 4: com.docker.api.protos.compose.v1.Compose.Stacks:input_type -> com.docker.api.protos.compose.v1.ComposeStacksRequest
  647. 7, // 5: com.docker.api.protos.compose.v1.Compose.Services:input_type -> com.docker.api.protos.compose.v1.ComposeServicesRequest
  648. 1, // 6: com.docker.api.protos.compose.v1.Compose.Up:output_type -> com.docker.api.protos.compose.v1.ComposeUpResponse
  649. 3, // 7: com.docker.api.protos.compose.v1.Compose.Down:output_type -> com.docker.api.protos.compose.v1.ComposeDownResponse
  650. 5, // 8: com.docker.api.protos.compose.v1.Compose.Stacks:output_type -> com.docker.api.protos.compose.v1.ComposeStacksResponse
  651. 8, // 9: com.docker.api.protos.compose.v1.Compose.Services:output_type -> com.docker.api.protos.compose.v1.ComposeServicesResponse
  652. 6, // [6:10] is the sub-list for method output_type
  653. 2, // [2:6] is the sub-list for method input_type
  654. 2, // [2:2] is the sub-list for extension type_name
  655. 2, // [2:2] is the sub-list for extension extendee
  656. 0, // [0:2] is the sub-list for field type_name
  657. }
  658. func init() { file_cli_server_protos_compose_v1_compose_proto_init() }
  659. func file_cli_server_protos_compose_v1_compose_proto_init() {
  660. if File_cli_server_protos_compose_v1_compose_proto != nil {
  661. return
  662. }
  663. if !protoimpl.UnsafeEnabled {
  664. file_cli_server_protos_compose_v1_compose_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  665. switch v := v.(*ComposeUpRequest); i {
  666. case 0:
  667. return &v.state
  668. case 1:
  669. return &v.sizeCache
  670. case 2:
  671. return &v.unknownFields
  672. default:
  673. return nil
  674. }
  675. }
  676. file_cli_server_protos_compose_v1_compose_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  677. switch v := v.(*ComposeUpResponse); i {
  678. case 0:
  679. return &v.state
  680. case 1:
  681. return &v.sizeCache
  682. case 2:
  683. return &v.unknownFields
  684. default:
  685. return nil
  686. }
  687. }
  688. file_cli_server_protos_compose_v1_compose_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  689. switch v := v.(*ComposeDownRequest); i {
  690. case 0:
  691. return &v.state
  692. case 1:
  693. return &v.sizeCache
  694. case 2:
  695. return &v.unknownFields
  696. default:
  697. return nil
  698. }
  699. }
  700. file_cli_server_protos_compose_v1_compose_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  701. switch v := v.(*ComposeDownResponse); i {
  702. case 0:
  703. return &v.state
  704. case 1:
  705. return &v.sizeCache
  706. case 2:
  707. return &v.unknownFields
  708. default:
  709. return nil
  710. }
  711. }
  712. file_cli_server_protos_compose_v1_compose_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  713. switch v := v.(*ComposeStacksRequest); i {
  714. case 0:
  715. return &v.state
  716. case 1:
  717. return &v.sizeCache
  718. case 2:
  719. return &v.unknownFields
  720. default:
  721. return nil
  722. }
  723. }
  724. file_cli_server_protos_compose_v1_compose_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  725. switch v := v.(*ComposeStacksResponse); i {
  726. case 0:
  727. return &v.state
  728. case 1:
  729. return &v.sizeCache
  730. case 2:
  731. return &v.unknownFields
  732. default:
  733. return nil
  734. }
  735. }
  736. file_cli_server_protos_compose_v1_compose_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  737. switch v := v.(*Stack); i {
  738. case 0:
  739. return &v.state
  740. case 1:
  741. return &v.sizeCache
  742. case 2:
  743. return &v.unknownFields
  744. default:
  745. return nil
  746. }
  747. }
  748. file_cli_server_protos_compose_v1_compose_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  749. switch v := v.(*ComposeServicesRequest); i {
  750. case 0:
  751. return &v.state
  752. case 1:
  753. return &v.sizeCache
  754. case 2:
  755. return &v.unknownFields
  756. default:
  757. return nil
  758. }
  759. }
  760. file_cli_server_protos_compose_v1_compose_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  761. switch v := v.(*ComposeServicesResponse); i {
  762. case 0:
  763. return &v.state
  764. case 1:
  765. return &v.sizeCache
  766. case 2:
  767. return &v.unknownFields
  768. default:
  769. return nil
  770. }
  771. }
  772. file_cli_server_protos_compose_v1_compose_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  773. switch v := v.(*Service); i {
  774. case 0:
  775. return &v.state
  776. case 1:
  777. return &v.sizeCache
  778. case 2:
  779. return &v.unknownFields
  780. default:
  781. return nil
  782. }
  783. }
  784. }
  785. type x struct{}
  786. out := protoimpl.TypeBuilder{
  787. File: protoimpl.DescBuilder{
  788. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  789. RawDescriptor: file_cli_server_protos_compose_v1_compose_proto_rawDesc,
  790. NumEnums: 0,
  791. NumMessages: 10,
  792. NumExtensions: 0,
  793. NumServices: 1,
  794. },
  795. GoTypes: file_cli_server_protos_compose_v1_compose_proto_goTypes,
  796. DependencyIndexes: file_cli_server_protos_compose_v1_compose_proto_depIdxs,
  797. MessageInfos: file_cli_server_protos_compose_v1_compose_proto_msgTypes,
  798. }.Build()
  799. File_cli_server_protos_compose_v1_compose_proto = out.File
  800. file_cli_server_protos_compose_v1_compose_proto_rawDesc = nil
  801. file_cli_server_protos_compose_v1_compose_proto_goTypes = nil
  802. file_cli_server_protos_compose_v1_compose_proto_depIdxs = nil
  803. }
  804. // Reference imports to suppress errors if they are not otherwise used.
  805. var _ context.Context
  806. var _ grpc.ClientConnInterface
  807. // This is a compile-time assertion to ensure that this generated file
  808. // is compatible with the grpc package it is being compiled against.
  809. const _ = grpc.SupportPackageIsVersion6
  810. // ComposeClient is the client API for Compose service.
  811. //
  812. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  813. type ComposeClient interface {
  814. Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error)
  815. Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error)
  816. Stacks(ctx context.Context, in *ComposeStacksRequest, opts ...grpc.CallOption) (*ComposeStacksResponse, error)
  817. Services(ctx context.Context, in *ComposeServicesRequest, opts ...grpc.CallOption) (*ComposeServicesResponse, error)
  818. }
  819. type composeClient struct {
  820. cc grpc.ClientConnInterface
  821. }
  822. func NewComposeClient(cc grpc.ClientConnInterface) ComposeClient {
  823. return &composeClient{cc}
  824. }
  825. func (c *composeClient) Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error) {
  826. out := new(ComposeUpResponse)
  827. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Up", in, out, opts...)
  828. if err != nil {
  829. return nil, err
  830. }
  831. return out, nil
  832. }
  833. func (c *composeClient) Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error) {
  834. out := new(ComposeDownResponse)
  835. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Down", in, out, opts...)
  836. if err != nil {
  837. return nil, err
  838. }
  839. return out, nil
  840. }
  841. func (c *composeClient) Stacks(ctx context.Context, in *ComposeStacksRequest, opts ...grpc.CallOption) (*ComposeStacksResponse, error) {
  842. out := new(ComposeStacksResponse)
  843. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Stacks", in, out, opts...)
  844. if err != nil {
  845. return nil, err
  846. }
  847. return out, nil
  848. }
  849. func (c *composeClient) Services(ctx context.Context, in *ComposeServicesRequest, opts ...grpc.CallOption) (*ComposeServicesResponse, error) {
  850. out := new(ComposeServicesResponse)
  851. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Services", in, out, opts...)
  852. if err != nil {
  853. return nil, err
  854. }
  855. return out, nil
  856. }
  857. // ComposeServer is the server API for Compose service.
  858. type ComposeServer interface {
  859. Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error)
  860. Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error)
  861. Stacks(context.Context, *ComposeStacksRequest) (*ComposeStacksResponse, error)
  862. Services(context.Context, *ComposeServicesRequest) (*ComposeServicesResponse, error)
  863. }
  864. // UnimplementedComposeServer can be embedded to have forward compatible implementations.
  865. type UnimplementedComposeServer struct {
  866. }
  867. func (*UnimplementedComposeServer) Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error) {
  868. return nil, status.Errorf(codes.Unimplemented, "method Up not implemented")
  869. }
  870. func (*UnimplementedComposeServer) Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error) {
  871. return nil, status.Errorf(codes.Unimplemented, "method Down not implemented")
  872. }
  873. func (*UnimplementedComposeServer) Stacks(context.Context, *ComposeStacksRequest) (*ComposeStacksResponse, error) {
  874. return nil, status.Errorf(codes.Unimplemented, "method Stacks not implemented")
  875. }
  876. func (*UnimplementedComposeServer) Services(context.Context, *ComposeServicesRequest) (*ComposeServicesResponse, error) {
  877. return nil, status.Errorf(codes.Unimplemented, "method Services not implemented")
  878. }
  879. func RegisterComposeServer(s *grpc.Server, srv ComposeServer) {
  880. s.RegisterService(&_Compose_serviceDesc, srv)
  881. }
  882. func _Compose_Up_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  883. in := new(ComposeUpRequest)
  884. if err := dec(in); err != nil {
  885. return nil, err
  886. }
  887. if interceptor == nil {
  888. return srv.(ComposeServer).Up(ctx, in)
  889. }
  890. info := &grpc.UnaryServerInfo{
  891. Server: srv,
  892. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Up",
  893. }
  894. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  895. return srv.(ComposeServer).Up(ctx, req.(*ComposeUpRequest))
  896. }
  897. return interceptor(ctx, in, info, handler)
  898. }
  899. func _Compose_Down_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  900. in := new(ComposeDownRequest)
  901. if err := dec(in); err != nil {
  902. return nil, err
  903. }
  904. if interceptor == nil {
  905. return srv.(ComposeServer).Down(ctx, in)
  906. }
  907. info := &grpc.UnaryServerInfo{
  908. Server: srv,
  909. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Down",
  910. }
  911. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  912. return srv.(ComposeServer).Down(ctx, req.(*ComposeDownRequest))
  913. }
  914. return interceptor(ctx, in, info, handler)
  915. }
  916. func _Compose_Stacks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  917. in := new(ComposeStacksRequest)
  918. if err := dec(in); err != nil {
  919. return nil, err
  920. }
  921. if interceptor == nil {
  922. return srv.(ComposeServer).Stacks(ctx, in)
  923. }
  924. info := &grpc.UnaryServerInfo{
  925. Server: srv,
  926. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Stacks",
  927. }
  928. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  929. return srv.(ComposeServer).Stacks(ctx, req.(*ComposeStacksRequest))
  930. }
  931. return interceptor(ctx, in, info, handler)
  932. }
  933. func _Compose_Services_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  934. in := new(ComposeServicesRequest)
  935. if err := dec(in); err != nil {
  936. return nil, err
  937. }
  938. if interceptor == nil {
  939. return srv.(ComposeServer).Services(ctx, in)
  940. }
  941. info := &grpc.UnaryServerInfo{
  942. Server: srv,
  943. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Services",
  944. }
  945. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  946. return srv.(ComposeServer).Services(ctx, req.(*ComposeServicesRequest))
  947. }
  948. return interceptor(ctx, in, info, handler)
  949. }
  950. var _Compose_serviceDesc = grpc.ServiceDesc{
  951. ServiceName: "com.docker.api.protos.compose.v1.Compose",
  952. HandlerType: (*ComposeServer)(nil),
  953. Methods: []grpc.MethodDesc{
  954. {
  955. MethodName: "Up",
  956. Handler: _Compose_Up_Handler,
  957. },
  958. {
  959. MethodName: "Down",
  960. Handler: _Compose_Down_Handler,
  961. },
  962. {
  963. MethodName: "Stacks",
  964. Handler: _Compose_Stacks_Handler,
  965. },
  966. {
  967. MethodName: "Services",
  968. Handler: _Compose_Services_Handler,
  969. },
  970. },
  971. Streams: []grpc.StreamDesc{},
  972. Metadata: "cli/server/protos/compose/v1/compose.proto",
  973. }