Skip to content
Snippets Groups Projects
Select Git revision
  • b35c5f632b801efce7486aea534cb600059eb478
  • release default protected
  • 11-22-implement-kv-interface-defined-in-collectiveversionedkvgo
  • hotfix/TestHostPool_UpdateNdf_AddFilter
  • XX-4719/announcementChannels
  • xx-4717/logLevel
  • jonah/noob-channel
  • master protected
  • XX-4707/tagDiskJson
  • xx-4698/notification-retry
  • hotfix/notifylockup
  • syncNodes
  • hotfix/localCB
  • XX-4677/NewChanManagerMobile
  • XX-4689/DmSync
  • duplicatePrefix
  • XX-4601/HavenInvites
  • finalizedUICallbacks
  • XX-4673/AdminKeySync
  • debugNotifID
  • anne/test
  • v4.7.5
  • v4.7.4
  • v4.7.3
  • v4.7.2
  • v4.7.1
  • v4.6.3
  • v4.6.1
  • v4.5.0
  • v4.4.4
  • v4.3.11
  • v4.3.8
  • v4.3.7
  • v4.3.6
  • v4.3.5
  • v4.2.0
  • v4.3.0
  • v4.3.4
  • v4.3.3
  • v4.3.2
  • v4.3.1
41 results

udMessages.pb.go

  • Jono Wenger's avatar
    Jono Wenger authored
    This reverts commit 2d70b844.
    75501964
    History
    udMessages.pb.go 11.72 KiB
    // Code generated by protoc-gen-go. DO NOT EDIT.
    // source: udMessages.proto
    
    package ud
    
    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
    
    // Contains the Hash and its Type
    type HashFact struct {
    	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
    	Type                 int32    `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *HashFact) Reset()         { *m = HashFact{} }
    func (m *HashFact) String() string { return proto.CompactTextString(m) }
    func (*HashFact) ProtoMessage()    {}
    func (*HashFact) Descriptor() ([]byte, []int) {
    	return fileDescriptor_9e0cfdc16fb09bb6, []int{0}
    }
    
    func (m *HashFact) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_HashFact.Unmarshal(m, b)
    }
    func (m *HashFact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_HashFact.Marshal(b, m, deterministic)
    }
    func (m *HashFact) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_HashFact.Merge(m, src)
    }
    func (m *HashFact) XXX_Size() int {
    	return xxx_messageInfo_HashFact.Size(m)
    }
    func (m *HashFact) XXX_DiscardUnknown() {
    	xxx_messageInfo_HashFact.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_HashFact proto.InternalMessageInfo
    
    func (m *HashFact) GetHash() []byte {
    	if m != nil {
    		return m.Hash
    	}
    	return nil
    }
    
    func (m *HashFact) GetType() int32 {
    	if m != nil {
    		return m.Type
    	}
    	return 0
    }
    
    // Describes a user lookup result. The ID, public key, and the
    // facts inputted that brought up this user.
    type Contact struct {
    	UserID               []byte      `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
    	PubKey               []byte      `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
    	Username             string      `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
    	TrigFacts            []*HashFact `protobuf:"bytes,4,rep,name=trigFacts,proto3" json:"trigFacts,omitempty"`
    	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    	XXX_unrecognized     []byte      `json:"-"`
    	XXX_sizecache        int32       `json:"-"`
    }
    
    func (m *Contact) Reset()         { *m = Contact{} }
    func (m *Contact) String() string { return proto.CompactTextString(m) }
    func (*Contact) ProtoMessage()    {}
    func (*Contact) Descriptor() ([]byte, []int) {
    	return fileDescriptor_9e0cfdc16fb09bb6, []int{1}
    }
    
    func (m *Contact) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_Contact.Unmarshal(m, b)
    }
    func (m *Contact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_Contact.Marshal(b, m, deterministic)
    }
    func (m *Contact) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_Contact.Merge(m, src)
    }
    func (m *Contact) XXX_Size() int {
    	return xxx_messageInfo_Contact.Size(m)
    }
    func (m *Contact) XXX_DiscardUnknown() {
    	xxx_messageInfo_Contact.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_Contact proto.InternalMessageInfo
    
    func (m *Contact) GetUserID() []byte {
    	if m != nil {
    		return m.UserID
    	}
    	return nil
    }
    
    func (m *Contact) GetPubKey() []byte {
    	if m != nil {
    		return m.PubKey
    	}
    	return nil
    }
    
    func (m *Contact) GetUsername() string {
    	if m != nil {
    		return m.Username
    	}
    	return ""
    }
    
    func (m *Contact) GetTrigFacts() []*HashFact {
    	if m != nil {
    		return m.TrigFacts
    	}
    	return nil
    }
    
    // Message sent to UDB to search for users
    type SearchSend struct {
    	// PublicKey used in the registration
    	Fact                 []*HashFact `protobuf:"bytes,1,rep,name=fact,proto3" json:"fact,omitempty"`
    	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    	XXX_unrecognized     []byte      `json:"-"`
    	XXX_sizecache        int32       `json:"-"`
    }
    
    func (m *SearchSend) Reset()         { *m = SearchSend{} }
    func (m *SearchSend) String() string { return proto.CompactTextString(m) }
    func (*SearchSend) ProtoMessage()    {}
    func (*SearchSend) Descriptor() ([]byte, []int) {
    	return fileDescriptor_9e0cfdc16fb09bb6, []int{2}
    }
    
    func (m *SearchSend) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_SearchSend.Unmarshal(m, b)
    }
    func (m *SearchSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_SearchSend.Marshal(b, m, deterministic)
    }
    func (m *SearchSend) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_SearchSend.Merge(m, src)
    }
    func (m *SearchSend) XXX_Size() int {
    	return xxx_messageInfo_SearchSend.Size(m)
    }
    func (m *SearchSend) XXX_DiscardUnknown() {
    	xxx_messageInfo_SearchSend.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_SearchSend proto.InternalMessageInfo
    
    func (m *SearchSend) GetFact() []*HashFact {
    	if m != nil {
    		return m.Fact
    	}
    	return nil
    }
    
    // Message sent from UDB to client in response to a search
    type SearchResponse struct {
    	// ID of the session created
    	Contacts             []*Contact `protobuf:"bytes,1,rep,name=contacts,proto3" json:"contacts,omitempty"`
    	Error                string     `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
    	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    	XXX_unrecognized     []byte     `json:"-"`
    	XXX_sizecache        int32      `json:"-"`
    }
    
    func (m *SearchResponse) Reset()         { *m = SearchResponse{} }
    func (m *SearchResponse) String() string { return proto.CompactTextString(m) }
    func (*SearchResponse) ProtoMessage()    {}
    func (*SearchResponse) Descriptor() ([]byte, []int) {
    	return fileDescriptor_9e0cfdc16fb09bb6, []int{3}
    }
    
    func (m *SearchResponse) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_SearchResponse.Unmarshal(m, b)
    }
    func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_SearchResponse.Marshal(b, m, deterministic)
    }
    func (m *SearchResponse) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_SearchResponse.Merge(m, src)
    }
    func (m *SearchResponse) XXX_Size() int {
    	return xxx_messageInfo_SearchResponse.Size(m)
    }
    func (m *SearchResponse) XXX_DiscardUnknown() {
    	xxx_messageInfo_SearchResponse.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_SearchResponse proto.InternalMessageInfo
    
    func (m *SearchResponse) GetContacts() []*Contact {
    	if m != nil {
    		return m.Contacts
    	}
    	return nil
    }
    
    func (m *SearchResponse) GetError() string {
    	if m != nil {
    		return m.Error
    	}
    	return ""
    }
    
    // Message sent to UDB for looking up a user
    type LookupSend struct {
    	UserID               []byte   `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *LookupSend) Reset()         { *m = LookupSend{} }
    func (m *LookupSend) String() string { return proto.CompactTextString(m) }
    func (*LookupSend) ProtoMessage()    {}
    func (*LookupSend) Descriptor() ([]byte, []int) {
    	return fileDescriptor_9e0cfdc16fb09bb6, []int{4}
    }
    
    func (m *LookupSend) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_LookupSend.Unmarshal(m, b)
    }
    func (m *LookupSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_LookupSend.Marshal(b, m, deterministic)
    }
    func (m *LookupSend) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_LookupSend.Merge(m, src)
    }
    func (m *LookupSend) XXX_Size() int {
    	return xxx_messageInfo_LookupSend.Size(m)
    }
    func (m *LookupSend) XXX_DiscardUnknown() {
    	xxx_messageInfo_LookupSend.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_LookupSend proto.InternalMessageInfo
    
    func (m *LookupSend) GetUserID() []byte {
    	if m != nil {
    		return m.UserID
    	}
    	return nil
    }
    
    // Message sent from UDB for looking up a user
    type LookupResponse struct {
    	PubKey               []byte   `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
    	Username             string   `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
    	Error                string   `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
    	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    	XXX_unrecognized     []byte   `json:"-"`
    	XXX_sizecache        int32    `json:"-"`
    }
    
    func (m *LookupResponse) Reset()         { *m = LookupResponse{} }
    func (m *LookupResponse) String() string { return proto.CompactTextString(m) }
    func (*LookupResponse) ProtoMessage()    {}
    func (*LookupResponse) Descriptor() ([]byte, []int) {
    	return fileDescriptor_9e0cfdc16fb09bb6, []int{5}
    }
    
    func (m *LookupResponse) XXX_Unmarshal(b []byte) error {
    	return xxx_messageInfo_LookupResponse.Unmarshal(m, b)
    }
    func (m *LookupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    	return xxx_messageInfo_LookupResponse.Marshal(b, m, deterministic)
    }
    func (m *LookupResponse) XXX_Merge(src proto.Message) {
    	xxx_messageInfo_LookupResponse.Merge(m, src)
    }
    func (m *LookupResponse) XXX_Size() int {
    	return xxx_messageInfo_LookupResponse.Size(m)
    }
    func (m *LookupResponse) XXX_DiscardUnknown() {
    	xxx_messageInfo_LookupResponse.DiscardUnknown(m)
    }
    
    var xxx_messageInfo_LookupResponse proto.InternalMessageInfo
    
    func (m *LookupResponse) GetPubKey() []byte {
    	if m != nil {
    		return m.PubKey
    	}
    	return nil
    }
    
    func (m *LookupResponse) GetUsername() string {
    	if m != nil {
    		return m.Username
    	}
    	return ""
    }
    
    func (m *LookupResponse) GetError() string {
    	if m != nil {
    		return m.Error
    	}
    	return ""
    }
    
    func init() {
    	proto.RegisterType((*HashFact)(nil), "parse.HashFact")
    	proto.RegisterType((*Contact)(nil), "parse.Contact")
    	proto.RegisterType((*SearchSend)(nil), "parse.SearchSend")
    	proto.RegisterType((*SearchResponse)(nil), "parse.SearchResponse")
    	proto.RegisterType((*LookupSend)(nil), "parse.LookupSend")
    	proto.RegisterType((*LookupResponse)(nil), "parse.LookupResponse")
    }
    
    func init() {
    	proto.RegisterFile("udMessages.proto", fileDescriptor_9e0cfdc16fb09bb6)
    }
    
    var fileDescriptor_9e0cfdc16fb09bb6 = []byte{
    	// 283 bytes of a gzipped FileDescriptorProto
    	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x41, 0x4b, 0xc3, 0x40,
    	0x10, 0x85, 0xd9, 0x36, 0xad, 0xe9, 0x58, 0xa2, 0x2c, 0x22, 0xc1, 0x53, 0x58, 0x3d, 0x04, 0xc1,
    	0x80, 0xf5, 0x1f, 0xa8, 0x88, 0xa2, 0x5e, 0xb6, 0xb7, 0xde, 0xb6, 0xc9, 0xd8, 0x88, 0x98, 0x5d,
    	0x76, 0x36, 0x87, 0xde, 0xfd, 0xe1, 0x92, 0xcd, 0x9a, 0x82, 0xb4, 0xb7, 0x79, 0x33, 0xf3, 0xb1,
    	0x6f, 0xde, 0xc2, 0x69, 0x5b, 0xbd, 0x23, 0x91, 0xda, 0x20, 0x15, 0xc6, 0x6a, 0xa7, 0xf9, 0xc4,
    	0x28, 0x4b, 0x28, 0x16, 0x10, 0x3f, 0x2b, 0xaa, 0x9f, 0x54, 0xe9, 0x38, 0x87, 0xa8, 0x56, 0x54,
    	0xa7, 0x2c, 0x63, 0xf9, 0x5c, 0xfa, 0xba, 0xeb, 0xb9, 0xad, 0xc1, 0x74, 0x94, 0xb1, 0x7c, 0x22,
    	0x7d, 0x2d, 0x7e, 0x18, 0x1c, 0x3d, 0xe8, 0xc6, 0x75, 0xcc, 0x39, 0x4c, 0x5b, 0x42, 0xfb, 0xf2,
    	0x18, 0xa8, 0xa0, 0xba, 0xbe, 0x69, 0xd7, 0xaf, 0xb8, 0xf5, 0xe4, 0x5c, 0x06, 0xc5, 0x2f, 0x20,
    	0xee, 0x36, 0x1a, 0xf5, 0x8d, 0xe9, 0x38, 0x63, 0xf9, 0x4c, 0x0e, 0x9a, 0xdf, 0xc0, 0xcc, 0xd9,
    	0xcf, 0x4d, 0xe7, 0x85, 0xd2, 0x28, 0x1b, 0xe7, 0xc7, 0x8b, 0x93, 0xc2, 0xdb, 0x2c, 0xfe, 0x3c,
    	0xca, 0xdd, 0x86, 0xb8, 0x05, 0x58, 0xa2, 0xb2, 0x65, 0xbd, 0xc4, 0xa6, 0xe2, 0x97, 0x10, 0x7d,
    	0xa8, 0xd2, 0xa5, 0x6c, 0x3f, 0xe7, 0x87, 0x42, 0x42, 0xd2, 0x23, 0x12, 0xc9, 0xe8, 0x86, 0x90,
    	0x5f, 0x43, 0x5c, 0xf6, 0xa7, 0x50, 0x40, 0x93, 0x80, 0x86, 0x0b, 0xe5, 0x30, 0xe7, 0x67, 0x30,
    	0x41, 0x6b, 0xb5, 0x0d, 0xc6, 0x7b, 0x21, 0xae, 0x00, 0xde, 0xb4, 0xfe, 0x6a, 0x8d, 0xb7, 0x71,
    	0x20, 0x0f, 0xb1, 0x82, 0xa4, 0xdf, 0x1a, 0x5e, 0xde, 0x25, 0xc4, 0x0e, 0x26, 0x34, 0xfa, 0x97,
    	0xd0, 0x5e, 0x07, 0xf7, 0xd1, 0x6a, 0xd4, 0x56, 0xeb, 0xa9, 0xff, 0xd7, 0xbb, 0xdf, 0x00, 0x00,
    	0x00, 0xff, 0xff, 0x5a, 0xee, 0x38, 0xba, 0xeb, 0x01, 0x00, 0x00,
    }