compose.pb.go 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097
  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: protos/compose/v1/compose.proto
  17. package v1
  18. import (
  19. context "context"
  20. proto "github.com/golang/protobuf/proto"
  21. grpc "google.golang.org/grpc"
  22. codes "google.golang.org/grpc/codes"
  23. status "google.golang.org/grpc/status"
  24. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  25. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  26. reflect "reflect"
  27. sync "sync"
  28. )
  29. const (
  30. // Verify that this generated code is sufficiently up-to-date.
  31. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  32. // Verify that runtime/protoimpl is sufficiently up-to-date.
  33. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  34. )
  35. // This is a compile-time assertion that a sufficiently up-to-date version
  36. // of the legacy proto package is being used.
  37. const _ = proto.ProtoPackageIsVersion4
  38. type ComposeUpRequest struct {
  39. state protoimpl.MessageState
  40. sizeCache protoimpl.SizeCache
  41. unknownFields protoimpl.UnknownFields
  42. ProjectName string `protobuf:"bytes,1,opt,name=projectName,proto3" json:"projectName,omitempty"`
  43. WorkDir string `protobuf:"bytes,2,opt,name=workDir,proto3" json:"workDir,omitempty"`
  44. Files []string `protobuf:"bytes,3,rep,name=files,proto3" json:"files,omitempty"`
  45. }
  46. func (x *ComposeUpRequest) Reset() {
  47. *x = ComposeUpRequest{}
  48. if protoimpl.UnsafeEnabled {
  49. mi := &file_protos_compose_v1_compose_proto_msgTypes[0]
  50. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  51. ms.StoreMessageInfo(mi)
  52. }
  53. }
  54. func (x *ComposeUpRequest) String() string {
  55. return protoimpl.X.MessageStringOf(x)
  56. }
  57. func (*ComposeUpRequest) ProtoMessage() {}
  58. func (x *ComposeUpRequest) ProtoReflect() protoreflect.Message {
  59. mi := &file_protos_compose_v1_compose_proto_msgTypes[0]
  60. if protoimpl.UnsafeEnabled && x != nil {
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. if ms.LoadMessageInfo() == nil {
  63. ms.StoreMessageInfo(mi)
  64. }
  65. return ms
  66. }
  67. return mi.MessageOf(x)
  68. }
  69. // Deprecated: Use ComposeUpRequest.ProtoReflect.Descriptor instead.
  70. func (*ComposeUpRequest) Descriptor() ([]byte, []int) {
  71. return file_protos_compose_v1_compose_proto_rawDescGZIP(), []int{0}
  72. }
  73. func (x *ComposeUpRequest) GetProjectName() string {
  74. if x != nil {
  75. return x.ProjectName
  76. }
  77. return ""
  78. }
  79. func (x *ComposeUpRequest) GetWorkDir() string {
  80. if x != nil {
  81. return x.WorkDir
  82. }
  83. return ""
  84. }
  85. func (x *ComposeUpRequest) GetFiles() []string {
  86. if x != nil {
  87. return x.Files
  88. }
  89. return nil
  90. }
  91. type ComposeUpResponse struct {
  92. state protoimpl.MessageState
  93. sizeCache protoimpl.SizeCache
  94. unknownFields protoimpl.UnknownFields
  95. 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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_protos_compose_v1_compose_proto protoreflect.FileDescriptor
  520. var file_protos_compose_v1_compose_proto_rawDesc = []byte{
  521. 0x0a, 0x1f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  522. 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  523. 0x6f, 0x12, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70,
  524. 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  525. 0x2e, 0x76, 0x31, 0x22, 0x64, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70,
  526. 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65,
  527. 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72,
  528. 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72,
  529. 0x6b, 0x44, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b,
  530. 0x44, 0x69, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,
  531. 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x11, 0x43, 0x6f, 0x6d,
  532. 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x20,
  533. 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
  534. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65,
  535. 0x22, 0x66, 0x0a, 0x12, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52,
  536. 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
  537. 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f,
  538. 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b,
  539. 0x44, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44,
  540. 0x69, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
  541. 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x37, 0x0a, 0x13, 0x43, 0x6f, 0x6d, 0x70,
  542. 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
  543. 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01,
  544. 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d,
  545. 0x65, 0x22, 0x38, 0x0a, 0x14, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63,
  546. 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x70, 0x72, 0x6f,
  547. 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b,
  548. 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x58, 0x0a, 0x15, 0x43,
  549. 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70,
  550. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x18, 0x01,
  551. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65,
  552. 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
  553. 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x52, 0x06, 0x73,
  554. 0x74, 0x61, 0x63, 0x6b, 0x73, 0x22, 0x5b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x12, 0x0e,
  555. 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12,
  556. 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
  557. 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01,
  558. 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65,
  559. 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73,
  560. 0x6f, 0x6e, 0x22, 0x6a, 0x0a, 0x16, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x65, 0x72,
  561. 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b,
  562. 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
  563. 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18,
  564. 0x0a, 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  565. 0x07, 0x77, 0x6f, 0x72, 0x6b, 0x44, 0x69, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x66, 0x69, 0x6c, 0x65,
  566. 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x66, 0x69, 0x6c, 0x65, 0x73, 0x22, 0x60,
  567. 0x0a, 0x17, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
  568. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x08, 0x73, 0x65, 0x72,
  569. 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x63, 0x6f,
  570. 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f,
  571. 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53,
  572. 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73,
  573. 0x22, 0x79, 0x0a, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
  574. 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e,
  575. 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
  576. 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28,
  577. 0x0d, 0x52, 0x08, 0x72, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x64,
  578. 0x65, 0x73, 0x69, 0x72, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x64, 0x65,
  579. 0x73, 0x69, 0x72, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x18, 0x05,
  580. 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x50, 0x6f, 0x72, 0x74, 0x73, 0x32, 0xe9, 0x03, 0x0a, 0x07,
  581. 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x02, 0x55, 0x70, 0x12, 0x32, 0x2e,
  582. 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  583. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31,
  584. 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  585. 0x74, 0x1a, 0x33, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61,
  586. 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73,
  587. 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x55, 0x70, 0x52, 0x65,
  588. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x04, 0x44, 0x6f, 0x77, 0x6e, 0x12, 0x34,
  589. 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e,
  590. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76,
  591. 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44, 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x71,
  592. 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65,
  593. 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
  594. 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x44,
  595. 0x6f, 0x77, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x79, 0x0a, 0x06, 0x53,
  596. 0x74, 0x61, 0x63, 0x6b, 0x73, 0x12, 0x36, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b,
  597. 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f,
  598. 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65,
  599. 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e,
  600. 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70,
  601. 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31,
  602. 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x74, 0x61, 0x63, 0x6b, 0x73, 0x52, 0x65,
  603. 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x08, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
  604. 0x65, 0x73, 0x12, 0x38, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e,
  605. 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f,
  606. 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x65, 0x72,
  607. 0x76, 0x69, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x39, 0x2e, 0x63,
  608. 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x70, 0x72,
  609. 0x6f, 0x74, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e,
  610. 0x43, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x52,
  611. 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x34, 0x5a, 0x32, 0x67, 0x69, 0x74, 0x68, 0x75,
  612. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d,
  613. 0x70, 0x6f, 0x73, 0x65, 0x2d, 0x63, 0x6c, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
  614. 0x63, 0x6f, 0x6d, 0x70, 0x6f, 0x73, 0x65, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70,
  615. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  616. }
  617. var (
  618. file_protos_compose_v1_compose_proto_rawDescOnce sync.Once
  619. file_protos_compose_v1_compose_proto_rawDescData = file_protos_compose_v1_compose_proto_rawDesc
  620. )
  621. func file_protos_compose_v1_compose_proto_rawDescGZIP() []byte {
  622. file_protos_compose_v1_compose_proto_rawDescOnce.Do(func() {
  623. file_protos_compose_v1_compose_proto_rawDescData = protoimpl.X.CompressGZIP(file_protos_compose_v1_compose_proto_rawDescData)
  624. })
  625. return file_protos_compose_v1_compose_proto_rawDescData
  626. }
  627. var file_protos_compose_v1_compose_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
  628. var file_protos_compose_v1_compose_proto_goTypes = []interface{}{
  629. (*ComposeUpRequest)(nil), // 0: com.docker.api.protos.compose.v1.ComposeUpRequest
  630. (*ComposeUpResponse)(nil), // 1: com.docker.api.protos.compose.v1.ComposeUpResponse
  631. (*ComposeDownRequest)(nil), // 2: com.docker.api.protos.compose.v1.ComposeDownRequest
  632. (*ComposeDownResponse)(nil), // 3: com.docker.api.protos.compose.v1.ComposeDownResponse
  633. (*ComposeStacksRequest)(nil), // 4: com.docker.api.protos.compose.v1.ComposeStacksRequest
  634. (*ComposeStacksResponse)(nil), // 5: com.docker.api.protos.compose.v1.ComposeStacksResponse
  635. (*Stack)(nil), // 6: com.docker.api.protos.compose.v1.Stack
  636. (*ComposeServicesRequest)(nil), // 7: com.docker.api.protos.compose.v1.ComposeServicesRequest
  637. (*ComposeServicesResponse)(nil), // 8: com.docker.api.protos.compose.v1.ComposeServicesResponse
  638. (*Service)(nil), // 9: com.docker.api.protos.compose.v1.Service
  639. }
  640. var file_protos_compose_v1_compose_proto_depIdxs = []int32{
  641. 6, // 0: com.docker.api.protos.compose.v1.ComposeStacksResponse.stacks:type_name -> com.docker.api.protos.compose.v1.Stack
  642. 9, // 1: com.docker.api.protos.compose.v1.ComposeServicesResponse.services:type_name -> com.docker.api.protos.compose.v1.Service
  643. 0, // 2: com.docker.api.protos.compose.v1.Compose.Up:input_type -> com.docker.api.protos.compose.v1.ComposeUpRequest
  644. 2, // 3: com.docker.api.protos.compose.v1.Compose.Down:input_type -> com.docker.api.protos.compose.v1.ComposeDownRequest
  645. 4, // 4: com.docker.api.protos.compose.v1.Compose.Stacks:input_type -> com.docker.api.protos.compose.v1.ComposeStacksRequest
  646. 7, // 5: com.docker.api.protos.compose.v1.Compose.Services:input_type -> com.docker.api.protos.compose.v1.ComposeServicesRequest
  647. 1, // 6: com.docker.api.protos.compose.v1.Compose.Up:output_type -> com.docker.api.protos.compose.v1.ComposeUpResponse
  648. 3, // 7: com.docker.api.protos.compose.v1.Compose.Down:output_type -> com.docker.api.protos.compose.v1.ComposeDownResponse
  649. 5, // 8: com.docker.api.protos.compose.v1.Compose.Stacks:output_type -> com.docker.api.protos.compose.v1.ComposeStacksResponse
  650. 8, // 9: com.docker.api.protos.compose.v1.Compose.Services:output_type -> com.docker.api.protos.compose.v1.ComposeServicesResponse
  651. 6, // [6:10] is the sub-list for method output_type
  652. 2, // [2:6] is the sub-list for method input_type
  653. 2, // [2:2] is the sub-list for extension type_name
  654. 2, // [2:2] is the sub-list for extension extendee
  655. 0, // [0:2] is the sub-list for field type_name
  656. }
  657. func init() { file_protos_compose_v1_compose_proto_init() }
  658. func file_protos_compose_v1_compose_proto_init() {
  659. if File_protos_compose_v1_compose_proto != nil {
  660. return
  661. }
  662. if !protoimpl.UnsafeEnabled {
  663. file_protos_compose_v1_compose_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  664. switch v := v.(*ComposeUpRequest); i {
  665. case 0:
  666. return &v.state
  667. case 1:
  668. return &v.sizeCache
  669. case 2:
  670. return &v.unknownFields
  671. default:
  672. return nil
  673. }
  674. }
  675. file_protos_compose_v1_compose_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  676. switch v := v.(*ComposeUpResponse); i {
  677. case 0:
  678. return &v.state
  679. case 1:
  680. return &v.sizeCache
  681. case 2:
  682. return &v.unknownFields
  683. default:
  684. return nil
  685. }
  686. }
  687. file_protos_compose_v1_compose_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  688. switch v := v.(*ComposeDownRequest); i {
  689. case 0:
  690. return &v.state
  691. case 1:
  692. return &v.sizeCache
  693. case 2:
  694. return &v.unknownFields
  695. default:
  696. return nil
  697. }
  698. }
  699. file_protos_compose_v1_compose_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  700. switch v := v.(*ComposeDownResponse); i {
  701. case 0:
  702. return &v.state
  703. case 1:
  704. return &v.sizeCache
  705. case 2:
  706. return &v.unknownFields
  707. default:
  708. return nil
  709. }
  710. }
  711. file_protos_compose_v1_compose_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  712. switch v := v.(*ComposeStacksRequest); i {
  713. case 0:
  714. return &v.state
  715. case 1:
  716. return &v.sizeCache
  717. case 2:
  718. return &v.unknownFields
  719. default:
  720. return nil
  721. }
  722. }
  723. file_protos_compose_v1_compose_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  724. switch v := v.(*ComposeStacksResponse); i {
  725. case 0:
  726. return &v.state
  727. case 1:
  728. return &v.sizeCache
  729. case 2:
  730. return &v.unknownFields
  731. default:
  732. return nil
  733. }
  734. }
  735. file_protos_compose_v1_compose_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  736. switch v := v.(*Stack); i {
  737. case 0:
  738. return &v.state
  739. case 1:
  740. return &v.sizeCache
  741. case 2:
  742. return &v.unknownFields
  743. default:
  744. return nil
  745. }
  746. }
  747. file_protos_compose_v1_compose_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  748. switch v := v.(*ComposeServicesRequest); i {
  749. case 0:
  750. return &v.state
  751. case 1:
  752. return &v.sizeCache
  753. case 2:
  754. return &v.unknownFields
  755. default:
  756. return nil
  757. }
  758. }
  759. file_protos_compose_v1_compose_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  760. switch v := v.(*ComposeServicesResponse); i {
  761. case 0:
  762. return &v.state
  763. case 1:
  764. return &v.sizeCache
  765. case 2:
  766. return &v.unknownFields
  767. default:
  768. return nil
  769. }
  770. }
  771. file_protos_compose_v1_compose_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  772. switch v := v.(*Service); i {
  773. case 0:
  774. return &v.state
  775. case 1:
  776. return &v.sizeCache
  777. case 2:
  778. return &v.unknownFields
  779. default:
  780. return nil
  781. }
  782. }
  783. }
  784. type x struct{}
  785. out := protoimpl.TypeBuilder{
  786. File: protoimpl.DescBuilder{
  787. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  788. RawDescriptor: file_protos_compose_v1_compose_proto_rawDesc,
  789. NumEnums: 0,
  790. NumMessages: 10,
  791. NumExtensions: 0,
  792. NumServices: 1,
  793. },
  794. GoTypes: file_protos_compose_v1_compose_proto_goTypes,
  795. DependencyIndexes: file_protos_compose_v1_compose_proto_depIdxs,
  796. MessageInfos: file_protos_compose_v1_compose_proto_msgTypes,
  797. }.Build()
  798. File_protos_compose_v1_compose_proto = out.File
  799. file_protos_compose_v1_compose_proto_rawDesc = nil
  800. file_protos_compose_v1_compose_proto_goTypes = nil
  801. file_protos_compose_v1_compose_proto_depIdxs = nil
  802. }
  803. // Reference imports to suppress errors if they are not otherwise used.
  804. var _ context.Context
  805. var _ grpc.ClientConnInterface
  806. // This is a compile-time assertion to ensure that this generated file
  807. // is compatible with the grpc package it is being compiled against.
  808. const _ = grpc.SupportPackageIsVersion6
  809. // ComposeClient is the client API for Compose service.
  810. //
  811. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  812. type ComposeClient interface {
  813. Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error)
  814. Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error)
  815. Stacks(ctx context.Context, in *ComposeStacksRequest, opts ...grpc.CallOption) (*ComposeStacksResponse, error)
  816. Services(ctx context.Context, in *ComposeServicesRequest, opts ...grpc.CallOption) (*ComposeServicesResponse, error)
  817. }
  818. type composeClient struct {
  819. cc grpc.ClientConnInterface
  820. }
  821. func NewComposeClient(cc grpc.ClientConnInterface) ComposeClient {
  822. return &composeClient{cc}
  823. }
  824. func (c *composeClient) Up(ctx context.Context, in *ComposeUpRequest, opts ...grpc.CallOption) (*ComposeUpResponse, error) {
  825. out := new(ComposeUpResponse)
  826. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Up", in, out, opts...)
  827. if err != nil {
  828. return nil, err
  829. }
  830. return out, nil
  831. }
  832. func (c *composeClient) Down(ctx context.Context, in *ComposeDownRequest, opts ...grpc.CallOption) (*ComposeDownResponse, error) {
  833. out := new(ComposeDownResponse)
  834. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Down", in, out, opts...)
  835. if err != nil {
  836. return nil, err
  837. }
  838. return out, nil
  839. }
  840. func (c *composeClient) Stacks(ctx context.Context, in *ComposeStacksRequest, opts ...grpc.CallOption) (*ComposeStacksResponse, error) {
  841. out := new(ComposeStacksResponse)
  842. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Stacks", in, out, opts...)
  843. if err != nil {
  844. return nil, err
  845. }
  846. return out, nil
  847. }
  848. func (c *composeClient) Services(ctx context.Context, in *ComposeServicesRequest, opts ...grpc.CallOption) (*ComposeServicesResponse, error) {
  849. out := new(ComposeServicesResponse)
  850. err := c.cc.Invoke(ctx, "/com.docker.api.protos.compose.v1.Compose/Services", in, out, opts...)
  851. if err != nil {
  852. return nil, err
  853. }
  854. return out, nil
  855. }
  856. // ComposeServer is the server API for Compose service.
  857. type ComposeServer interface {
  858. Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error)
  859. Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error)
  860. Stacks(context.Context, *ComposeStacksRequest) (*ComposeStacksResponse, error)
  861. Services(context.Context, *ComposeServicesRequest) (*ComposeServicesResponse, error)
  862. }
  863. // UnimplementedComposeServer can be embedded to have forward compatible implementations.
  864. type UnimplementedComposeServer struct {
  865. }
  866. func (*UnimplementedComposeServer) Up(context.Context, *ComposeUpRequest) (*ComposeUpResponse, error) {
  867. return nil, status.Errorf(codes.Unimplemented, "method Up not implemented")
  868. }
  869. func (*UnimplementedComposeServer) Down(context.Context, *ComposeDownRequest) (*ComposeDownResponse, error) {
  870. return nil, status.Errorf(codes.Unimplemented, "method Down not implemented")
  871. }
  872. func (*UnimplementedComposeServer) Stacks(context.Context, *ComposeStacksRequest) (*ComposeStacksResponse, error) {
  873. return nil, status.Errorf(codes.Unimplemented, "method Stacks not implemented")
  874. }
  875. func (*UnimplementedComposeServer) Services(context.Context, *ComposeServicesRequest) (*ComposeServicesResponse, error) {
  876. return nil, status.Errorf(codes.Unimplemented, "method Services not implemented")
  877. }
  878. func RegisterComposeServer(s *grpc.Server, srv ComposeServer) {
  879. s.RegisterService(&_Compose_serviceDesc, srv)
  880. }
  881. func _Compose_Up_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  882. in := new(ComposeUpRequest)
  883. if err := dec(in); err != nil {
  884. return nil, err
  885. }
  886. if interceptor == nil {
  887. return srv.(ComposeServer).Up(ctx, in)
  888. }
  889. info := &grpc.UnaryServerInfo{
  890. Server: srv,
  891. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Up",
  892. }
  893. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  894. return srv.(ComposeServer).Up(ctx, req.(*ComposeUpRequest))
  895. }
  896. return interceptor(ctx, in, info, handler)
  897. }
  898. func _Compose_Down_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  899. in := new(ComposeDownRequest)
  900. if err := dec(in); err != nil {
  901. return nil, err
  902. }
  903. if interceptor == nil {
  904. return srv.(ComposeServer).Down(ctx, in)
  905. }
  906. info := &grpc.UnaryServerInfo{
  907. Server: srv,
  908. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Down",
  909. }
  910. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  911. return srv.(ComposeServer).Down(ctx, req.(*ComposeDownRequest))
  912. }
  913. return interceptor(ctx, in, info, handler)
  914. }
  915. func _Compose_Stacks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  916. in := new(ComposeStacksRequest)
  917. if err := dec(in); err != nil {
  918. return nil, err
  919. }
  920. if interceptor == nil {
  921. return srv.(ComposeServer).Stacks(ctx, in)
  922. }
  923. info := &grpc.UnaryServerInfo{
  924. Server: srv,
  925. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Stacks",
  926. }
  927. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  928. return srv.(ComposeServer).Stacks(ctx, req.(*ComposeStacksRequest))
  929. }
  930. return interceptor(ctx, in, info, handler)
  931. }
  932. func _Compose_Services_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  933. in := new(ComposeServicesRequest)
  934. if err := dec(in); err != nil {
  935. return nil, err
  936. }
  937. if interceptor == nil {
  938. return srv.(ComposeServer).Services(ctx, in)
  939. }
  940. info := &grpc.UnaryServerInfo{
  941. Server: srv,
  942. FullMethod: "/com.docker.api.protos.compose.v1.Compose/Services",
  943. }
  944. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  945. return srv.(ComposeServer).Services(ctx, req.(*ComposeServicesRequest))
  946. }
  947. return interceptor(ctx, in, info, handler)
  948. }
  949. var _Compose_serviceDesc = grpc.ServiceDesc{
  950. ServiceName: "com.docker.api.protos.compose.v1.Compose",
  951. HandlerType: (*ComposeServer)(nil),
  952. Methods: []grpc.MethodDesc{
  953. {
  954. MethodName: "Up",
  955. Handler: _Compose_Up_Handler,
  956. },
  957. {
  958. MethodName: "Down",
  959. Handler: _Compose_Down_Handler,
  960. },
  961. {
  962. MethodName: "Stacks",
  963. Handler: _Compose_Stacks_Handler,
  964. },
  965. {
  966. MethodName: "Services",
  967. Handler: _Compose_Services_Handler,
  968. },
  969. },
  970. Streams: []grpc.StreamDesc{},
  971. Metadata: "protos/compose/v1/compose.proto",
  972. }