github.com/status-im/status-go@v1.1.0/protocol/encryption/protocol_message.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.31.0
     4  // 	protoc        v3.20.3
     5  // source: protocol_message.proto
     6  
     7  package encryption
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type SignedPreKey struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	SignedPreKey    []byte `protobuf:"bytes,1,opt,name=signed_pre_key,json=signedPreKey,proto3" json:"signed_pre_key,omitempty"`
    29  	Version         uint32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
    30  	ProtocolVersion uint32 `protobuf:"varint,3,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version,omitempty"`
    31  }
    32  
    33  func (x *SignedPreKey) Reset() {
    34  	*x = SignedPreKey{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_protocol_message_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *SignedPreKey) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*SignedPreKey) ProtoMessage() {}
    47  
    48  func (x *SignedPreKey) ProtoReflect() protoreflect.Message {
    49  	mi := &file_protocol_message_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use SignedPreKey.ProtoReflect.Descriptor instead.
    61  func (*SignedPreKey) Descriptor() ([]byte, []int) {
    62  	return file_protocol_message_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *SignedPreKey) GetSignedPreKey() []byte {
    66  	if x != nil {
    67  		return x.SignedPreKey
    68  	}
    69  	return nil
    70  }
    71  
    72  func (x *SignedPreKey) GetVersion() uint32 {
    73  	if x != nil {
    74  		return x.Version
    75  	}
    76  	return 0
    77  }
    78  
    79  func (x *SignedPreKey) GetProtocolVersion() uint32 {
    80  	if x != nil {
    81  		return x.ProtocolVersion
    82  	}
    83  	return 0
    84  }
    85  
    86  // X3DH prekey bundle
    87  type Bundle struct {
    88  	state         protoimpl.MessageState
    89  	sizeCache     protoimpl.SizeCache
    90  	unknownFields protoimpl.UnknownFields
    91  
    92  	// Identity key
    93  	Identity []byte `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"`
    94  	// Installation id
    95  	SignedPreKeys map[string]*SignedPreKey `protobuf:"bytes,2,rep,name=signed_pre_keys,json=signedPreKeys,proto3" json:"signed_pre_keys,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
    96  	// Prekey signature
    97  	Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
    98  	// When the bundle was created locally
    99  	Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   100  }
   101  
   102  func (x *Bundle) Reset() {
   103  	*x = Bundle{}
   104  	if protoimpl.UnsafeEnabled {
   105  		mi := &file_protocol_message_proto_msgTypes[1]
   106  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   107  		ms.StoreMessageInfo(mi)
   108  	}
   109  }
   110  
   111  func (x *Bundle) String() string {
   112  	return protoimpl.X.MessageStringOf(x)
   113  }
   114  
   115  func (*Bundle) ProtoMessage() {}
   116  
   117  func (x *Bundle) ProtoReflect() protoreflect.Message {
   118  	mi := &file_protocol_message_proto_msgTypes[1]
   119  	if protoimpl.UnsafeEnabled && x != nil {
   120  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   121  		if ms.LoadMessageInfo() == nil {
   122  			ms.StoreMessageInfo(mi)
   123  		}
   124  		return ms
   125  	}
   126  	return mi.MessageOf(x)
   127  }
   128  
   129  // Deprecated: Use Bundle.ProtoReflect.Descriptor instead.
   130  func (*Bundle) Descriptor() ([]byte, []int) {
   131  	return file_protocol_message_proto_rawDescGZIP(), []int{1}
   132  }
   133  
   134  func (x *Bundle) GetIdentity() []byte {
   135  	if x != nil {
   136  		return x.Identity
   137  	}
   138  	return nil
   139  }
   140  
   141  func (x *Bundle) GetSignedPreKeys() map[string]*SignedPreKey {
   142  	if x != nil {
   143  		return x.SignedPreKeys
   144  	}
   145  	return nil
   146  }
   147  
   148  func (x *Bundle) GetSignature() []byte {
   149  	if x != nil {
   150  		return x.Signature
   151  	}
   152  	return nil
   153  }
   154  
   155  func (x *Bundle) GetTimestamp() int64 {
   156  	if x != nil {
   157  		return x.Timestamp
   158  	}
   159  	return 0
   160  }
   161  
   162  type BundleContainer struct {
   163  	state         protoimpl.MessageState
   164  	sizeCache     protoimpl.SizeCache
   165  	unknownFields protoimpl.UnknownFields
   166  
   167  	// X3DH prekey bundle
   168  	Bundle *Bundle `protobuf:"bytes,1,opt,name=bundle,proto3" json:"bundle,omitempty"`
   169  	// Private signed prekey
   170  	PrivateSignedPreKey []byte `protobuf:"bytes,2,opt,name=private_signed_pre_key,json=privateSignedPreKey,proto3" json:"private_signed_pre_key,omitempty"`
   171  }
   172  
   173  func (x *BundleContainer) Reset() {
   174  	*x = BundleContainer{}
   175  	if protoimpl.UnsafeEnabled {
   176  		mi := &file_protocol_message_proto_msgTypes[2]
   177  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   178  		ms.StoreMessageInfo(mi)
   179  	}
   180  }
   181  
   182  func (x *BundleContainer) String() string {
   183  	return protoimpl.X.MessageStringOf(x)
   184  }
   185  
   186  func (*BundleContainer) ProtoMessage() {}
   187  
   188  func (x *BundleContainer) ProtoReflect() protoreflect.Message {
   189  	mi := &file_protocol_message_proto_msgTypes[2]
   190  	if protoimpl.UnsafeEnabled && x != nil {
   191  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   192  		if ms.LoadMessageInfo() == nil {
   193  			ms.StoreMessageInfo(mi)
   194  		}
   195  		return ms
   196  	}
   197  	return mi.MessageOf(x)
   198  }
   199  
   200  // Deprecated: Use BundleContainer.ProtoReflect.Descriptor instead.
   201  func (*BundleContainer) Descriptor() ([]byte, []int) {
   202  	return file_protocol_message_proto_rawDescGZIP(), []int{2}
   203  }
   204  
   205  func (x *BundleContainer) GetBundle() *Bundle {
   206  	if x != nil {
   207  		return x.Bundle
   208  	}
   209  	return nil
   210  }
   211  
   212  func (x *BundleContainer) GetPrivateSignedPreKey() []byte {
   213  	if x != nil {
   214  		return x.PrivateSignedPreKey
   215  	}
   216  	return nil
   217  }
   218  
   219  type DRHeader struct {
   220  	state         protoimpl.MessageState
   221  	sizeCache     protoimpl.SizeCache
   222  	unknownFields protoimpl.UnknownFields
   223  
   224  	// Current ratchet public key
   225  	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   226  	// Number of the message in the sending chain
   227  	N uint32 `protobuf:"varint,2,opt,name=n,proto3" json:"n,omitempty"`
   228  	// Length of the previous sending chain
   229  	Pn uint32 `protobuf:"varint,3,opt,name=pn,proto3" json:"pn,omitempty"`
   230  	// Bundle ID
   231  	Id []byte `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
   232  }
   233  
   234  func (x *DRHeader) Reset() {
   235  	*x = DRHeader{}
   236  	if protoimpl.UnsafeEnabled {
   237  		mi := &file_protocol_message_proto_msgTypes[3]
   238  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   239  		ms.StoreMessageInfo(mi)
   240  	}
   241  }
   242  
   243  func (x *DRHeader) String() string {
   244  	return protoimpl.X.MessageStringOf(x)
   245  }
   246  
   247  func (*DRHeader) ProtoMessage() {}
   248  
   249  func (x *DRHeader) ProtoReflect() protoreflect.Message {
   250  	mi := &file_protocol_message_proto_msgTypes[3]
   251  	if protoimpl.UnsafeEnabled && x != nil {
   252  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   253  		if ms.LoadMessageInfo() == nil {
   254  			ms.StoreMessageInfo(mi)
   255  		}
   256  		return ms
   257  	}
   258  	return mi.MessageOf(x)
   259  }
   260  
   261  // Deprecated: Use DRHeader.ProtoReflect.Descriptor instead.
   262  func (*DRHeader) Descriptor() ([]byte, []int) {
   263  	return file_protocol_message_proto_rawDescGZIP(), []int{3}
   264  }
   265  
   266  func (x *DRHeader) GetKey() []byte {
   267  	if x != nil {
   268  		return x.Key
   269  	}
   270  	return nil
   271  }
   272  
   273  func (x *DRHeader) GetN() uint32 {
   274  	if x != nil {
   275  		return x.N
   276  	}
   277  	return 0
   278  }
   279  
   280  func (x *DRHeader) GetPn() uint32 {
   281  	if x != nil {
   282  		return x.Pn
   283  	}
   284  	return 0
   285  }
   286  
   287  func (x *DRHeader) GetId() []byte {
   288  	if x != nil {
   289  		return x.Id
   290  	}
   291  	return nil
   292  }
   293  
   294  type DHHeader struct {
   295  	state         protoimpl.MessageState
   296  	sizeCache     protoimpl.SizeCache
   297  	unknownFields protoimpl.UnknownFields
   298  
   299  	// Compressed ephemeral public key
   300  	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   301  }
   302  
   303  func (x *DHHeader) Reset() {
   304  	*x = DHHeader{}
   305  	if protoimpl.UnsafeEnabled {
   306  		mi := &file_protocol_message_proto_msgTypes[4]
   307  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   308  		ms.StoreMessageInfo(mi)
   309  	}
   310  }
   311  
   312  func (x *DHHeader) String() string {
   313  	return protoimpl.X.MessageStringOf(x)
   314  }
   315  
   316  func (*DHHeader) ProtoMessage() {}
   317  
   318  func (x *DHHeader) ProtoReflect() protoreflect.Message {
   319  	mi := &file_protocol_message_proto_msgTypes[4]
   320  	if protoimpl.UnsafeEnabled && x != nil {
   321  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   322  		if ms.LoadMessageInfo() == nil {
   323  			ms.StoreMessageInfo(mi)
   324  		}
   325  		return ms
   326  	}
   327  	return mi.MessageOf(x)
   328  }
   329  
   330  // Deprecated: Use DHHeader.ProtoReflect.Descriptor instead.
   331  func (*DHHeader) Descriptor() ([]byte, []int) {
   332  	return file_protocol_message_proto_rawDescGZIP(), []int{4}
   333  }
   334  
   335  func (x *DHHeader) GetKey() []byte {
   336  	if x != nil {
   337  		return x.Key
   338  	}
   339  	return nil
   340  }
   341  
   342  type X3DHHeader struct {
   343  	state         protoimpl.MessageState
   344  	sizeCache     protoimpl.SizeCache
   345  	unknownFields protoimpl.UnknownFields
   346  
   347  	// Ephemeral key used
   348  	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
   349  	// Used bundle's signed prekey
   350  	Id []byte `protobuf:"bytes,4,opt,name=id,proto3" json:"id,omitempty"`
   351  }
   352  
   353  func (x *X3DHHeader) Reset() {
   354  	*x = X3DHHeader{}
   355  	if protoimpl.UnsafeEnabled {
   356  		mi := &file_protocol_message_proto_msgTypes[5]
   357  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   358  		ms.StoreMessageInfo(mi)
   359  	}
   360  }
   361  
   362  func (x *X3DHHeader) String() string {
   363  	return protoimpl.X.MessageStringOf(x)
   364  }
   365  
   366  func (*X3DHHeader) ProtoMessage() {}
   367  
   368  func (x *X3DHHeader) ProtoReflect() protoreflect.Message {
   369  	mi := &file_protocol_message_proto_msgTypes[5]
   370  	if protoimpl.UnsafeEnabled && x != nil {
   371  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   372  		if ms.LoadMessageInfo() == nil {
   373  			ms.StoreMessageInfo(mi)
   374  		}
   375  		return ms
   376  	}
   377  	return mi.MessageOf(x)
   378  }
   379  
   380  // Deprecated: Use X3DHHeader.ProtoReflect.Descriptor instead.
   381  func (*X3DHHeader) Descriptor() ([]byte, []int) {
   382  	return file_protocol_message_proto_rawDescGZIP(), []int{5}
   383  }
   384  
   385  func (x *X3DHHeader) GetKey() []byte {
   386  	if x != nil {
   387  		return x.Key
   388  	}
   389  	return nil
   390  }
   391  
   392  func (x *X3DHHeader) GetId() []byte {
   393  	if x != nil {
   394  		return x.Id
   395  	}
   396  	return nil
   397  }
   398  
   399  // Hash Ratchet Header
   400  type HRHeader struct {
   401  	state         protoimpl.MessageState
   402  	sizeCache     protoimpl.SizeCache
   403  	unknownFields protoimpl.UnknownFields
   404  
   405  	// deprecated group key ID
   406  	DeprecatedKeyId uint32 `protobuf:"varint,1,opt,name=deprecated_key_id,json=deprecatedKeyId,proto3" json:"deprecated_key_id,omitempty"`
   407  	// group message number for this key_id
   408  	SeqNo uint32 `protobuf:"varint,2,opt,name=seq_no,json=seqNo,proto3" json:"seq_no,omitempty"`
   409  	// group ID
   410  	GroupId []byte `protobuf:"bytes,3,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
   411  	// group key ID
   412  	KeyId []byte  `protobuf:"bytes,4,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
   413  	Keys  *HRKeys `protobuf:"bytes,5,opt,name=keys,proto3" json:"keys,omitempty"`
   414  }
   415  
   416  func (x *HRHeader) Reset() {
   417  	*x = HRHeader{}
   418  	if protoimpl.UnsafeEnabled {
   419  		mi := &file_protocol_message_proto_msgTypes[6]
   420  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   421  		ms.StoreMessageInfo(mi)
   422  	}
   423  }
   424  
   425  func (x *HRHeader) String() string {
   426  	return protoimpl.X.MessageStringOf(x)
   427  }
   428  
   429  func (*HRHeader) ProtoMessage() {}
   430  
   431  func (x *HRHeader) ProtoReflect() protoreflect.Message {
   432  	mi := &file_protocol_message_proto_msgTypes[6]
   433  	if protoimpl.UnsafeEnabled && x != nil {
   434  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   435  		if ms.LoadMessageInfo() == nil {
   436  			ms.StoreMessageInfo(mi)
   437  		}
   438  		return ms
   439  	}
   440  	return mi.MessageOf(x)
   441  }
   442  
   443  // Deprecated: Use HRHeader.ProtoReflect.Descriptor instead.
   444  func (*HRHeader) Descriptor() ([]byte, []int) {
   445  	return file_protocol_message_proto_rawDescGZIP(), []int{6}
   446  }
   447  
   448  func (x *HRHeader) GetDeprecatedKeyId() uint32 {
   449  	if x != nil {
   450  		return x.DeprecatedKeyId
   451  	}
   452  	return 0
   453  }
   454  
   455  func (x *HRHeader) GetSeqNo() uint32 {
   456  	if x != nil {
   457  		return x.SeqNo
   458  	}
   459  	return 0
   460  }
   461  
   462  func (x *HRHeader) GetGroupId() []byte {
   463  	if x != nil {
   464  		return x.GroupId
   465  	}
   466  	return nil
   467  }
   468  
   469  func (x *HRHeader) GetKeyId() []byte {
   470  	if x != nil {
   471  		return x.KeyId
   472  	}
   473  	return nil
   474  }
   475  
   476  func (x *HRHeader) GetKeys() *HRKeys {
   477  	if x != nil {
   478  		return x.Keys
   479  	}
   480  	return nil
   481  }
   482  
   483  type RekeyGroup struct {
   484  	state         protoimpl.MessageState
   485  	sizeCache     protoimpl.SizeCache
   486  	unknownFields protoimpl.UnknownFields
   487  
   488  	Timestamp uint64            `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   489  	Keys      map[uint32][]byte `protobuf:"bytes,4,rep,name=keys,proto3" json:"keys,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   490  }
   491  
   492  func (x *RekeyGroup) Reset() {
   493  	*x = RekeyGroup{}
   494  	if protoimpl.UnsafeEnabled {
   495  		mi := &file_protocol_message_proto_msgTypes[7]
   496  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   497  		ms.StoreMessageInfo(mi)
   498  	}
   499  }
   500  
   501  func (x *RekeyGroup) String() string {
   502  	return protoimpl.X.MessageStringOf(x)
   503  }
   504  
   505  func (*RekeyGroup) ProtoMessage() {}
   506  
   507  func (x *RekeyGroup) ProtoReflect() protoreflect.Message {
   508  	mi := &file_protocol_message_proto_msgTypes[7]
   509  	if protoimpl.UnsafeEnabled && x != nil {
   510  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   511  		if ms.LoadMessageInfo() == nil {
   512  			ms.StoreMessageInfo(mi)
   513  		}
   514  		return ms
   515  	}
   516  	return mi.MessageOf(x)
   517  }
   518  
   519  // Deprecated: Use RekeyGroup.ProtoReflect.Descriptor instead.
   520  func (*RekeyGroup) Descriptor() ([]byte, []int) {
   521  	return file_protocol_message_proto_rawDescGZIP(), []int{7}
   522  }
   523  
   524  func (x *RekeyGroup) GetTimestamp() uint64 {
   525  	if x != nil {
   526  		return x.Timestamp
   527  	}
   528  	return 0
   529  }
   530  
   531  func (x *RekeyGroup) GetKeys() map[uint32][]byte {
   532  	if x != nil {
   533  		return x.Keys
   534  	}
   535  	return nil
   536  }
   537  
   538  type HRKeys struct {
   539  	state         protoimpl.MessageState
   540  	sizeCache     protoimpl.SizeCache
   541  	unknownFields protoimpl.UnknownFields
   542  
   543  	Keys       []*HRKey    `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
   544  	RekeyGroup *RekeyGroup `protobuf:"bytes,2,opt,name=rekey_group,json=rekeyGroup,proto3" json:"rekey_group,omitempty"`
   545  }
   546  
   547  func (x *HRKeys) Reset() {
   548  	*x = HRKeys{}
   549  	if protoimpl.UnsafeEnabled {
   550  		mi := &file_protocol_message_proto_msgTypes[8]
   551  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   552  		ms.StoreMessageInfo(mi)
   553  	}
   554  }
   555  
   556  func (x *HRKeys) String() string {
   557  	return protoimpl.X.MessageStringOf(x)
   558  }
   559  
   560  func (*HRKeys) ProtoMessage() {}
   561  
   562  func (x *HRKeys) ProtoReflect() protoreflect.Message {
   563  	mi := &file_protocol_message_proto_msgTypes[8]
   564  	if protoimpl.UnsafeEnabled && x != nil {
   565  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   566  		if ms.LoadMessageInfo() == nil {
   567  			ms.StoreMessageInfo(mi)
   568  		}
   569  		return ms
   570  	}
   571  	return mi.MessageOf(x)
   572  }
   573  
   574  // Deprecated: Use HRKeys.ProtoReflect.Descriptor instead.
   575  func (*HRKeys) Descriptor() ([]byte, []int) {
   576  	return file_protocol_message_proto_rawDescGZIP(), []int{8}
   577  }
   578  
   579  func (x *HRKeys) GetKeys() []*HRKey {
   580  	if x != nil {
   581  		return x.Keys
   582  	}
   583  	return nil
   584  }
   585  
   586  func (x *HRKeys) GetRekeyGroup() *RekeyGroup {
   587  	if x != nil {
   588  		return x.RekeyGroup
   589  	}
   590  	return nil
   591  }
   592  
   593  type HRKey struct {
   594  	state         protoimpl.MessageState
   595  	sizeCache     protoimpl.SizeCache
   596  	unknownFields protoimpl.UnknownFields
   597  
   598  	DeprecatedKeyId uint32 `protobuf:"varint,1,opt,name=deprecated_key_id,json=deprecatedKeyId,proto3" json:"deprecated_key_id,omitempty"`
   599  	Key             []byte `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
   600  	Timestamp       uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
   601  }
   602  
   603  func (x *HRKey) Reset() {
   604  	*x = HRKey{}
   605  	if protoimpl.UnsafeEnabled {
   606  		mi := &file_protocol_message_proto_msgTypes[9]
   607  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   608  		ms.StoreMessageInfo(mi)
   609  	}
   610  }
   611  
   612  func (x *HRKey) String() string {
   613  	return protoimpl.X.MessageStringOf(x)
   614  }
   615  
   616  func (*HRKey) ProtoMessage() {}
   617  
   618  func (x *HRKey) ProtoReflect() protoreflect.Message {
   619  	mi := &file_protocol_message_proto_msgTypes[9]
   620  	if protoimpl.UnsafeEnabled && x != nil {
   621  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   622  		if ms.LoadMessageInfo() == nil {
   623  			ms.StoreMessageInfo(mi)
   624  		}
   625  		return ms
   626  	}
   627  	return mi.MessageOf(x)
   628  }
   629  
   630  // Deprecated: Use HRKey.ProtoReflect.Descriptor instead.
   631  func (*HRKey) Descriptor() ([]byte, []int) {
   632  	return file_protocol_message_proto_rawDescGZIP(), []int{9}
   633  }
   634  
   635  func (x *HRKey) GetDeprecatedKeyId() uint32 {
   636  	if x != nil {
   637  		return x.DeprecatedKeyId
   638  	}
   639  	return 0
   640  }
   641  
   642  func (x *HRKey) GetKey() []byte {
   643  	if x != nil {
   644  		return x.Key
   645  	}
   646  	return nil
   647  }
   648  
   649  func (x *HRKey) GetTimestamp() uint64 {
   650  	if x != nil {
   651  		return x.Timestamp
   652  	}
   653  	return 0
   654  }
   655  
   656  // Direct message value
   657  type EncryptedMessageProtocol struct {
   658  	state         protoimpl.MessageState
   659  	sizeCache     protoimpl.SizeCache
   660  	unknownFields protoimpl.UnknownFields
   661  
   662  	X3DHHeader *X3DHHeader `protobuf:"bytes,1,opt,name=X3DH_header,json=X3DHHeader,proto3" json:"X3DH_header,omitempty"`
   663  	DRHeader   *DRHeader   `protobuf:"bytes,2,opt,name=DR_header,json=DRHeader,proto3" json:"DR_header,omitempty"`
   664  	DHHeader   *DHHeader   `protobuf:"bytes,101,opt,name=DH_header,json=DHHeader,proto3" json:"DH_header,omitempty"`
   665  	HRHeader   *HRHeader   `protobuf:"bytes,102,opt,name=HR_header,json=HRHeader,proto3" json:"HR_header,omitempty"`
   666  	// Encrypted payload
   667  	Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"`
   668  }
   669  
   670  func (x *EncryptedMessageProtocol) Reset() {
   671  	*x = EncryptedMessageProtocol{}
   672  	if protoimpl.UnsafeEnabled {
   673  		mi := &file_protocol_message_proto_msgTypes[10]
   674  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   675  		ms.StoreMessageInfo(mi)
   676  	}
   677  }
   678  
   679  func (x *EncryptedMessageProtocol) String() string {
   680  	return protoimpl.X.MessageStringOf(x)
   681  }
   682  
   683  func (*EncryptedMessageProtocol) ProtoMessage() {}
   684  
   685  func (x *EncryptedMessageProtocol) ProtoReflect() protoreflect.Message {
   686  	mi := &file_protocol_message_proto_msgTypes[10]
   687  	if protoimpl.UnsafeEnabled && x != nil {
   688  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   689  		if ms.LoadMessageInfo() == nil {
   690  			ms.StoreMessageInfo(mi)
   691  		}
   692  		return ms
   693  	}
   694  	return mi.MessageOf(x)
   695  }
   696  
   697  // Deprecated: Use EncryptedMessageProtocol.ProtoReflect.Descriptor instead.
   698  func (*EncryptedMessageProtocol) Descriptor() ([]byte, []int) {
   699  	return file_protocol_message_proto_rawDescGZIP(), []int{10}
   700  }
   701  
   702  func (x *EncryptedMessageProtocol) GetX3DHHeader() *X3DHHeader {
   703  	if x != nil {
   704  		return x.X3DHHeader
   705  	}
   706  	return nil
   707  }
   708  
   709  func (x *EncryptedMessageProtocol) GetDRHeader() *DRHeader {
   710  	if x != nil {
   711  		return x.DRHeader
   712  	}
   713  	return nil
   714  }
   715  
   716  func (x *EncryptedMessageProtocol) GetDHHeader() *DHHeader {
   717  	if x != nil {
   718  		return x.DHHeader
   719  	}
   720  	return nil
   721  }
   722  
   723  func (x *EncryptedMessageProtocol) GetHRHeader() *HRHeader {
   724  	if x != nil {
   725  		return x.HRHeader
   726  	}
   727  	return nil
   728  }
   729  
   730  func (x *EncryptedMessageProtocol) GetPayload() []byte {
   731  	if x != nil {
   732  		return x.Payload
   733  	}
   734  	return nil
   735  }
   736  
   737  // Top-level protocol message
   738  type ProtocolMessage struct {
   739  	state         protoimpl.MessageState
   740  	sizeCache     protoimpl.SizeCache
   741  	unknownFields protoimpl.UnknownFields
   742  
   743  	// The device id of the sender
   744  	InstallationId string `protobuf:"bytes,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"`
   745  	// List of bundles
   746  	Bundles []*Bundle `protobuf:"bytes,3,rep,name=bundles,proto3" json:"bundles,omitempty"`
   747  	// One to one message, encrypted, indexed by installation_id
   748  	// TODO map here is redundant in case of community messages
   749  	EncryptedMessage map[string]*EncryptedMessageProtocol `protobuf:"bytes,101,rep,name=encrypted_message,json=encryptedMessage,proto3" json:"encrypted_message,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   750  	// Public chats, not encrypted
   751  	PublicMessage []byte `protobuf:"bytes,102,opt,name=public_message,json=publicMessage,proto3" json:"public_message,omitempty"`
   752  }
   753  
   754  func (x *ProtocolMessage) Reset() {
   755  	*x = ProtocolMessage{}
   756  	if protoimpl.UnsafeEnabled {
   757  		mi := &file_protocol_message_proto_msgTypes[11]
   758  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   759  		ms.StoreMessageInfo(mi)
   760  	}
   761  }
   762  
   763  func (x *ProtocolMessage) String() string {
   764  	return protoimpl.X.MessageStringOf(x)
   765  }
   766  
   767  func (*ProtocolMessage) ProtoMessage() {}
   768  
   769  func (x *ProtocolMessage) ProtoReflect() protoreflect.Message {
   770  	mi := &file_protocol_message_proto_msgTypes[11]
   771  	if protoimpl.UnsafeEnabled && x != nil {
   772  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   773  		if ms.LoadMessageInfo() == nil {
   774  			ms.StoreMessageInfo(mi)
   775  		}
   776  		return ms
   777  	}
   778  	return mi.MessageOf(x)
   779  }
   780  
   781  // Deprecated: Use ProtocolMessage.ProtoReflect.Descriptor instead.
   782  func (*ProtocolMessage) Descriptor() ([]byte, []int) {
   783  	return file_protocol_message_proto_rawDescGZIP(), []int{11}
   784  }
   785  
   786  func (x *ProtocolMessage) GetInstallationId() string {
   787  	if x != nil {
   788  		return x.InstallationId
   789  	}
   790  	return ""
   791  }
   792  
   793  func (x *ProtocolMessage) GetBundles() []*Bundle {
   794  	if x != nil {
   795  		return x.Bundles
   796  	}
   797  	return nil
   798  }
   799  
   800  func (x *ProtocolMessage) GetEncryptedMessage() map[string]*EncryptedMessageProtocol {
   801  	if x != nil {
   802  		return x.EncryptedMessage
   803  	}
   804  	return nil
   805  }
   806  
   807  func (x *ProtocolMessage) GetPublicMessage() []byte {
   808  	if x != nil {
   809  		return x.PublicMessage
   810  	}
   811  	return nil
   812  }
   813  
   814  var File_protocol_message_proto protoreflect.FileDescriptor
   815  
   816  var file_protocol_message_proto_rawDesc = []byte{
   817  	0x0a, 0x16, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61,
   818  	0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70,
   819  	0x74, 0x69, 0x6f, 0x6e, 0x22, 0x79, 0x0a, 0x0c, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72,
   820  	0x65, 0x4b, 0x65, 0x79, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70,
   821  	0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x73, 0x69,
   822  	0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65,
   823  	0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x76, 0x65, 0x72,
   824  	0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
   825  	0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f,
   826  	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22,
   827  	0x8b, 0x02, 0x0a, 0x06, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x64,
   828  	0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x69, 0x64,
   829  	0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x12, 0x4d, 0x0a, 0x0f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64,
   830  	0x5f, 0x70, 0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
   831  	0x25, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75, 0x6e,
   832  	0x64, 0x6c, 0x65, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65, 0x79,
   833  	0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72,
   834  	0x65, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74, 0x75,
   835  	0x72, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x73, 0x69, 0x67, 0x6e, 0x61, 0x74,
   836  	0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
   837  	0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
   838  	0x70, 0x1a, 0x5a, 0x0a, 0x12, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65,
   839  	0x79, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
   840  	0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2e, 0x0a, 0x05, 0x76, 0x61, 0x6c,
   841  	0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79,
   842  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b,
   843  	0x65, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x78, 0x0a,
   844  	0x0f, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72,
   845  	0x12, 0x2a, 0x0a, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
   846  	0x32, 0x12, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x42, 0x75,
   847  	0x6e, 0x64, 0x6c, 0x65, 0x52, 0x06, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x33, 0x0a, 0x16,
   848  	0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x70,
   849  	0x72, 0x65, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x13, 0x70, 0x72,
   850  	0x69, 0x76, 0x61, 0x74, 0x65, 0x53, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x50, 0x72, 0x65, 0x4b, 0x65,
   851  	0x79, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0x4a, 0x0a, 0x08, 0x44, 0x52, 0x48, 0x65, 0x61,
   852  	0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c,
   853  	0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x0c, 0x0a, 0x01, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
   854  	0x52, 0x01, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x70, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52,
   855  	0x02, 0x70, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52,
   856  	0x02, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x08, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
   857  	0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65,
   858  	0x79, 0x22, 0x34, 0x0a, 0x0a, 0x58, 0x33, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12,
   859  	0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65,
   860  	0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69,
   861  	0x64, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x22, 0xa7, 0x01, 0x0a, 0x08, 0x48, 0x52, 0x48, 0x65,
   862  	0x61, 0x64, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74,
   863  	0x65, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
   864  	0x0f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x49, 0x64,
   865  	0x12, 0x15, 0x0a, 0x06, 0x73, 0x65, 0x71, 0x5f, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d,
   866  	0x52, 0x05, 0x73, 0x65, 0x71, 0x4e, 0x6f, 0x12, 0x19, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70,
   867  	0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70,
   868  	0x49, 0x64, 0x12, 0x15, 0x0a, 0x06, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
   869  	0x28, 0x0c, 0x52, 0x05, 0x6b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x26, 0x0a, 0x04, 0x6b, 0x65, 0x79,
   870  	0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70,
   871  	0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x52, 0x4b, 0x65, 0x79, 0x73, 0x52, 0x04, 0x6b, 0x65, 0x79,
   872  	0x73, 0x22, 0x99, 0x01, 0x0a, 0x0a, 0x52, 0x65, 0x6b, 0x65, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70,
   873  	0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20,
   874  	0x01, 0x28, 0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x34,
   875  	0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x65,
   876  	0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x6b, 0x65, 0x79, 0x47,
   877  	0x72, 0x6f, 0x75, 0x70, 0x2e, 0x4b, 0x65, 0x79, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04,
   878  	0x6b, 0x65, 0x79, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4b, 0x65, 0x79, 0x73, 0x45, 0x6e, 0x74, 0x72,
   879  	0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03,
   880  	0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
   881  	0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x68, 0x0a,
   882  	0x06, 0x48, 0x52, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x25, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18,
   883  	0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69,
   884  	0x6f, 0x6e, 0x2e, 0x48, 0x52, 0x4b, 0x65, 0x79, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x12, 0x37,
   885  	0x0a, 0x0b, 0x72, 0x65, 0x6b, 0x65, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, 0x20,
   886  	0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e,
   887  	0x2e, 0x52, 0x65, 0x6b, 0x65, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0a, 0x72, 0x65, 0x6b,
   888  	0x65, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x22, 0x63, 0x0a, 0x05, 0x48, 0x52, 0x4b, 0x65, 0x79,
   889  	0x12, 0x2a, 0x0a, 0x11, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6b,
   890  	0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0f, 0x64, 0x65, 0x70,
   891  	0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x4b, 0x65, 0x79, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03,
   892  	0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1c,
   893  	0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28,
   894  	0x04, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x86, 0x02, 0x0a,
   895  	0x18, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
   896  	0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x37, 0x0a, 0x0b, 0x58, 0x33, 0x44,
   897  	0x48, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16,
   898  	0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x58, 0x33, 0x44, 0x48,
   899  	0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x58, 0x33, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64,
   900  	0x65, 0x72, 0x12, 0x31, 0x0a, 0x09, 0x44, 0x52, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18,
   901  	0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69,
   902  	0x6f, 0x6e, 0x2e, 0x44, 0x52, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x08, 0x44, 0x52, 0x48,
   903  	0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x09, 0x44, 0x48, 0x5f, 0x68, 0x65, 0x61, 0x64,
   904  	0x65, 0x72, 0x18, 0x65, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79,
   905  	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x08,
   906  	0x44, 0x48, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x31, 0x0a, 0x09, 0x48, 0x52, 0x5f, 0x68,
   907  	0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x65, 0x6e,
   908  	0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x48, 0x52, 0x48, 0x65, 0x61, 0x64, 0x65,
   909  	0x72, 0x52, 0x08, 0x48, 0x52, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70,
   910  	0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61,
   911  	0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xda, 0x02, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63,
   912  	0x6f, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x69, 0x6e, 0x73,
   913  	0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
   914  	0x28, 0x09, 0x52, 0x0e, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6c, 0x6c, 0x61, 0x74, 0x69, 0x6f, 0x6e,
   915  	0x49, 0x64, 0x12, 0x2c, 0x0a, 0x07, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73, 0x18, 0x03, 0x20,
   916  	0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e,
   917  	0x2e, 0x42, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x52, 0x07, 0x62, 0x75, 0x6e, 0x64, 0x6c, 0x65, 0x73,
   918  	0x12, 0x5e, 0x0a, 0x11, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65,
   919  	0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x65, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x65, 0x6e,
   920  	0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f,
   921  	0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, 0x45, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74,
   922  	0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x10,
   923  	0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
   924  	0x12, 0x25, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61,
   925  	0x67, 0x65, 0x18, 0x66, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63,
   926  	0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x69, 0x0a, 0x15, 0x45, 0x6e, 0x63, 0x72, 0x79,
   927  	0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
   928  	0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
   929  	0x65, 0x79, 0x12, 0x3a, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
   930  	0x0b, 0x32, 0x24, 0x2e, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x45,
   931  	0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x50,
   932  	0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
   933  	0x38, 0x01, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x3b, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74,
   934  	0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   935  }
   936  
   937  var (
   938  	file_protocol_message_proto_rawDescOnce sync.Once
   939  	file_protocol_message_proto_rawDescData = file_protocol_message_proto_rawDesc
   940  )
   941  
   942  func file_protocol_message_proto_rawDescGZIP() []byte {
   943  	file_protocol_message_proto_rawDescOnce.Do(func() {
   944  		file_protocol_message_proto_rawDescData = protoimpl.X.CompressGZIP(file_protocol_message_proto_rawDescData)
   945  	})
   946  	return file_protocol_message_proto_rawDescData
   947  }
   948  
   949  var file_protocol_message_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
   950  var file_protocol_message_proto_goTypes = []interface{}{
   951  	(*SignedPreKey)(nil),             // 0: encryption.SignedPreKey
   952  	(*Bundle)(nil),                   // 1: encryption.Bundle
   953  	(*BundleContainer)(nil),          // 2: encryption.BundleContainer
   954  	(*DRHeader)(nil),                 // 3: encryption.DRHeader
   955  	(*DHHeader)(nil),                 // 4: encryption.DHHeader
   956  	(*X3DHHeader)(nil),               // 5: encryption.X3DHHeader
   957  	(*HRHeader)(nil),                 // 6: encryption.HRHeader
   958  	(*RekeyGroup)(nil),               // 7: encryption.RekeyGroup
   959  	(*HRKeys)(nil),                   // 8: encryption.HRKeys
   960  	(*HRKey)(nil),                    // 9: encryption.HRKey
   961  	(*EncryptedMessageProtocol)(nil), // 10: encryption.EncryptedMessageProtocol
   962  	(*ProtocolMessage)(nil),          // 11: encryption.ProtocolMessage
   963  	nil,                              // 12: encryption.Bundle.SignedPreKeysEntry
   964  	nil,                              // 13: encryption.RekeyGroup.KeysEntry
   965  	nil,                              // 14: encryption.ProtocolMessage.EncryptedMessageEntry
   966  }
   967  var file_protocol_message_proto_depIdxs = []int32{
   968  	12, // 0: encryption.Bundle.signed_pre_keys:type_name -> encryption.Bundle.SignedPreKeysEntry
   969  	1,  // 1: encryption.BundleContainer.bundle:type_name -> encryption.Bundle
   970  	8,  // 2: encryption.HRHeader.keys:type_name -> encryption.HRKeys
   971  	13, // 3: encryption.RekeyGroup.keys:type_name -> encryption.RekeyGroup.KeysEntry
   972  	9,  // 4: encryption.HRKeys.keys:type_name -> encryption.HRKey
   973  	7,  // 5: encryption.HRKeys.rekey_group:type_name -> encryption.RekeyGroup
   974  	5,  // 6: encryption.EncryptedMessageProtocol.X3DH_header:type_name -> encryption.X3DHHeader
   975  	3,  // 7: encryption.EncryptedMessageProtocol.DR_header:type_name -> encryption.DRHeader
   976  	4,  // 8: encryption.EncryptedMessageProtocol.DH_header:type_name -> encryption.DHHeader
   977  	6,  // 9: encryption.EncryptedMessageProtocol.HR_header:type_name -> encryption.HRHeader
   978  	1,  // 10: encryption.ProtocolMessage.bundles:type_name -> encryption.Bundle
   979  	14, // 11: encryption.ProtocolMessage.encrypted_message:type_name -> encryption.ProtocolMessage.EncryptedMessageEntry
   980  	0,  // 12: encryption.Bundle.SignedPreKeysEntry.value:type_name -> encryption.SignedPreKey
   981  	10, // 13: encryption.ProtocolMessage.EncryptedMessageEntry.value:type_name -> encryption.EncryptedMessageProtocol
   982  	14, // [14:14] is the sub-list for method output_type
   983  	14, // [14:14] is the sub-list for method input_type
   984  	14, // [14:14] is the sub-list for extension type_name
   985  	14, // [14:14] is the sub-list for extension extendee
   986  	0,  // [0:14] is the sub-list for field type_name
   987  }
   988  
   989  func init() { file_protocol_message_proto_init() }
   990  func file_protocol_message_proto_init() {
   991  	if File_protocol_message_proto != nil {
   992  		return
   993  	}
   994  	if !protoimpl.UnsafeEnabled {
   995  		file_protocol_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   996  			switch v := v.(*SignedPreKey); i {
   997  			case 0:
   998  				return &v.state
   999  			case 1:
  1000  				return &v.sizeCache
  1001  			case 2:
  1002  				return &v.unknownFields
  1003  			default:
  1004  				return nil
  1005  			}
  1006  		}
  1007  		file_protocol_message_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  1008  			switch v := v.(*Bundle); i {
  1009  			case 0:
  1010  				return &v.state
  1011  			case 1:
  1012  				return &v.sizeCache
  1013  			case 2:
  1014  				return &v.unknownFields
  1015  			default:
  1016  				return nil
  1017  			}
  1018  		}
  1019  		file_protocol_message_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  1020  			switch v := v.(*BundleContainer); i {
  1021  			case 0:
  1022  				return &v.state
  1023  			case 1:
  1024  				return &v.sizeCache
  1025  			case 2:
  1026  				return &v.unknownFields
  1027  			default:
  1028  				return nil
  1029  			}
  1030  		}
  1031  		file_protocol_message_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  1032  			switch v := v.(*DRHeader); i {
  1033  			case 0:
  1034  				return &v.state
  1035  			case 1:
  1036  				return &v.sizeCache
  1037  			case 2:
  1038  				return &v.unknownFields
  1039  			default:
  1040  				return nil
  1041  			}
  1042  		}
  1043  		file_protocol_message_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  1044  			switch v := v.(*DHHeader); i {
  1045  			case 0:
  1046  				return &v.state
  1047  			case 1:
  1048  				return &v.sizeCache
  1049  			case 2:
  1050  				return &v.unknownFields
  1051  			default:
  1052  				return nil
  1053  			}
  1054  		}
  1055  		file_protocol_message_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  1056  			switch v := v.(*X3DHHeader); i {
  1057  			case 0:
  1058  				return &v.state
  1059  			case 1:
  1060  				return &v.sizeCache
  1061  			case 2:
  1062  				return &v.unknownFields
  1063  			default:
  1064  				return nil
  1065  			}
  1066  		}
  1067  		file_protocol_message_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  1068  			switch v := v.(*HRHeader); i {
  1069  			case 0:
  1070  				return &v.state
  1071  			case 1:
  1072  				return &v.sizeCache
  1073  			case 2:
  1074  				return &v.unknownFields
  1075  			default:
  1076  				return nil
  1077  			}
  1078  		}
  1079  		file_protocol_message_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  1080  			switch v := v.(*RekeyGroup); i {
  1081  			case 0:
  1082  				return &v.state
  1083  			case 1:
  1084  				return &v.sizeCache
  1085  			case 2:
  1086  				return &v.unknownFields
  1087  			default:
  1088  				return nil
  1089  			}
  1090  		}
  1091  		file_protocol_message_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
  1092  			switch v := v.(*HRKeys); i {
  1093  			case 0:
  1094  				return &v.state
  1095  			case 1:
  1096  				return &v.sizeCache
  1097  			case 2:
  1098  				return &v.unknownFields
  1099  			default:
  1100  				return nil
  1101  			}
  1102  		}
  1103  		file_protocol_message_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
  1104  			switch v := v.(*HRKey); i {
  1105  			case 0:
  1106  				return &v.state
  1107  			case 1:
  1108  				return &v.sizeCache
  1109  			case 2:
  1110  				return &v.unknownFields
  1111  			default:
  1112  				return nil
  1113  			}
  1114  		}
  1115  		file_protocol_message_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
  1116  			switch v := v.(*EncryptedMessageProtocol); i {
  1117  			case 0:
  1118  				return &v.state
  1119  			case 1:
  1120  				return &v.sizeCache
  1121  			case 2:
  1122  				return &v.unknownFields
  1123  			default:
  1124  				return nil
  1125  			}
  1126  		}
  1127  		file_protocol_message_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
  1128  			switch v := v.(*ProtocolMessage); i {
  1129  			case 0:
  1130  				return &v.state
  1131  			case 1:
  1132  				return &v.sizeCache
  1133  			case 2:
  1134  				return &v.unknownFields
  1135  			default:
  1136  				return nil
  1137  			}
  1138  		}
  1139  	}
  1140  	type x struct{}
  1141  	out := protoimpl.TypeBuilder{
  1142  		File: protoimpl.DescBuilder{
  1143  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1144  			RawDescriptor: file_protocol_message_proto_rawDesc,
  1145  			NumEnums:      0,
  1146  			NumMessages:   15,
  1147  			NumExtensions: 0,
  1148  			NumServices:   0,
  1149  		},
  1150  		GoTypes:           file_protocol_message_proto_goTypes,
  1151  		DependencyIndexes: file_protocol_message_proto_depIdxs,
  1152  		MessageInfos:      file_protocol_message_proto_msgTypes,
  1153  	}.Build()
  1154  	File_protocol_message_proto = out.File
  1155  	file_protocol_message_proto_rawDesc = nil
  1156  	file_protocol_message_proto_goTypes = nil
  1157  	file_protocol_message_proto_depIdxs = nil
  1158  }