/**
 * <p class=proto-main>This API supports the Privacy Mode.</p>
 *
 * <div class=proto-hier>
 *   UconnectAny
 *     |
 *     |---- <a href="#com.fca.uconnect.global.PrivacyModeRequest">PrivacyModeRequest PrivacyModeRequest ()</a>
 *     |---- <a href="#com.fca.uconnect.global.PrivacyModeResponse"> PrivacyModeResponse  PrivacyModeResponse () </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.1</td><td>2018-11-13</td><td>Added Duration per assembla ticket 550</td></tr>
 * <tr><td>1.0</td><td>2018-06-18</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}/PM/</td></tr>
 *	 <tr><td>Cloud receive from Vehicle</td><td>Subscribe</td><td>fcasdp/PM/#</td></tr>
 *	 <tr><td>Vehicle send to Cloud </td><td>Publish</td><td>fcasdp/PM/${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>The following sequence diagram depicts the flow of messages between the TBM and the SDP:</p>
 *
 * <img class=img-border src=./images/privacy.png>
 *
 *
 */

syntax="proto3";
package com.fca.uconnect.global;

//import public "Global_Uconnect_Control.proto";
//import public "Global_Uconnect_VehicleInfo.proto";
/**
 * This message represents  PrivacyModeRequest of vehicle for Privacy Mode settings.
 * <div class=exmsg-main>
 * <h4>PrivacyModeRequest Example Message:</h4>
 * <div class=ex-msg>
 *	<code>
 * 		timestamp: 1489632211020
 * 		messageId: 1
 * 		messages
 * 		{
 * 		 [com.fca.uconnect.global.PrivacyModeRequest]
 * 		 {
 * 		  action: SUBSCRIBE
 * 		  serviceRequestId:"-\0274\302]\325\324 \354K"
 * 		  PrivacyModeRequest
 * 		  {
 * 			command: ENTER
 *
 * 		  }
 * 		 }
 * 		}
 *	</code>
 *   </div>
 * </div>
 */
message PrivacyModeRequest {

	bytes serviceRequestId = 1; /// ServiceRequestId assigned by the SDP
	PrivacyModeEnum privacyMode = 2; /// Turn on or off the inhibit of the vehicle start
	int32 duration = 3;




enum PrivacyModeEnum {
	ENTER = 0;
	EXIT = 1;

	}

}


message PrivacyModeResponse {

	enum ResponseEnum {
		SUCCESS = 0; /// Success
		FAILED = 1; /// FAILED
		    }
	 ResponseEnum response = 1;
	 bytes serviceRequestId = 2;/// service request id assigned by SDP
	 bool isTransient = 3; /// Indicates a transient error and a retry can be attempted.
	 int32 failureReasonCode = 4; /// Specific error code.

}

message PrivacyModeNotification {
	PrivacyModeStatusEnum PrivacyModeStatus = 1;
	int32 duration = 2;

	enum PrivacyModeStatusEnum {
	ACTIVE = 0;
	NOT_ACTIVE = 1;
}
}
