| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: network.proto
- package pb
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- _ "google.golang.org/genproto/googleapis/api/annotations"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- type NetworkCreateRequest struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
- Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
- Via string `protobuf:"bytes,4,opt,name=via,proto3" json:"via,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkCreateRequest) Reset() { *m = NetworkCreateRequest{} }
- func (m *NetworkCreateRequest) String() string { return proto.CompactTextString(m) }
- func (*NetworkCreateRequest) ProtoMessage() {}
- func (*NetworkCreateRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{0}
- }
- func (m *NetworkCreateRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkCreateRequest.Unmarshal(m, b)
- }
- func (m *NetworkCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkCreateRequest.Marshal(b, m, deterministic)
- }
- func (m *NetworkCreateRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkCreateRequest.Merge(m, src)
- }
- func (m *NetworkCreateRequest) XXX_Size() int {
- return xxx_messageInfo_NetworkCreateRequest.Size(m)
- }
- func (m *NetworkCreateRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkCreateRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkCreateRequest proto.InternalMessageInfo
- func (m *NetworkCreateRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *NetworkCreateRequest) GetCidr() string {
- if m != nil {
- return m.Cidr
- }
- return ""
- }
- func (m *NetworkCreateRequest) GetType() string {
- if m != nil {
- return m.Type
- }
- return ""
- }
- func (m *NetworkCreateRequest) GetVia() string {
- if m != nil {
- return m.Via
- }
- return ""
- }
- type NetworkListRequest struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkListRequest) Reset() { *m = NetworkListRequest{} }
- func (m *NetworkListRequest) String() string { return proto.CompactTextString(m) }
- func (*NetworkListRequest) ProtoMessage() {}
- func (*NetworkListRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{1}
- }
- func (m *NetworkListRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkListRequest.Unmarshal(m, b)
- }
- func (m *NetworkListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkListRequest.Marshal(b, m, deterministic)
- }
- func (m *NetworkListRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkListRequest.Merge(m, src)
- }
- func (m *NetworkListRequest) XXX_Size() int {
- return xxx_messageInfo_NetworkListRequest.Size(m)
- }
- func (m *NetworkListRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkListRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkListRequest proto.InternalMessageInfo
- type NetworkDeleteRequest struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkDeleteRequest) Reset() { *m = NetworkDeleteRequest{} }
- func (m *NetworkDeleteRequest) String() string { return proto.CompactTextString(m) }
- func (*NetworkDeleteRequest) ProtoMessage() {}
- func (*NetworkDeleteRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{2}
- }
- func (m *NetworkDeleteRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkDeleteRequest.Unmarshal(m, b)
- }
- func (m *NetworkDeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkDeleteRequest.Marshal(b, m, deterministic)
- }
- func (m *NetworkDeleteRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkDeleteRequest.Merge(m, src)
- }
- func (m *NetworkDeleteRequest) XXX_Size() int {
- return xxx_messageInfo_NetworkDeleteRequest.Size(m)
- }
- func (m *NetworkDeleteRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkDeleteRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkDeleteRequest proto.InternalMessageInfo
- func (m *NetworkDeleteRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- type NetworkGetAllTypesRequest struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkGetAllTypesRequest) Reset() { *m = NetworkGetAllTypesRequest{} }
- func (m *NetworkGetAllTypesRequest) String() string { return proto.CompactTextString(m) }
- func (*NetworkGetAllTypesRequest) ProtoMessage() {}
- func (*NetworkGetAllTypesRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{3}
- }
- func (m *NetworkGetAllTypesRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkGetAllTypesRequest.Unmarshal(m, b)
- }
- func (m *NetworkGetAllTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkGetAllTypesRequest.Marshal(b, m, deterministic)
- }
- func (m *NetworkGetAllTypesRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkGetAllTypesRequest.Merge(m, src)
- }
- func (m *NetworkGetAllTypesRequest) XXX_Size() int {
- return xxx_messageInfo_NetworkGetAllTypesRequest.Size(m)
- }
- func (m *NetworkGetAllTypesRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkGetAllTypesRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkGetAllTypesRequest proto.InternalMessageInfo
- type NetworkAssociateRequest struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkAssociateRequest) Reset() { *m = NetworkAssociateRequest{} }
- func (m *NetworkAssociateRequest) String() string { return proto.CompactTextString(m) }
- func (*NetworkAssociateRequest) ProtoMessage() {}
- func (*NetworkAssociateRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{4}
- }
- func (m *NetworkAssociateRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkAssociateRequest.Unmarshal(m, b)
- }
- func (m *NetworkAssociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkAssociateRequest.Marshal(b, m, deterministic)
- }
- func (m *NetworkAssociateRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkAssociateRequest.Merge(m, src)
- }
- func (m *NetworkAssociateRequest) XXX_Size() int {
- return xxx_messageInfo_NetworkAssociateRequest.Size(m)
- }
- func (m *NetworkAssociateRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkAssociateRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkAssociateRequest proto.InternalMessageInfo
- func (m *NetworkAssociateRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *NetworkAssociateRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type NetworkDissociateRequest struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkDissociateRequest) Reset() { *m = NetworkDissociateRequest{} }
- func (m *NetworkDissociateRequest) String() string { return proto.CompactTextString(m) }
- func (*NetworkDissociateRequest) ProtoMessage() {}
- func (*NetworkDissociateRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{5}
- }
- func (m *NetworkDissociateRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkDissociateRequest.Unmarshal(m, b)
- }
- func (m *NetworkDissociateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkDissociateRequest.Marshal(b, m, deterministic)
- }
- func (m *NetworkDissociateRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkDissociateRequest.Merge(m, src)
- }
- func (m *NetworkDissociateRequest) XXX_Size() int {
- return xxx_messageInfo_NetworkDissociateRequest.Size(m)
- }
- func (m *NetworkDissociateRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkDissociateRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkDissociateRequest proto.InternalMessageInfo
- func (m *NetworkDissociateRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *NetworkDissociateRequest) GetUsername() string {
- if m != nil {
- return m.Username
- }
- return ""
- }
- type NetworkGetAssociatedUsersRequest struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkGetAssociatedUsersRequest) Reset() { *m = NetworkGetAssociatedUsersRequest{} }
- func (m *NetworkGetAssociatedUsersRequest) String() string { return proto.CompactTextString(m) }
- func (*NetworkGetAssociatedUsersRequest) ProtoMessage() {}
- func (*NetworkGetAssociatedUsersRequest) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{6}
- }
- func (m *NetworkGetAssociatedUsersRequest) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkGetAssociatedUsersRequest.Unmarshal(m, b)
- }
- func (m *NetworkGetAssociatedUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkGetAssociatedUsersRequest.Marshal(b, m, deterministic)
- }
- func (m *NetworkGetAssociatedUsersRequest) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkGetAssociatedUsersRequest.Merge(m, src)
- }
- func (m *NetworkGetAssociatedUsersRequest) XXX_Size() int {
- return xxx_messageInfo_NetworkGetAssociatedUsersRequest.Size(m)
- }
- func (m *NetworkGetAssociatedUsersRequest) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkGetAssociatedUsersRequest.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkGetAssociatedUsersRequest proto.InternalMessageInfo
- func (m *NetworkGetAssociatedUsersRequest) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- type Network struct {
- Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"`
- Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
- CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
- AssociatedUsernames []string `protobuf:"bytes,5,rep,name=associated_usernames,json=associatedUsernames,proto3" json:"associated_usernames,omitempty"`
- Via string `protobuf:"bytes,6,opt,name=via,proto3" json:"via,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Network) Reset() { *m = Network{} }
- func (m *Network) String() string { return proto.CompactTextString(m) }
- func (*Network) ProtoMessage() {}
- func (*Network) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{7}
- }
- func (m *Network) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Network.Unmarshal(m, b)
- }
- func (m *Network) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Network.Marshal(b, m, deterministic)
- }
- func (m *Network) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Network.Merge(m, src)
- }
- func (m *Network) XXX_Size() int {
- return xxx_messageInfo_Network.Size(m)
- }
- func (m *Network) XXX_DiscardUnknown() {
- xxx_messageInfo_Network.DiscardUnknown(m)
- }
- var xxx_messageInfo_Network proto.InternalMessageInfo
- func (m *Network) GetName() string {
- if m != nil {
- return m.Name
- }
- return ""
- }
- func (m *Network) GetCidr() string {
- if m != nil {
- return m.Cidr
- }
- return ""
- }
- func (m *Network) GetType() string {
- if m != nil {
- return m.Type
- }
- return ""
- }
- func (m *Network) GetCreatedAt() string {
- if m != nil {
- return m.CreatedAt
- }
- return ""
- }
- func (m *Network) GetAssociatedUsernames() []string {
- if m != nil {
- return m.AssociatedUsernames
- }
- return nil
- }
- func (m *Network) GetVia() string {
- if m != nil {
- return m.Via
- }
- return ""
- }
- type NetworkType struct {
- Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
- Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkType) Reset() { *m = NetworkType{} }
- func (m *NetworkType) String() string { return proto.CompactTextString(m) }
- func (*NetworkType) ProtoMessage() {}
- func (*NetworkType) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{8}
- }
- func (m *NetworkType) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkType.Unmarshal(m, b)
- }
- func (m *NetworkType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkType.Marshal(b, m, deterministic)
- }
- func (m *NetworkType) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkType.Merge(m, src)
- }
- func (m *NetworkType) XXX_Size() int {
- return xxx_messageInfo_NetworkType.Size(m)
- }
- func (m *NetworkType) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkType.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkType proto.InternalMessageInfo
- func (m *NetworkType) GetType() string {
- if m != nil {
- return m.Type
- }
- return ""
- }
- func (m *NetworkType) GetDescription() string {
- if m != nil {
- return m.Description
- }
- return ""
- }
- type NetworkCreateResponse struct {
- Network *Network `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkCreateResponse) Reset() { *m = NetworkCreateResponse{} }
- func (m *NetworkCreateResponse) String() string { return proto.CompactTextString(m) }
- func (*NetworkCreateResponse) ProtoMessage() {}
- func (*NetworkCreateResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{9}
- }
- func (m *NetworkCreateResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkCreateResponse.Unmarshal(m, b)
- }
- func (m *NetworkCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkCreateResponse.Marshal(b, m, deterministic)
- }
- func (m *NetworkCreateResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkCreateResponse.Merge(m, src)
- }
- func (m *NetworkCreateResponse) XXX_Size() int {
- return xxx_messageInfo_NetworkCreateResponse.Size(m)
- }
- func (m *NetworkCreateResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkCreateResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkCreateResponse proto.InternalMessageInfo
- func (m *NetworkCreateResponse) GetNetwork() *Network {
- if m != nil {
- return m.Network
- }
- return nil
- }
- type NetworkListResponse struct {
- Networks []*Network `protobuf:"bytes,1,rep,name=networks,proto3" json:"networks,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkListResponse) Reset() { *m = NetworkListResponse{} }
- func (m *NetworkListResponse) String() string { return proto.CompactTextString(m) }
- func (*NetworkListResponse) ProtoMessage() {}
- func (*NetworkListResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{10}
- }
- func (m *NetworkListResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkListResponse.Unmarshal(m, b)
- }
- func (m *NetworkListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkListResponse.Marshal(b, m, deterministic)
- }
- func (m *NetworkListResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkListResponse.Merge(m, src)
- }
- func (m *NetworkListResponse) XXX_Size() int {
- return xxx_messageInfo_NetworkListResponse.Size(m)
- }
- func (m *NetworkListResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkListResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkListResponse proto.InternalMessageInfo
- func (m *NetworkListResponse) GetNetworks() []*Network {
- if m != nil {
- return m.Networks
- }
- return nil
- }
- type NetworkDeleteResponse struct {
- Network *Network `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkDeleteResponse) Reset() { *m = NetworkDeleteResponse{} }
- func (m *NetworkDeleteResponse) String() string { return proto.CompactTextString(m) }
- func (*NetworkDeleteResponse) ProtoMessage() {}
- func (*NetworkDeleteResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{11}
- }
- func (m *NetworkDeleteResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkDeleteResponse.Unmarshal(m, b)
- }
- func (m *NetworkDeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkDeleteResponse.Marshal(b, m, deterministic)
- }
- func (m *NetworkDeleteResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkDeleteResponse.Merge(m, src)
- }
- func (m *NetworkDeleteResponse) XXX_Size() int {
- return xxx_messageInfo_NetworkDeleteResponse.Size(m)
- }
- func (m *NetworkDeleteResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkDeleteResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkDeleteResponse proto.InternalMessageInfo
- func (m *NetworkDeleteResponse) GetNetwork() *Network {
- if m != nil {
- return m.Network
- }
- return nil
- }
- type NetworkGetAllTypesResponse struct {
- Types []*NetworkType `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkGetAllTypesResponse) Reset() { *m = NetworkGetAllTypesResponse{} }
- func (m *NetworkGetAllTypesResponse) String() string { return proto.CompactTextString(m) }
- func (*NetworkGetAllTypesResponse) ProtoMessage() {}
- func (*NetworkGetAllTypesResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{12}
- }
- func (m *NetworkGetAllTypesResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkGetAllTypesResponse.Unmarshal(m, b)
- }
- func (m *NetworkGetAllTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkGetAllTypesResponse.Marshal(b, m, deterministic)
- }
- func (m *NetworkGetAllTypesResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkGetAllTypesResponse.Merge(m, src)
- }
- func (m *NetworkGetAllTypesResponse) XXX_Size() int {
- return xxx_messageInfo_NetworkGetAllTypesResponse.Size(m)
- }
- func (m *NetworkGetAllTypesResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkGetAllTypesResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkGetAllTypesResponse proto.InternalMessageInfo
- func (m *NetworkGetAllTypesResponse) GetTypes() []*NetworkType {
- if m != nil {
- return m.Types
- }
- return nil
- }
- type NetworkAssociateResponse struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkAssociateResponse) Reset() { *m = NetworkAssociateResponse{} }
- func (m *NetworkAssociateResponse) String() string { return proto.CompactTextString(m) }
- func (*NetworkAssociateResponse) ProtoMessage() {}
- func (*NetworkAssociateResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{13}
- }
- func (m *NetworkAssociateResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkAssociateResponse.Unmarshal(m, b)
- }
- func (m *NetworkAssociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkAssociateResponse.Marshal(b, m, deterministic)
- }
- func (m *NetworkAssociateResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkAssociateResponse.Merge(m, src)
- }
- func (m *NetworkAssociateResponse) XXX_Size() int {
- return xxx_messageInfo_NetworkAssociateResponse.Size(m)
- }
- func (m *NetworkAssociateResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkAssociateResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkAssociateResponse proto.InternalMessageInfo
- type NetworkDissociateResponse struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkDissociateResponse) Reset() { *m = NetworkDissociateResponse{} }
- func (m *NetworkDissociateResponse) String() string { return proto.CompactTextString(m) }
- func (*NetworkDissociateResponse) ProtoMessage() {}
- func (*NetworkDissociateResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{14}
- }
- func (m *NetworkDissociateResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkDissociateResponse.Unmarshal(m, b)
- }
- func (m *NetworkDissociateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkDissociateResponse.Marshal(b, m, deterministic)
- }
- func (m *NetworkDissociateResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkDissociateResponse.Merge(m, src)
- }
- func (m *NetworkDissociateResponse) XXX_Size() int {
- return xxx_messageInfo_NetworkDissociateResponse.Size(m)
- }
- func (m *NetworkDissociateResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkDissociateResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkDissociateResponse proto.InternalMessageInfo
- type NetworkGetAssociatedUsersResponse struct {
- Usernames []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *NetworkGetAssociatedUsersResponse) Reset() { *m = NetworkGetAssociatedUsersResponse{} }
- func (m *NetworkGetAssociatedUsersResponse) String() string { return proto.CompactTextString(m) }
- func (*NetworkGetAssociatedUsersResponse) ProtoMessage() {}
- func (*NetworkGetAssociatedUsersResponse) Descriptor() ([]byte, []int) {
- return fileDescriptor_8571034d60397816, []int{15}
- }
- func (m *NetworkGetAssociatedUsersResponse) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_NetworkGetAssociatedUsersResponse.Unmarshal(m, b)
- }
- func (m *NetworkGetAssociatedUsersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_NetworkGetAssociatedUsersResponse.Marshal(b, m, deterministic)
- }
- func (m *NetworkGetAssociatedUsersResponse) XXX_Merge(src proto.Message) {
- xxx_messageInfo_NetworkGetAssociatedUsersResponse.Merge(m, src)
- }
- func (m *NetworkGetAssociatedUsersResponse) XXX_Size() int {
- return xxx_messageInfo_NetworkGetAssociatedUsersResponse.Size(m)
- }
- func (m *NetworkGetAssociatedUsersResponse) XXX_DiscardUnknown() {
- xxx_messageInfo_NetworkGetAssociatedUsersResponse.DiscardUnknown(m)
- }
- var xxx_messageInfo_NetworkGetAssociatedUsersResponse proto.InternalMessageInfo
- func (m *NetworkGetAssociatedUsersResponse) GetUsernames() []string {
- if m != nil {
- return m.Usernames
- }
- return nil
- }
- func init() {
- proto.RegisterType((*NetworkCreateRequest)(nil), "pb.NetworkCreateRequest")
- proto.RegisterType((*NetworkListRequest)(nil), "pb.NetworkListRequest")
- proto.RegisterType((*NetworkDeleteRequest)(nil), "pb.NetworkDeleteRequest")
- proto.RegisterType((*NetworkGetAllTypesRequest)(nil), "pb.NetworkGetAllTypesRequest")
- proto.RegisterType((*NetworkAssociateRequest)(nil), "pb.NetworkAssociateRequest")
- proto.RegisterType((*NetworkDissociateRequest)(nil), "pb.NetworkDissociateRequest")
- proto.RegisterType((*NetworkGetAssociatedUsersRequest)(nil), "pb.NetworkGetAssociatedUsersRequest")
- proto.RegisterType((*Network)(nil), "pb.Network")
- proto.RegisterType((*NetworkType)(nil), "pb.NetworkType")
- proto.RegisterType((*NetworkCreateResponse)(nil), "pb.NetworkCreateResponse")
- proto.RegisterType((*NetworkListResponse)(nil), "pb.NetworkListResponse")
- proto.RegisterType((*NetworkDeleteResponse)(nil), "pb.NetworkDeleteResponse")
- proto.RegisterType((*NetworkGetAllTypesResponse)(nil), "pb.NetworkGetAllTypesResponse")
- proto.RegisterType((*NetworkAssociateResponse)(nil), "pb.NetworkAssociateResponse")
- proto.RegisterType((*NetworkDissociateResponse)(nil), "pb.NetworkDissociateResponse")
- proto.RegisterType((*NetworkGetAssociatedUsersResponse)(nil), "pb.NetworkGetAssociatedUsersResponse")
- }
- func init() { proto.RegisterFile("network.proto", fileDescriptor_8571034d60397816) }
- var fileDescriptor_8571034d60397816 = []byte{
- // 640 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x4d, 0x6f, 0xda, 0x40,
- 0x10, 0x95, 0x81, 0x90, 0x30, 0xa8, 0x1f, 0xda, 0x50, 0x62, 0x0c, 0xa4, 0x64, 0x0b, 0x6a, 0xc4,
- 0x01, 0x94, 0x54, 0xea, 0xa1, 0x87, 0x48, 0x88, 0x4a, 0x55, 0xab, 0xaa, 0x07, 0xda, 0x9c, 0x13,
- 0x83, 0x57, 0xc8, 0xaa, 0x6b, 0x3b, 0xde, 0x85, 0x2a, 0xd7, 0xde, 0xdb, 0x4b, 0x7f, 0x45, 0x7f,
- 0x4f, 0xff, 0x42, 0x7f, 0x48, 0xb5, 0xeb, 0xb1, 0x59, 0x9b, 0x8f, 0x28, 0xca, 0x6d, 0x99, 0x99,
- 0x7d, 0xef, 0x79, 0xdf, 0xd3, 0x00, 0x8f, 0x7c, 0x26, 0xbe, 0x07, 0xd1, 0xd7, 0x41, 0x18, 0x05,
- 0x22, 0x20, 0x85, 0x70, 0x6a, 0xb5, 0xe6, 0x41, 0x30, 0xf7, 0xd8, 0xd0, 0x0e, 0xdd, 0xa1, 0xed,
- 0xfb, 0x81, 0xb0, 0x85, 0x1b, 0xf8, 0x3c, 0x9e, 0xa0, 0x0e, 0xd4, 0x3e, 0xc5, 0x57, 0xc6, 0x11,
- 0xb3, 0x05, 0x9b, 0xb0, 0x9b, 0x05, 0xe3, 0x82, 0x10, 0x28, 0xf9, 0xf6, 0x37, 0x66, 0x1a, 0x1d,
- 0xe3, 0xb4, 0x32, 0x51, 0x67, 0x59, 0x9b, 0xb9, 0x4e, 0x64, 0x16, 0xe2, 0x9a, 0x3c, 0xcb, 0x9a,
- 0xb8, 0x0d, 0x99, 0x59, 0x8c, 0x6b, 0xf2, 0x4c, 0x9e, 0x42, 0x71, 0xe9, 0xda, 0x66, 0x49, 0x95,
- 0xe4, 0x91, 0xd6, 0x80, 0x20, 0xcb, 0x47, 0x97, 0x0b, 0xe4, 0xa0, 0xfd, 0x94, 0xfb, 0x2d, 0xf3,
- 0xd8, 0x4e, 0x6e, 0xda, 0x84, 0x06, 0xce, 0xbe, 0x63, 0x62, 0xe4, 0x79, 0x5f, 0x6e, 0x43, 0xc6,
- 0x13, 0xa0, 0xf7, 0x70, 0x84, 0xcd, 0x11, 0xe7, 0xc1, 0xcc, 0xbd, 0xe3, 0x3b, 0x2c, 0x38, 0x58,
- 0x70, 0x16, 0xa9, 0x7a, 0xfc, 0x2d, 0xe9, 0x6f, 0xfa, 0x01, 0xcc, 0x44, 0x93, 0xfb, 0x50, 0xac,
- 0xd7, 0xd0, 0xd1, 0x34, 0x27, 0x68, 0xce, 0x25, 0x67, 0x11, 0xdf, 0xf5, 0xad, 0x7f, 0x0c, 0xd8,
- 0xc7, 0x8b, 0x0f, 0xf2, 0xa1, 0x0d, 0x30, 0x53, 0xa6, 0x3a, 0x57, 0xb6, 0x40, 0x3b, 0x2a, 0x58,
- 0x19, 0x09, 0x72, 0x06, 0x35, 0x3b, 0x15, 0x75, 0x95, 0xa8, 0xe6, 0xe6, 0x5e, 0xa7, 0x78, 0x5a,
- 0x99, 0x1c, 0xda, 0x19, 0xc1, 0xaa, 0x95, 0x38, 0x5b, 0x5e, 0x39, 0x3b, 0x86, 0x2a, 0x4a, 0x95,
- 0x8e, 0xa4, 0x32, 0x0c, 0x4d, 0x46, 0x07, 0xaa, 0x0e, 0xe3, 0xb3, 0xc8, 0x0d, 0x65, 0xf0, 0x50,
- 0xb5, 0x5e, 0xa2, 0x17, 0xf0, 0x2c, 0x17, 0x42, 0x1e, 0x06, 0x3e, 0x67, 0xa4, 0x07, 0xfb, 0x18,
- 0x68, 0x85, 0x58, 0x3d, 0xaf, 0x0e, 0xc2, 0xe9, 0x00, 0x67, 0x27, 0x49, 0x8f, 0x5e, 0xc0, 0x61,
- 0x26, 0x5e, 0x78, 0xfb, 0x25, 0x1c, 0xe0, 0x04, 0x37, 0x8d, 0x4e, 0x31, 0x7f, 0x3d, 0x6d, 0x6a,
- 0xfc, 0x49, 0x10, 0xef, 0xc7, 0x3f, 0x06, 0x6b, 0x53, 0x38, 0x53, 0x90, 0x3d, 0xf9, 0x0e, 0x89,
- 0x86, 0x27, 0x1a, 0x84, 0x1c, 0x9c, 0xc4, 0x5d, 0x6a, 0xa5, 0xc9, 0xd3, 0x42, 0x1c, 0x43, 0x68,
- 0xe9, 0xd7, 0x53, 0x89, 0xcd, 0x11, 0x9c, 0xec, 0x88, 0x19, 0x8a, 0x68, 0x41, 0x65, 0xe5, 0xb0,
- 0xa1, 0x1c, 0x5e, 0x15, 0xce, 0x7f, 0x95, 0xe1, 0x31, 0x62, 0x7c, 0x66, 0xd1, 0xd2, 0x9d, 0x31,
- 0x72, 0x0d, 0xe5, 0xd8, 0x0c, 0x62, 0x6a, 0x82, 0x33, 0x4b, 0xc2, 0x6a, 0x6c, 0xe8, 0xa0, 0xa8,
- 0x93, 0x1f, 0x7f, 0xff, 0xfd, 0x2e, 0x34, 0x69, 0x5d, 0xed, 0x9d, 0xe5, 0xd9, 0x10, 0xdf, 0x6a,
- 0x18, 0xe7, 0xef, 0x8d, 0xd1, 0x27, 0x97, 0x50, 0x92, 0x76, 0x91, 0xba, 0x86, 0xa2, 0xad, 0x07,
- 0xeb, 0x68, 0xad, 0x8e, 0xd8, 0x2d, 0x85, 0x5d, 0x27, 0xb5, 0x3c, 0xb6, 0x27, 0xe1, 0xae, 0xa1,
- 0x1c, 0xbb, 0x98, 0x11, 0x9e, 0xd9, 0x30, 0x19, 0xe1, 0x59, 0xcb, 0xb7, 0x0b, 0x77, 0xd4, 0x9c,
- 0x14, 0x7e, 0x03, 0x55, 0xcd, 0x67, 0xd2, 0xd6, 0xc0, 0xd6, 0x97, 0x93, 0x75, 0xbc, 0xad, 0x8d,
- 0x84, 0x2f, 0x14, 0x61, 0x9b, 0x34, 0xf3, 0x84, 0x73, 0x26, 0x6c, 0xcf, 0x53, 0xe1, 0x20, 0x3f,
- 0x0d, 0x20, 0xeb, 0xee, 0x92, 0x6e, 0x0e, 0x7b, 0xe3, 0x8e, 0xb1, 0x7a, 0x77, 0x4c, 0xa1, 0x90,
- 0xbe, 0x12, 0xd2, 0x25, 0x74, 0x93, 0x90, 0xf4, 0xce, 0x42, 0x11, 0x7b, 0x50, 0x49, 0x61, 0x48,
- 0x53, 0xc3, 0xcf, 0x2f, 0x60, 0xab, 0xb5, 0xb9, 0x89, 0x9c, 0x5d, 0xc5, 0x79, 0x4c, 0x1b, 0x79,
- 0xce, 0x94, 0x50, 0x3e, 0x78, 0x08, 0xb0, 0xca, 0x3d, 0xd1, 0x11, 0xd7, 0x96, 0xb4, 0xd5, 0xde,
- 0xd2, 0x45, 0xc2, 0x9e, 0x22, 0x7c, 0x4e, 0xad, 0x35, 0x7b, 0x5d, 0x8d, 0x71, 0x5a, 0x56, 0xff,
- 0x8e, 0xaf, 0xfe, 0x07, 0x00, 0x00, 0xff, 0xff, 0xab, 0x14, 0xfe, 0x39, 0x50, 0x07, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
- // NetworkServiceClient is the client API for NetworkService service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type NetworkServiceClient interface {
- Create(ctx context.Context, in *NetworkCreateRequest, opts ...grpc.CallOption) (*NetworkCreateResponse, error)
- List(ctx context.Context, in *NetworkListRequest, opts ...grpc.CallOption) (*NetworkListResponse, error)
- Delete(ctx context.Context, in *NetworkDeleteRequest, opts ...grpc.CallOption) (*NetworkDeleteResponse, error)
- GetAllTypes(ctx context.Context, in *NetworkGetAllTypesRequest, opts ...grpc.CallOption) (*NetworkGetAllTypesResponse, error)
- GetAssociatedUsers(ctx context.Context, in *NetworkGetAssociatedUsersRequest, opts ...grpc.CallOption) (*NetworkGetAssociatedUsersResponse, error)
- Associate(ctx context.Context, in *NetworkAssociateRequest, opts ...grpc.CallOption) (*NetworkAssociateResponse, error)
- Dissociate(ctx context.Context, in *NetworkDissociateRequest, opts ...grpc.CallOption) (*NetworkDissociateResponse, error)
- }
- type networkServiceClient struct {
- cc *grpc.ClientConn
- }
- func NewNetworkServiceClient(cc *grpc.ClientConn) NetworkServiceClient {
- return &networkServiceClient{cc}
- }
- func (c *networkServiceClient) Create(ctx context.Context, in *NetworkCreateRequest, opts ...grpc.CallOption) (*NetworkCreateResponse, error) {
- out := new(NetworkCreateResponse)
- err := c.cc.Invoke(ctx, "/pb.NetworkService/Create", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *networkServiceClient) List(ctx context.Context, in *NetworkListRequest, opts ...grpc.CallOption) (*NetworkListResponse, error) {
- out := new(NetworkListResponse)
- err := c.cc.Invoke(ctx, "/pb.NetworkService/List", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *networkServiceClient) Delete(ctx context.Context, in *NetworkDeleteRequest, opts ...grpc.CallOption) (*NetworkDeleteResponse, error) {
- out := new(NetworkDeleteResponse)
- err := c.cc.Invoke(ctx, "/pb.NetworkService/Delete", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *networkServiceClient) GetAllTypes(ctx context.Context, in *NetworkGetAllTypesRequest, opts ...grpc.CallOption) (*NetworkGetAllTypesResponse, error) {
- out := new(NetworkGetAllTypesResponse)
- err := c.cc.Invoke(ctx, "/pb.NetworkService/GetAllTypes", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *networkServiceClient) GetAssociatedUsers(ctx context.Context, in *NetworkGetAssociatedUsersRequest, opts ...grpc.CallOption) (*NetworkGetAssociatedUsersResponse, error) {
- out := new(NetworkGetAssociatedUsersResponse)
- err := c.cc.Invoke(ctx, "/pb.NetworkService/GetAssociatedUsers", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *networkServiceClient) Associate(ctx context.Context, in *NetworkAssociateRequest, opts ...grpc.CallOption) (*NetworkAssociateResponse, error) {
- out := new(NetworkAssociateResponse)
- err := c.cc.Invoke(ctx, "/pb.NetworkService/Associate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *networkServiceClient) Dissociate(ctx context.Context, in *NetworkDissociateRequest, opts ...grpc.CallOption) (*NetworkDissociateResponse, error) {
- out := new(NetworkDissociateResponse)
- err := c.cc.Invoke(ctx, "/pb.NetworkService/Dissociate", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // NetworkServiceServer is the server API for NetworkService service.
- type NetworkServiceServer interface {
- Create(context.Context, *NetworkCreateRequest) (*NetworkCreateResponse, error)
- List(context.Context, *NetworkListRequest) (*NetworkListResponse, error)
- Delete(context.Context, *NetworkDeleteRequest) (*NetworkDeleteResponse, error)
- GetAllTypes(context.Context, *NetworkGetAllTypesRequest) (*NetworkGetAllTypesResponse, error)
- GetAssociatedUsers(context.Context, *NetworkGetAssociatedUsersRequest) (*NetworkGetAssociatedUsersResponse, error)
- Associate(context.Context, *NetworkAssociateRequest) (*NetworkAssociateResponse, error)
- Dissociate(context.Context, *NetworkDissociateRequest) (*NetworkDissociateResponse, error)
- }
- // UnimplementedNetworkServiceServer can be embedded to have forward compatible implementations.
- type UnimplementedNetworkServiceServer struct {
- }
- func (*UnimplementedNetworkServiceServer) Create(ctx context.Context, req *NetworkCreateRequest) (*NetworkCreateResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
- }
- func (*UnimplementedNetworkServiceServer) List(ctx context.Context, req *NetworkListRequest) (*NetworkListResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
- }
- func (*UnimplementedNetworkServiceServer) Delete(ctx context.Context, req *NetworkDeleteRequest) (*NetworkDeleteResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
- }
- func (*UnimplementedNetworkServiceServer) GetAllTypes(ctx context.Context, req *NetworkGetAllTypesRequest) (*NetworkGetAllTypesResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetAllTypes not implemented")
- }
- func (*UnimplementedNetworkServiceServer) GetAssociatedUsers(ctx context.Context, req *NetworkGetAssociatedUsersRequest) (*NetworkGetAssociatedUsersResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetAssociatedUsers not implemented")
- }
- func (*UnimplementedNetworkServiceServer) Associate(ctx context.Context, req *NetworkAssociateRequest) (*NetworkAssociateResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Associate not implemented")
- }
- func (*UnimplementedNetworkServiceServer) Dissociate(ctx context.Context, req *NetworkDissociateRequest) (*NetworkDissociateResponse, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Dissociate not implemented")
- }
- func RegisterNetworkServiceServer(s *grpc.Server, srv NetworkServiceServer) {
- s.RegisterService(&_NetworkService_serviceDesc, srv)
- }
- func _NetworkService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NetworkCreateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(NetworkServiceServer).Create(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.NetworkService/Create",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(NetworkServiceServer).Create(ctx, req.(*NetworkCreateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _NetworkService_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NetworkListRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(NetworkServiceServer).List(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.NetworkService/List",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(NetworkServiceServer).List(ctx, req.(*NetworkListRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _NetworkService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NetworkDeleteRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(NetworkServiceServer).Delete(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.NetworkService/Delete",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(NetworkServiceServer).Delete(ctx, req.(*NetworkDeleteRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _NetworkService_GetAllTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NetworkGetAllTypesRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(NetworkServiceServer).GetAllTypes(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.NetworkService/GetAllTypes",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(NetworkServiceServer).GetAllTypes(ctx, req.(*NetworkGetAllTypesRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _NetworkService_GetAssociatedUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NetworkGetAssociatedUsersRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(NetworkServiceServer).GetAssociatedUsers(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.NetworkService/GetAssociatedUsers",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(NetworkServiceServer).GetAssociatedUsers(ctx, req.(*NetworkGetAssociatedUsersRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _NetworkService_Associate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NetworkAssociateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(NetworkServiceServer).Associate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.NetworkService/Associate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(NetworkServiceServer).Associate(ctx, req.(*NetworkAssociateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _NetworkService_Dissociate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(NetworkDissociateRequest)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(NetworkServiceServer).Dissociate(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/pb.NetworkService/Dissociate",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(NetworkServiceServer).Dissociate(ctx, req.(*NetworkDissociateRequest))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _NetworkService_serviceDesc = grpc.ServiceDesc{
- ServiceName: "pb.NetworkService",
- HandlerType: (*NetworkServiceServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "Create",
- Handler: _NetworkService_Create_Handler,
- },
- {
- MethodName: "List",
- Handler: _NetworkService_List_Handler,
- },
- {
- MethodName: "Delete",
- Handler: _NetworkService_Delete_Handler,
- },
- {
- MethodName: "GetAllTypes",
- Handler: _NetworkService_GetAllTypes_Handler,
- },
- {
- MethodName: "GetAssociatedUsers",
- Handler: _NetworkService_GetAssociatedUsers_Handler,
- },
- {
- MethodName: "Associate",
- Handler: _NetworkService_Associate_Handler,
- },
- {
- MethodName: "Dissociate",
- Handler: _NetworkService_Dissociate_Handler,
- },
- },
- Streams: []grpc.StreamDesc{},
- Metadata: "network.proto",
- }
|