/**
 *  * <script type="text/javascript" src="rawdeflate.js"></script>
* <script type="text/javascript" src="jquery.js"></script>
* <script type="text/javascript" src="jquery_plantuml.js"></script>
*
 * <p class=proto-main>This API is to upload Data Gathered for Pages Coaching and Connected Brand Pages.</p>
 *
 * <div class=proto-hier>
 *   UconnectAny
 *     |
 *     |---- <a href="#com.fca.uconnect.global.UploadPagesData">UploadPagesData UploadPagesData (2000)</a>
 *
 * </div>
 *
 *  <h3 class=change-log-hdr> Change Log</h3>
 *  <table id="change-log" class="change-log"><thead><tr>
 *	<td>Version</td><td>Date</td><td>Notes</td></tr></thead>
 *   <tbody>
*   <tr><td>1.3/td><td>2018-10-16</td><td>Removed Eco Coaching </td></tr>
 *   <tr><td>1.2</td><td>2018-07-23</td><td>Updated Sequence Diagram </td></tr>
 *   <tr><td>1.1</td><td>2018-05-18</td><td>Added Token Elements Required for profile. </td></tr>
 *   <tr><td>1.0</td><td>2018-03-12</td><td>Release of initial Proto</td></tr>
 *	</tbody></table>
 *
 *  <h3 class=change-log-hdr>List of MQTT Topics</h3>
 *  <table class="change-log"><thead><tr>
 *	<td>Flow</td><td>Type</td><td>Topic Name</td></tr></thead>
 *    <tbody>
 *   <tr><td>Cloud send to Vehicle</td><td>Publish</td><td>fcasdp/${iot:ClientId}/PGS</td></tr>
 *	 <tr><td>Cloud receive from Vehicle</td><td>Subscribe</td><td>fcasdp/PGS/#</td></tr>
 *	 <tr><td>Vehicle send to Cloud </td><td>Publish</td><td>fcasdp/PGS/${iot:ClientId}</td></tr>
 *	 <tr><td>Vehicle receive from Cloud </td><td>Subscribe</td><td>fcasdp/${iot:ClientId}/#</td></tr>
 *	</tbody></table>
 * <h3 class=change-log-hdr>Data Flow</h3>
 *
 * <p class=proto-main>The following sequence diagram depicts the flow of messages between the TBM and the SDP:</p>
 *
 * <img class=img-border src='brandPages.png' />
 *
 * <table class=sequence-table><thead><tr>
 *	<td>Sequence</td><td>Title</td><td>Role</td><td>Message</td><td>Topic</td><td>Description</td></tr></thead>
 *   <tbody>
 * <tr><td>1.</td><td>Publish message from vehicle</td><td>TBM</td><td></td><td></td><td><p>The in-vehicle UploadPagesData event which triggers the client device to send an UploadPagesData Message to the SDP.</p></td></tr>
 * <tr><td>2.</td><td>Assign MessageId</td><td>TBM</td><td></td><td></td><td><p>The client generates the messageId for the message by incrementing a sequence counter.</p></td></tr>
 * <tr><td>3.</td><td>Send UploadPagesData Message</td><td>TBM</td><td>UploadPagesData</td><td>/PGS/${iot:ClientId}</td><td><p>The client populates the UploadPagesData Message with the required elements and publishes to the PERFORMANCE topic.</p></td></tr>
 * <tr><td>4.1</td><td>Process Message</td><td>SDP</td><td></td><td></td><td><p>The SDP processes the message and generates an ACK Message with the status and assign correct correlationId.</p></td></tr>
 * <tr><td>4.2.</td><td>Assign correlationID</td><td>SDP</td><td></td><td></td><td><p>Assign correct correlationId.</p></td></tr>
 * <tr><td>5</td><td>send AckMessage</td><td>SDP</td><td>AckMessage</td><td>/PGS/${iot:ClientId}</td><td><p>The SDP sends AckMessage to acknowledge that it received UploadPagesData Message.</p></td></tr>
 * <tr><td>6</td><td>Process AckMessage</td><td>TBM</td><td></td><td></td><td><p>The client process AckMessage.</p></td></tr>
 * </tbody>
 * </table>
 */
syntax="proto3";
package com.fca.uconnect.global;
import "Global_Uconnect_Ext_Auth.proto";


//import public "Global_Uconnect_Control.proto";
/**
 * This message is to upload trip data.
 * <div class=exmsg-main>
 * <h4>UploadPagesData Example Message:</h4>
 * <div class=ex-msg>
 *	<code>
 *  timestamp: 1508946513018
 *  messageId: 1
 *  messages {
 *  [com.fca.uconnect.global.UploadPagesData] {
 *    tripData: [bytes]
 *     }
 * }
 *	</code>
 * </div>
 * </div>
 */



message UploadPagesData {

		string userID=1; ///Same as ID used for the Personal Login, used for routing only
		string webSite = 2; ///Targeted Web Address
		string tripID = 5; /// Trip ID for ECO or Off Road Trip data
		dataUploadTypeEnum dataTyped=3; /// Data Type EcoTrip, BrandTrip, Trail, Status, Event
 		bytes tripData = 4; /// Data being uploaded
 		bytes profileToken = 6; /// Token obtained for Eco Coaching Profile

enum dataUploadTypeEnum {
	BASE=0; /// Required Default value
	// ECOTRIP =1; /// Trip Data for Eco
	BRANDTRIP=2; ///Trip data for Brand/Offroad Pages
	TRAIL =3; /// Performance Data for Trails Upload
	STATUS =4; /// Status Data to be uploaded
	EVENT =5; /// Event based data upload [i.e. Ingition Off/On]
}

		}

