api.pb.go 78 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134
  1. /*
  2. Copyright The Kubernetes 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. */
  13. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  14. // source: api.proto
  15. /*
  16. Package v1beta1 is a generated protocol buffer package.
  17. It is generated from these files:
  18. api.proto
  19. It has these top-level messages:
  20. DevicePluginOptions
  21. RegisterRequest
  22. Empty
  23. ListAndWatchResponse
  24. Device
  25. PreStartContainerRequest
  26. PreStartContainerResponse
  27. AllocateRequest
  28. ContainerAllocateRequest
  29. AllocateResponse
  30. ContainerAllocateResponse
  31. Mount
  32. DeviceSpec
  33. */
  34. package v1beta1
  35. import proto "github.com/gogo/protobuf/proto"
  36. import fmt "fmt"
  37. import math "math"
  38. import _ "github.com/gogo/protobuf/gogoproto"
  39. import (
  40. context "golang.org/x/net/context"
  41. grpc "google.golang.org/grpc"
  42. )
  43. import strings "strings"
  44. import reflect "reflect"
  45. import github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
  46. import io "io"
  47. // Reference imports to suppress errors if they are not otherwise used.
  48. var _ = proto.Marshal
  49. var _ = fmt.Errorf
  50. var _ = math.Inf
  51. // This is a compile-time assertion to ensure that this generated file
  52. // is compatible with the proto package it is being compiled against.
  53. // A compilation error at this line likely means your copy of the
  54. // proto package needs to be updated.
  55. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  56. type DevicePluginOptions struct {
  57. // Indicates if PreStartContainer call is required before each container start
  58. PreStartRequired bool `protobuf:"varint,1,opt,name=pre_start_required,json=preStartRequired,proto3" json:"pre_start_required,omitempty"`
  59. }
  60. func (m *DevicePluginOptions) Reset() { *m = DevicePluginOptions{} }
  61. func (*DevicePluginOptions) ProtoMessage() {}
  62. func (*DevicePluginOptions) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{0} }
  63. func (m *DevicePluginOptions) GetPreStartRequired() bool {
  64. if m != nil {
  65. return m.PreStartRequired
  66. }
  67. return false
  68. }
  69. type RegisterRequest struct {
  70. // Version of the API the Device Plugin was built against
  71. Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
  72. // Name of the unix socket the device plugin is listening on
  73. // PATH = path.Join(DevicePluginPath, endpoint)
  74. Endpoint string `protobuf:"bytes,2,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
  75. // Schedulable resource name. As of now it's expected to be a DNS Label
  76. ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
  77. // Options to be communicated with Device Manager
  78. Options *DevicePluginOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"`
  79. }
  80. func (m *RegisterRequest) Reset() { *m = RegisterRequest{} }
  81. func (*RegisterRequest) ProtoMessage() {}
  82. func (*RegisterRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{1} }
  83. func (m *RegisterRequest) GetVersion() string {
  84. if m != nil {
  85. return m.Version
  86. }
  87. return ""
  88. }
  89. func (m *RegisterRequest) GetEndpoint() string {
  90. if m != nil {
  91. return m.Endpoint
  92. }
  93. return ""
  94. }
  95. func (m *RegisterRequest) GetResourceName() string {
  96. if m != nil {
  97. return m.ResourceName
  98. }
  99. return ""
  100. }
  101. func (m *RegisterRequest) GetOptions() *DevicePluginOptions {
  102. if m != nil {
  103. return m.Options
  104. }
  105. return nil
  106. }
  107. type Empty struct {
  108. }
  109. func (m *Empty) Reset() { *m = Empty{} }
  110. func (*Empty) ProtoMessage() {}
  111. func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{2} }
  112. // ListAndWatch returns a stream of List of Devices
  113. // Whenever a Device state change or a Device disappears, ListAndWatch
  114. // returns the new list
  115. type ListAndWatchResponse struct {
  116. Devices []*Device `protobuf:"bytes,1,rep,name=devices" json:"devices,omitempty"`
  117. }
  118. func (m *ListAndWatchResponse) Reset() { *m = ListAndWatchResponse{} }
  119. func (*ListAndWatchResponse) ProtoMessage() {}
  120. func (*ListAndWatchResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{3} }
  121. func (m *ListAndWatchResponse) GetDevices() []*Device {
  122. if m != nil {
  123. return m.Devices
  124. }
  125. return nil
  126. }
  127. // E.g:
  128. // struct Device {
  129. // ID: "GPU-fef8089b-4820-abfc-e83e-94318197576e",
  130. // State: "Healthy",
  131. // }
  132. type Device struct {
  133. // A unique ID assigned by the device plugin used
  134. // to identify devices during the communication
  135. // Max length of this field is 63 characters
  136. ID string `protobuf:"bytes,1,opt,name=ID,json=iD,proto3" json:"ID,omitempty"`
  137. // Health of the device, can be healthy or unhealthy, see constants.go
  138. Health string `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"`
  139. }
  140. func (m *Device) Reset() { *m = Device{} }
  141. func (*Device) ProtoMessage() {}
  142. func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{4} }
  143. func (m *Device) GetID() string {
  144. if m != nil {
  145. return m.ID
  146. }
  147. return ""
  148. }
  149. func (m *Device) GetHealth() string {
  150. if m != nil {
  151. return m.Health
  152. }
  153. return ""
  154. }
  155. // - PreStartContainer is expected to be called before each container start if indicated by plugin during registration phase.
  156. // - PreStartContainer allows kubelet to pass reinitialized devices to containers.
  157. // - PreStartContainer allows Device Plugin to run device specific operations on
  158. // the Devices requested
  159. type PreStartContainerRequest struct {
  160. DevicesIDs []string `protobuf:"bytes,1,rep,name=devicesIDs" json:"devicesIDs,omitempty"`
  161. }
  162. func (m *PreStartContainerRequest) Reset() { *m = PreStartContainerRequest{} }
  163. func (*PreStartContainerRequest) ProtoMessage() {}
  164. func (*PreStartContainerRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{5} }
  165. func (m *PreStartContainerRequest) GetDevicesIDs() []string {
  166. if m != nil {
  167. return m.DevicesIDs
  168. }
  169. return nil
  170. }
  171. // PreStartContainerResponse will be send by plugin in response to PreStartContainerRequest
  172. type PreStartContainerResponse struct {
  173. }
  174. func (m *PreStartContainerResponse) Reset() { *m = PreStartContainerResponse{} }
  175. func (*PreStartContainerResponse) ProtoMessage() {}
  176. func (*PreStartContainerResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{6} }
  177. // - Allocate is expected to be called during pod creation since allocation
  178. // failures for any container would result in pod startup failure.
  179. // - Allocate allows kubelet to exposes additional artifacts in a pod's
  180. // environment as directed by the plugin.
  181. // - Allocate allows Device Plugin to run device specific operations on
  182. // the Devices requested
  183. type AllocateRequest struct {
  184. ContainerRequests []*ContainerAllocateRequest `protobuf:"bytes,1,rep,name=container_requests,json=containerRequests" json:"container_requests,omitempty"`
  185. }
  186. func (m *AllocateRequest) Reset() { *m = AllocateRequest{} }
  187. func (*AllocateRequest) ProtoMessage() {}
  188. func (*AllocateRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{7} }
  189. func (m *AllocateRequest) GetContainerRequests() []*ContainerAllocateRequest {
  190. if m != nil {
  191. return m.ContainerRequests
  192. }
  193. return nil
  194. }
  195. type ContainerAllocateRequest struct {
  196. DevicesIDs []string `protobuf:"bytes,1,rep,name=devicesIDs" json:"devicesIDs,omitempty"`
  197. }
  198. func (m *ContainerAllocateRequest) Reset() { *m = ContainerAllocateRequest{} }
  199. func (*ContainerAllocateRequest) ProtoMessage() {}
  200. func (*ContainerAllocateRequest) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{8} }
  201. func (m *ContainerAllocateRequest) GetDevicesIDs() []string {
  202. if m != nil {
  203. return m.DevicesIDs
  204. }
  205. return nil
  206. }
  207. // AllocateResponse includes the artifacts that needs to be injected into
  208. // a container for accessing 'deviceIDs' that were mentioned as part of
  209. // 'AllocateRequest'.
  210. // Failure Handling:
  211. // if Kubelet sends an allocation request for dev1 and dev2.
  212. // Allocation on dev1 succeeds but allocation on dev2 fails.
  213. // The Device plugin should send a ListAndWatch update and fail the
  214. // Allocation request
  215. type AllocateResponse struct {
  216. ContainerResponses []*ContainerAllocateResponse `protobuf:"bytes,1,rep,name=container_responses,json=containerResponses" json:"container_responses,omitempty"`
  217. }
  218. func (m *AllocateResponse) Reset() { *m = AllocateResponse{} }
  219. func (*AllocateResponse) ProtoMessage() {}
  220. func (*AllocateResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{9} }
  221. func (m *AllocateResponse) GetContainerResponses() []*ContainerAllocateResponse {
  222. if m != nil {
  223. return m.ContainerResponses
  224. }
  225. return nil
  226. }
  227. type ContainerAllocateResponse struct {
  228. // List of environment variable to be set in the container to access one of more devices.
  229. Envs map[string]string `protobuf:"bytes,1,rep,name=envs" json:"envs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  230. // Mounts for the container.
  231. Mounts []*Mount `protobuf:"bytes,2,rep,name=mounts" json:"mounts,omitempty"`
  232. // Devices for the container.
  233. Devices []*DeviceSpec `protobuf:"bytes,3,rep,name=devices" json:"devices,omitempty"`
  234. // Container annotations to pass to the container runtime
  235. Annotations map[string]string `protobuf:"bytes,4,rep,name=annotations" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  236. }
  237. func (m *ContainerAllocateResponse) Reset() { *m = ContainerAllocateResponse{} }
  238. func (*ContainerAllocateResponse) ProtoMessage() {}
  239. func (*ContainerAllocateResponse) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{10} }
  240. func (m *ContainerAllocateResponse) GetEnvs() map[string]string {
  241. if m != nil {
  242. return m.Envs
  243. }
  244. return nil
  245. }
  246. func (m *ContainerAllocateResponse) GetMounts() []*Mount {
  247. if m != nil {
  248. return m.Mounts
  249. }
  250. return nil
  251. }
  252. func (m *ContainerAllocateResponse) GetDevices() []*DeviceSpec {
  253. if m != nil {
  254. return m.Devices
  255. }
  256. return nil
  257. }
  258. func (m *ContainerAllocateResponse) GetAnnotations() map[string]string {
  259. if m != nil {
  260. return m.Annotations
  261. }
  262. return nil
  263. }
  264. // Mount specifies a host volume to mount into a container.
  265. // where device library or tools are installed on host and container
  266. type Mount struct {
  267. // Path of the mount within the container.
  268. ContainerPath string `protobuf:"bytes,1,opt,name=container_path,json=containerPath,proto3" json:"container_path,omitempty"`
  269. // Path of the mount on the host.
  270. HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"`
  271. // If set, the mount is read-only.
  272. ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
  273. }
  274. func (m *Mount) Reset() { *m = Mount{} }
  275. func (*Mount) ProtoMessage() {}
  276. func (*Mount) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{11} }
  277. func (m *Mount) GetContainerPath() string {
  278. if m != nil {
  279. return m.ContainerPath
  280. }
  281. return ""
  282. }
  283. func (m *Mount) GetHostPath() string {
  284. if m != nil {
  285. return m.HostPath
  286. }
  287. return ""
  288. }
  289. func (m *Mount) GetReadOnly() bool {
  290. if m != nil {
  291. return m.ReadOnly
  292. }
  293. return false
  294. }
  295. // DeviceSpec specifies a host device to mount into a container.
  296. type DeviceSpec struct {
  297. // Path of the device within the container.
  298. ContainerPath string `protobuf:"bytes,1,opt,name=container_path,json=containerPath,proto3" json:"container_path,omitempty"`
  299. // Path of the device on the host.
  300. HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"`
  301. // Cgroups permissions of the device, candidates are one or more of
  302. // * r - allows container to read from the specified device.
  303. // * w - allows container to write to the specified device.
  304. // * m - allows container to create device files that do not yet exist.
  305. Permissions string `protobuf:"bytes,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
  306. }
  307. func (m *DeviceSpec) Reset() { *m = DeviceSpec{} }
  308. func (*DeviceSpec) ProtoMessage() {}
  309. func (*DeviceSpec) Descriptor() ([]byte, []int) { return fileDescriptorApi, []int{12} }
  310. func (m *DeviceSpec) GetContainerPath() string {
  311. if m != nil {
  312. return m.ContainerPath
  313. }
  314. return ""
  315. }
  316. func (m *DeviceSpec) GetHostPath() string {
  317. if m != nil {
  318. return m.HostPath
  319. }
  320. return ""
  321. }
  322. func (m *DeviceSpec) GetPermissions() string {
  323. if m != nil {
  324. return m.Permissions
  325. }
  326. return ""
  327. }
  328. func init() {
  329. proto.RegisterType((*DevicePluginOptions)(nil), "v1beta1.DevicePluginOptions")
  330. proto.RegisterType((*RegisterRequest)(nil), "v1beta1.RegisterRequest")
  331. proto.RegisterType((*Empty)(nil), "v1beta1.Empty")
  332. proto.RegisterType((*ListAndWatchResponse)(nil), "v1beta1.ListAndWatchResponse")
  333. proto.RegisterType((*Device)(nil), "v1beta1.Device")
  334. proto.RegisterType((*PreStartContainerRequest)(nil), "v1beta1.PreStartContainerRequest")
  335. proto.RegisterType((*PreStartContainerResponse)(nil), "v1beta1.PreStartContainerResponse")
  336. proto.RegisterType((*AllocateRequest)(nil), "v1beta1.AllocateRequest")
  337. proto.RegisterType((*ContainerAllocateRequest)(nil), "v1beta1.ContainerAllocateRequest")
  338. proto.RegisterType((*AllocateResponse)(nil), "v1beta1.AllocateResponse")
  339. proto.RegisterType((*ContainerAllocateResponse)(nil), "v1beta1.ContainerAllocateResponse")
  340. proto.RegisterType((*Mount)(nil), "v1beta1.Mount")
  341. proto.RegisterType((*DeviceSpec)(nil), "v1beta1.DeviceSpec")
  342. }
  343. // Reference imports to suppress errors if they are not otherwise used.
  344. var _ context.Context
  345. var _ grpc.ClientConn
  346. // This is a compile-time assertion to ensure that this generated file
  347. // is compatible with the grpc package it is being compiled against.
  348. const _ = grpc.SupportPackageIsVersion4
  349. // Client API for Registration service
  350. type RegistrationClient interface {
  351. Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*Empty, error)
  352. }
  353. type registrationClient struct {
  354. cc *grpc.ClientConn
  355. }
  356. func NewRegistrationClient(cc *grpc.ClientConn) RegistrationClient {
  357. return &registrationClient{cc}
  358. }
  359. func (c *registrationClient) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*Empty, error) {
  360. out := new(Empty)
  361. err := grpc.Invoke(ctx, "/v1beta1.Registration/Register", in, out, c.cc, opts...)
  362. if err != nil {
  363. return nil, err
  364. }
  365. return out, nil
  366. }
  367. // Server API for Registration service
  368. type RegistrationServer interface {
  369. Register(context.Context, *RegisterRequest) (*Empty, error)
  370. }
  371. func RegisterRegistrationServer(s *grpc.Server, srv RegistrationServer) {
  372. s.RegisterService(&_Registration_serviceDesc, srv)
  373. }
  374. func _Registration_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  375. in := new(RegisterRequest)
  376. if err := dec(in); err != nil {
  377. return nil, err
  378. }
  379. if interceptor == nil {
  380. return srv.(RegistrationServer).Register(ctx, in)
  381. }
  382. info := &grpc.UnaryServerInfo{
  383. Server: srv,
  384. FullMethod: "/v1beta1.Registration/Register",
  385. }
  386. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  387. return srv.(RegistrationServer).Register(ctx, req.(*RegisterRequest))
  388. }
  389. return interceptor(ctx, in, info, handler)
  390. }
  391. var _Registration_serviceDesc = grpc.ServiceDesc{
  392. ServiceName: "v1beta1.Registration",
  393. HandlerType: (*RegistrationServer)(nil),
  394. Methods: []grpc.MethodDesc{
  395. {
  396. MethodName: "Register",
  397. Handler: _Registration_Register_Handler,
  398. },
  399. },
  400. Streams: []grpc.StreamDesc{},
  401. Metadata: "api.proto",
  402. }
  403. // Client API for DevicePlugin service
  404. type DevicePluginClient interface {
  405. // GetDevicePluginOptions returns options to be communicated with Device
  406. // Manager
  407. GetDevicePluginOptions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DevicePluginOptions, error)
  408. // ListAndWatch returns a stream of List of Devices
  409. // Whenever a Device state change or a Device disappears, ListAndWatch
  410. // returns the new list
  411. ListAndWatch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (DevicePlugin_ListAndWatchClient, error)
  412. // Allocate is called during container creation so that the Device
  413. // Plugin can run device specific operations and instruct Kubelet
  414. // of the steps to make the Device available in the container
  415. Allocate(ctx context.Context, in *AllocateRequest, opts ...grpc.CallOption) (*AllocateResponse, error)
  416. // PreStartContainer is called, if indicated by Device Plugin during registeration phase,
  417. // before each container start. Device plugin can run device specific operations
  418. // such as reseting the device before making devices available to the container
  419. PreStartContainer(ctx context.Context, in *PreStartContainerRequest, opts ...grpc.CallOption) (*PreStartContainerResponse, error)
  420. }
  421. type devicePluginClient struct {
  422. cc *grpc.ClientConn
  423. }
  424. func NewDevicePluginClient(cc *grpc.ClientConn) DevicePluginClient {
  425. return &devicePluginClient{cc}
  426. }
  427. func (c *devicePluginClient) GetDevicePluginOptions(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DevicePluginOptions, error) {
  428. out := new(DevicePluginOptions)
  429. err := grpc.Invoke(ctx, "/v1beta1.DevicePlugin/GetDevicePluginOptions", in, out, c.cc, opts...)
  430. if err != nil {
  431. return nil, err
  432. }
  433. return out, nil
  434. }
  435. func (c *devicePluginClient) ListAndWatch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (DevicePlugin_ListAndWatchClient, error) {
  436. stream, err := grpc.NewClientStream(ctx, &_DevicePlugin_serviceDesc.Streams[0], c.cc, "/v1beta1.DevicePlugin/ListAndWatch", opts...)
  437. if err != nil {
  438. return nil, err
  439. }
  440. x := &devicePluginListAndWatchClient{stream}
  441. if err := x.ClientStream.SendMsg(in); err != nil {
  442. return nil, err
  443. }
  444. if err := x.ClientStream.CloseSend(); err != nil {
  445. return nil, err
  446. }
  447. return x, nil
  448. }
  449. type DevicePlugin_ListAndWatchClient interface {
  450. Recv() (*ListAndWatchResponse, error)
  451. grpc.ClientStream
  452. }
  453. type devicePluginListAndWatchClient struct {
  454. grpc.ClientStream
  455. }
  456. func (x *devicePluginListAndWatchClient) Recv() (*ListAndWatchResponse, error) {
  457. m := new(ListAndWatchResponse)
  458. if err := x.ClientStream.RecvMsg(m); err != nil {
  459. return nil, err
  460. }
  461. return m, nil
  462. }
  463. func (c *devicePluginClient) Allocate(ctx context.Context, in *AllocateRequest, opts ...grpc.CallOption) (*AllocateResponse, error) {
  464. out := new(AllocateResponse)
  465. err := grpc.Invoke(ctx, "/v1beta1.DevicePlugin/Allocate", in, out, c.cc, opts...)
  466. if err != nil {
  467. return nil, err
  468. }
  469. return out, nil
  470. }
  471. func (c *devicePluginClient) PreStartContainer(ctx context.Context, in *PreStartContainerRequest, opts ...grpc.CallOption) (*PreStartContainerResponse, error) {
  472. out := new(PreStartContainerResponse)
  473. err := grpc.Invoke(ctx, "/v1beta1.DevicePlugin/PreStartContainer", in, out, c.cc, opts...)
  474. if err != nil {
  475. return nil, err
  476. }
  477. return out, nil
  478. }
  479. // Server API for DevicePlugin service
  480. type DevicePluginServer interface {
  481. // GetDevicePluginOptions returns options to be communicated with Device
  482. // Manager
  483. GetDevicePluginOptions(context.Context, *Empty) (*DevicePluginOptions, error)
  484. // ListAndWatch returns a stream of List of Devices
  485. // Whenever a Device state change or a Device disappears, ListAndWatch
  486. // returns the new list
  487. ListAndWatch(*Empty, DevicePlugin_ListAndWatchServer) error
  488. // Allocate is called during container creation so that the Device
  489. // Plugin can run device specific operations and instruct Kubelet
  490. // of the steps to make the Device available in the container
  491. Allocate(context.Context, *AllocateRequest) (*AllocateResponse, error)
  492. // PreStartContainer is called, if indicated by Device Plugin during registeration phase,
  493. // before each container start. Device plugin can run device specific operations
  494. // such as reseting the device before making devices available to the container
  495. PreStartContainer(context.Context, *PreStartContainerRequest) (*PreStartContainerResponse, error)
  496. }
  497. func RegisterDevicePluginServer(s *grpc.Server, srv DevicePluginServer) {
  498. s.RegisterService(&_DevicePlugin_serviceDesc, srv)
  499. }
  500. func _DevicePlugin_GetDevicePluginOptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  501. in := new(Empty)
  502. if err := dec(in); err != nil {
  503. return nil, err
  504. }
  505. if interceptor == nil {
  506. return srv.(DevicePluginServer).GetDevicePluginOptions(ctx, in)
  507. }
  508. info := &grpc.UnaryServerInfo{
  509. Server: srv,
  510. FullMethod: "/v1beta1.DevicePlugin/GetDevicePluginOptions",
  511. }
  512. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  513. return srv.(DevicePluginServer).GetDevicePluginOptions(ctx, req.(*Empty))
  514. }
  515. return interceptor(ctx, in, info, handler)
  516. }
  517. func _DevicePlugin_ListAndWatch_Handler(srv interface{}, stream grpc.ServerStream) error {
  518. m := new(Empty)
  519. if err := stream.RecvMsg(m); err != nil {
  520. return err
  521. }
  522. return srv.(DevicePluginServer).ListAndWatch(m, &devicePluginListAndWatchServer{stream})
  523. }
  524. type DevicePlugin_ListAndWatchServer interface {
  525. Send(*ListAndWatchResponse) error
  526. grpc.ServerStream
  527. }
  528. type devicePluginListAndWatchServer struct {
  529. grpc.ServerStream
  530. }
  531. func (x *devicePluginListAndWatchServer) Send(m *ListAndWatchResponse) error {
  532. return x.ServerStream.SendMsg(m)
  533. }
  534. func _DevicePlugin_Allocate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  535. in := new(AllocateRequest)
  536. if err := dec(in); err != nil {
  537. return nil, err
  538. }
  539. if interceptor == nil {
  540. return srv.(DevicePluginServer).Allocate(ctx, in)
  541. }
  542. info := &grpc.UnaryServerInfo{
  543. Server: srv,
  544. FullMethod: "/v1beta1.DevicePlugin/Allocate",
  545. }
  546. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  547. return srv.(DevicePluginServer).Allocate(ctx, req.(*AllocateRequest))
  548. }
  549. return interceptor(ctx, in, info, handler)
  550. }
  551. func _DevicePlugin_PreStartContainer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  552. in := new(PreStartContainerRequest)
  553. if err := dec(in); err != nil {
  554. return nil, err
  555. }
  556. if interceptor == nil {
  557. return srv.(DevicePluginServer).PreStartContainer(ctx, in)
  558. }
  559. info := &grpc.UnaryServerInfo{
  560. Server: srv,
  561. FullMethod: "/v1beta1.DevicePlugin/PreStartContainer",
  562. }
  563. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  564. return srv.(DevicePluginServer).PreStartContainer(ctx, req.(*PreStartContainerRequest))
  565. }
  566. return interceptor(ctx, in, info, handler)
  567. }
  568. var _DevicePlugin_serviceDesc = grpc.ServiceDesc{
  569. ServiceName: "v1beta1.DevicePlugin",
  570. HandlerType: (*DevicePluginServer)(nil),
  571. Methods: []grpc.MethodDesc{
  572. {
  573. MethodName: "GetDevicePluginOptions",
  574. Handler: _DevicePlugin_GetDevicePluginOptions_Handler,
  575. },
  576. {
  577. MethodName: "Allocate",
  578. Handler: _DevicePlugin_Allocate_Handler,
  579. },
  580. {
  581. MethodName: "PreStartContainer",
  582. Handler: _DevicePlugin_PreStartContainer_Handler,
  583. },
  584. },
  585. Streams: []grpc.StreamDesc{
  586. {
  587. StreamName: "ListAndWatch",
  588. Handler: _DevicePlugin_ListAndWatch_Handler,
  589. ServerStreams: true,
  590. },
  591. },
  592. Metadata: "api.proto",
  593. }
  594. func (m *DevicePluginOptions) Marshal() (dAtA []byte, err error) {
  595. size := m.Size()
  596. dAtA = make([]byte, size)
  597. n, err := m.MarshalTo(dAtA)
  598. if err != nil {
  599. return nil, err
  600. }
  601. return dAtA[:n], nil
  602. }
  603. func (m *DevicePluginOptions) MarshalTo(dAtA []byte) (int, error) {
  604. var i int
  605. _ = i
  606. var l int
  607. _ = l
  608. if m.PreStartRequired {
  609. dAtA[i] = 0x8
  610. i++
  611. if m.PreStartRequired {
  612. dAtA[i] = 1
  613. } else {
  614. dAtA[i] = 0
  615. }
  616. i++
  617. }
  618. return i, nil
  619. }
  620. func (m *RegisterRequest) Marshal() (dAtA []byte, err error) {
  621. size := m.Size()
  622. dAtA = make([]byte, size)
  623. n, err := m.MarshalTo(dAtA)
  624. if err != nil {
  625. return nil, err
  626. }
  627. return dAtA[:n], nil
  628. }
  629. func (m *RegisterRequest) MarshalTo(dAtA []byte) (int, error) {
  630. var i int
  631. _ = i
  632. var l int
  633. _ = l
  634. if len(m.Version) > 0 {
  635. dAtA[i] = 0xa
  636. i++
  637. i = encodeVarintApi(dAtA, i, uint64(len(m.Version)))
  638. i += copy(dAtA[i:], m.Version)
  639. }
  640. if len(m.Endpoint) > 0 {
  641. dAtA[i] = 0x12
  642. i++
  643. i = encodeVarintApi(dAtA, i, uint64(len(m.Endpoint)))
  644. i += copy(dAtA[i:], m.Endpoint)
  645. }
  646. if len(m.ResourceName) > 0 {
  647. dAtA[i] = 0x1a
  648. i++
  649. i = encodeVarintApi(dAtA, i, uint64(len(m.ResourceName)))
  650. i += copy(dAtA[i:], m.ResourceName)
  651. }
  652. if m.Options != nil {
  653. dAtA[i] = 0x22
  654. i++
  655. i = encodeVarintApi(dAtA, i, uint64(m.Options.Size()))
  656. n1, err := m.Options.MarshalTo(dAtA[i:])
  657. if err != nil {
  658. return 0, err
  659. }
  660. i += n1
  661. }
  662. return i, nil
  663. }
  664. func (m *Empty) Marshal() (dAtA []byte, err error) {
  665. size := m.Size()
  666. dAtA = make([]byte, size)
  667. n, err := m.MarshalTo(dAtA)
  668. if err != nil {
  669. return nil, err
  670. }
  671. return dAtA[:n], nil
  672. }
  673. func (m *Empty) MarshalTo(dAtA []byte) (int, error) {
  674. var i int
  675. _ = i
  676. var l int
  677. _ = l
  678. return i, nil
  679. }
  680. func (m *ListAndWatchResponse) Marshal() (dAtA []byte, err error) {
  681. size := m.Size()
  682. dAtA = make([]byte, size)
  683. n, err := m.MarshalTo(dAtA)
  684. if err != nil {
  685. return nil, err
  686. }
  687. return dAtA[:n], nil
  688. }
  689. func (m *ListAndWatchResponse) MarshalTo(dAtA []byte) (int, error) {
  690. var i int
  691. _ = i
  692. var l int
  693. _ = l
  694. if len(m.Devices) > 0 {
  695. for _, msg := range m.Devices {
  696. dAtA[i] = 0xa
  697. i++
  698. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  699. n, err := msg.MarshalTo(dAtA[i:])
  700. if err != nil {
  701. return 0, err
  702. }
  703. i += n
  704. }
  705. }
  706. return i, nil
  707. }
  708. func (m *Device) Marshal() (dAtA []byte, err error) {
  709. size := m.Size()
  710. dAtA = make([]byte, size)
  711. n, err := m.MarshalTo(dAtA)
  712. if err != nil {
  713. return nil, err
  714. }
  715. return dAtA[:n], nil
  716. }
  717. func (m *Device) MarshalTo(dAtA []byte) (int, error) {
  718. var i int
  719. _ = i
  720. var l int
  721. _ = l
  722. if len(m.ID) > 0 {
  723. dAtA[i] = 0xa
  724. i++
  725. i = encodeVarintApi(dAtA, i, uint64(len(m.ID)))
  726. i += copy(dAtA[i:], m.ID)
  727. }
  728. if len(m.Health) > 0 {
  729. dAtA[i] = 0x12
  730. i++
  731. i = encodeVarintApi(dAtA, i, uint64(len(m.Health)))
  732. i += copy(dAtA[i:], m.Health)
  733. }
  734. return i, nil
  735. }
  736. func (m *PreStartContainerRequest) Marshal() (dAtA []byte, err error) {
  737. size := m.Size()
  738. dAtA = make([]byte, size)
  739. n, err := m.MarshalTo(dAtA)
  740. if err != nil {
  741. return nil, err
  742. }
  743. return dAtA[:n], nil
  744. }
  745. func (m *PreStartContainerRequest) MarshalTo(dAtA []byte) (int, error) {
  746. var i int
  747. _ = i
  748. var l int
  749. _ = l
  750. if len(m.DevicesIDs) > 0 {
  751. for _, s := range m.DevicesIDs {
  752. dAtA[i] = 0xa
  753. i++
  754. l = len(s)
  755. for l >= 1<<7 {
  756. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  757. l >>= 7
  758. i++
  759. }
  760. dAtA[i] = uint8(l)
  761. i++
  762. i += copy(dAtA[i:], s)
  763. }
  764. }
  765. return i, nil
  766. }
  767. func (m *PreStartContainerResponse) Marshal() (dAtA []byte, err error) {
  768. size := m.Size()
  769. dAtA = make([]byte, size)
  770. n, err := m.MarshalTo(dAtA)
  771. if err != nil {
  772. return nil, err
  773. }
  774. return dAtA[:n], nil
  775. }
  776. func (m *PreStartContainerResponse) MarshalTo(dAtA []byte) (int, error) {
  777. var i int
  778. _ = i
  779. var l int
  780. _ = l
  781. return i, nil
  782. }
  783. func (m *AllocateRequest) Marshal() (dAtA []byte, err error) {
  784. size := m.Size()
  785. dAtA = make([]byte, size)
  786. n, err := m.MarshalTo(dAtA)
  787. if err != nil {
  788. return nil, err
  789. }
  790. return dAtA[:n], nil
  791. }
  792. func (m *AllocateRequest) MarshalTo(dAtA []byte) (int, error) {
  793. var i int
  794. _ = i
  795. var l int
  796. _ = l
  797. if len(m.ContainerRequests) > 0 {
  798. for _, msg := range m.ContainerRequests {
  799. dAtA[i] = 0xa
  800. i++
  801. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  802. n, err := msg.MarshalTo(dAtA[i:])
  803. if err != nil {
  804. return 0, err
  805. }
  806. i += n
  807. }
  808. }
  809. return i, nil
  810. }
  811. func (m *ContainerAllocateRequest) Marshal() (dAtA []byte, err error) {
  812. size := m.Size()
  813. dAtA = make([]byte, size)
  814. n, err := m.MarshalTo(dAtA)
  815. if err != nil {
  816. return nil, err
  817. }
  818. return dAtA[:n], nil
  819. }
  820. func (m *ContainerAllocateRequest) MarshalTo(dAtA []byte) (int, error) {
  821. var i int
  822. _ = i
  823. var l int
  824. _ = l
  825. if len(m.DevicesIDs) > 0 {
  826. for _, s := range m.DevicesIDs {
  827. dAtA[i] = 0xa
  828. i++
  829. l = len(s)
  830. for l >= 1<<7 {
  831. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  832. l >>= 7
  833. i++
  834. }
  835. dAtA[i] = uint8(l)
  836. i++
  837. i += copy(dAtA[i:], s)
  838. }
  839. }
  840. return i, nil
  841. }
  842. func (m *AllocateResponse) Marshal() (dAtA []byte, err error) {
  843. size := m.Size()
  844. dAtA = make([]byte, size)
  845. n, err := m.MarshalTo(dAtA)
  846. if err != nil {
  847. return nil, err
  848. }
  849. return dAtA[:n], nil
  850. }
  851. func (m *AllocateResponse) MarshalTo(dAtA []byte) (int, error) {
  852. var i int
  853. _ = i
  854. var l int
  855. _ = l
  856. if len(m.ContainerResponses) > 0 {
  857. for _, msg := range m.ContainerResponses {
  858. dAtA[i] = 0xa
  859. i++
  860. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  861. n, err := msg.MarshalTo(dAtA[i:])
  862. if err != nil {
  863. return 0, err
  864. }
  865. i += n
  866. }
  867. }
  868. return i, nil
  869. }
  870. func (m *ContainerAllocateResponse) Marshal() (dAtA []byte, err error) {
  871. size := m.Size()
  872. dAtA = make([]byte, size)
  873. n, err := m.MarshalTo(dAtA)
  874. if err != nil {
  875. return nil, err
  876. }
  877. return dAtA[:n], nil
  878. }
  879. func (m *ContainerAllocateResponse) MarshalTo(dAtA []byte) (int, error) {
  880. var i int
  881. _ = i
  882. var l int
  883. _ = l
  884. if len(m.Envs) > 0 {
  885. for k := range m.Envs {
  886. dAtA[i] = 0xa
  887. i++
  888. v := m.Envs[k]
  889. mapSize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  890. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  891. dAtA[i] = 0xa
  892. i++
  893. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  894. i += copy(dAtA[i:], k)
  895. dAtA[i] = 0x12
  896. i++
  897. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  898. i += copy(dAtA[i:], v)
  899. }
  900. }
  901. if len(m.Mounts) > 0 {
  902. for _, msg := range m.Mounts {
  903. dAtA[i] = 0x12
  904. i++
  905. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  906. n, err := msg.MarshalTo(dAtA[i:])
  907. if err != nil {
  908. return 0, err
  909. }
  910. i += n
  911. }
  912. }
  913. if len(m.Devices) > 0 {
  914. for _, msg := range m.Devices {
  915. dAtA[i] = 0x1a
  916. i++
  917. i = encodeVarintApi(dAtA, i, uint64(msg.Size()))
  918. n, err := msg.MarshalTo(dAtA[i:])
  919. if err != nil {
  920. return 0, err
  921. }
  922. i += n
  923. }
  924. }
  925. if len(m.Annotations) > 0 {
  926. for k := range m.Annotations {
  927. dAtA[i] = 0x22
  928. i++
  929. v := m.Annotations[k]
  930. mapSize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  931. i = encodeVarintApi(dAtA, i, uint64(mapSize))
  932. dAtA[i] = 0xa
  933. i++
  934. i = encodeVarintApi(dAtA, i, uint64(len(k)))
  935. i += copy(dAtA[i:], k)
  936. dAtA[i] = 0x12
  937. i++
  938. i = encodeVarintApi(dAtA, i, uint64(len(v)))
  939. i += copy(dAtA[i:], v)
  940. }
  941. }
  942. return i, nil
  943. }
  944. func (m *Mount) Marshal() (dAtA []byte, err error) {
  945. size := m.Size()
  946. dAtA = make([]byte, size)
  947. n, err := m.MarshalTo(dAtA)
  948. if err != nil {
  949. return nil, err
  950. }
  951. return dAtA[:n], nil
  952. }
  953. func (m *Mount) MarshalTo(dAtA []byte) (int, error) {
  954. var i int
  955. _ = i
  956. var l int
  957. _ = l
  958. if len(m.ContainerPath) > 0 {
  959. dAtA[i] = 0xa
  960. i++
  961. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerPath)))
  962. i += copy(dAtA[i:], m.ContainerPath)
  963. }
  964. if len(m.HostPath) > 0 {
  965. dAtA[i] = 0x12
  966. i++
  967. i = encodeVarintApi(dAtA, i, uint64(len(m.HostPath)))
  968. i += copy(dAtA[i:], m.HostPath)
  969. }
  970. if m.ReadOnly {
  971. dAtA[i] = 0x18
  972. i++
  973. if m.ReadOnly {
  974. dAtA[i] = 1
  975. } else {
  976. dAtA[i] = 0
  977. }
  978. i++
  979. }
  980. return i, nil
  981. }
  982. func (m *DeviceSpec) Marshal() (dAtA []byte, err error) {
  983. size := m.Size()
  984. dAtA = make([]byte, size)
  985. n, err := m.MarshalTo(dAtA)
  986. if err != nil {
  987. return nil, err
  988. }
  989. return dAtA[:n], nil
  990. }
  991. func (m *DeviceSpec) MarshalTo(dAtA []byte) (int, error) {
  992. var i int
  993. _ = i
  994. var l int
  995. _ = l
  996. if len(m.ContainerPath) > 0 {
  997. dAtA[i] = 0xa
  998. i++
  999. i = encodeVarintApi(dAtA, i, uint64(len(m.ContainerPath)))
  1000. i += copy(dAtA[i:], m.ContainerPath)
  1001. }
  1002. if len(m.HostPath) > 0 {
  1003. dAtA[i] = 0x12
  1004. i++
  1005. i = encodeVarintApi(dAtA, i, uint64(len(m.HostPath)))
  1006. i += copy(dAtA[i:], m.HostPath)
  1007. }
  1008. if len(m.Permissions) > 0 {
  1009. dAtA[i] = 0x1a
  1010. i++
  1011. i = encodeVarintApi(dAtA, i, uint64(len(m.Permissions)))
  1012. i += copy(dAtA[i:], m.Permissions)
  1013. }
  1014. return i, nil
  1015. }
  1016. func encodeVarintApi(dAtA []byte, offset int, v uint64) int {
  1017. for v >= 1<<7 {
  1018. dAtA[offset] = uint8(v&0x7f | 0x80)
  1019. v >>= 7
  1020. offset++
  1021. }
  1022. dAtA[offset] = uint8(v)
  1023. return offset + 1
  1024. }
  1025. func (m *DevicePluginOptions) Size() (n int) {
  1026. var l int
  1027. _ = l
  1028. if m.PreStartRequired {
  1029. n += 2
  1030. }
  1031. return n
  1032. }
  1033. func (m *RegisterRequest) Size() (n int) {
  1034. var l int
  1035. _ = l
  1036. l = len(m.Version)
  1037. if l > 0 {
  1038. n += 1 + l + sovApi(uint64(l))
  1039. }
  1040. l = len(m.Endpoint)
  1041. if l > 0 {
  1042. n += 1 + l + sovApi(uint64(l))
  1043. }
  1044. l = len(m.ResourceName)
  1045. if l > 0 {
  1046. n += 1 + l + sovApi(uint64(l))
  1047. }
  1048. if m.Options != nil {
  1049. l = m.Options.Size()
  1050. n += 1 + l + sovApi(uint64(l))
  1051. }
  1052. return n
  1053. }
  1054. func (m *Empty) Size() (n int) {
  1055. var l int
  1056. _ = l
  1057. return n
  1058. }
  1059. func (m *ListAndWatchResponse) Size() (n int) {
  1060. var l int
  1061. _ = l
  1062. if len(m.Devices) > 0 {
  1063. for _, e := range m.Devices {
  1064. l = e.Size()
  1065. n += 1 + l + sovApi(uint64(l))
  1066. }
  1067. }
  1068. return n
  1069. }
  1070. func (m *Device) Size() (n int) {
  1071. var l int
  1072. _ = l
  1073. l = len(m.ID)
  1074. if l > 0 {
  1075. n += 1 + l + sovApi(uint64(l))
  1076. }
  1077. l = len(m.Health)
  1078. if l > 0 {
  1079. n += 1 + l + sovApi(uint64(l))
  1080. }
  1081. return n
  1082. }
  1083. func (m *PreStartContainerRequest) Size() (n int) {
  1084. var l int
  1085. _ = l
  1086. if len(m.DevicesIDs) > 0 {
  1087. for _, s := range m.DevicesIDs {
  1088. l = len(s)
  1089. n += 1 + l + sovApi(uint64(l))
  1090. }
  1091. }
  1092. return n
  1093. }
  1094. func (m *PreStartContainerResponse) Size() (n int) {
  1095. var l int
  1096. _ = l
  1097. return n
  1098. }
  1099. func (m *AllocateRequest) Size() (n int) {
  1100. var l int
  1101. _ = l
  1102. if len(m.ContainerRequests) > 0 {
  1103. for _, e := range m.ContainerRequests {
  1104. l = e.Size()
  1105. n += 1 + l + sovApi(uint64(l))
  1106. }
  1107. }
  1108. return n
  1109. }
  1110. func (m *ContainerAllocateRequest) Size() (n int) {
  1111. var l int
  1112. _ = l
  1113. if len(m.DevicesIDs) > 0 {
  1114. for _, s := range m.DevicesIDs {
  1115. l = len(s)
  1116. n += 1 + l + sovApi(uint64(l))
  1117. }
  1118. }
  1119. return n
  1120. }
  1121. func (m *AllocateResponse) Size() (n int) {
  1122. var l int
  1123. _ = l
  1124. if len(m.ContainerResponses) > 0 {
  1125. for _, e := range m.ContainerResponses {
  1126. l = e.Size()
  1127. n += 1 + l + sovApi(uint64(l))
  1128. }
  1129. }
  1130. return n
  1131. }
  1132. func (m *ContainerAllocateResponse) Size() (n int) {
  1133. var l int
  1134. _ = l
  1135. if len(m.Envs) > 0 {
  1136. for k, v := range m.Envs {
  1137. _ = k
  1138. _ = v
  1139. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  1140. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  1141. }
  1142. }
  1143. if len(m.Mounts) > 0 {
  1144. for _, e := range m.Mounts {
  1145. l = e.Size()
  1146. n += 1 + l + sovApi(uint64(l))
  1147. }
  1148. }
  1149. if len(m.Devices) > 0 {
  1150. for _, e := range m.Devices {
  1151. l = e.Size()
  1152. n += 1 + l + sovApi(uint64(l))
  1153. }
  1154. }
  1155. if len(m.Annotations) > 0 {
  1156. for k, v := range m.Annotations {
  1157. _ = k
  1158. _ = v
  1159. mapEntrySize := 1 + len(k) + sovApi(uint64(len(k))) + 1 + len(v) + sovApi(uint64(len(v)))
  1160. n += mapEntrySize + 1 + sovApi(uint64(mapEntrySize))
  1161. }
  1162. }
  1163. return n
  1164. }
  1165. func (m *Mount) Size() (n int) {
  1166. var l int
  1167. _ = l
  1168. l = len(m.ContainerPath)
  1169. if l > 0 {
  1170. n += 1 + l + sovApi(uint64(l))
  1171. }
  1172. l = len(m.HostPath)
  1173. if l > 0 {
  1174. n += 1 + l + sovApi(uint64(l))
  1175. }
  1176. if m.ReadOnly {
  1177. n += 2
  1178. }
  1179. return n
  1180. }
  1181. func (m *DeviceSpec) Size() (n int) {
  1182. var l int
  1183. _ = l
  1184. l = len(m.ContainerPath)
  1185. if l > 0 {
  1186. n += 1 + l + sovApi(uint64(l))
  1187. }
  1188. l = len(m.HostPath)
  1189. if l > 0 {
  1190. n += 1 + l + sovApi(uint64(l))
  1191. }
  1192. l = len(m.Permissions)
  1193. if l > 0 {
  1194. n += 1 + l + sovApi(uint64(l))
  1195. }
  1196. return n
  1197. }
  1198. func sovApi(x uint64) (n int) {
  1199. for {
  1200. n++
  1201. x >>= 7
  1202. if x == 0 {
  1203. break
  1204. }
  1205. }
  1206. return n
  1207. }
  1208. func sozApi(x uint64) (n int) {
  1209. return sovApi(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1210. }
  1211. func (this *DevicePluginOptions) String() string {
  1212. if this == nil {
  1213. return "nil"
  1214. }
  1215. s := strings.Join([]string{`&DevicePluginOptions{`,
  1216. `PreStartRequired:` + fmt.Sprintf("%v", this.PreStartRequired) + `,`,
  1217. `}`,
  1218. }, "")
  1219. return s
  1220. }
  1221. func (this *RegisterRequest) String() string {
  1222. if this == nil {
  1223. return "nil"
  1224. }
  1225. s := strings.Join([]string{`&RegisterRequest{`,
  1226. `Version:` + fmt.Sprintf("%v", this.Version) + `,`,
  1227. `Endpoint:` + fmt.Sprintf("%v", this.Endpoint) + `,`,
  1228. `ResourceName:` + fmt.Sprintf("%v", this.ResourceName) + `,`,
  1229. `Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "DevicePluginOptions", "DevicePluginOptions", 1) + `,`,
  1230. `}`,
  1231. }, "")
  1232. return s
  1233. }
  1234. func (this *Empty) String() string {
  1235. if this == nil {
  1236. return "nil"
  1237. }
  1238. s := strings.Join([]string{`&Empty{`,
  1239. `}`,
  1240. }, "")
  1241. return s
  1242. }
  1243. func (this *ListAndWatchResponse) String() string {
  1244. if this == nil {
  1245. return "nil"
  1246. }
  1247. s := strings.Join([]string{`&ListAndWatchResponse{`,
  1248. `Devices:` + strings.Replace(fmt.Sprintf("%v", this.Devices), "Device", "Device", 1) + `,`,
  1249. `}`,
  1250. }, "")
  1251. return s
  1252. }
  1253. func (this *Device) String() string {
  1254. if this == nil {
  1255. return "nil"
  1256. }
  1257. s := strings.Join([]string{`&Device{`,
  1258. `ID:` + fmt.Sprintf("%v", this.ID) + `,`,
  1259. `Health:` + fmt.Sprintf("%v", this.Health) + `,`,
  1260. `}`,
  1261. }, "")
  1262. return s
  1263. }
  1264. func (this *PreStartContainerRequest) String() string {
  1265. if this == nil {
  1266. return "nil"
  1267. }
  1268. s := strings.Join([]string{`&PreStartContainerRequest{`,
  1269. `DevicesIDs:` + fmt.Sprintf("%v", this.DevicesIDs) + `,`,
  1270. `}`,
  1271. }, "")
  1272. return s
  1273. }
  1274. func (this *PreStartContainerResponse) String() string {
  1275. if this == nil {
  1276. return "nil"
  1277. }
  1278. s := strings.Join([]string{`&PreStartContainerResponse{`,
  1279. `}`,
  1280. }, "")
  1281. return s
  1282. }
  1283. func (this *AllocateRequest) String() string {
  1284. if this == nil {
  1285. return "nil"
  1286. }
  1287. s := strings.Join([]string{`&AllocateRequest{`,
  1288. `ContainerRequests:` + strings.Replace(fmt.Sprintf("%v", this.ContainerRequests), "ContainerAllocateRequest", "ContainerAllocateRequest", 1) + `,`,
  1289. `}`,
  1290. }, "")
  1291. return s
  1292. }
  1293. func (this *ContainerAllocateRequest) String() string {
  1294. if this == nil {
  1295. return "nil"
  1296. }
  1297. s := strings.Join([]string{`&ContainerAllocateRequest{`,
  1298. `DevicesIDs:` + fmt.Sprintf("%v", this.DevicesIDs) + `,`,
  1299. `}`,
  1300. }, "")
  1301. return s
  1302. }
  1303. func (this *AllocateResponse) String() string {
  1304. if this == nil {
  1305. return "nil"
  1306. }
  1307. s := strings.Join([]string{`&AllocateResponse{`,
  1308. `ContainerResponses:` + strings.Replace(fmt.Sprintf("%v", this.ContainerResponses), "ContainerAllocateResponse", "ContainerAllocateResponse", 1) + `,`,
  1309. `}`,
  1310. }, "")
  1311. return s
  1312. }
  1313. func (this *ContainerAllocateResponse) String() string {
  1314. if this == nil {
  1315. return "nil"
  1316. }
  1317. keysForEnvs := make([]string, 0, len(this.Envs))
  1318. for k := range this.Envs {
  1319. keysForEnvs = append(keysForEnvs, k)
  1320. }
  1321. github_com_gogo_protobuf_sortkeys.Strings(keysForEnvs)
  1322. mapStringForEnvs := "map[string]string{"
  1323. for _, k := range keysForEnvs {
  1324. mapStringForEnvs += fmt.Sprintf("%v: %v,", k, this.Envs[k])
  1325. }
  1326. mapStringForEnvs += "}"
  1327. keysForAnnotations := make([]string, 0, len(this.Annotations))
  1328. for k := range this.Annotations {
  1329. keysForAnnotations = append(keysForAnnotations, k)
  1330. }
  1331. github_com_gogo_protobuf_sortkeys.Strings(keysForAnnotations)
  1332. mapStringForAnnotations := "map[string]string{"
  1333. for _, k := range keysForAnnotations {
  1334. mapStringForAnnotations += fmt.Sprintf("%v: %v,", k, this.Annotations[k])
  1335. }
  1336. mapStringForAnnotations += "}"
  1337. s := strings.Join([]string{`&ContainerAllocateResponse{`,
  1338. `Envs:` + mapStringForEnvs + `,`,
  1339. `Mounts:` + strings.Replace(fmt.Sprintf("%v", this.Mounts), "Mount", "Mount", 1) + `,`,
  1340. `Devices:` + strings.Replace(fmt.Sprintf("%v", this.Devices), "DeviceSpec", "DeviceSpec", 1) + `,`,
  1341. `Annotations:` + mapStringForAnnotations + `,`,
  1342. `}`,
  1343. }, "")
  1344. return s
  1345. }
  1346. func (this *Mount) String() string {
  1347. if this == nil {
  1348. return "nil"
  1349. }
  1350. s := strings.Join([]string{`&Mount{`,
  1351. `ContainerPath:` + fmt.Sprintf("%v", this.ContainerPath) + `,`,
  1352. `HostPath:` + fmt.Sprintf("%v", this.HostPath) + `,`,
  1353. `ReadOnly:` + fmt.Sprintf("%v", this.ReadOnly) + `,`,
  1354. `}`,
  1355. }, "")
  1356. return s
  1357. }
  1358. func (this *DeviceSpec) String() string {
  1359. if this == nil {
  1360. return "nil"
  1361. }
  1362. s := strings.Join([]string{`&DeviceSpec{`,
  1363. `ContainerPath:` + fmt.Sprintf("%v", this.ContainerPath) + `,`,
  1364. `HostPath:` + fmt.Sprintf("%v", this.HostPath) + `,`,
  1365. `Permissions:` + fmt.Sprintf("%v", this.Permissions) + `,`,
  1366. `}`,
  1367. }, "")
  1368. return s
  1369. }
  1370. func valueToStringApi(v interface{}) string {
  1371. rv := reflect.ValueOf(v)
  1372. if rv.IsNil() {
  1373. return "nil"
  1374. }
  1375. pv := reflect.Indirect(rv).Interface()
  1376. return fmt.Sprintf("*%v", pv)
  1377. }
  1378. func (m *DevicePluginOptions) Unmarshal(dAtA []byte) error {
  1379. l := len(dAtA)
  1380. iNdEx := 0
  1381. for iNdEx < l {
  1382. preIndex := iNdEx
  1383. var wire uint64
  1384. for shift := uint(0); ; shift += 7 {
  1385. if shift >= 64 {
  1386. return ErrIntOverflowApi
  1387. }
  1388. if iNdEx >= l {
  1389. return io.ErrUnexpectedEOF
  1390. }
  1391. b := dAtA[iNdEx]
  1392. iNdEx++
  1393. wire |= (uint64(b) & 0x7F) << shift
  1394. if b < 0x80 {
  1395. break
  1396. }
  1397. }
  1398. fieldNum := int32(wire >> 3)
  1399. wireType := int(wire & 0x7)
  1400. if wireType == 4 {
  1401. return fmt.Errorf("proto: DevicePluginOptions: wiretype end group for non-group")
  1402. }
  1403. if fieldNum <= 0 {
  1404. return fmt.Errorf("proto: DevicePluginOptions: illegal tag %d (wire type %d)", fieldNum, wire)
  1405. }
  1406. switch fieldNum {
  1407. case 1:
  1408. if wireType != 0 {
  1409. return fmt.Errorf("proto: wrong wireType = %d for field PreStartRequired", wireType)
  1410. }
  1411. var v int
  1412. for shift := uint(0); ; shift += 7 {
  1413. if shift >= 64 {
  1414. return ErrIntOverflowApi
  1415. }
  1416. if iNdEx >= l {
  1417. return io.ErrUnexpectedEOF
  1418. }
  1419. b := dAtA[iNdEx]
  1420. iNdEx++
  1421. v |= (int(b) & 0x7F) << shift
  1422. if b < 0x80 {
  1423. break
  1424. }
  1425. }
  1426. m.PreStartRequired = bool(v != 0)
  1427. default:
  1428. iNdEx = preIndex
  1429. skippy, err := skipApi(dAtA[iNdEx:])
  1430. if err != nil {
  1431. return err
  1432. }
  1433. if skippy < 0 {
  1434. return ErrInvalidLengthApi
  1435. }
  1436. if (iNdEx + skippy) > l {
  1437. return io.ErrUnexpectedEOF
  1438. }
  1439. iNdEx += skippy
  1440. }
  1441. }
  1442. if iNdEx > l {
  1443. return io.ErrUnexpectedEOF
  1444. }
  1445. return nil
  1446. }
  1447. func (m *RegisterRequest) Unmarshal(dAtA []byte) error {
  1448. l := len(dAtA)
  1449. iNdEx := 0
  1450. for iNdEx < l {
  1451. preIndex := iNdEx
  1452. var wire uint64
  1453. for shift := uint(0); ; shift += 7 {
  1454. if shift >= 64 {
  1455. return ErrIntOverflowApi
  1456. }
  1457. if iNdEx >= l {
  1458. return io.ErrUnexpectedEOF
  1459. }
  1460. b := dAtA[iNdEx]
  1461. iNdEx++
  1462. wire |= (uint64(b) & 0x7F) << shift
  1463. if b < 0x80 {
  1464. break
  1465. }
  1466. }
  1467. fieldNum := int32(wire >> 3)
  1468. wireType := int(wire & 0x7)
  1469. if wireType == 4 {
  1470. return fmt.Errorf("proto: RegisterRequest: wiretype end group for non-group")
  1471. }
  1472. if fieldNum <= 0 {
  1473. return fmt.Errorf("proto: RegisterRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1474. }
  1475. switch fieldNum {
  1476. case 1:
  1477. if wireType != 2 {
  1478. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  1479. }
  1480. var stringLen uint64
  1481. for shift := uint(0); ; shift += 7 {
  1482. if shift >= 64 {
  1483. return ErrIntOverflowApi
  1484. }
  1485. if iNdEx >= l {
  1486. return io.ErrUnexpectedEOF
  1487. }
  1488. b := dAtA[iNdEx]
  1489. iNdEx++
  1490. stringLen |= (uint64(b) & 0x7F) << shift
  1491. if b < 0x80 {
  1492. break
  1493. }
  1494. }
  1495. intStringLen := int(stringLen)
  1496. if intStringLen < 0 {
  1497. return ErrInvalidLengthApi
  1498. }
  1499. postIndex := iNdEx + intStringLen
  1500. if postIndex > l {
  1501. return io.ErrUnexpectedEOF
  1502. }
  1503. m.Version = string(dAtA[iNdEx:postIndex])
  1504. iNdEx = postIndex
  1505. case 2:
  1506. if wireType != 2 {
  1507. return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType)
  1508. }
  1509. var stringLen uint64
  1510. for shift := uint(0); ; shift += 7 {
  1511. if shift >= 64 {
  1512. return ErrIntOverflowApi
  1513. }
  1514. if iNdEx >= l {
  1515. return io.ErrUnexpectedEOF
  1516. }
  1517. b := dAtA[iNdEx]
  1518. iNdEx++
  1519. stringLen |= (uint64(b) & 0x7F) << shift
  1520. if b < 0x80 {
  1521. break
  1522. }
  1523. }
  1524. intStringLen := int(stringLen)
  1525. if intStringLen < 0 {
  1526. return ErrInvalidLengthApi
  1527. }
  1528. postIndex := iNdEx + intStringLen
  1529. if postIndex > l {
  1530. return io.ErrUnexpectedEOF
  1531. }
  1532. m.Endpoint = string(dAtA[iNdEx:postIndex])
  1533. iNdEx = postIndex
  1534. case 3:
  1535. if wireType != 2 {
  1536. return fmt.Errorf("proto: wrong wireType = %d for field ResourceName", wireType)
  1537. }
  1538. var stringLen uint64
  1539. for shift := uint(0); ; shift += 7 {
  1540. if shift >= 64 {
  1541. return ErrIntOverflowApi
  1542. }
  1543. if iNdEx >= l {
  1544. return io.ErrUnexpectedEOF
  1545. }
  1546. b := dAtA[iNdEx]
  1547. iNdEx++
  1548. stringLen |= (uint64(b) & 0x7F) << shift
  1549. if b < 0x80 {
  1550. break
  1551. }
  1552. }
  1553. intStringLen := int(stringLen)
  1554. if intStringLen < 0 {
  1555. return ErrInvalidLengthApi
  1556. }
  1557. postIndex := iNdEx + intStringLen
  1558. if postIndex > l {
  1559. return io.ErrUnexpectedEOF
  1560. }
  1561. m.ResourceName = string(dAtA[iNdEx:postIndex])
  1562. iNdEx = postIndex
  1563. case 4:
  1564. if wireType != 2 {
  1565. return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType)
  1566. }
  1567. var msglen int
  1568. for shift := uint(0); ; shift += 7 {
  1569. if shift >= 64 {
  1570. return ErrIntOverflowApi
  1571. }
  1572. if iNdEx >= l {
  1573. return io.ErrUnexpectedEOF
  1574. }
  1575. b := dAtA[iNdEx]
  1576. iNdEx++
  1577. msglen |= (int(b) & 0x7F) << shift
  1578. if b < 0x80 {
  1579. break
  1580. }
  1581. }
  1582. if msglen < 0 {
  1583. return ErrInvalidLengthApi
  1584. }
  1585. postIndex := iNdEx + msglen
  1586. if postIndex > l {
  1587. return io.ErrUnexpectedEOF
  1588. }
  1589. if m.Options == nil {
  1590. m.Options = &DevicePluginOptions{}
  1591. }
  1592. if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1593. return err
  1594. }
  1595. iNdEx = postIndex
  1596. default:
  1597. iNdEx = preIndex
  1598. skippy, err := skipApi(dAtA[iNdEx:])
  1599. if err != nil {
  1600. return err
  1601. }
  1602. if skippy < 0 {
  1603. return ErrInvalidLengthApi
  1604. }
  1605. if (iNdEx + skippy) > l {
  1606. return io.ErrUnexpectedEOF
  1607. }
  1608. iNdEx += skippy
  1609. }
  1610. }
  1611. if iNdEx > l {
  1612. return io.ErrUnexpectedEOF
  1613. }
  1614. return nil
  1615. }
  1616. func (m *Empty) Unmarshal(dAtA []byte) error {
  1617. l := len(dAtA)
  1618. iNdEx := 0
  1619. for iNdEx < l {
  1620. preIndex := iNdEx
  1621. var wire uint64
  1622. for shift := uint(0); ; shift += 7 {
  1623. if shift >= 64 {
  1624. return ErrIntOverflowApi
  1625. }
  1626. if iNdEx >= l {
  1627. return io.ErrUnexpectedEOF
  1628. }
  1629. b := dAtA[iNdEx]
  1630. iNdEx++
  1631. wire |= (uint64(b) & 0x7F) << shift
  1632. if b < 0x80 {
  1633. break
  1634. }
  1635. }
  1636. fieldNum := int32(wire >> 3)
  1637. wireType := int(wire & 0x7)
  1638. if wireType == 4 {
  1639. return fmt.Errorf("proto: Empty: wiretype end group for non-group")
  1640. }
  1641. if fieldNum <= 0 {
  1642. return fmt.Errorf("proto: Empty: illegal tag %d (wire type %d)", fieldNum, wire)
  1643. }
  1644. switch fieldNum {
  1645. default:
  1646. iNdEx = preIndex
  1647. skippy, err := skipApi(dAtA[iNdEx:])
  1648. if err != nil {
  1649. return err
  1650. }
  1651. if skippy < 0 {
  1652. return ErrInvalidLengthApi
  1653. }
  1654. if (iNdEx + skippy) > l {
  1655. return io.ErrUnexpectedEOF
  1656. }
  1657. iNdEx += skippy
  1658. }
  1659. }
  1660. if iNdEx > l {
  1661. return io.ErrUnexpectedEOF
  1662. }
  1663. return nil
  1664. }
  1665. func (m *ListAndWatchResponse) Unmarshal(dAtA []byte) error {
  1666. l := len(dAtA)
  1667. iNdEx := 0
  1668. for iNdEx < l {
  1669. preIndex := iNdEx
  1670. var wire uint64
  1671. for shift := uint(0); ; shift += 7 {
  1672. if shift >= 64 {
  1673. return ErrIntOverflowApi
  1674. }
  1675. if iNdEx >= l {
  1676. return io.ErrUnexpectedEOF
  1677. }
  1678. b := dAtA[iNdEx]
  1679. iNdEx++
  1680. wire |= (uint64(b) & 0x7F) << shift
  1681. if b < 0x80 {
  1682. break
  1683. }
  1684. }
  1685. fieldNum := int32(wire >> 3)
  1686. wireType := int(wire & 0x7)
  1687. if wireType == 4 {
  1688. return fmt.Errorf("proto: ListAndWatchResponse: wiretype end group for non-group")
  1689. }
  1690. if fieldNum <= 0 {
  1691. return fmt.Errorf("proto: ListAndWatchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1692. }
  1693. switch fieldNum {
  1694. case 1:
  1695. if wireType != 2 {
  1696. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  1697. }
  1698. var msglen int
  1699. for shift := uint(0); ; shift += 7 {
  1700. if shift >= 64 {
  1701. return ErrIntOverflowApi
  1702. }
  1703. if iNdEx >= l {
  1704. return io.ErrUnexpectedEOF
  1705. }
  1706. b := dAtA[iNdEx]
  1707. iNdEx++
  1708. msglen |= (int(b) & 0x7F) << shift
  1709. if b < 0x80 {
  1710. break
  1711. }
  1712. }
  1713. if msglen < 0 {
  1714. return ErrInvalidLengthApi
  1715. }
  1716. postIndex := iNdEx + msglen
  1717. if postIndex > l {
  1718. return io.ErrUnexpectedEOF
  1719. }
  1720. m.Devices = append(m.Devices, &Device{})
  1721. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1722. return err
  1723. }
  1724. iNdEx = postIndex
  1725. default:
  1726. iNdEx = preIndex
  1727. skippy, err := skipApi(dAtA[iNdEx:])
  1728. if err != nil {
  1729. return err
  1730. }
  1731. if skippy < 0 {
  1732. return ErrInvalidLengthApi
  1733. }
  1734. if (iNdEx + skippy) > l {
  1735. return io.ErrUnexpectedEOF
  1736. }
  1737. iNdEx += skippy
  1738. }
  1739. }
  1740. if iNdEx > l {
  1741. return io.ErrUnexpectedEOF
  1742. }
  1743. return nil
  1744. }
  1745. func (m *Device) Unmarshal(dAtA []byte) error {
  1746. l := len(dAtA)
  1747. iNdEx := 0
  1748. for iNdEx < l {
  1749. preIndex := iNdEx
  1750. var wire uint64
  1751. for shift := uint(0); ; shift += 7 {
  1752. if shift >= 64 {
  1753. return ErrIntOverflowApi
  1754. }
  1755. if iNdEx >= l {
  1756. return io.ErrUnexpectedEOF
  1757. }
  1758. b := dAtA[iNdEx]
  1759. iNdEx++
  1760. wire |= (uint64(b) & 0x7F) << shift
  1761. if b < 0x80 {
  1762. break
  1763. }
  1764. }
  1765. fieldNum := int32(wire >> 3)
  1766. wireType := int(wire & 0x7)
  1767. if wireType == 4 {
  1768. return fmt.Errorf("proto: Device: wiretype end group for non-group")
  1769. }
  1770. if fieldNum <= 0 {
  1771. return fmt.Errorf("proto: Device: illegal tag %d (wire type %d)", fieldNum, wire)
  1772. }
  1773. switch fieldNum {
  1774. case 1:
  1775. if wireType != 2 {
  1776. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1777. }
  1778. var stringLen uint64
  1779. for shift := uint(0); ; shift += 7 {
  1780. if shift >= 64 {
  1781. return ErrIntOverflowApi
  1782. }
  1783. if iNdEx >= l {
  1784. return io.ErrUnexpectedEOF
  1785. }
  1786. b := dAtA[iNdEx]
  1787. iNdEx++
  1788. stringLen |= (uint64(b) & 0x7F) << shift
  1789. if b < 0x80 {
  1790. break
  1791. }
  1792. }
  1793. intStringLen := int(stringLen)
  1794. if intStringLen < 0 {
  1795. return ErrInvalidLengthApi
  1796. }
  1797. postIndex := iNdEx + intStringLen
  1798. if postIndex > l {
  1799. return io.ErrUnexpectedEOF
  1800. }
  1801. m.ID = string(dAtA[iNdEx:postIndex])
  1802. iNdEx = postIndex
  1803. case 2:
  1804. if wireType != 2 {
  1805. return fmt.Errorf("proto: wrong wireType = %d for field Health", wireType)
  1806. }
  1807. var stringLen uint64
  1808. for shift := uint(0); ; shift += 7 {
  1809. if shift >= 64 {
  1810. return ErrIntOverflowApi
  1811. }
  1812. if iNdEx >= l {
  1813. return io.ErrUnexpectedEOF
  1814. }
  1815. b := dAtA[iNdEx]
  1816. iNdEx++
  1817. stringLen |= (uint64(b) & 0x7F) << shift
  1818. if b < 0x80 {
  1819. break
  1820. }
  1821. }
  1822. intStringLen := int(stringLen)
  1823. if intStringLen < 0 {
  1824. return ErrInvalidLengthApi
  1825. }
  1826. postIndex := iNdEx + intStringLen
  1827. if postIndex > l {
  1828. return io.ErrUnexpectedEOF
  1829. }
  1830. m.Health = string(dAtA[iNdEx:postIndex])
  1831. iNdEx = postIndex
  1832. default:
  1833. iNdEx = preIndex
  1834. skippy, err := skipApi(dAtA[iNdEx:])
  1835. if err != nil {
  1836. return err
  1837. }
  1838. if skippy < 0 {
  1839. return ErrInvalidLengthApi
  1840. }
  1841. if (iNdEx + skippy) > l {
  1842. return io.ErrUnexpectedEOF
  1843. }
  1844. iNdEx += skippy
  1845. }
  1846. }
  1847. if iNdEx > l {
  1848. return io.ErrUnexpectedEOF
  1849. }
  1850. return nil
  1851. }
  1852. func (m *PreStartContainerRequest) Unmarshal(dAtA []byte) error {
  1853. l := len(dAtA)
  1854. iNdEx := 0
  1855. for iNdEx < l {
  1856. preIndex := iNdEx
  1857. var wire uint64
  1858. for shift := uint(0); ; shift += 7 {
  1859. if shift >= 64 {
  1860. return ErrIntOverflowApi
  1861. }
  1862. if iNdEx >= l {
  1863. return io.ErrUnexpectedEOF
  1864. }
  1865. b := dAtA[iNdEx]
  1866. iNdEx++
  1867. wire |= (uint64(b) & 0x7F) << shift
  1868. if b < 0x80 {
  1869. break
  1870. }
  1871. }
  1872. fieldNum := int32(wire >> 3)
  1873. wireType := int(wire & 0x7)
  1874. if wireType == 4 {
  1875. return fmt.Errorf("proto: PreStartContainerRequest: wiretype end group for non-group")
  1876. }
  1877. if fieldNum <= 0 {
  1878. return fmt.Errorf("proto: PreStartContainerRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  1879. }
  1880. switch fieldNum {
  1881. case 1:
  1882. if wireType != 2 {
  1883. return fmt.Errorf("proto: wrong wireType = %d for field DevicesIDs", wireType)
  1884. }
  1885. var stringLen uint64
  1886. for shift := uint(0); ; shift += 7 {
  1887. if shift >= 64 {
  1888. return ErrIntOverflowApi
  1889. }
  1890. if iNdEx >= l {
  1891. return io.ErrUnexpectedEOF
  1892. }
  1893. b := dAtA[iNdEx]
  1894. iNdEx++
  1895. stringLen |= (uint64(b) & 0x7F) << shift
  1896. if b < 0x80 {
  1897. break
  1898. }
  1899. }
  1900. intStringLen := int(stringLen)
  1901. if intStringLen < 0 {
  1902. return ErrInvalidLengthApi
  1903. }
  1904. postIndex := iNdEx + intStringLen
  1905. if postIndex > l {
  1906. return io.ErrUnexpectedEOF
  1907. }
  1908. m.DevicesIDs = append(m.DevicesIDs, string(dAtA[iNdEx:postIndex]))
  1909. iNdEx = postIndex
  1910. default:
  1911. iNdEx = preIndex
  1912. skippy, err := skipApi(dAtA[iNdEx:])
  1913. if err != nil {
  1914. return err
  1915. }
  1916. if skippy < 0 {
  1917. return ErrInvalidLengthApi
  1918. }
  1919. if (iNdEx + skippy) > l {
  1920. return io.ErrUnexpectedEOF
  1921. }
  1922. iNdEx += skippy
  1923. }
  1924. }
  1925. if iNdEx > l {
  1926. return io.ErrUnexpectedEOF
  1927. }
  1928. return nil
  1929. }
  1930. func (m *PreStartContainerResponse) Unmarshal(dAtA []byte) error {
  1931. l := len(dAtA)
  1932. iNdEx := 0
  1933. for iNdEx < l {
  1934. preIndex := iNdEx
  1935. var wire uint64
  1936. for shift := uint(0); ; shift += 7 {
  1937. if shift >= 64 {
  1938. return ErrIntOverflowApi
  1939. }
  1940. if iNdEx >= l {
  1941. return io.ErrUnexpectedEOF
  1942. }
  1943. b := dAtA[iNdEx]
  1944. iNdEx++
  1945. wire |= (uint64(b) & 0x7F) << shift
  1946. if b < 0x80 {
  1947. break
  1948. }
  1949. }
  1950. fieldNum := int32(wire >> 3)
  1951. wireType := int(wire & 0x7)
  1952. if wireType == 4 {
  1953. return fmt.Errorf("proto: PreStartContainerResponse: wiretype end group for non-group")
  1954. }
  1955. if fieldNum <= 0 {
  1956. return fmt.Errorf("proto: PreStartContainerResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  1957. }
  1958. switch fieldNum {
  1959. default:
  1960. iNdEx = preIndex
  1961. skippy, err := skipApi(dAtA[iNdEx:])
  1962. if err != nil {
  1963. return err
  1964. }
  1965. if skippy < 0 {
  1966. return ErrInvalidLengthApi
  1967. }
  1968. if (iNdEx + skippy) > l {
  1969. return io.ErrUnexpectedEOF
  1970. }
  1971. iNdEx += skippy
  1972. }
  1973. }
  1974. if iNdEx > l {
  1975. return io.ErrUnexpectedEOF
  1976. }
  1977. return nil
  1978. }
  1979. func (m *AllocateRequest) Unmarshal(dAtA []byte) error {
  1980. l := len(dAtA)
  1981. iNdEx := 0
  1982. for iNdEx < l {
  1983. preIndex := iNdEx
  1984. var wire uint64
  1985. for shift := uint(0); ; shift += 7 {
  1986. if shift >= 64 {
  1987. return ErrIntOverflowApi
  1988. }
  1989. if iNdEx >= l {
  1990. return io.ErrUnexpectedEOF
  1991. }
  1992. b := dAtA[iNdEx]
  1993. iNdEx++
  1994. wire |= (uint64(b) & 0x7F) << shift
  1995. if b < 0x80 {
  1996. break
  1997. }
  1998. }
  1999. fieldNum := int32(wire >> 3)
  2000. wireType := int(wire & 0x7)
  2001. if wireType == 4 {
  2002. return fmt.Errorf("proto: AllocateRequest: wiretype end group for non-group")
  2003. }
  2004. if fieldNum <= 0 {
  2005. return fmt.Errorf("proto: AllocateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2006. }
  2007. switch fieldNum {
  2008. case 1:
  2009. if wireType != 2 {
  2010. return fmt.Errorf("proto: wrong wireType = %d for field ContainerRequests", wireType)
  2011. }
  2012. var msglen int
  2013. for shift := uint(0); ; shift += 7 {
  2014. if shift >= 64 {
  2015. return ErrIntOverflowApi
  2016. }
  2017. if iNdEx >= l {
  2018. return io.ErrUnexpectedEOF
  2019. }
  2020. b := dAtA[iNdEx]
  2021. iNdEx++
  2022. msglen |= (int(b) & 0x7F) << shift
  2023. if b < 0x80 {
  2024. break
  2025. }
  2026. }
  2027. if msglen < 0 {
  2028. return ErrInvalidLengthApi
  2029. }
  2030. postIndex := iNdEx + msglen
  2031. if postIndex > l {
  2032. return io.ErrUnexpectedEOF
  2033. }
  2034. m.ContainerRequests = append(m.ContainerRequests, &ContainerAllocateRequest{})
  2035. if err := m.ContainerRequests[len(m.ContainerRequests)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2036. return err
  2037. }
  2038. iNdEx = postIndex
  2039. default:
  2040. iNdEx = preIndex
  2041. skippy, err := skipApi(dAtA[iNdEx:])
  2042. if err != nil {
  2043. return err
  2044. }
  2045. if skippy < 0 {
  2046. return ErrInvalidLengthApi
  2047. }
  2048. if (iNdEx + skippy) > l {
  2049. return io.ErrUnexpectedEOF
  2050. }
  2051. iNdEx += skippy
  2052. }
  2053. }
  2054. if iNdEx > l {
  2055. return io.ErrUnexpectedEOF
  2056. }
  2057. return nil
  2058. }
  2059. func (m *ContainerAllocateRequest) Unmarshal(dAtA []byte) error {
  2060. l := len(dAtA)
  2061. iNdEx := 0
  2062. for iNdEx < l {
  2063. preIndex := iNdEx
  2064. var wire uint64
  2065. for shift := uint(0); ; shift += 7 {
  2066. if shift >= 64 {
  2067. return ErrIntOverflowApi
  2068. }
  2069. if iNdEx >= l {
  2070. return io.ErrUnexpectedEOF
  2071. }
  2072. b := dAtA[iNdEx]
  2073. iNdEx++
  2074. wire |= (uint64(b) & 0x7F) << shift
  2075. if b < 0x80 {
  2076. break
  2077. }
  2078. }
  2079. fieldNum := int32(wire >> 3)
  2080. wireType := int(wire & 0x7)
  2081. if wireType == 4 {
  2082. return fmt.Errorf("proto: ContainerAllocateRequest: wiretype end group for non-group")
  2083. }
  2084. if fieldNum <= 0 {
  2085. return fmt.Errorf("proto: ContainerAllocateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  2086. }
  2087. switch fieldNum {
  2088. case 1:
  2089. if wireType != 2 {
  2090. return fmt.Errorf("proto: wrong wireType = %d for field DevicesIDs", wireType)
  2091. }
  2092. var stringLen uint64
  2093. for shift := uint(0); ; shift += 7 {
  2094. if shift >= 64 {
  2095. return ErrIntOverflowApi
  2096. }
  2097. if iNdEx >= l {
  2098. return io.ErrUnexpectedEOF
  2099. }
  2100. b := dAtA[iNdEx]
  2101. iNdEx++
  2102. stringLen |= (uint64(b) & 0x7F) << shift
  2103. if b < 0x80 {
  2104. break
  2105. }
  2106. }
  2107. intStringLen := int(stringLen)
  2108. if intStringLen < 0 {
  2109. return ErrInvalidLengthApi
  2110. }
  2111. postIndex := iNdEx + intStringLen
  2112. if postIndex > l {
  2113. return io.ErrUnexpectedEOF
  2114. }
  2115. m.DevicesIDs = append(m.DevicesIDs, string(dAtA[iNdEx:postIndex]))
  2116. iNdEx = postIndex
  2117. default:
  2118. iNdEx = preIndex
  2119. skippy, err := skipApi(dAtA[iNdEx:])
  2120. if err != nil {
  2121. return err
  2122. }
  2123. if skippy < 0 {
  2124. return ErrInvalidLengthApi
  2125. }
  2126. if (iNdEx + skippy) > l {
  2127. return io.ErrUnexpectedEOF
  2128. }
  2129. iNdEx += skippy
  2130. }
  2131. }
  2132. if iNdEx > l {
  2133. return io.ErrUnexpectedEOF
  2134. }
  2135. return nil
  2136. }
  2137. func (m *AllocateResponse) Unmarshal(dAtA []byte) error {
  2138. l := len(dAtA)
  2139. iNdEx := 0
  2140. for iNdEx < l {
  2141. preIndex := iNdEx
  2142. var wire uint64
  2143. for shift := uint(0); ; shift += 7 {
  2144. if shift >= 64 {
  2145. return ErrIntOverflowApi
  2146. }
  2147. if iNdEx >= l {
  2148. return io.ErrUnexpectedEOF
  2149. }
  2150. b := dAtA[iNdEx]
  2151. iNdEx++
  2152. wire |= (uint64(b) & 0x7F) << shift
  2153. if b < 0x80 {
  2154. break
  2155. }
  2156. }
  2157. fieldNum := int32(wire >> 3)
  2158. wireType := int(wire & 0x7)
  2159. if wireType == 4 {
  2160. return fmt.Errorf("proto: AllocateResponse: wiretype end group for non-group")
  2161. }
  2162. if fieldNum <= 0 {
  2163. return fmt.Errorf("proto: AllocateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2164. }
  2165. switch fieldNum {
  2166. case 1:
  2167. if wireType != 2 {
  2168. return fmt.Errorf("proto: wrong wireType = %d for field ContainerResponses", wireType)
  2169. }
  2170. var msglen int
  2171. for shift := uint(0); ; shift += 7 {
  2172. if shift >= 64 {
  2173. return ErrIntOverflowApi
  2174. }
  2175. if iNdEx >= l {
  2176. return io.ErrUnexpectedEOF
  2177. }
  2178. b := dAtA[iNdEx]
  2179. iNdEx++
  2180. msglen |= (int(b) & 0x7F) << shift
  2181. if b < 0x80 {
  2182. break
  2183. }
  2184. }
  2185. if msglen < 0 {
  2186. return ErrInvalidLengthApi
  2187. }
  2188. postIndex := iNdEx + msglen
  2189. if postIndex > l {
  2190. return io.ErrUnexpectedEOF
  2191. }
  2192. m.ContainerResponses = append(m.ContainerResponses, &ContainerAllocateResponse{})
  2193. if err := m.ContainerResponses[len(m.ContainerResponses)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2194. return err
  2195. }
  2196. iNdEx = postIndex
  2197. default:
  2198. iNdEx = preIndex
  2199. skippy, err := skipApi(dAtA[iNdEx:])
  2200. if err != nil {
  2201. return err
  2202. }
  2203. if skippy < 0 {
  2204. return ErrInvalidLengthApi
  2205. }
  2206. if (iNdEx + skippy) > l {
  2207. return io.ErrUnexpectedEOF
  2208. }
  2209. iNdEx += skippy
  2210. }
  2211. }
  2212. if iNdEx > l {
  2213. return io.ErrUnexpectedEOF
  2214. }
  2215. return nil
  2216. }
  2217. func (m *ContainerAllocateResponse) Unmarshal(dAtA []byte) error {
  2218. l := len(dAtA)
  2219. iNdEx := 0
  2220. for iNdEx < l {
  2221. preIndex := iNdEx
  2222. var wire uint64
  2223. for shift := uint(0); ; shift += 7 {
  2224. if shift >= 64 {
  2225. return ErrIntOverflowApi
  2226. }
  2227. if iNdEx >= l {
  2228. return io.ErrUnexpectedEOF
  2229. }
  2230. b := dAtA[iNdEx]
  2231. iNdEx++
  2232. wire |= (uint64(b) & 0x7F) << shift
  2233. if b < 0x80 {
  2234. break
  2235. }
  2236. }
  2237. fieldNum := int32(wire >> 3)
  2238. wireType := int(wire & 0x7)
  2239. if wireType == 4 {
  2240. return fmt.Errorf("proto: ContainerAllocateResponse: wiretype end group for non-group")
  2241. }
  2242. if fieldNum <= 0 {
  2243. return fmt.Errorf("proto: ContainerAllocateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  2244. }
  2245. switch fieldNum {
  2246. case 1:
  2247. if wireType != 2 {
  2248. return fmt.Errorf("proto: wrong wireType = %d for field Envs", wireType)
  2249. }
  2250. var msglen int
  2251. for shift := uint(0); ; shift += 7 {
  2252. if shift >= 64 {
  2253. return ErrIntOverflowApi
  2254. }
  2255. if iNdEx >= l {
  2256. return io.ErrUnexpectedEOF
  2257. }
  2258. b := dAtA[iNdEx]
  2259. iNdEx++
  2260. msglen |= (int(b) & 0x7F) << shift
  2261. if b < 0x80 {
  2262. break
  2263. }
  2264. }
  2265. if msglen < 0 {
  2266. return ErrInvalidLengthApi
  2267. }
  2268. postIndex := iNdEx + msglen
  2269. if postIndex > l {
  2270. return io.ErrUnexpectedEOF
  2271. }
  2272. if m.Envs == nil {
  2273. m.Envs = make(map[string]string)
  2274. }
  2275. var mapkey string
  2276. var mapvalue string
  2277. for iNdEx < postIndex {
  2278. entryPreIndex := iNdEx
  2279. var wire uint64
  2280. for shift := uint(0); ; shift += 7 {
  2281. if shift >= 64 {
  2282. return ErrIntOverflowApi
  2283. }
  2284. if iNdEx >= l {
  2285. return io.ErrUnexpectedEOF
  2286. }
  2287. b := dAtA[iNdEx]
  2288. iNdEx++
  2289. wire |= (uint64(b) & 0x7F) << shift
  2290. if b < 0x80 {
  2291. break
  2292. }
  2293. }
  2294. fieldNum := int32(wire >> 3)
  2295. if fieldNum == 1 {
  2296. var stringLenmapkey uint64
  2297. for shift := uint(0); ; shift += 7 {
  2298. if shift >= 64 {
  2299. return ErrIntOverflowApi
  2300. }
  2301. if iNdEx >= l {
  2302. return io.ErrUnexpectedEOF
  2303. }
  2304. b := dAtA[iNdEx]
  2305. iNdEx++
  2306. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  2307. if b < 0x80 {
  2308. break
  2309. }
  2310. }
  2311. intStringLenmapkey := int(stringLenmapkey)
  2312. if intStringLenmapkey < 0 {
  2313. return ErrInvalidLengthApi
  2314. }
  2315. postStringIndexmapkey := iNdEx + intStringLenmapkey
  2316. if postStringIndexmapkey > l {
  2317. return io.ErrUnexpectedEOF
  2318. }
  2319. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2320. iNdEx = postStringIndexmapkey
  2321. } else if fieldNum == 2 {
  2322. var stringLenmapvalue uint64
  2323. for shift := uint(0); ; shift += 7 {
  2324. if shift >= 64 {
  2325. return ErrIntOverflowApi
  2326. }
  2327. if iNdEx >= l {
  2328. return io.ErrUnexpectedEOF
  2329. }
  2330. b := dAtA[iNdEx]
  2331. iNdEx++
  2332. stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  2333. if b < 0x80 {
  2334. break
  2335. }
  2336. }
  2337. intStringLenmapvalue := int(stringLenmapvalue)
  2338. if intStringLenmapvalue < 0 {
  2339. return ErrInvalidLengthApi
  2340. }
  2341. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2342. if postStringIndexmapvalue > l {
  2343. return io.ErrUnexpectedEOF
  2344. }
  2345. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2346. iNdEx = postStringIndexmapvalue
  2347. } else {
  2348. iNdEx = entryPreIndex
  2349. skippy, err := skipApi(dAtA[iNdEx:])
  2350. if err != nil {
  2351. return err
  2352. }
  2353. if skippy < 0 {
  2354. return ErrInvalidLengthApi
  2355. }
  2356. if (iNdEx + skippy) > postIndex {
  2357. return io.ErrUnexpectedEOF
  2358. }
  2359. iNdEx += skippy
  2360. }
  2361. }
  2362. m.Envs[mapkey] = mapvalue
  2363. iNdEx = postIndex
  2364. case 2:
  2365. if wireType != 2 {
  2366. return fmt.Errorf("proto: wrong wireType = %d for field Mounts", wireType)
  2367. }
  2368. var msglen int
  2369. for shift := uint(0); ; shift += 7 {
  2370. if shift >= 64 {
  2371. return ErrIntOverflowApi
  2372. }
  2373. if iNdEx >= l {
  2374. return io.ErrUnexpectedEOF
  2375. }
  2376. b := dAtA[iNdEx]
  2377. iNdEx++
  2378. msglen |= (int(b) & 0x7F) << shift
  2379. if b < 0x80 {
  2380. break
  2381. }
  2382. }
  2383. if msglen < 0 {
  2384. return ErrInvalidLengthApi
  2385. }
  2386. postIndex := iNdEx + msglen
  2387. if postIndex > l {
  2388. return io.ErrUnexpectedEOF
  2389. }
  2390. m.Mounts = append(m.Mounts, &Mount{})
  2391. if err := m.Mounts[len(m.Mounts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2392. return err
  2393. }
  2394. iNdEx = postIndex
  2395. case 3:
  2396. if wireType != 2 {
  2397. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  2398. }
  2399. var msglen int
  2400. for shift := uint(0); ; shift += 7 {
  2401. if shift >= 64 {
  2402. return ErrIntOverflowApi
  2403. }
  2404. if iNdEx >= l {
  2405. return io.ErrUnexpectedEOF
  2406. }
  2407. b := dAtA[iNdEx]
  2408. iNdEx++
  2409. msglen |= (int(b) & 0x7F) << shift
  2410. if b < 0x80 {
  2411. break
  2412. }
  2413. }
  2414. if msglen < 0 {
  2415. return ErrInvalidLengthApi
  2416. }
  2417. postIndex := iNdEx + msglen
  2418. if postIndex > l {
  2419. return io.ErrUnexpectedEOF
  2420. }
  2421. m.Devices = append(m.Devices, &DeviceSpec{})
  2422. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2423. return err
  2424. }
  2425. iNdEx = postIndex
  2426. case 4:
  2427. if wireType != 2 {
  2428. return fmt.Errorf("proto: wrong wireType = %d for field Annotations", wireType)
  2429. }
  2430. var msglen int
  2431. for shift := uint(0); ; shift += 7 {
  2432. if shift >= 64 {
  2433. return ErrIntOverflowApi
  2434. }
  2435. if iNdEx >= l {
  2436. return io.ErrUnexpectedEOF
  2437. }
  2438. b := dAtA[iNdEx]
  2439. iNdEx++
  2440. msglen |= (int(b) & 0x7F) << shift
  2441. if b < 0x80 {
  2442. break
  2443. }
  2444. }
  2445. if msglen < 0 {
  2446. return ErrInvalidLengthApi
  2447. }
  2448. postIndex := iNdEx + msglen
  2449. if postIndex > l {
  2450. return io.ErrUnexpectedEOF
  2451. }
  2452. if m.Annotations == nil {
  2453. m.Annotations = make(map[string]string)
  2454. }
  2455. var mapkey string
  2456. var mapvalue string
  2457. for iNdEx < postIndex {
  2458. entryPreIndex := iNdEx
  2459. var wire uint64
  2460. for shift := uint(0); ; shift += 7 {
  2461. if shift >= 64 {
  2462. return ErrIntOverflowApi
  2463. }
  2464. if iNdEx >= l {
  2465. return io.ErrUnexpectedEOF
  2466. }
  2467. b := dAtA[iNdEx]
  2468. iNdEx++
  2469. wire |= (uint64(b) & 0x7F) << shift
  2470. if b < 0x80 {
  2471. break
  2472. }
  2473. }
  2474. fieldNum := int32(wire >> 3)
  2475. if fieldNum == 1 {
  2476. var stringLenmapkey uint64
  2477. for shift := uint(0); ; shift += 7 {
  2478. if shift >= 64 {
  2479. return ErrIntOverflowApi
  2480. }
  2481. if iNdEx >= l {
  2482. return io.ErrUnexpectedEOF
  2483. }
  2484. b := dAtA[iNdEx]
  2485. iNdEx++
  2486. stringLenmapkey |= (uint64(b) & 0x7F) << shift
  2487. if b < 0x80 {
  2488. break
  2489. }
  2490. }
  2491. intStringLenmapkey := int(stringLenmapkey)
  2492. if intStringLenmapkey < 0 {
  2493. return ErrInvalidLengthApi
  2494. }
  2495. postStringIndexmapkey := iNdEx + intStringLenmapkey
  2496. if postStringIndexmapkey > l {
  2497. return io.ErrUnexpectedEOF
  2498. }
  2499. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  2500. iNdEx = postStringIndexmapkey
  2501. } else if fieldNum == 2 {
  2502. var stringLenmapvalue uint64
  2503. for shift := uint(0); ; shift += 7 {
  2504. if shift >= 64 {
  2505. return ErrIntOverflowApi
  2506. }
  2507. if iNdEx >= l {
  2508. return io.ErrUnexpectedEOF
  2509. }
  2510. b := dAtA[iNdEx]
  2511. iNdEx++
  2512. stringLenmapvalue |= (uint64(b) & 0x7F) << shift
  2513. if b < 0x80 {
  2514. break
  2515. }
  2516. }
  2517. intStringLenmapvalue := int(stringLenmapvalue)
  2518. if intStringLenmapvalue < 0 {
  2519. return ErrInvalidLengthApi
  2520. }
  2521. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  2522. if postStringIndexmapvalue > l {
  2523. return io.ErrUnexpectedEOF
  2524. }
  2525. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  2526. iNdEx = postStringIndexmapvalue
  2527. } else {
  2528. iNdEx = entryPreIndex
  2529. skippy, err := skipApi(dAtA[iNdEx:])
  2530. if err != nil {
  2531. return err
  2532. }
  2533. if skippy < 0 {
  2534. return ErrInvalidLengthApi
  2535. }
  2536. if (iNdEx + skippy) > postIndex {
  2537. return io.ErrUnexpectedEOF
  2538. }
  2539. iNdEx += skippy
  2540. }
  2541. }
  2542. m.Annotations[mapkey] = mapvalue
  2543. iNdEx = postIndex
  2544. default:
  2545. iNdEx = preIndex
  2546. skippy, err := skipApi(dAtA[iNdEx:])
  2547. if err != nil {
  2548. return err
  2549. }
  2550. if skippy < 0 {
  2551. return ErrInvalidLengthApi
  2552. }
  2553. if (iNdEx + skippy) > l {
  2554. return io.ErrUnexpectedEOF
  2555. }
  2556. iNdEx += skippy
  2557. }
  2558. }
  2559. if iNdEx > l {
  2560. return io.ErrUnexpectedEOF
  2561. }
  2562. return nil
  2563. }
  2564. func (m *Mount) Unmarshal(dAtA []byte) error {
  2565. l := len(dAtA)
  2566. iNdEx := 0
  2567. for iNdEx < l {
  2568. preIndex := iNdEx
  2569. var wire uint64
  2570. for shift := uint(0); ; shift += 7 {
  2571. if shift >= 64 {
  2572. return ErrIntOverflowApi
  2573. }
  2574. if iNdEx >= l {
  2575. return io.ErrUnexpectedEOF
  2576. }
  2577. b := dAtA[iNdEx]
  2578. iNdEx++
  2579. wire |= (uint64(b) & 0x7F) << shift
  2580. if b < 0x80 {
  2581. break
  2582. }
  2583. }
  2584. fieldNum := int32(wire >> 3)
  2585. wireType := int(wire & 0x7)
  2586. if wireType == 4 {
  2587. return fmt.Errorf("proto: Mount: wiretype end group for non-group")
  2588. }
  2589. if fieldNum <= 0 {
  2590. return fmt.Errorf("proto: Mount: illegal tag %d (wire type %d)", fieldNum, wire)
  2591. }
  2592. switch fieldNum {
  2593. case 1:
  2594. if wireType != 2 {
  2595. return fmt.Errorf("proto: wrong wireType = %d for field ContainerPath", wireType)
  2596. }
  2597. var stringLen uint64
  2598. for shift := uint(0); ; shift += 7 {
  2599. if shift >= 64 {
  2600. return ErrIntOverflowApi
  2601. }
  2602. if iNdEx >= l {
  2603. return io.ErrUnexpectedEOF
  2604. }
  2605. b := dAtA[iNdEx]
  2606. iNdEx++
  2607. stringLen |= (uint64(b) & 0x7F) << shift
  2608. if b < 0x80 {
  2609. break
  2610. }
  2611. }
  2612. intStringLen := int(stringLen)
  2613. if intStringLen < 0 {
  2614. return ErrInvalidLengthApi
  2615. }
  2616. postIndex := iNdEx + intStringLen
  2617. if postIndex > l {
  2618. return io.ErrUnexpectedEOF
  2619. }
  2620. m.ContainerPath = string(dAtA[iNdEx:postIndex])
  2621. iNdEx = postIndex
  2622. case 2:
  2623. if wireType != 2 {
  2624. return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType)
  2625. }
  2626. var stringLen uint64
  2627. for shift := uint(0); ; shift += 7 {
  2628. if shift >= 64 {
  2629. return ErrIntOverflowApi
  2630. }
  2631. if iNdEx >= l {
  2632. return io.ErrUnexpectedEOF
  2633. }
  2634. b := dAtA[iNdEx]
  2635. iNdEx++
  2636. stringLen |= (uint64(b) & 0x7F) << shift
  2637. if b < 0x80 {
  2638. break
  2639. }
  2640. }
  2641. intStringLen := int(stringLen)
  2642. if intStringLen < 0 {
  2643. return ErrInvalidLengthApi
  2644. }
  2645. postIndex := iNdEx + intStringLen
  2646. if postIndex > l {
  2647. return io.ErrUnexpectedEOF
  2648. }
  2649. m.HostPath = string(dAtA[iNdEx:postIndex])
  2650. iNdEx = postIndex
  2651. case 3:
  2652. if wireType != 0 {
  2653. return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
  2654. }
  2655. var v int
  2656. for shift := uint(0); ; shift += 7 {
  2657. if shift >= 64 {
  2658. return ErrIntOverflowApi
  2659. }
  2660. if iNdEx >= l {
  2661. return io.ErrUnexpectedEOF
  2662. }
  2663. b := dAtA[iNdEx]
  2664. iNdEx++
  2665. v |= (int(b) & 0x7F) << shift
  2666. if b < 0x80 {
  2667. break
  2668. }
  2669. }
  2670. m.ReadOnly = bool(v != 0)
  2671. default:
  2672. iNdEx = preIndex
  2673. skippy, err := skipApi(dAtA[iNdEx:])
  2674. if err != nil {
  2675. return err
  2676. }
  2677. if skippy < 0 {
  2678. return ErrInvalidLengthApi
  2679. }
  2680. if (iNdEx + skippy) > l {
  2681. return io.ErrUnexpectedEOF
  2682. }
  2683. iNdEx += skippy
  2684. }
  2685. }
  2686. if iNdEx > l {
  2687. return io.ErrUnexpectedEOF
  2688. }
  2689. return nil
  2690. }
  2691. func (m *DeviceSpec) Unmarshal(dAtA []byte) error {
  2692. l := len(dAtA)
  2693. iNdEx := 0
  2694. for iNdEx < l {
  2695. preIndex := iNdEx
  2696. var wire uint64
  2697. for shift := uint(0); ; shift += 7 {
  2698. if shift >= 64 {
  2699. return ErrIntOverflowApi
  2700. }
  2701. if iNdEx >= l {
  2702. return io.ErrUnexpectedEOF
  2703. }
  2704. b := dAtA[iNdEx]
  2705. iNdEx++
  2706. wire |= (uint64(b) & 0x7F) << shift
  2707. if b < 0x80 {
  2708. break
  2709. }
  2710. }
  2711. fieldNum := int32(wire >> 3)
  2712. wireType := int(wire & 0x7)
  2713. if wireType == 4 {
  2714. return fmt.Errorf("proto: DeviceSpec: wiretype end group for non-group")
  2715. }
  2716. if fieldNum <= 0 {
  2717. return fmt.Errorf("proto: DeviceSpec: illegal tag %d (wire type %d)", fieldNum, wire)
  2718. }
  2719. switch fieldNum {
  2720. case 1:
  2721. if wireType != 2 {
  2722. return fmt.Errorf("proto: wrong wireType = %d for field ContainerPath", wireType)
  2723. }
  2724. var stringLen uint64
  2725. for shift := uint(0); ; shift += 7 {
  2726. if shift >= 64 {
  2727. return ErrIntOverflowApi
  2728. }
  2729. if iNdEx >= l {
  2730. return io.ErrUnexpectedEOF
  2731. }
  2732. b := dAtA[iNdEx]
  2733. iNdEx++
  2734. stringLen |= (uint64(b) & 0x7F) << shift
  2735. if b < 0x80 {
  2736. break
  2737. }
  2738. }
  2739. intStringLen := int(stringLen)
  2740. if intStringLen < 0 {
  2741. return ErrInvalidLengthApi
  2742. }
  2743. postIndex := iNdEx + intStringLen
  2744. if postIndex > l {
  2745. return io.ErrUnexpectedEOF
  2746. }
  2747. m.ContainerPath = string(dAtA[iNdEx:postIndex])
  2748. iNdEx = postIndex
  2749. case 2:
  2750. if wireType != 2 {
  2751. return fmt.Errorf("proto: wrong wireType = %d for field HostPath", wireType)
  2752. }
  2753. var stringLen uint64
  2754. for shift := uint(0); ; shift += 7 {
  2755. if shift >= 64 {
  2756. return ErrIntOverflowApi
  2757. }
  2758. if iNdEx >= l {
  2759. return io.ErrUnexpectedEOF
  2760. }
  2761. b := dAtA[iNdEx]
  2762. iNdEx++
  2763. stringLen |= (uint64(b) & 0x7F) << shift
  2764. if b < 0x80 {
  2765. break
  2766. }
  2767. }
  2768. intStringLen := int(stringLen)
  2769. if intStringLen < 0 {
  2770. return ErrInvalidLengthApi
  2771. }
  2772. postIndex := iNdEx + intStringLen
  2773. if postIndex > l {
  2774. return io.ErrUnexpectedEOF
  2775. }
  2776. m.HostPath = string(dAtA[iNdEx:postIndex])
  2777. iNdEx = postIndex
  2778. case 3:
  2779. if wireType != 2 {
  2780. return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
  2781. }
  2782. var stringLen uint64
  2783. for shift := uint(0); ; shift += 7 {
  2784. if shift >= 64 {
  2785. return ErrIntOverflowApi
  2786. }
  2787. if iNdEx >= l {
  2788. return io.ErrUnexpectedEOF
  2789. }
  2790. b := dAtA[iNdEx]
  2791. iNdEx++
  2792. stringLen |= (uint64(b) & 0x7F) << shift
  2793. if b < 0x80 {
  2794. break
  2795. }
  2796. }
  2797. intStringLen := int(stringLen)
  2798. if intStringLen < 0 {
  2799. return ErrInvalidLengthApi
  2800. }
  2801. postIndex := iNdEx + intStringLen
  2802. if postIndex > l {
  2803. return io.ErrUnexpectedEOF
  2804. }
  2805. m.Permissions = string(dAtA[iNdEx:postIndex])
  2806. iNdEx = postIndex
  2807. default:
  2808. iNdEx = preIndex
  2809. skippy, err := skipApi(dAtA[iNdEx:])
  2810. if err != nil {
  2811. return err
  2812. }
  2813. if skippy < 0 {
  2814. return ErrInvalidLengthApi
  2815. }
  2816. if (iNdEx + skippy) > l {
  2817. return io.ErrUnexpectedEOF
  2818. }
  2819. iNdEx += skippy
  2820. }
  2821. }
  2822. if iNdEx > l {
  2823. return io.ErrUnexpectedEOF
  2824. }
  2825. return nil
  2826. }
  2827. func skipApi(dAtA []byte) (n int, err error) {
  2828. l := len(dAtA)
  2829. iNdEx := 0
  2830. for iNdEx < l {
  2831. var wire uint64
  2832. for shift := uint(0); ; shift += 7 {
  2833. if shift >= 64 {
  2834. return 0, ErrIntOverflowApi
  2835. }
  2836. if iNdEx >= l {
  2837. return 0, io.ErrUnexpectedEOF
  2838. }
  2839. b := dAtA[iNdEx]
  2840. iNdEx++
  2841. wire |= (uint64(b) & 0x7F) << shift
  2842. if b < 0x80 {
  2843. break
  2844. }
  2845. }
  2846. wireType := int(wire & 0x7)
  2847. switch wireType {
  2848. case 0:
  2849. for shift := uint(0); ; shift += 7 {
  2850. if shift >= 64 {
  2851. return 0, ErrIntOverflowApi
  2852. }
  2853. if iNdEx >= l {
  2854. return 0, io.ErrUnexpectedEOF
  2855. }
  2856. iNdEx++
  2857. if dAtA[iNdEx-1] < 0x80 {
  2858. break
  2859. }
  2860. }
  2861. return iNdEx, nil
  2862. case 1:
  2863. iNdEx += 8
  2864. return iNdEx, nil
  2865. case 2:
  2866. var length int
  2867. for shift := uint(0); ; shift += 7 {
  2868. if shift >= 64 {
  2869. return 0, ErrIntOverflowApi
  2870. }
  2871. if iNdEx >= l {
  2872. return 0, io.ErrUnexpectedEOF
  2873. }
  2874. b := dAtA[iNdEx]
  2875. iNdEx++
  2876. length |= (int(b) & 0x7F) << shift
  2877. if b < 0x80 {
  2878. break
  2879. }
  2880. }
  2881. iNdEx += length
  2882. if length < 0 {
  2883. return 0, ErrInvalidLengthApi
  2884. }
  2885. return iNdEx, nil
  2886. case 3:
  2887. for {
  2888. var innerWire uint64
  2889. var start int = iNdEx
  2890. for shift := uint(0); ; shift += 7 {
  2891. if shift >= 64 {
  2892. return 0, ErrIntOverflowApi
  2893. }
  2894. if iNdEx >= l {
  2895. return 0, io.ErrUnexpectedEOF
  2896. }
  2897. b := dAtA[iNdEx]
  2898. iNdEx++
  2899. innerWire |= (uint64(b) & 0x7F) << shift
  2900. if b < 0x80 {
  2901. break
  2902. }
  2903. }
  2904. innerWireType := int(innerWire & 0x7)
  2905. if innerWireType == 4 {
  2906. break
  2907. }
  2908. next, err := skipApi(dAtA[start:])
  2909. if err != nil {
  2910. return 0, err
  2911. }
  2912. iNdEx = start + next
  2913. }
  2914. return iNdEx, nil
  2915. case 4:
  2916. return iNdEx, nil
  2917. case 5:
  2918. iNdEx += 4
  2919. return iNdEx, nil
  2920. default:
  2921. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2922. }
  2923. }
  2924. panic("unreachable")
  2925. }
  2926. var (
  2927. ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
  2928. ErrIntOverflowApi = fmt.Errorf("proto: integer overflow")
  2929. )
  2930. func init() { proto.RegisterFile("api.proto", fileDescriptorApi) }
  2931. var fileDescriptorApi = []byte{
  2932. // 760 bytes of a gzipped FileDescriptorProto
  2933. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcd, 0x4e, 0xdb, 0x4a,
  2934. 0x14, 0x8e, 0x13, 0xc8, 0xcf, 0x49, 0x80, 0x30, 0x20, 0x64, 0x0c, 0xd7, 0xca, 0xf5, 0xd5, 0xbd,
  2935. 0xe2, 0x4a, 0x10, 0x20, 0x48, 0xdc, 0x2b, 0x16, 0x55, 0x53, 0x42, 0x5b, 0xa4, 0xb6, 0x44, 0x46,
  2936. 0x55, 0x37, 0x95, 0x22, 0xc7, 0x99, 0xc6, 0x56, 0x93, 0x19, 0xd7, 0x33, 0x89, 0x94, 0x5d, 0x17,
  2937. 0x7d, 0x80, 0x3e, 0x44, 0x1f, 0xa3, 0x0f, 0xc0, 0xb2, 0xcb, 0x2e, 0x4b, 0xfa, 0x22, 0x95, 0xc7,
  2938. 0x1e, 0x3b, 0x32, 0x01, 0x5a, 0xa9, 0x3b, 0xcf, 0x77, 0xce, 0xf7, 0xcd, 0x39, 0x67, 0x4e, 0xbe,
  2939. 0x40, 0xc9, 0xf2, 0xdc, 0xba, 0xe7, 0x53, 0x4e, 0x51, 0x61, 0x7c, 0xd8, 0xc5, 0xdc, 0x3a, 0xd4,
  2940. 0xf6, 0xfa, 0x2e, 0x77, 0x46, 0xdd, 0xba, 0x4d, 0x87, 0xfb, 0x7d, 0xda, 0xa7, 0xfb, 0x22, 0xde,
  2941. 0x1d, 0xbd, 0x11, 0x27, 0x71, 0x10, 0x5f, 0x21, 0xcf, 0x38, 0x85, 0xb5, 0x16, 0x1e, 0xbb, 0x36,
  2942. 0x6e, 0x0f, 0x46, 0x7d, 0x97, 0x5c, 0x78, 0xdc, 0xa5, 0x84, 0xa1, 0x5d, 0x40, 0x9e, 0x8f, 0x3b,
  2943. 0x8c, 0x5b, 0x3e, 0xef, 0xf8, 0xf8, 0xdd, 0xc8, 0xf5, 0x71, 0x4f, 0x55, 0x6a, 0xca, 0x4e, 0xd1,
  2944. 0xac, 0x7a, 0x3e, 0xbe, 0x0c, 0x02, 0x66, 0x84, 0x1b, 0x9f, 0x14, 0x58, 0x31, 0x71, 0xdf, 0x65,
  2945. 0x1c, 0xfb, 0x01, 0x88, 0x19, 0x47, 0x2a, 0x14, 0xc6, 0xd8, 0x67, 0x2e, 0x25, 0x82, 0x56, 0x32,
  2946. 0xe5, 0x11, 0x69, 0x50, 0xc4, 0xa4, 0xe7, 0x51, 0x97, 0x70, 0x35, 0x2b, 0x42, 0xf1, 0x19, 0xfd,
  2947. 0x05, 0x4b, 0x3e, 0x66, 0x74, 0xe4, 0xdb, 0xb8, 0x43, 0xac, 0x21, 0x56, 0x73, 0x22, 0xa1, 0x22,
  2948. 0xc1, 0x17, 0xd6, 0x10, 0xa3, 0x63, 0x28, 0xd0, 0xb0, 0x4e, 0x75, 0xa1, 0xa6, 0xec, 0x94, 0x1b,
  2949. 0xdb, 0xf5, 0xa8, 0xfb, 0xfa, 0x9c, 0x5e, 0x4c, 0x99, 0x6c, 0x14, 0x60, 0xf1, 0x6c, 0xe8, 0xf1,
  2950. 0x89, 0xd1, 0x84, 0xf5, 0x67, 0x2e, 0xe3, 0x4d, 0xd2, 0x7b, 0x65, 0x71, 0xdb, 0x31, 0x31, 0xf3,
  2951. 0x28, 0x61, 0x18, 0xfd, 0x0b, 0x85, 0x9e, 0x10, 0x60, 0xaa, 0x52, 0xcb, 0xed, 0x94, 0x1b, 0x2b,
  2952. 0x29, 0x61, 0x53, 0xc6, 0x8d, 0x03, 0xc8, 0x87, 0x10, 0x5a, 0x86, 0xec, 0x79, 0x2b, 0xea, 0x31,
  2953. 0xeb, 0xb6, 0xd0, 0x06, 0xe4, 0x1d, 0x6c, 0x0d, 0xb8, 0x13, 0x35, 0x17, 0x9d, 0x8c, 0x13, 0x50,
  2954. 0xdb, 0xd1, 0xe0, 0x4e, 0x29, 0xe1, 0x96, 0x4b, 0x92, 0x61, 0xe9, 0x00, 0x91, 0xf0, 0x79, 0x2b,
  2955. 0xbc, 0xbb, 0x64, 0xce, 0x20, 0xc6, 0x16, 0x6c, 0xce, 0xe1, 0x86, 0x55, 0x1b, 0x36, 0xac, 0x34,
  2956. 0x07, 0x03, 0x6a, 0x5b, 0x1c, 0x4b, 0xbd, 0x36, 0x20, 0x5b, 0xe6, 0x89, 0xe7, 0xc3, 0x8c, 0xcb,
  2957. 0x9e, 0xfe, 0x8c, 0x7b, 0x8a, 0xa5, 0x52, 0x74, 0x73, 0xd5, 0x4e, 0x15, 0xc8, 0x82, 0xea, 0x6f,
  2958. 0x4b, 0xbf, 0xb7, 0xfa, 0x3e, 0x54, 0x13, 0x4a, 0x34, 0xea, 0x4b, 0x58, 0x9b, 0xad, 0x30, 0x44,
  2959. 0x65, 0x89, 0xc6, 0x5d, 0x25, 0x86, 0xa9, 0x26, 0xb2, 0xd3, 0x83, 0x60, 0xc6, 0x87, 0x1c, 0x6c,
  2960. 0xde, 0xca, 0x40, 0x0f, 0x61, 0x01, 0x93, 0xb1, 0xbc, 0x63, 0xf7, 0xfe, 0x3b, 0xea, 0x67, 0x64,
  2961. 0xcc, 0xce, 0x08, 0xf7, 0x27, 0xa6, 0x60, 0xa2, 0x7f, 0x20, 0x3f, 0xa4, 0x23, 0xc2, 0x99, 0x9a,
  2962. 0x15, 0x1a, 0xcb, 0xb1, 0xc6, 0xf3, 0x00, 0x36, 0xa3, 0x28, 0xda, 0x4b, 0xf6, 0x28, 0x27, 0x12,
  2963. 0xd7, 0x52, 0x7b, 0x74, 0xe9, 0x61, 0x3b, 0xde, 0x25, 0xf4, 0x12, 0xca, 0x16, 0x21, 0x94, 0x5b,
  2964. 0x72, 0xa7, 0x03, 0xca, 0xd1, 0x4f, 0xd4, 0xd7, 0x4c, 0x58, 0x61, 0x99, 0xb3, 0x3a, 0xda, 0x7f,
  2965. 0x50, 0x8a, 0x1b, 0x40, 0x55, 0xc8, 0xbd, 0xc5, 0x93, 0x68, 0x4d, 0x83, 0x4f, 0xb4, 0x0e, 0x8b,
  2966. 0x63, 0x6b, 0x30, 0xc2, 0xd1, 0x9a, 0x86, 0x87, 0x93, 0xec, 0xff, 0x8a, 0xf6, 0x00, 0xaa, 0x69,
  2967. 0xe5, 0x5f, 0xe1, 0x1b, 0x0e, 0x2c, 0x8a, 0x79, 0xa0, 0xbf, 0x61, 0x39, 0x79, 0x64, 0xcf, 0xe2,
  2968. 0x4e, 0xc4, 0x5f, 0x8a, 0xd1, 0xb6, 0xc5, 0x1d, 0xb4, 0x05, 0x25, 0x87, 0x32, 0x1e, 0x66, 0x44,
  2969. 0x8e, 0x10, 0x00, 0x32, 0xe8, 0x63, 0xab, 0xd7, 0xa1, 0x64, 0x30, 0x11, 0x6e, 0x50, 0x34, 0x8b,
  2970. 0x01, 0x70, 0x41, 0x06, 0x13, 0xc3, 0x07, 0x48, 0x06, 0xfa, 0x5b, 0xae, 0xab, 0x41, 0xd9, 0xc3,
  2971. 0xfe, 0xd0, 0x65, 0x4c, 0xbc, 0x45, 0x68, 0x3f, 0xb3, 0x50, 0xe3, 0x31, 0x54, 0x42, 0xaf, 0xf3,
  2972. 0xc5, 0x7c, 0xd0, 0x31, 0x14, 0xa5, 0xf7, 0x21, 0x35, 0x7e, 0xb4, 0x94, 0x1d, 0x6a, 0xc9, 0xaa,
  2973. 0x84, 0x16, 0x94, 0x69, 0x7c, 0xce, 0x42, 0x65, 0xd6, 0xae, 0xd0, 0x53, 0xd8, 0x78, 0x82, 0xf9,
  2974. 0x3c, 0x37, 0x4e, 0x91, 0xb5, 0x3b, 0xfd, 0xce, 0xc8, 0xa0, 0x26, 0x54, 0x66, 0xfd, 0xed, 0x06,
  2975. 0xff, 0x8f, 0xf8, 0x3c, 0xcf, 0x06, 0x8d, 0xcc, 0x81, 0x82, 0x9a, 0x50, 0x94, 0xeb, 0x36, 0xd3,
  2976. 0x55, 0xea, 0x97, 0xaf, 0x6d, 0xce, 0x89, 0x48, 0x11, 0xf4, 0x1a, 0x56, 0x6f, 0x98, 0x16, 0x4a,
  2977. 0xdc, 0xe7, 0x36, 0x33, 0xd4, 0x8c, 0xbb, 0x52, 0xa4, 0xfa, 0xa3, 0xed, 0xab, 0x6b, 0x5d, 0xf9,
  2978. 0x7a, 0xad, 0x67, 0xde, 0x4f, 0x75, 0xe5, 0x6a, 0xaa, 0x2b, 0x5f, 0xa6, 0xba, 0xf2, 0x6d, 0xaa,
  2979. 0x2b, 0x1f, 0xbf, 0xeb, 0x99, 0x6e, 0x5e, 0xfc, 0xbb, 0x1d, 0xfd, 0x08, 0x00, 0x00, 0xff, 0xff,
  2980. 0xb9, 0xc2, 0x87, 0x92, 0x22, 0x07, 0x00, 0x00,
  2981. }