network.pb.go 41 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: network.proto
  3. package pb
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. _ "google.golang.org/genproto/googleapis/api/annotations"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. math "math"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. // This is a compile-time assertion to ensure that this generated file
  19. // is compatible with the proto package it is being compiled against.
  20. // A compilation error at this line likely means your copy of the
  21. // proto package needs to be updated.
  22. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  23. type NetworkCreateRequest struct {
  24. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  25. Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
  26. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  27. Via string `protobuf:"bytes,4,opt,name=via,proto3" json:"via,omitempty"`
  28. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  29. XXX_unrecognized []byte `json:"-"`
  30. XXX_sizecache int32 `json:"-"`
  31. }
  32. func (m *NetworkCreateRequest) Reset() { *m = NetworkCreateRequest{} }
  33. func (m *NetworkCreateRequest) String() string { return proto.CompactTextString(m) }
  34. func (*NetworkCreateRequest) ProtoMessage() {}
  35. func (*NetworkCreateRequest) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_8571034d60397816, []int{0}
  37. }
  38. func (m *NetworkCreateRequest) XXX_Unmarshal(b []byte) error {
  39. return xxx_messageInfo_NetworkCreateRequest.Unmarshal(m, b)
  40. }
  41. func (m *NetworkCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. return xxx_messageInfo_NetworkCreateRequest.Marshal(b, m, deterministic)
  43. }
  44. func (m *NetworkCreateRequest) XXX_Merge(src proto.Message) {
  45. xxx_messageInfo_NetworkCreateRequest.Merge(m, src)
  46. }
  47. func (m *NetworkCreateRequest) XXX_Size() int {
  48. return xxx_messageInfo_NetworkCreateRequest.Size(m)
  49. }
  50. func (m *NetworkCreateRequest) XXX_DiscardUnknown() {
  51. xxx_messageInfo_NetworkCreateRequest.DiscardUnknown(m)
  52. }
  53. var xxx_messageInfo_NetworkCreateRequest proto.InternalMessageInfo
  54. func (m *NetworkCreateRequest) GetName() string {
  55. if m != nil {
  56. return m.Name
  57. }
  58. return ""
  59. }
  60. func (m *NetworkCreateRequest) GetCidr() string {
  61. if m != nil {
  62. return m.Cidr
  63. }
  64. return ""
  65. }
  66. func (m *NetworkCreateRequest) GetType() string {
  67. if m != nil {
  68. return m.Type
  69. }
  70. return ""
  71. }
  72. func (m *NetworkCreateRequest) GetVia() string {
  73. if m != nil {
  74. return m.Via
  75. }
  76. return ""
  77. }
  78. type NetworkListRequest struct {
  79. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  80. XXX_unrecognized []byte `json:"-"`
  81. XXX_sizecache int32 `json:"-"`
  82. }
  83. func (m *NetworkListRequest) Reset() { *m = NetworkListRequest{} }
  84. func (m *NetworkListRequest) String() string { return proto.CompactTextString(m) }
  85. func (*NetworkListRequest) ProtoMessage() {}
  86. func (*NetworkListRequest) Descriptor() ([]byte, []int) {
  87. return fileDescriptor_8571034d60397816, []int{1}
  88. }
  89. func (m *NetworkListRequest) XXX_Unmarshal(b []byte) error {
  90. return xxx_messageInfo_NetworkListRequest.Unmarshal(m, b)
  91. }
  92. func (m *NetworkListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  93. return xxx_messageInfo_NetworkListRequest.Marshal(b, m, deterministic)
  94. }
  95. func (m *NetworkListRequest) XXX_Merge(src proto.Message) {
  96. xxx_messageInfo_NetworkListRequest.Merge(m, src)
  97. }
  98. func (m *NetworkListRequest) XXX_Size() int {
  99. return xxx_messageInfo_NetworkListRequest.Size(m)
  100. }
  101. func (m *NetworkListRequest) XXX_DiscardUnknown() {
  102. xxx_messageInfo_NetworkListRequest.DiscardUnknown(m)
  103. }
  104. var xxx_messageInfo_NetworkListRequest proto.InternalMessageInfo
  105. type NetworkDeleteRequest struct {
  106. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  107. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  108. XXX_unrecognized []byte `json:"-"`
  109. XXX_sizecache int32 `json:"-"`
  110. }
  111. func (m *NetworkDeleteRequest) Reset() { *m = NetworkDeleteRequest{} }
  112. func (m *NetworkDeleteRequest) String() string { return proto.CompactTextString(m) }
  113. func (*NetworkDeleteRequest) ProtoMessage() {}
  114. func (*NetworkDeleteRequest) Descriptor() ([]byte, []int) {
  115. return fileDescriptor_8571034d60397816, []int{2}
  116. }
  117. func (m *NetworkDeleteRequest) XXX_Unmarshal(b []byte) error {
  118. return xxx_messageInfo_NetworkDeleteRequest.Unmarshal(m, b)
  119. }
  120. func (m *NetworkDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  121. return xxx_messageInfo_NetworkDeleteRequest.Marshal(b, m, deterministic)
  122. }
  123. func (m *NetworkDeleteRequest) XXX_Merge(src proto.Message) {
  124. xxx_messageInfo_NetworkDeleteRequest.Merge(m, src)
  125. }
  126. func (m *NetworkDeleteRequest) XXX_Size() int {
  127. return xxx_messageInfo_NetworkDeleteRequest.Size(m)
  128. }
  129. func (m *NetworkDeleteRequest) XXX_DiscardUnknown() {
  130. xxx_messageInfo_NetworkDeleteRequest.DiscardUnknown(m)
  131. }
  132. var xxx_messageInfo_NetworkDeleteRequest proto.InternalMessageInfo
  133. func (m *NetworkDeleteRequest) GetName() string {
  134. if m != nil {
  135. return m.Name
  136. }
  137. return ""
  138. }
  139. type NetworkGetAllTypesRequest struct {
  140. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  141. XXX_unrecognized []byte `json:"-"`
  142. XXX_sizecache int32 `json:"-"`
  143. }
  144. func (m *NetworkGetAllTypesRequest) Reset() { *m = NetworkGetAllTypesRequest{} }
  145. func (m *NetworkGetAllTypesRequest) String() string { return proto.CompactTextString(m) }
  146. func (*NetworkGetAllTypesRequest) ProtoMessage() {}
  147. func (*NetworkGetAllTypesRequest) Descriptor() ([]byte, []int) {
  148. return fileDescriptor_8571034d60397816, []int{3}
  149. }
  150. func (m *NetworkGetAllTypesRequest) XXX_Unmarshal(b []byte) error {
  151. return xxx_messageInfo_NetworkGetAllTypesRequest.Unmarshal(m, b)
  152. }
  153. func (m *NetworkGetAllTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  154. return xxx_messageInfo_NetworkGetAllTypesRequest.Marshal(b, m, deterministic)
  155. }
  156. func (m *NetworkGetAllTypesRequest) XXX_Merge(src proto.Message) {
  157. xxx_messageInfo_NetworkGetAllTypesRequest.Merge(m, src)
  158. }
  159. func (m *NetworkGetAllTypesRequest) XXX_Size() int {
  160. return xxx_messageInfo_NetworkGetAllTypesRequest.Size(m)
  161. }
  162. func (m *NetworkGetAllTypesRequest) XXX_DiscardUnknown() {
  163. xxx_messageInfo_NetworkGetAllTypesRequest.DiscardUnknown(m)
  164. }
  165. var xxx_messageInfo_NetworkGetAllTypesRequest proto.InternalMessageInfo
  166. type NetworkAssociateRequest struct {
  167. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  168. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  169. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  170. XXX_unrecognized []byte `json:"-"`
  171. XXX_sizecache int32 `json:"-"`
  172. }
  173. func (m *NetworkAssociateRequest) Reset() { *m = NetworkAssociateRequest{} }
  174. func (m *NetworkAssociateRequest) String() string { return proto.CompactTextString(m) }
  175. func (*NetworkAssociateRequest) ProtoMessage() {}
  176. func (*NetworkAssociateRequest) Descriptor() ([]byte, []int) {
  177. return fileDescriptor_8571034d60397816, []int{4}
  178. }
  179. func (m *NetworkAssociateRequest) XXX_Unmarshal(b []byte) error {
  180. return xxx_messageInfo_NetworkAssociateRequest.Unmarshal(m, b)
  181. }
  182. func (m *NetworkAssociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  183. return xxx_messageInfo_NetworkAssociateRequest.Marshal(b, m, deterministic)
  184. }
  185. func (m *NetworkAssociateRequest) XXX_Merge(src proto.Message) {
  186. xxx_messageInfo_NetworkAssociateRequest.Merge(m, src)
  187. }
  188. func (m *NetworkAssociateRequest) XXX_Size() int {
  189. return xxx_messageInfo_NetworkAssociateRequest.Size(m)
  190. }
  191. func (m *NetworkAssociateRequest) XXX_DiscardUnknown() {
  192. xxx_messageInfo_NetworkAssociateRequest.DiscardUnknown(m)
  193. }
  194. var xxx_messageInfo_NetworkAssociateRequest proto.InternalMessageInfo
  195. func (m *NetworkAssociateRequest) GetName() string {
  196. if m != nil {
  197. return m.Name
  198. }
  199. return ""
  200. }
  201. func (m *NetworkAssociateRequest) GetUsername() string {
  202. if m != nil {
  203. return m.Username
  204. }
  205. return ""
  206. }
  207. type NetworkDissociateRequest struct {
  208. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  209. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
  210. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  211. XXX_unrecognized []byte `json:"-"`
  212. XXX_sizecache int32 `json:"-"`
  213. }
  214. func (m *NetworkDissociateRequest) Reset() { *m = NetworkDissociateRequest{} }
  215. func (m *NetworkDissociateRequest) String() string { return proto.CompactTextString(m) }
  216. func (*NetworkDissociateRequest) ProtoMessage() {}
  217. func (*NetworkDissociateRequest) Descriptor() ([]byte, []int) {
  218. return fileDescriptor_8571034d60397816, []int{5}
  219. }
  220. func (m *NetworkDissociateRequest) XXX_Unmarshal(b []byte) error {
  221. return xxx_messageInfo_NetworkDissociateRequest.Unmarshal(m, b)
  222. }
  223. func (m *NetworkDissociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  224. return xxx_messageInfo_NetworkDissociateRequest.Marshal(b, m, deterministic)
  225. }
  226. func (m *NetworkDissociateRequest) XXX_Merge(src proto.Message) {
  227. xxx_messageInfo_NetworkDissociateRequest.Merge(m, src)
  228. }
  229. func (m *NetworkDissociateRequest) XXX_Size() int {
  230. return xxx_messageInfo_NetworkDissociateRequest.Size(m)
  231. }
  232. func (m *NetworkDissociateRequest) XXX_DiscardUnknown() {
  233. xxx_messageInfo_NetworkDissociateRequest.DiscardUnknown(m)
  234. }
  235. var xxx_messageInfo_NetworkDissociateRequest proto.InternalMessageInfo
  236. func (m *NetworkDissociateRequest) GetName() string {
  237. if m != nil {
  238. return m.Name
  239. }
  240. return ""
  241. }
  242. func (m *NetworkDissociateRequest) GetUsername() string {
  243. if m != nil {
  244. return m.Username
  245. }
  246. return ""
  247. }
  248. type NetworkGetAssociatedUsersRequest struct {
  249. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  250. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  251. XXX_unrecognized []byte `json:"-"`
  252. XXX_sizecache int32 `json:"-"`
  253. }
  254. func (m *NetworkGetAssociatedUsersRequest) Reset() { *m = NetworkGetAssociatedUsersRequest{} }
  255. func (m *NetworkGetAssociatedUsersRequest) String() string { return proto.CompactTextString(m) }
  256. func (*NetworkGetAssociatedUsersRequest) ProtoMessage() {}
  257. func (*NetworkGetAssociatedUsersRequest) Descriptor() ([]byte, []int) {
  258. return fileDescriptor_8571034d60397816, []int{6}
  259. }
  260. func (m *NetworkGetAssociatedUsersRequest) XXX_Unmarshal(b []byte) error {
  261. return xxx_messageInfo_NetworkGetAssociatedUsersRequest.Unmarshal(m, b)
  262. }
  263. func (m *NetworkGetAssociatedUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  264. return xxx_messageInfo_NetworkGetAssociatedUsersRequest.Marshal(b, m, deterministic)
  265. }
  266. func (m *NetworkGetAssociatedUsersRequest) XXX_Merge(src proto.Message) {
  267. xxx_messageInfo_NetworkGetAssociatedUsersRequest.Merge(m, src)
  268. }
  269. func (m *NetworkGetAssociatedUsersRequest) XXX_Size() int {
  270. return xxx_messageInfo_NetworkGetAssociatedUsersRequest.Size(m)
  271. }
  272. func (m *NetworkGetAssociatedUsersRequest) XXX_DiscardUnknown() {
  273. xxx_messageInfo_NetworkGetAssociatedUsersRequest.DiscardUnknown(m)
  274. }
  275. var xxx_messageInfo_NetworkGetAssociatedUsersRequest proto.InternalMessageInfo
  276. func (m *NetworkGetAssociatedUsersRequest) GetName() string {
  277. if m != nil {
  278. return m.Name
  279. }
  280. return ""
  281. }
  282. type Network struct {
  283. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  284. Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
  285. Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
  286. CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
  287. AssociatedUsernames []string `protobuf:"bytes,5,rep,name=associated_usernames,json=associatedUsernames,proto3" json:"associated_usernames,omitempty"`
  288. Via string `protobuf:"bytes,6,opt,name=via,proto3" json:"via,omitempty"`
  289. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  290. XXX_unrecognized []byte `json:"-"`
  291. XXX_sizecache int32 `json:"-"`
  292. }
  293. func (m *Network) Reset() { *m = Network{} }
  294. func (m *Network) String() string { return proto.CompactTextString(m) }
  295. func (*Network) ProtoMessage() {}
  296. func (*Network) Descriptor() ([]byte, []int) {
  297. return fileDescriptor_8571034d60397816, []int{7}
  298. }
  299. func (m *Network) XXX_Unmarshal(b []byte) error {
  300. return xxx_messageInfo_Network.Unmarshal(m, b)
  301. }
  302. func (m *Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  303. return xxx_messageInfo_Network.Marshal(b, m, deterministic)
  304. }
  305. func (m *Network) XXX_Merge(src proto.Message) {
  306. xxx_messageInfo_Network.Merge(m, src)
  307. }
  308. func (m *Network) XXX_Size() int {
  309. return xxx_messageInfo_Network.Size(m)
  310. }
  311. func (m *Network) XXX_DiscardUnknown() {
  312. xxx_messageInfo_Network.DiscardUnknown(m)
  313. }
  314. var xxx_messageInfo_Network proto.InternalMessageInfo
  315. func (m *Network) GetName() string {
  316. if m != nil {
  317. return m.Name
  318. }
  319. return ""
  320. }
  321. func (m *Network) GetCidr() string {
  322. if m != nil {
  323. return m.Cidr
  324. }
  325. return ""
  326. }
  327. func (m *Network) GetType() string {
  328. if m != nil {
  329. return m.Type
  330. }
  331. return ""
  332. }
  333. func (m *Network) GetCreatedAt() string {
  334. if m != nil {
  335. return m.CreatedAt
  336. }
  337. return ""
  338. }
  339. func (m *Network) GetAssociatedUsernames() []string {
  340. if m != nil {
  341. return m.AssociatedUsernames
  342. }
  343. return nil
  344. }
  345. func (m *Network) GetVia() string {
  346. if m != nil {
  347. return m.Via
  348. }
  349. return ""
  350. }
  351. type NetworkType struct {
  352. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  353. Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
  354. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  355. XXX_unrecognized []byte `json:"-"`
  356. XXX_sizecache int32 `json:"-"`
  357. }
  358. func (m *NetworkType) Reset() { *m = NetworkType{} }
  359. func (m *NetworkType) String() string { return proto.CompactTextString(m) }
  360. func (*NetworkType) ProtoMessage() {}
  361. func (*NetworkType) Descriptor() ([]byte, []int) {
  362. return fileDescriptor_8571034d60397816, []int{8}
  363. }
  364. func (m *NetworkType) XXX_Unmarshal(b []byte) error {
  365. return xxx_messageInfo_NetworkType.Unmarshal(m, b)
  366. }
  367. func (m *NetworkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  368. return xxx_messageInfo_NetworkType.Marshal(b, m, deterministic)
  369. }
  370. func (m *NetworkType) XXX_Merge(src proto.Message) {
  371. xxx_messageInfo_NetworkType.Merge(m, src)
  372. }
  373. func (m *NetworkType) XXX_Size() int {
  374. return xxx_messageInfo_NetworkType.Size(m)
  375. }
  376. func (m *NetworkType) XXX_DiscardUnknown() {
  377. xxx_messageInfo_NetworkType.DiscardUnknown(m)
  378. }
  379. var xxx_messageInfo_NetworkType proto.InternalMessageInfo
  380. func (m *NetworkType) GetType() string {
  381. if m != nil {
  382. return m.Type
  383. }
  384. return ""
  385. }
  386. func (m *NetworkType) GetDescription() string {
  387. if m != nil {
  388. return m.Description
  389. }
  390. return ""
  391. }
  392. type NetworkCreateResponse struct {
  393. Network *Network `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
  394. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  395. XXX_unrecognized []byte `json:"-"`
  396. XXX_sizecache int32 `json:"-"`
  397. }
  398. func (m *NetworkCreateResponse) Reset() { *m = NetworkCreateResponse{} }
  399. func (m *NetworkCreateResponse) String() string { return proto.CompactTextString(m) }
  400. func (*NetworkCreateResponse) ProtoMessage() {}
  401. func (*NetworkCreateResponse) Descriptor() ([]byte, []int) {
  402. return fileDescriptor_8571034d60397816, []int{9}
  403. }
  404. func (m *NetworkCreateResponse) XXX_Unmarshal(b []byte) error {
  405. return xxx_messageInfo_NetworkCreateResponse.Unmarshal(m, b)
  406. }
  407. func (m *NetworkCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  408. return xxx_messageInfo_NetworkCreateResponse.Marshal(b, m, deterministic)
  409. }
  410. func (m *NetworkCreateResponse) XXX_Merge(src proto.Message) {
  411. xxx_messageInfo_NetworkCreateResponse.Merge(m, src)
  412. }
  413. func (m *NetworkCreateResponse) XXX_Size() int {
  414. return xxx_messageInfo_NetworkCreateResponse.Size(m)
  415. }
  416. func (m *NetworkCreateResponse) XXX_DiscardUnknown() {
  417. xxx_messageInfo_NetworkCreateResponse.DiscardUnknown(m)
  418. }
  419. var xxx_messageInfo_NetworkCreateResponse proto.InternalMessageInfo
  420. func (m *NetworkCreateResponse) GetNetwork() *Network {
  421. if m != nil {
  422. return m.Network
  423. }
  424. return nil
  425. }
  426. type NetworkListResponse struct {
  427. Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
  428. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  429. XXX_unrecognized []byte `json:"-"`
  430. XXX_sizecache int32 `json:"-"`
  431. }
  432. func (m *NetworkListResponse) Reset() { *m = NetworkListResponse{} }
  433. func (m *NetworkListResponse) String() string { return proto.CompactTextString(m) }
  434. func (*NetworkListResponse) ProtoMessage() {}
  435. func (*NetworkListResponse) Descriptor() ([]byte, []int) {
  436. return fileDescriptor_8571034d60397816, []int{10}
  437. }
  438. func (m *NetworkListResponse) XXX_Unmarshal(b []byte) error {
  439. return xxx_messageInfo_NetworkListResponse.Unmarshal(m, b)
  440. }
  441. func (m *NetworkListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  442. return xxx_messageInfo_NetworkListResponse.Marshal(b, m, deterministic)
  443. }
  444. func (m *NetworkListResponse) XXX_Merge(src proto.Message) {
  445. xxx_messageInfo_NetworkListResponse.Merge(m, src)
  446. }
  447. func (m *NetworkListResponse) XXX_Size() int {
  448. return xxx_messageInfo_NetworkListResponse.Size(m)
  449. }
  450. func (m *NetworkListResponse) XXX_DiscardUnknown() {
  451. xxx_messageInfo_NetworkListResponse.DiscardUnknown(m)
  452. }
  453. var xxx_messageInfo_NetworkListResponse proto.InternalMessageInfo
  454. func (m *NetworkListResponse) GetNetworks() []*Network {
  455. if m != nil {
  456. return m.Networks
  457. }
  458. return nil
  459. }
  460. type NetworkDeleteResponse struct {
  461. Network *Network `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
  462. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  463. XXX_unrecognized []byte `json:"-"`
  464. XXX_sizecache int32 `json:"-"`
  465. }
  466. func (m *NetworkDeleteResponse) Reset() { *m = NetworkDeleteResponse{} }
  467. func (m *NetworkDeleteResponse) String() string { return proto.CompactTextString(m) }
  468. func (*NetworkDeleteResponse) ProtoMessage() {}
  469. func (*NetworkDeleteResponse) Descriptor() ([]byte, []int) {
  470. return fileDescriptor_8571034d60397816, []int{11}
  471. }
  472. func (m *NetworkDeleteResponse) XXX_Unmarshal(b []byte) error {
  473. return xxx_messageInfo_NetworkDeleteResponse.Unmarshal(m, b)
  474. }
  475. func (m *NetworkDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  476. return xxx_messageInfo_NetworkDeleteResponse.Marshal(b, m, deterministic)
  477. }
  478. func (m *NetworkDeleteResponse) XXX_Merge(src proto.Message) {
  479. xxx_messageInfo_NetworkDeleteResponse.Merge(m, src)
  480. }
  481. func (m *NetworkDeleteResponse) XXX_Size() int {
  482. return xxx_messageInfo_NetworkDeleteResponse.Size(m)
  483. }
  484. func (m *NetworkDeleteResponse) XXX_DiscardUnknown() {
  485. xxx_messageInfo_NetworkDeleteResponse.DiscardUnknown(m)
  486. }
  487. var xxx_messageInfo_NetworkDeleteResponse proto.InternalMessageInfo
  488. func (m *NetworkDeleteResponse) GetNetwork() *Network {
  489. if m != nil {
  490. return m.Network
  491. }
  492. return nil
  493. }
  494. type NetworkGetAllTypesResponse struct {
  495. Types []*NetworkType `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
  496. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  497. XXX_unrecognized []byte `json:"-"`
  498. XXX_sizecache int32 `json:"-"`
  499. }
  500. func (m *NetworkGetAllTypesResponse) Reset() { *m = NetworkGetAllTypesResponse{} }
  501. func (m *NetworkGetAllTypesResponse) String() string { return proto.CompactTextString(m) }
  502. func (*NetworkGetAllTypesResponse) ProtoMessage() {}
  503. func (*NetworkGetAllTypesResponse) Descriptor() ([]byte, []int) {
  504. return fileDescriptor_8571034d60397816, []int{12}
  505. }
  506. func (m *NetworkGetAllTypesResponse) XXX_Unmarshal(b []byte) error {
  507. return xxx_messageInfo_NetworkGetAllTypesResponse.Unmarshal(m, b)
  508. }
  509. func (m *NetworkGetAllTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  510. return xxx_messageInfo_NetworkGetAllTypesResponse.Marshal(b, m, deterministic)
  511. }
  512. func (m *NetworkGetAllTypesResponse) XXX_Merge(src proto.Message) {
  513. xxx_messageInfo_NetworkGetAllTypesResponse.Merge(m, src)
  514. }
  515. func (m *NetworkGetAllTypesResponse) XXX_Size() int {
  516. return xxx_messageInfo_NetworkGetAllTypesResponse.Size(m)
  517. }
  518. func (m *NetworkGetAllTypesResponse) XXX_DiscardUnknown() {
  519. xxx_messageInfo_NetworkGetAllTypesResponse.DiscardUnknown(m)
  520. }
  521. var xxx_messageInfo_NetworkGetAllTypesResponse proto.InternalMessageInfo
  522. func (m *NetworkGetAllTypesResponse) GetTypes() []*NetworkType {
  523. if m != nil {
  524. return m.Types
  525. }
  526. return nil
  527. }
  528. type NetworkAssociateResponse struct {
  529. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  530. XXX_unrecognized []byte `json:"-"`
  531. XXX_sizecache int32 `json:"-"`
  532. }
  533. func (m *NetworkAssociateResponse) Reset() { *m = NetworkAssociateResponse{} }
  534. func (m *NetworkAssociateResponse) String() string { return proto.CompactTextString(m) }
  535. func (*NetworkAssociateResponse) ProtoMessage() {}
  536. func (*NetworkAssociateResponse) Descriptor() ([]byte, []int) {
  537. return fileDescriptor_8571034d60397816, []int{13}
  538. }
  539. func (m *NetworkAssociateResponse) XXX_Unmarshal(b []byte) error {
  540. return xxx_messageInfo_NetworkAssociateResponse.Unmarshal(m, b)
  541. }
  542. func (m *NetworkAssociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  543. return xxx_messageInfo_NetworkAssociateResponse.Marshal(b, m, deterministic)
  544. }
  545. func (m *NetworkAssociateResponse) XXX_Merge(src proto.Message) {
  546. xxx_messageInfo_NetworkAssociateResponse.Merge(m, src)
  547. }
  548. func (m *NetworkAssociateResponse) XXX_Size() int {
  549. return xxx_messageInfo_NetworkAssociateResponse.Size(m)
  550. }
  551. func (m *NetworkAssociateResponse) XXX_DiscardUnknown() {
  552. xxx_messageInfo_NetworkAssociateResponse.DiscardUnknown(m)
  553. }
  554. var xxx_messageInfo_NetworkAssociateResponse proto.InternalMessageInfo
  555. type NetworkDissociateResponse struct {
  556. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  557. XXX_unrecognized []byte `json:"-"`
  558. XXX_sizecache int32 `json:"-"`
  559. }
  560. func (m *NetworkDissociateResponse) Reset() { *m = NetworkDissociateResponse{} }
  561. func (m *NetworkDissociateResponse) String() string { return proto.CompactTextString(m) }
  562. func (*NetworkDissociateResponse) ProtoMessage() {}
  563. func (*NetworkDissociateResponse) Descriptor() ([]byte, []int) {
  564. return fileDescriptor_8571034d60397816, []int{14}
  565. }
  566. func (m *NetworkDissociateResponse) XXX_Unmarshal(b []byte) error {
  567. return xxx_messageInfo_NetworkDissociateResponse.Unmarshal(m, b)
  568. }
  569. func (m *NetworkDissociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  570. return xxx_messageInfo_NetworkDissociateResponse.Marshal(b, m, deterministic)
  571. }
  572. func (m *NetworkDissociateResponse) XXX_Merge(src proto.Message) {
  573. xxx_messageInfo_NetworkDissociateResponse.Merge(m, src)
  574. }
  575. func (m *NetworkDissociateResponse) XXX_Size() int {
  576. return xxx_messageInfo_NetworkDissociateResponse.Size(m)
  577. }
  578. func (m *NetworkDissociateResponse) XXX_DiscardUnknown() {
  579. xxx_messageInfo_NetworkDissociateResponse.DiscardUnknown(m)
  580. }
  581. var xxx_messageInfo_NetworkDissociateResponse proto.InternalMessageInfo
  582. type NetworkGetAssociatedUsersResponse struct {
  583. Usernames []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"`
  584. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  585. XXX_unrecognized []byte `json:"-"`
  586. XXX_sizecache int32 `json:"-"`
  587. }
  588. func (m *NetworkGetAssociatedUsersResponse) Reset() { *m = NetworkGetAssociatedUsersResponse{} }
  589. func (m *NetworkGetAssociatedUsersResponse) String() string { return proto.CompactTextString(m) }
  590. func (*NetworkGetAssociatedUsersResponse) ProtoMessage() {}
  591. func (*NetworkGetAssociatedUsersResponse) Descriptor() ([]byte, []int) {
  592. return fileDescriptor_8571034d60397816, []int{15}
  593. }
  594. func (m *NetworkGetAssociatedUsersResponse) XXX_Unmarshal(b []byte) error {
  595. return xxx_messageInfo_NetworkGetAssociatedUsersResponse.Unmarshal(m, b)
  596. }
  597. func (m *NetworkGetAssociatedUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  598. return xxx_messageInfo_NetworkGetAssociatedUsersResponse.Marshal(b, m, deterministic)
  599. }
  600. func (m *NetworkGetAssociatedUsersResponse) XXX_Merge(src proto.Message) {
  601. xxx_messageInfo_NetworkGetAssociatedUsersResponse.Merge(m, src)
  602. }
  603. func (m *NetworkGetAssociatedUsersResponse) XXX_Size() int {
  604. return xxx_messageInfo_NetworkGetAssociatedUsersResponse.Size(m)
  605. }
  606. func (m *NetworkGetAssociatedUsersResponse) XXX_DiscardUnknown() {
  607. xxx_messageInfo_NetworkGetAssociatedUsersResponse.DiscardUnknown(m)
  608. }
  609. var xxx_messageInfo_NetworkGetAssociatedUsersResponse proto.InternalMessageInfo
  610. func (m *NetworkGetAssociatedUsersResponse) GetUsernames() []string {
  611. if m != nil {
  612. return m.Usernames
  613. }
  614. return nil
  615. }
  616. func init() {
  617. proto.RegisterType((*NetworkCreateRequest)(nil), "pb.NetworkCreateRequest")
  618. proto.RegisterType((*NetworkListRequest)(nil), "pb.NetworkListRequest")
  619. proto.RegisterType((*NetworkDeleteRequest)(nil), "pb.NetworkDeleteRequest")
  620. proto.RegisterType((*NetworkGetAllTypesRequest)(nil), "pb.NetworkGetAllTypesRequest")
  621. proto.RegisterType((*NetworkAssociateRequest)(nil), "pb.NetworkAssociateRequest")
  622. proto.RegisterType((*NetworkDissociateRequest)(nil), "pb.NetworkDissociateRequest")
  623. proto.RegisterType((*NetworkGetAssociatedUsersRequest)(nil), "pb.NetworkGetAssociatedUsersRequest")
  624. proto.RegisterType((*Network)(nil), "pb.Network")
  625. proto.RegisterType((*NetworkType)(nil), "pb.NetworkType")
  626. proto.RegisterType((*NetworkCreateResponse)(nil), "pb.NetworkCreateResponse")
  627. proto.RegisterType((*NetworkListResponse)(nil), "pb.NetworkListResponse")
  628. proto.RegisterType((*NetworkDeleteResponse)(nil), "pb.NetworkDeleteResponse")
  629. proto.RegisterType((*NetworkGetAllTypesResponse)(nil), "pb.NetworkGetAllTypesResponse")
  630. proto.RegisterType((*NetworkAssociateResponse)(nil), "pb.NetworkAssociateResponse")
  631. proto.RegisterType((*NetworkDissociateResponse)(nil), "pb.NetworkDissociateResponse")
  632. proto.RegisterType((*NetworkGetAssociatedUsersResponse)(nil), "pb.NetworkGetAssociatedUsersResponse")
  633. }
  634. func init() { proto.RegisterFile("network.proto", fileDescriptor_8571034d60397816) }
  635. var fileDescriptor_8571034d60397816 = []byte{
  636. // 640 bytes of a gzipped FileDescriptorProto
  637. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4d, 0x6f, 0xda, 0x40,
  638. 0x10, 0x95, 0x81, 0x90, 0x30, 0xa8, 0x1f, 0xda, 0x50, 0x62, 0x0c, 0xa4, 0x64, 0x0b, 0x6a, 0xc4,
  639. 0x01, 0x94, 0x54, 0xea, 0xa1, 0x87, 0x48, 0x88, 0x4a, 0x55, 0xab, 0xaa, 0x07, 0xda, 0x9c, 0x13,
  640. 0x83, 0x57, 0xc8, 0xaa, 0x6b, 0x3b, 0xde, 0x85, 0x2a, 0xd7, 0xde, 0xdb, 0x4b, 0x7f, 0x45, 0x7f,
  641. 0x4f, 0xff, 0x42, 0x7f, 0x48, 0xb5, 0xeb, 0xb1, 0x59, 0x9b, 0x8f, 0x28, 0xca, 0x6d, 0x99, 0x99,
  642. 0x7d, 0xef, 0x79, 0xdf, 0xd3, 0x00, 0x8f, 0x7c, 0x26, 0xbe, 0x07, 0xd1, 0xd7, 0x41, 0x18, 0x05,
  643. 0x22, 0x20, 0x85, 0x70, 0x6a, 0xb5, 0xe6, 0x41, 0x30, 0xf7, 0xd8, 0xd0, 0x0e, 0xdd, 0xa1, 0xed,
  644. 0xfb, 0x81, 0xb0, 0x85, 0x1b, 0xf8, 0x3c, 0x9e, 0xa0, 0x0e, 0xd4, 0x3e, 0xc5, 0x57, 0xc6, 0x11,
  645. 0xb3, 0x05, 0x9b, 0xb0, 0x9b, 0x05, 0xe3, 0x82, 0x10, 0x28, 0xf9, 0xf6, 0x37, 0x66, 0x1a, 0x1d,
  646. 0xe3, 0xb4, 0x32, 0x51, 0x67, 0x59, 0x9b, 0xb9, 0x4e, 0x64, 0x16, 0xe2, 0x9a, 0x3c, 0xcb, 0x9a,
  647. 0xb8, 0x0d, 0x99, 0x59, 0x8c, 0x6b, 0xf2, 0x4c, 0x9e, 0x42, 0x71, 0xe9, 0xda, 0x66, 0x49, 0x95,
  648. 0xe4, 0x91, 0xd6, 0x80, 0x20, 0xcb, 0x47, 0x97, 0x0b, 0xe4, 0xa0, 0xfd, 0x94, 0xfb, 0x2d, 0xf3,
  649. 0xd8, 0x4e, 0x6e, 0xda, 0x84, 0x06, 0xce, 0xbe, 0x63, 0x62, 0xe4, 0x79, 0x5f, 0x6e, 0x43, 0xc6,
  650. 0x13, 0xa0, 0xf7, 0x70, 0x84, 0xcd, 0x11, 0xe7, 0xc1, 0xcc, 0xbd, 0xe3, 0x3b, 0x2c, 0x38, 0x58,
  651. 0x70, 0x16, 0xa9, 0x7a, 0xfc, 0x2d, 0xe9, 0x6f, 0xfa, 0x01, 0xcc, 0x44, 0x93, 0xfb, 0x50, 0xac,
  652. 0xd7, 0xd0, 0xd1, 0x34, 0x27, 0x68, 0xce, 0x25, 0x67, 0x11, 0xdf, 0xf5, 0xad, 0x7f, 0x0c, 0xd8,
  653. 0xc7, 0x8b, 0x0f, 0xf2, 0xa1, 0x0d, 0x30, 0x53, 0xa6, 0x3a, 0x57, 0xb6, 0x40, 0x3b, 0x2a, 0x58,
  654. 0x19, 0x09, 0x72, 0x06, 0x35, 0x3b, 0x15, 0x75, 0x95, 0xa8, 0xe6, 0xe6, 0x5e, 0xa7, 0x78, 0x5a,
  655. 0x99, 0x1c, 0xda, 0x19, 0xc1, 0xaa, 0x95, 0x38, 0x5b, 0x5e, 0x39, 0x3b, 0x86, 0x2a, 0x4a, 0x95,
  656. 0x8e, 0xa4, 0x32, 0x0c, 0x4d, 0x46, 0x07, 0xaa, 0x0e, 0xe3, 0xb3, 0xc8, 0x0d, 0x65, 0xf0, 0x50,
  657. 0xb5, 0x5e, 0xa2, 0x17, 0xf0, 0x2c, 0x17, 0x42, 0x1e, 0x06, 0x3e, 0x67, 0xa4, 0x07, 0xfb, 0x18,
  658. 0x68, 0x85, 0x58, 0x3d, 0xaf, 0x0e, 0xc2, 0xe9, 0x00, 0x67, 0x27, 0x49, 0x8f, 0x5e, 0xc0, 0x61,
  659. 0x26, 0x5e, 0x78, 0xfb, 0x25, 0x1c, 0xe0, 0x04, 0x37, 0x8d, 0x4e, 0x31, 0x7f, 0x3d, 0x6d, 0x6a,
  660. 0xfc, 0x49, 0x10, 0xef, 0xc7, 0x3f, 0x06, 0x6b, 0x53, 0x38, 0x53, 0x90, 0x3d, 0xf9, 0x0e, 0x89,
  661. 0x86, 0x27, 0x1a, 0x84, 0x1c, 0x9c, 0xc4, 0x5d, 0x6a, 0xa5, 0xc9, 0xd3, 0x42, 0x1c, 0x43, 0x68,
  662. 0xe9, 0xd7, 0x53, 0x89, 0xcd, 0x11, 0x9c, 0xec, 0x88, 0x19, 0x8a, 0x68, 0x41, 0x65, 0xe5, 0xb0,
  663. 0xa1, 0x1c, 0x5e, 0x15, 0xce, 0x7f, 0x95, 0xe1, 0x31, 0x62, 0x7c, 0x66, 0xd1, 0xd2, 0x9d, 0x31,
  664. 0x72, 0x0d, 0xe5, 0xd8, 0x0c, 0x62, 0x6a, 0x82, 0x33, 0x4b, 0xc2, 0x6a, 0x6c, 0xe8, 0xa0, 0xa8,
  665. 0x93, 0x1f, 0x7f, 0xff, 0xfd, 0x2e, 0x34, 0x69, 0x5d, 0xed, 0x9d, 0xe5, 0xd9, 0x10, 0xdf, 0x6a,
  666. 0x18, 0xe7, 0xef, 0x8d, 0xd1, 0x27, 0x97, 0x50, 0x92, 0x76, 0x91, 0xba, 0x86, 0xa2, 0xad, 0x07,
  667. 0xeb, 0x68, 0xad, 0x8e, 0xd8, 0x2d, 0x85, 0x5d, 0x27, 0xb5, 0x3c, 0xb6, 0x27, 0xe1, 0xae, 0xa1,
  668. 0x1c, 0xbb, 0x98, 0x11, 0x9e, 0xd9, 0x30, 0x19, 0xe1, 0x59, 0xcb, 0xb7, 0x0b, 0x77, 0xd4, 0x9c,
  669. 0x14, 0x7e, 0x03, 0x55, 0xcd, 0x67, 0xd2, 0xd6, 0xc0, 0xd6, 0x97, 0x93, 0x75, 0xbc, 0xad, 0x8d,
  670. 0x84, 0x2f, 0x14, 0x61, 0x9b, 0x34, 0xf3, 0x84, 0x73, 0x26, 0x6c, 0xcf, 0x53, 0xe1, 0x20, 0x3f,
  671. 0x0d, 0x20, 0xeb, 0xee, 0x92, 0x6e, 0x0e, 0x7b, 0xe3, 0x8e, 0xb1, 0x7a, 0x77, 0x4c, 0xa1, 0x90,
  672. 0xbe, 0x12, 0xd2, 0x25, 0x74, 0x93, 0x90, 0xf4, 0xce, 0x42, 0x11, 0x7b, 0x50, 0x49, 0x61, 0x48,
  673. 0x53, 0xc3, 0xcf, 0x2f, 0x60, 0xab, 0xb5, 0xb9, 0x89, 0x9c, 0x5d, 0xc5, 0x79, 0x4c, 0x1b, 0x79,
  674. 0xce, 0x94, 0x50, 0x3e, 0x78, 0x08, 0xb0, 0xca, 0x3d, 0xd1, 0x11, 0xd7, 0x96, 0xb4, 0xd5, 0xde,
  675. 0xd2, 0x45, 0xc2, 0x9e, 0x22, 0x7c, 0x4e, 0xad, 0x35, 0x7b, 0x5d, 0x8d, 0x71, 0x5a, 0x56, 0xff,
  676. 0x8e, 0xaf, 0xfe, 0x07, 0x00, 0x00, 0xff, 0xff, 0xab, 0x14, 0xfe, 0x39, 0x50, 0x07, 0x00, 0x00,
  677. }
  678. // Reference imports to suppress errors if they are not otherwise used.
  679. var _ context.Context
  680. var _ grpc.ClientConn
  681. // This is a compile-time assertion to ensure that this generated file
  682. // is compatible with the grpc package it is being compiled against.
  683. const _ = grpc.SupportPackageIsVersion4
  684. // NetworkServiceClient is the client API for NetworkService service.
  685. //
  686. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  687. type NetworkServiceClient interface {
  688. Create(ctx context.Context, in *NetworkCreateRequest, opts ...grpc.CallOption) (*NetworkCreateResponse, error)
  689. List(ctx context.Context, in *NetworkListRequest, opts ...grpc.CallOption) (*NetworkListResponse, error)
  690. Delete(ctx context.Context, in *NetworkDeleteRequest, opts ...grpc.CallOption) (*NetworkDeleteResponse, error)
  691. GetAllTypes(ctx context.Context, in *NetworkGetAllTypesRequest, opts ...grpc.CallOption) (*NetworkGetAllTypesResponse, error)
  692. GetAssociatedUsers(ctx context.Context, in *NetworkGetAssociatedUsersRequest, opts ...grpc.CallOption) (*NetworkGetAssociatedUsersResponse, error)
  693. Associate(ctx context.Context, in *NetworkAssociateRequest, opts ...grpc.CallOption) (*NetworkAssociateResponse, error)
  694. Dissociate(ctx context.Context, in *NetworkDissociateRequest, opts ...grpc.CallOption) (*NetworkDissociateResponse, error)
  695. }
  696. type networkServiceClient struct {
  697. cc *grpc.ClientConn
  698. }
  699. func NewNetworkServiceClient(cc *grpc.ClientConn) NetworkServiceClient {
  700. return &networkServiceClient{cc}
  701. }
  702. func (c *networkServiceClient) Create(ctx context.Context, in *NetworkCreateRequest, opts ...grpc.CallOption) (*NetworkCreateResponse, error) {
  703. out := new(NetworkCreateResponse)
  704. err := c.cc.Invoke(ctx, "/pb.NetworkService/Create", in, out, opts...)
  705. if err != nil {
  706. return nil, err
  707. }
  708. return out, nil
  709. }
  710. func (c *networkServiceClient) List(ctx context.Context, in *NetworkListRequest, opts ...grpc.CallOption) (*NetworkListResponse, error) {
  711. out := new(NetworkListResponse)
  712. err := c.cc.Invoke(ctx, "/pb.NetworkService/List", in, out, opts...)
  713. if err != nil {
  714. return nil, err
  715. }
  716. return out, nil
  717. }
  718. func (c *networkServiceClient) Delete(ctx context.Context, in *NetworkDeleteRequest, opts ...grpc.CallOption) (*NetworkDeleteResponse, error) {
  719. out := new(NetworkDeleteResponse)
  720. err := c.cc.Invoke(ctx, "/pb.NetworkService/Delete", in, out, opts...)
  721. if err != nil {
  722. return nil, err
  723. }
  724. return out, nil
  725. }
  726. func (c *networkServiceClient) GetAllTypes(ctx context.Context, in *NetworkGetAllTypesRequest, opts ...grpc.CallOption) (*NetworkGetAllTypesResponse, error) {
  727. out := new(NetworkGetAllTypesResponse)
  728. err := c.cc.Invoke(ctx, "/pb.NetworkService/GetAllTypes", in, out, opts...)
  729. if err != nil {
  730. return nil, err
  731. }
  732. return out, nil
  733. }
  734. func (c *networkServiceClient) GetAssociatedUsers(ctx context.Context, in *NetworkGetAssociatedUsersRequest, opts ...grpc.CallOption) (*NetworkGetAssociatedUsersResponse, error) {
  735. out := new(NetworkGetAssociatedUsersResponse)
  736. err := c.cc.Invoke(ctx, "/pb.NetworkService/GetAssociatedUsers", in, out, opts...)
  737. if err != nil {
  738. return nil, err
  739. }
  740. return out, nil
  741. }
  742. func (c *networkServiceClient) Associate(ctx context.Context, in *NetworkAssociateRequest, opts ...grpc.CallOption) (*NetworkAssociateResponse, error) {
  743. out := new(NetworkAssociateResponse)
  744. err := c.cc.Invoke(ctx, "/pb.NetworkService/Associate", in, out, opts...)
  745. if err != nil {
  746. return nil, err
  747. }
  748. return out, nil
  749. }
  750. func (c *networkServiceClient) Dissociate(ctx context.Context, in *NetworkDissociateRequest, opts ...grpc.CallOption) (*NetworkDissociateResponse, error) {
  751. out := new(NetworkDissociateResponse)
  752. err := c.cc.Invoke(ctx, "/pb.NetworkService/Dissociate", in, out, opts...)
  753. if err != nil {
  754. return nil, err
  755. }
  756. return out, nil
  757. }
  758. // NetworkServiceServer is the server API for NetworkService service.
  759. type NetworkServiceServer interface {
  760. Create(context.Context, *NetworkCreateRequest) (*NetworkCreateResponse, error)
  761. List(context.Context, *NetworkListRequest) (*NetworkListResponse, error)
  762. Delete(context.Context, *NetworkDeleteRequest) (*NetworkDeleteResponse, error)
  763. GetAllTypes(context.Context, *NetworkGetAllTypesRequest) (*NetworkGetAllTypesResponse, error)
  764. GetAssociatedUsers(context.Context, *NetworkGetAssociatedUsersRequest) (*NetworkGetAssociatedUsersResponse, error)
  765. Associate(context.Context, *NetworkAssociateRequest) (*NetworkAssociateResponse, error)
  766. Dissociate(context.Context, *NetworkDissociateRequest) (*NetworkDissociateResponse, error)
  767. }
  768. // UnimplementedNetworkServiceServer can be embedded to have forward compatible implementations.
  769. type UnimplementedNetworkServiceServer struct {
  770. }
  771. func (*UnimplementedNetworkServiceServer) Create(ctx context.Context, req *NetworkCreateRequest) (*NetworkCreateResponse, error) {
  772. return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
  773. }
  774. func (*UnimplementedNetworkServiceServer) List(ctx context.Context, req *NetworkListRequest) (*NetworkListResponse, error) {
  775. return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
  776. }
  777. func (*UnimplementedNetworkServiceServer) Delete(ctx context.Context, req *NetworkDeleteRequest) (*NetworkDeleteResponse, error) {
  778. return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
  779. }
  780. func (*UnimplementedNetworkServiceServer) GetAllTypes(ctx context.Context, req *NetworkGetAllTypesRequest) (*NetworkGetAllTypesResponse, error) {
  781. return nil, status.Errorf(codes.Unimplemented, "method GetAllTypes not implemented")
  782. }
  783. func (*UnimplementedNetworkServiceServer) GetAssociatedUsers(ctx context.Context, req *NetworkGetAssociatedUsersRequest) (*NetworkGetAssociatedUsersResponse, error) {
  784. return nil, status.Errorf(codes.Unimplemented, "method GetAssociatedUsers not implemented")
  785. }
  786. func (*UnimplementedNetworkServiceServer) Associate(ctx context.Context, req *NetworkAssociateRequest) (*NetworkAssociateResponse, error) {
  787. return nil, status.Errorf(codes.Unimplemented, "method Associate not implemented")
  788. }
  789. func (*UnimplementedNetworkServiceServer) Dissociate(ctx context.Context, req *NetworkDissociateRequest) (*NetworkDissociateResponse, error) {
  790. return nil, status.Errorf(codes.Unimplemented, "method Dissociate not implemented")
  791. }
  792. func RegisterNetworkServiceServer(s *grpc.Server, srv NetworkServiceServer) {
  793. s.RegisterService(&_NetworkService_serviceDesc, srv)
  794. }
  795. func _NetworkService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  796. in := new(NetworkCreateRequest)
  797. if err := dec(in); err != nil {
  798. return nil, err
  799. }
  800. if interceptor == nil {
  801. return srv.(NetworkServiceServer).Create(ctx, in)
  802. }
  803. info := &grpc.UnaryServerInfo{
  804. Server: srv,
  805. FullMethod: "/pb.NetworkService/Create",
  806. }
  807. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  808. return srv.(NetworkServiceServer).Create(ctx, req.(*NetworkCreateRequest))
  809. }
  810. return interceptor(ctx, in, info, handler)
  811. }
  812. func _NetworkService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  813. in := new(NetworkListRequest)
  814. if err := dec(in); err != nil {
  815. return nil, err
  816. }
  817. if interceptor == nil {
  818. return srv.(NetworkServiceServer).List(ctx, in)
  819. }
  820. info := &grpc.UnaryServerInfo{
  821. Server: srv,
  822. FullMethod: "/pb.NetworkService/List",
  823. }
  824. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  825. return srv.(NetworkServiceServer).List(ctx, req.(*NetworkListRequest))
  826. }
  827. return interceptor(ctx, in, info, handler)
  828. }
  829. func _NetworkService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  830. in := new(NetworkDeleteRequest)
  831. if err := dec(in); err != nil {
  832. return nil, err
  833. }
  834. if interceptor == nil {
  835. return srv.(NetworkServiceServer).Delete(ctx, in)
  836. }
  837. info := &grpc.UnaryServerInfo{
  838. Server: srv,
  839. FullMethod: "/pb.NetworkService/Delete",
  840. }
  841. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  842. return srv.(NetworkServiceServer).Delete(ctx, req.(*NetworkDeleteRequest))
  843. }
  844. return interceptor(ctx, in, info, handler)
  845. }
  846. func _NetworkService_GetAllTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  847. in := new(NetworkGetAllTypesRequest)
  848. if err := dec(in); err != nil {
  849. return nil, err
  850. }
  851. if interceptor == nil {
  852. return srv.(NetworkServiceServer).GetAllTypes(ctx, in)
  853. }
  854. info := &grpc.UnaryServerInfo{
  855. Server: srv,
  856. FullMethod: "/pb.NetworkService/GetAllTypes",
  857. }
  858. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  859. return srv.(NetworkServiceServer).GetAllTypes(ctx, req.(*NetworkGetAllTypesRequest))
  860. }
  861. return interceptor(ctx, in, info, handler)
  862. }
  863. func _NetworkService_GetAssociatedUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  864. in := new(NetworkGetAssociatedUsersRequest)
  865. if err := dec(in); err != nil {
  866. return nil, err
  867. }
  868. if interceptor == nil {
  869. return srv.(NetworkServiceServer).GetAssociatedUsers(ctx, in)
  870. }
  871. info := &grpc.UnaryServerInfo{
  872. Server: srv,
  873. FullMethod: "/pb.NetworkService/GetAssociatedUsers",
  874. }
  875. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  876. return srv.(NetworkServiceServer).GetAssociatedUsers(ctx, req.(*NetworkGetAssociatedUsersRequest))
  877. }
  878. return interceptor(ctx, in, info, handler)
  879. }
  880. func _NetworkService_Associate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  881. in := new(NetworkAssociateRequest)
  882. if err := dec(in); err != nil {
  883. return nil, err
  884. }
  885. if interceptor == nil {
  886. return srv.(NetworkServiceServer).Associate(ctx, in)
  887. }
  888. info := &grpc.UnaryServerInfo{
  889. Server: srv,
  890. FullMethod: "/pb.NetworkService/Associate",
  891. }
  892. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  893. return srv.(NetworkServiceServer).Associate(ctx, req.(*NetworkAssociateRequest))
  894. }
  895. return interceptor(ctx, in, info, handler)
  896. }
  897. func _NetworkService_Dissociate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  898. in := new(NetworkDissociateRequest)
  899. if err := dec(in); err != nil {
  900. return nil, err
  901. }
  902. if interceptor == nil {
  903. return srv.(NetworkServiceServer).Dissociate(ctx, in)
  904. }
  905. info := &grpc.UnaryServerInfo{
  906. Server: srv,
  907. FullMethod: "/pb.NetworkService/Dissociate",
  908. }
  909. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  910. return srv.(NetworkServiceServer).Dissociate(ctx, req.(*NetworkDissociateRequest))
  911. }
  912. return interceptor(ctx, in, info, handler)
  913. }
  914. var _NetworkService_serviceDesc = grpc.ServiceDesc{
  915. ServiceName: "pb.NetworkService",
  916. HandlerType: (*NetworkServiceServer)(nil),
  917. Methods: []grpc.MethodDesc{
  918. {
  919. MethodName: "Create",
  920. Handler: _NetworkService_Create_Handler,
  921. },
  922. {
  923. MethodName: "List",
  924. Handler: _NetworkService_List_Handler,
  925. },
  926. {
  927. MethodName: "Delete",
  928. Handler: _NetworkService_Delete_Handler,
  929. },
  930. {
  931. MethodName: "GetAllTypes",
  932. Handler: _NetworkService_GetAllTypes_Handler,
  933. },
  934. {
  935. MethodName: "GetAssociatedUsers",
  936. Handler: _NetworkService_GetAssociatedUsers_Handler,
  937. },
  938. {
  939. MethodName: "Associate",
  940. Handler: _NetworkService_Associate_Handler,
  941. },
  942. {
  943. MethodName: "Dissociate",
  944. Handler: _NetworkService_Dissociate_Handler,
  945. },
  946. },
  947. Streams: []grpc.StreamDesc{},
  948. Metadata: "network.proto",
  949. }