Skip to content
Snippets Groups Projects
Unverified Commit b30c152f authored by Sydney Anne Erickson's avatar Sydney Anne Erickson :chipmunk:
Browse files

User Discovery messages file renames

parent b719c73b
Branches
Tags
No related merge requests found
#!/bin/bash
protoc --go_out=. xchange.proto
protoc --go_out=. udMessages.proto
......@@ -10,7 +10,7 @@
// versions:
// protoc-gen-go v1.23.0
// protoc v3.13.0
// source: xchange.proto
// source: udMessages.proto
package ud
......@@ -46,7 +46,7 @@ type HashFact struct {
func (x *HashFact) Reset() {
*x = HashFact{}
if protoimpl.UnsafeEnabled {
mi := &file_xchange_proto_msgTypes[0]
mi := &file_udMessages_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -59,7 +59,7 @@ func (x *HashFact) String() string {
func (*HashFact) ProtoMessage() {}
func (x *HashFact) ProtoReflect() protoreflect.Message {
mi := &file_xchange_proto_msgTypes[0]
mi := &file_udMessages_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -72,7 +72,7 @@ func (x *HashFact) ProtoReflect() protoreflect.Message {
// Deprecated: Use HashFact.ProtoReflect.Descriptor instead.
func (*HashFact) Descriptor() ([]byte, []int) {
return file_xchange_proto_rawDescGZIP(), []int{0}
return file_udMessages_proto_rawDescGZIP(), []int{0}
}
func (x *HashFact) GetHash() []byte {
......@@ -104,7 +104,7 @@ type Contact struct {
func (x *Contact) Reset() {
*x = Contact{}
if protoimpl.UnsafeEnabled {
mi := &file_xchange_proto_msgTypes[1]
mi := &file_udMessages_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -117,7 +117,7 @@ func (x *Contact) String() string {
func (*Contact) ProtoMessage() {}
func (x *Contact) ProtoReflect() protoreflect.Message {
mi := &file_xchange_proto_msgTypes[1]
mi := &file_udMessages_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -130,7 +130,7 @@ func (x *Contact) ProtoReflect() protoreflect.Message {
// Deprecated: Use Contact.ProtoReflect.Descriptor instead.
func (*Contact) Descriptor() ([]byte, []int) {
return file_xchange_proto_rawDescGZIP(), []int{1}
return file_udMessages_proto_rawDescGZIP(), []int{1}
}
func (x *Contact) GetUserID() [][]byte {
......@@ -169,7 +169,7 @@ type SearchSend struct {
func (x *SearchSend) Reset() {
*x = SearchSend{}
if protoimpl.UnsafeEnabled {
mi := &file_xchange_proto_msgTypes[2]
mi := &file_udMessages_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -182,7 +182,7 @@ func (x *SearchSend) String() string {
func (*SearchSend) ProtoMessage() {}
func (x *SearchSend) ProtoReflect() protoreflect.Message {
mi := &file_xchange_proto_msgTypes[2]
mi := &file_udMessages_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -195,7 +195,7 @@ func (x *SearchSend) ProtoReflect() protoreflect.Message {
// Deprecated: Use SearchSend.ProtoReflect.Descriptor instead.
func (*SearchSend) Descriptor() ([]byte, []int) {
return file_xchange_proto_rawDescGZIP(), []int{2}
return file_udMessages_proto_rawDescGZIP(), []int{2}
}
func (x *SearchSend) GetFact() []*HashFact {
......@@ -226,7 +226,7 @@ type SearchResponse struct {
func (x *SearchResponse) Reset() {
*x = SearchResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_xchange_proto_msgTypes[3]
mi := &file_udMessages_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -239,7 +239,7 @@ func (x *SearchResponse) String() string {
func (*SearchResponse) ProtoMessage() {}
func (x *SearchResponse) ProtoReflect() protoreflect.Message {
mi := &file_xchange_proto_msgTypes[3]
mi := &file_udMessages_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -252,7 +252,7 @@ func (x *SearchResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) Descriptor() ([]byte, []int) {
return file_xchange_proto_rawDescGZIP(), []int{3}
return file_udMessages_proto_rawDescGZIP(), []int{3}
}
func (x *SearchResponse) GetContacts() []*Contact {
......@@ -282,7 +282,7 @@ type LookupSend struct {
func (x *LookupSend) Reset() {
*x = LookupSend{}
if protoimpl.UnsafeEnabled {
mi := &file_xchange_proto_msgTypes[4]
mi := &file_udMessages_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -295,7 +295,7 @@ func (x *LookupSend) String() string {
func (*LookupSend) ProtoMessage() {}
func (x *LookupSend) ProtoReflect() protoreflect.Message {
mi := &file_xchange_proto_msgTypes[4]
mi := &file_udMessages_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -308,7 +308,7 @@ func (x *LookupSend) ProtoReflect() protoreflect.Message {
// Deprecated: Use LookupSend.ProtoReflect.Descriptor instead.
func (*LookupSend) Descriptor() ([]byte, []int) {
return file_xchange_proto_rawDescGZIP(), []int{4}
return file_udMessages_proto_rawDescGZIP(), []int{4}
}
func (x *LookupSend) GetUserID() [][]byte {
......@@ -338,7 +338,7 @@ type LookupResponse struct {
func (x *LookupResponse) Reset() {
*x = LookupResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_xchange_proto_msgTypes[5]
mi := &file_udMessages_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -351,7 +351,7 @@ func (x *LookupResponse) String() string {
func (*LookupResponse) ProtoMessage() {}
func (x *LookupResponse) ProtoReflect() protoreflect.Message {
mi := &file_xchange_proto_msgTypes[5]
mi := &file_udMessages_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -364,7 +364,7 @@ func (x *LookupResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
func (*LookupResponse) Descriptor() ([]byte, []int) {
return file_xchange_proto_rawDescGZIP(), []int{5}
return file_udMessages_proto_rawDescGZIP(), []int{5}
}
func (x *LookupResponse) GetPubKey() [][]byte {
......@@ -381,56 +381,56 @@ func (x *LookupResponse) GetCommID() int32 {
return 0
}
var File_xchange_proto protoreflect.FileDescriptor
var file_xchange_proto_rawDesc = []byte{
0x0a, 0x0d, 0x78, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x05, 0x70, 0x61, 0x72, 0x73, 0x65, 0x22, 0x32, 0x0a, 0x08, 0x48, 0x61, 0x73, 0x68, 0x46, 0x61,
0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x68, 0x0a, 0x07, 0x43, 0x6f,
0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a,
0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x70,
0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x09, 0x74, 0x72, 0x69, 0x67, 0x46, 0x61, 0x63,
0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65,
0x2e, 0x48, 0x61, 0x73, 0x68, 0x46, 0x61, 0x63, 0x74, 0x52, 0x09, 0x74, 0x72, 0x69, 0x67, 0x46,
0x61, 0x63, 0x74, 0x73, 0x22, 0x49, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x53, 0x65,
0x6e, 0x64, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x0f, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x46, 0x61, 0x63,
0x74, 0x52, 0x04, 0x66, 0x61, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49,
0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x22,
0x54, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x43, 0x6f, 0x6e, 0x74,
0x61, 0x63, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73, 0x12, 0x16, 0x0a,
0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63,
0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x22, 0x3c, 0x0a, 0x0a, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x53,
0x65, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16, 0x0a, 0x06, 0x63,
0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6d,
0x6d, 0x49, 0x44, 0x22, 0x40, 0x0a, 0x0e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18,
0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x16, 0x0a,
0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63,
0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x42, 0x04, 0x5a, 0x02, 0x75, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
var File_udMessages_proto protoreflect.FileDescriptor
var file_udMessages_proto_rawDesc = []byte{
0x0a, 0x10, 0x75, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x12, 0x05, 0x70, 0x61, 0x72, 0x73, 0x65, 0x22, 0x32, 0x0a, 0x08, 0x48, 0x61, 0x73,
0x68, 0x46, 0x61, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73, 0x68, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x68, 0x0a,
0x07, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72,
0x49, 0x44, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44,
0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c,
0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79, 0x12, 0x2d, 0x0a, 0x09, 0x74, 0x72, 0x69, 0x67,
0x46, 0x61, 0x63, 0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x61,
0x72, 0x73, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68, 0x46, 0x61, 0x63, 0x74, 0x52, 0x09, 0x74, 0x72,
0x69, 0x67, 0x46, 0x61, 0x63, 0x74, 0x73, 0x22, 0x49, 0x0a, 0x0a, 0x53, 0x65, 0x61, 0x72, 0x63,
0x68, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x23, 0x0a, 0x04, 0x66, 0x61, 0x63, 0x74, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x48, 0x61, 0x73, 0x68,
0x46, 0x61, 0x63, 0x74, 0x52, 0x04, 0x66, 0x61, 0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f,
0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d,
0x49, 0x44, 0x22, 0x54, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2a, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x70, 0x61, 0x72, 0x73, 0x65, 0x2e, 0x43,
0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x63, 0x74, 0x73,
0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x22, 0x3c, 0x0a, 0x0a, 0x4c, 0x6f, 0x6f, 0x6b,
0x75, 0x70, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x16,
0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x22, 0x40, 0x0a, 0x0e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x4b,
0x65, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x06, 0x70, 0x75, 0x62, 0x4b, 0x65, 0x79,
0x12, 0x16, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x49, 0x44, 0x42, 0x04, 0x5a, 0x02, 0x75, 0x64, 0x62, 0x06,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_xchange_proto_rawDescOnce sync.Once
file_xchange_proto_rawDescData = file_xchange_proto_rawDesc
file_udMessages_proto_rawDescOnce sync.Once
file_udMessages_proto_rawDescData = file_udMessages_proto_rawDesc
)
func file_xchange_proto_rawDescGZIP() []byte {
file_xchange_proto_rawDescOnce.Do(func() {
file_xchange_proto_rawDescData = protoimpl.X.CompressGZIP(file_xchange_proto_rawDescData)
func file_udMessages_proto_rawDescGZIP() []byte {
file_udMessages_proto_rawDescOnce.Do(func() {
file_udMessages_proto_rawDescData = protoimpl.X.CompressGZIP(file_udMessages_proto_rawDescData)
})
return file_xchange_proto_rawDescData
return file_udMessages_proto_rawDescData
}
var file_xchange_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_xchange_proto_goTypes = []interface{}{
var file_udMessages_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_udMessages_proto_goTypes = []interface{}{
(*HashFact)(nil), // 0: parse.HashFact
(*Contact)(nil), // 1: parse.Contact
(*SearchSend)(nil), // 2: parse.SearchSend
......@@ -438,7 +438,7 @@ var file_xchange_proto_goTypes = []interface{}{
(*LookupSend)(nil), // 4: parse.LookupSend
(*LookupResponse)(nil), // 5: parse.LookupResponse
}
var file_xchange_proto_depIdxs = []int32{
var file_udMessages_proto_depIdxs = []int32{
0, // 0: parse.Contact.trigFacts:type_name -> parse.HashFact
0, // 1: parse.SearchSend.fact:type_name -> parse.HashFact
1, // 2: parse.SearchResponse.contacts:type_name -> parse.Contact
......@@ -449,13 +449,13 @@ var file_xchange_proto_depIdxs = []int32{
0, // [0:3] is the sub-list for field type_name
}
func init() { file_xchange_proto_init() }
func file_xchange_proto_init() {
if File_xchange_proto != nil {
func init() { file_udMessages_proto_init() }
func file_udMessages_proto_init() {
if File_udMessages_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_xchange_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
file_udMessages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*HashFact); i {
case 0:
return &v.state
......@@ -467,7 +467,7 @@ func file_xchange_proto_init() {
return nil
}
}
file_xchange_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
file_udMessages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Contact); i {
case 0:
return &v.state
......@@ -479,7 +479,7 @@ func file_xchange_proto_init() {
return nil
}
}
file_xchange_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
file_udMessages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SearchSend); i {
case 0:
return &v.state
......@@ -491,7 +491,7 @@ func file_xchange_proto_init() {
return nil
}
}
file_xchange_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
file_udMessages_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SearchResponse); i {
case 0:
return &v.state
......@@ -503,7 +503,7 @@ func file_xchange_proto_init() {
return nil
}
}
file_xchange_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
file_udMessages_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LookupSend); i {
case 0:
return &v.state
......@@ -515,7 +515,7 @@ func file_xchange_proto_init() {
return nil
}
}
file_xchange_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
file_udMessages_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LookupResponse); i {
case 0:
return &v.state
......@@ -532,18 +532,18 @@ func file_xchange_proto_init() {
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_xchange_proto_rawDesc,
RawDescriptor: file_udMessages_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_xchange_proto_goTypes,
DependencyIndexes: file_xchange_proto_depIdxs,
MessageInfos: file_xchange_proto_msgTypes,
GoTypes: file_udMessages_proto_goTypes,
DependencyIndexes: file_udMessages_proto_depIdxs,
MessageInfos: file_udMessages_proto_msgTypes,
}.Build()
File_xchange_proto = out.File
file_xchange_proto_rawDesc = nil
file_xchange_proto_goTypes = nil
file_xchange_proto_depIdxs = nil
File_udMessages_proto = out.File
file_udMessages_proto_rawDesc = nil
file_udMessages_proto_goTypes = nil
file_udMessages_proto_depIdxs = nil
}
......@@ -30,24 +30,24 @@ message SearchSend {
// PublicKey used in the registration
repeated HashFact fact = 1;
// ID of the session used to create this session
int32 commID = 2;
int64 commID = 2;
}
// Message sent from UDB to client in response to a search
message SearchResponse {
// ID of the session created
repeated Contact contacts = 1;
int32 commID = 2;
int64 commID = 2;
}
// Message sent to UDB for looking up a user
message LookupSend {
repeated bytes userID = 1;
int32 commID = 2;
int64 commID = 2;
}
// Message sent from UDB for looking up a user
message LookupResponse {
repeated bytes pubKey = 1;
int32 commID = 2;
int64 commID = 2;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment