/** * Copyright (C) 2013 Open WhisperSystems * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . */ package textsecure; option java_package = "org.whispersystems.textsecuregcm.entities"; option java_outer_classname = "MessageProtos"; message OutgoingMessageSignal { enum Type { UNKNOWN = 0; CIPHERTEXT = 1; KEY_EXCHANGE = 2; PREKEY_BUNDLE = 3; PLAINTEXT = 4; RECEIPT = 5; } optional uint32 type = 1; optional string source = 2; optional uint32 sourceDevice = 7; optional string relay = 3; // repeated string destinations = 4; optional uint64 timestamp = 5; optional bytes message = 6; }