You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			65 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Protocol Buffer
		
	
		
		
			
		
	
	
			65 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Protocol Buffer
		
	
| 
											8 years ago
										 | /**
 | ||
|  |  * Copyright (C) 2018 Open Whisper Systems
 | ||
|  |  *
 | ||
|  |  * Licensed according to the LICENSE file in this repository.
 | ||
|  |  */
 | ||
|  | 
 | ||
|  | package signal;
 | ||
|  | 
 | ||
|  | option java_package         = "org.thoughtcrime.securesms.backup";
 | ||
|  | option java_outer_classname = "BackupProtos";
 | ||
|  | 
 | ||
|  | message SqlStatement {
 | ||
| 
											8 years ago
										 |     message SqlParameter {
 | ||
|  |         optional string stringParamter   = 1;
 | ||
|  |         optional uint64 integerParameter = 2;
 | ||
|  |         optional double doubleParameter  = 3;
 | ||
|  |         optional bytes  blobParameter    = 4;
 | ||
|  |         optional bool   nullparameter    = 5;
 | ||
|  |     }
 | ||
|  | 
 | ||
|  |     optional string       statement  = 1;
 | ||
|  |     repeated SqlParameter parameters = 2;
 | ||
| 
											8 years ago
										 | }
 | ||
|  | 
 | ||
|  | message SharedPreference {
 | ||
|  |     optional string file  = 1;
 | ||
|  |     optional string key   = 2;
 | ||
|  |     optional string value = 3;
 | ||
|  | }
 | ||
|  | 
 | ||
|  | message Attachment {
 | ||
|  |     optional uint64 rowId        = 1;
 | ||
|  |     optional uint64 attachmentId = 2;
 | ||
|  |     optional uint32 length       = 3;
 | ||
|  | }
 | ||
|  | 
 | ||
| 
											7 years ago
										 | message Sticker {
 | ||
|  |     optional uint64 rowId  = 1;
 | ||
|  |     optional uint32 length = 2;
 | ||
|  | }
 | ||
|  | 
 | ||
| 
											8 years ago
										 | message Avatar {
 | ||
|  |     optional string name   = 1;
 | ||
|  |     optional uint32 length = 2;
 | ||
|  | }
 | ||
|  | 
 | ||
| 
											8 years ago
										 | message DatabaseVersion {
 | ||
|  |     optional uint32 version = 1;
 | ||
|  | }
 | ||
|  | 
 | ||
|  | message Header {
 | ||
| 
											8 years ago
										 |     optional bytes iv   = 1;
 | ||
|  |     optional bytes salt = 2;
 | ||
| 
											8 years ago
										 | }
 | ||
|  | 
 | ||
|  | message BackupFrame {
 | ||
|  |     optional Header           header     = 1;
 | ||
|  |     optional SqlStatement     statement  = 2;
 | ||
|  |     optional SharedPreference preference = 3;
 | ||
|  |     optional Attachment       attachment = 4;
 | ||
|  |     optional DatabaseVersion  version    = 5;
 | ||
|  |     optional bool             end        = 6;
 | ||
| 
											8 years ago
										 |     optional Avatar           avatar     = 7;
 | ||
| 
											7 years ago
										 |     optional Sticker          sticker    = 8;
 | ||
| 
											8 years ago
										 | }
 |