// Code generated by protoc-gen-go. DO NOT EDIT. // source: micro/go-micro/network/proto/network.proto package go_micro_network import ( fmt "fmt" proto "github.com/golang/protobuf/proto" 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 // A connect message is for connecting to the network type Connect struct { // the unique muid (mac) address of the node Muid string `protobuf:"bytes,1,opt,name=muid,proto3" json:"muid,omitempty"` // Lease specifies an existing lease to indicate // we don't need a new address, we just want to // establish a link. Lease *Lease `protobuf:"bytes,2,opt,name=lease,proto3" json:"lease,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Connect) Reset() { *m = Connect{} } func (m *Connect) String() string { return proto.CompactTextString(m) } func (*Connect) ProtoMessage() {} func (*Connect) Descriptor() ([]byte, []int) { return fileDescriptor_4daa91d05ddc28b6, []int{0} } func (m *Connect) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Connect.Unmarshal(m, b) } func (m *Connect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Connect.Marshal(b, m, deterministic) } func (m *Connect) XXX_Merge(src proto.Message) { xxx_messageInfo_Connect.Merge(m, src) } func (m *Connect) XXX_Size() int { return xxx_messageInfo_Connect.Size(m) } func (m *Connect) XXX_DiscardUnknown() { xxx_messageInfo_Connect.DiscardUnknown(m) } var xxx_messageInfo_Connect proto.InternalMessageInfo func (m *Connect) GetMuid() string { if m != nil { return m.Muid } return "" } func (m *Connect) GetLease() *Lease { if m != nil { return m.Lease } return nil } // A lease is returned to anyone attempting to connect with a valid muid. type Lease struct { // unique lease id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // timestamp of lease Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // author is the muid of the author Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"` // the node Node *Node `protobuf:"bytes,4,opt,name=node,proto3" json:"node,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Lease) Reset() { *m = Lease{} } func (m *Lease) String() string { return proto.CompactTextString(m) } func (*Lease) ProtoMessage() {} func (*Lease) Descriptor() ([]byte, []int) { return fileDescriptor_4daa91d05ddc28b6, []int{1} } func (m *Lease) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Lease.Unmarshal(m, b) } func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Lease.Marshal(b, m, deterministic) } func (m *Lease) XXX_Merge(src proto.Message) { xxx_messageInfo_Lease.Merge(m, src) } func (m *Lease) XXX_Size() int { return xxx_messageInfo_Lease.Size(m) } func (m *Lease) XXX_DiscardUnknown() { xxx_messageInfo_Lease.DiscardUnknown(m) } var xxx_messageInfo_Lease proto.InternalMessageInfo func (m *Lease) GetId() string { if m != nil { return m.Id } return "" } func (m *Lease) GetTimestamp() int64 { if m != nil { return m.Timestamp } return 0 } func (m *Lease) GetAuthor() string { if m != nil { return m.Author } return "" } func (m *Lease) GetNode() *Node { if m != nil { return m.Node } return nil } // A node is the network node type Node struct { Muid string `protobuf:"bytes,1,opt,name=muid,proto3" json:"muid,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` } func (m *Node) Reset() { *m = Node{} } func (m *Node) String() string { return proto.CompactTextString(m) } func (*Node) ProtoMessage() {} func (*Node) Descriptor() ([]byte, []int) { return fileDescriptor_4daa91d05ddc28b6, []int{2} } func (m *Node) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_Node.Unmarshal(m, b) } func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_Node.Marshal(b, m, deterministic) } func (m *Node) XXX_Merge(src proto.Message) { xxx_messageInfo_Node.Merge(m, src) } func (m *Node) XXX_Size() int { return xxx_messageInfo_Node.Size(m) } func (m *Node) XXX_DiscardUnknown() { xxx_messageInfo_Node.DiscardUnknown(m) } var xxx_messageInfo_Node proto.InternalMessageInfo func (m *Node) GetMuid() string { if m != nil { return m.Muid } return "" } func (m *Node) GetId() string { if m != nil { return m.Id } return "" } func (m *Node) GetAddress() string { if m != nil { return m.Address } return "" } func (m *Node) GetNetwork() string { if m != nil { return m.Network } return "" } func init() { proto.RegisterType((*Connect)(nil), "go.micro.network.Connect") proto.RegisterType((*Lease)(nil), "go.micro.network.Lease") proto.RegisterType((*Node)(nil), "go.micro.network.Node") } func init() { proto.RegisterFile("micro/go-micro/network/proto/network.proto", fileDescriptor_4daa91d05ddc28b6) } var fileDescriptor_4daa91d05ddc28b6 = []byte{ // 229 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0xc1, 0x6a, 0xc3, 0x30, 0x0c, 0x86, 0x49, 0x9a, 0xb6, 0x44, 0x83, 0x31, 0x74, 0xe8, 0x7c, 0xd8, 0xa1, 0xe4, 0x54, 0x0a, 0x75, 0x61, 0x7b, 0x84, 0x5d, 0xcb, 0x0e, 0x7e, 0x80, 0x41, 0x56, 0x8b, 0x2e, 0x6c, 0xb6, 0x8a, 0xed, 0x32, 0xf6, 0xf6, 0x23, 0x8a, 0x93, 0xc1, 0xd6, 0x9b, 0x3e, 0xe9, 0xf7, 0xff, 0xcb, 0x82, 0xad, 0xeb, 0x8e, 0x81, 0xf7, 0x27, 0xde, 0x0d,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