All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rasa.signal-service-java.2.15.3_unofficial_108.source-code.KeyBackupService.proto Maven / Gradle / Ivy

There is a newer version: 2.15.3_unofficial_107
Show newest version
// Proto schema formatted by Wire, do not edit.
// Source: KeyBackupService.proto

syntax = "proto2";

package textsecure;

option java_package = "org.whispersystems.signalservice.internal.keybackup.protos";
option java_multiple_files = true;

message Request {
  optional BackupRequest backup = 1;

  optional RestoreRequest restore = 2;

  optional DeleteRequest delete = 3;
}

message Response {
  optional BackupResponse backup = 1;

  optional RestoreResponse restore = 2;

  optional DeleteResponse delete = 3;
}

message BackupRequest {
  optional bytes serviceId = 1;

  optional bytes backupId = 2;

  optional bytes token = 3;

  optional uint64 validFrom = 4;

  optional bytes data = 5;

  optional bytes pin = 6;

  optional uint32 tries = 7;
}

message BackupResponse {
  optional Status status = 1;

  optional bytes token = 2;

  enum Status {
    OK = 1;
    ALREADY_EXISTS = 2;
    NOT_YET_VALID = 3;
  }
}

message RestoreRequest {
  optional bytes serviceId = 1;

  optional bytes backupId = 2;

  optional bytes token = 3;

  optional uint64 validFrom = 4;

  optional bytes pin = 5;
}

message RestoreResponse {
  optional Status status = 1;

  optional bytes token = 2;

  optional bytes data = 3;

  optional uint32 tries = 4;

  enum Status {
    OK = 1;
    TOKEN_MISMATCH = 2;
    NOT_YET_VALID = 3;
    MISSING = 4;
    PIN_MISMATCH = 5;
  }
}

message DeleteRequest {
  optional bytes serviceId = 1;

  optional bytes backupId = 2;
}

message DeleteResponse {}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy