compose.pb.go 40 KB

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