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