/** * Copyright (C) 2013 - 2015 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 Envelope { enum Type { UNKNOWN = 0; CIPHERTEXT = 1; KEY_EXCHANGE = 2; PREKEY_BUNDLE = 3; RECEIPT = 5; } optional Type type = 1; optional string source = 2; optional uint32 sourceDevice = 7; optional string relay = 3; optional uint64 timestamp = 5; optional bytes legacyMessage = 6; // Contains an encrypted DataMessage XXX -- Remove after 10/01/15 optional bytes content = 8; // Contains an encrypted Content } message ProvisioningUuid { optional string uuid = 1; }