// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: Global_Uconnect_Ext_SendAndGo.proto
#pragma warning disable 1591, 0612, 3021
#region Designer generated code

using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Com.Fca.Uconnect.Global {

  /// <summary>Holder for reflection information generated from Global_Uconnect_Ext_SendAndGo.proto</summary>
  public static partial class GlobalUconnectExtSendAndGoReflection {

    #region Descriptor
    /// <summary>File descriptor for Global_Uconnect_Ext_SendAndGo.proto</summary>
    public static pbr::FileDescriptor Descriptor {
      get { return descriptor; }
    }
    private static pbr::FileDescriptor descriptor;

    static GlobalUconnectExtSendAndGoReflection() {
      byte[] descriptorData = global::System.Convert.FromBase64String(
          string.Concat(
            "CiNHbG9iYWxfVWNvbm5lY3RfRXh0X1NlbmRBbmRHby5wcm90bxIXY29tLmZj",
            "YS51Y29ubmVjdC5nbG9iYWwaIUdsb2JhbF9VY29ubmVjdF9WZWhpY2xlSW5m",
            "by5wcm90byJkCg9EZXN0aW5hdGlvblB1c2gSPQoPZGVzdGluYXRpb25MaXN0",
            "GAIgASgLMiQuY29tLmZjYS51Y29ubmVjdC5nbG9iYWwuRGVzdGluYXRpb24S",
            "EgoKTG9jYXRpb25JRBgDIAEoDCKxAgoXRGVzdGluYXRpb25QdXNoUmVzcG9u",
            "c2USTwoIcmVzcG9uc2UYASABKA4yPS5jb20uZmNhLnVjb25uZWN0Lmdsb2Jh",
            "bC5EZXN0aW5hdGlvblB1c2hSZXNwb25zZS5SZXNwb25zZUVudW0SEwoLaXNU",
            "cmFuc2llbnQYAiABKAgSGQoRZmFpbHVyZVJlYXNvbkNvZGUYAyABKAUSEgoK",
            "TG9jYXRpb25JRBgEIAEoDCKAAQoMUmVzcG9uc2VFbnVtEgsKB1NVQ0NFU1MQ",
            "ABIUChBJTlZBTElEX0xPQ0FUSU9OEAESDwoLSU5WQUxJRF9QT0kQAhITCg9J",
            "TlZBTElEX0FERFJFU1MQAxIcChhJTlZBTElEX1JPVVRFX1BSRUZFUkVOQ0UQ",
            "BBIJCgVFUlJPUhAFUABiBnByb3RvMw=="));
      descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
          new pbr::FileDescriptor[] { global::Com.Fca.Uconnect.Global.GlobalUconnectVehicleInfoReflection.Descriptor, },
          new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
            new pbr::GeneratedClrTypeInfo(typeof(global::Com.Fca.Uconnect.Global.DestinationPush), global::Com.Fca.Uconnect.Global.DestinationPush.Parser, new[]{ "DestinationList", "LocationID" }, null, null, null),
            new pbr::GeneratedClrTypeInfo(typeof(global::Com.Fca.Uconnect.Global.DestinationPushResponse), global::Com.Fca.Uconnect.Global.DestinationPushResponse.Parser, new[]{ "Response", "IsTransient", "FailureReasonCode", "LocationID" }, null, new[]{ typeof(global::Com.Fca.Uconnect.Global.DestinationPushResponse.Types.ResponseEnum) }, null)
          }));
    }
    #endregion

  }
  #region Messages
  /// <summary>
  ///*
  /// This message represents  list of Destinations that User Can push to the Vehicle.
  /// &lt;div class=exmsg-main>
  /// &lt;h4>DestinationPush Example Message:&lt;/h4>
  /// &lt;div class=ex-msg>
  ///	&lt;code>
  ///		timestamp: 1490014360254
  /// 		messageId: 11
  /// 		messages
  /// 		{
  /// 		 [com.fca.uconnect.global.destinationPush]
  /// 		 {
  /// 		  isImmediateNavigation: false
  /// 		 destinationList
  /// 		 {
  /// 		  destinationLocation
  /// 		  {
  /// 		   longitude: -83.671875
  /// 		   latitude: 42.4802
  /// 		  }
  /// 		  poi
  /// 		  {
  /// 		   name: "ABCD Restaurant"
  /// 		   category: "Restaurant"
  /// 		   id: 123
  /// 		   phoneNumber: "123 456 7890"
  /// 		  description: "favorite"
  /// 		  url: "www.abcrestaurant.com"
  /// 		 }
  /// 		address
  /// 		{
  /// 		 houseNbr: "1000"
  /// 		 streetName: "Chrystler Drive"
  /// 		 cityName: "Auburn Hills"
  /// 		 provinceName: "Michigan"
  /// 		 countryName: "USA"
  /// 		 zipCode: 48326
  /// 		}
  /// 		timestamp: 1490014360251
  /// 		routePreferenceEnum: FAST
  /// 	   }
  /// 	  }
  /// 	 }
  ///	&lt;/code>
  ///   &lt;/div>
  /// &lt;/div>
  /// </summary>
  public sealed partial class DestinationPush : pb::IMessage<DestinationPush> {
    private static readonly pb::MessageParser<DestinationPush> _parser = new pb::MessageParser<DestinationPush>(() => new DestinationPush());
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<DestinationPush> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Com.Fca.Uconnect.Global.GlobalUconnectExtSendAndGoReflection.Descriptor.MessageTypes[0]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DestinationPush() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DestinationPush(DestinationPush other) : this() {
      DestinationList = other.destinationList_ != null ? other.DestinationList.Clone() : null;
      locationID_ = other.locationID_;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DestinationPush Clone() {
      return new DestinationPush(this);
    }

    /// <summary>Field number for the "destinationList" field.</summary>
    public const int DestinationListFieldNumber = 2;
    private global::Com.Fca.Uconnect.Global.Destination destinationList_;
    /// <summary>
    /// bool isImmediateNavigation = 1;
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::Com.Fca.Uconnect.Global.Destination DestinationList {
      get { return destinationList_; }
      set {
        destinationList_ = value;
      }
    }

    /// <summary>Field number for the "LocationID" field.</summary>
    public const int LocationIDFieldNumber = 3;
    private pb::ByteString locationID_ = pb::ByteString.Empty;
    /// <summary>
    //// Service Request ID Added for Trace-ability. Assigned by the SDP. Recommended that Location requests assign the locationID from DB
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public pb::ByteString LocationID {
      get { return locationID_; }
      set {
        locationID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as DestinationPush);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(DestinationPush other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (!object.Equals(DestinationList, other.DestinationList)) return false;
      if (LocationID != other.LocationID) return false;
      return true;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (destinationList_ != null) hash ^= DestinationList.GetHashCode();
      if (LocationID.Length != 0) hash ^= LocationID.GetHashCode();
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void WriteTo(pb::CodedOutputStream output) {
      if (destinationList_ != null) {
        output.WriteRawTag(18);
        output.WriteMessage(DestinationList);
      }
      if (LocationID.Length != 0) {
        output.WriteRawTag(26);
        output.WriteBytes(LocationID);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (destinationList_ != null) {
        size += 1 + pb::CodedOutputStream.ComputeMessageSize(DestinationList);
      }
      if (LocationID.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeBytesSize(LocationID);
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(DestinationPush other) {
      if (other == null) {
        return;
      }
      if (other.destinationList_ != null) {
        if (destinationList_ == null) {
          destinationList_ = new global::Com.Fca.Uconnect.Global.Destination();
        }
        DestinationList.MergeFrom(other.DestinationList);
      }
      if (other.LocationID.Length != 0) {
        LocationID = other.LocationID;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            input.SkipLastField();
            break;
          case 18: {
            if (destinationList_ == null) {
              destinationList_ = new global::Com.Fca.Uconnect.Global.Destination();
            }
            input.ReadMessage(destinationList_);
            break;
          }
          case 26: {
            LocationID = input.ReadBytes();
            break;
          }
        }
      }
    }

  }

  public sealed partial class DestinationPushResponse : pb::IMessage<DestinationPushResponse> {
    private static readonly pb::MessageParser<DestinationPushResponse> _parser = new pb::MessageParser<DestinationPushResponse>(() => new DestinationPushResponse());
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pb::MessageParser<DestinationPushResponse> Parser { get { return _parser; } }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static pbr::MessageDescriptor Descriptor {
      get { return global::Com.Fca.Uconnect.Global.GlobalUconnectExtSendAndGoReflection.Descriptor.MessageTypes[1]; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    pbr::MessageDescriptor pb::IMessage.Descriptor {
      get { return Descriptor; }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DestinationPushResponse() {
      OnConstruction();
    }

    partial void OnConstruction();

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DestinationPushResponse(DestinationPushResponse other) : this() {
      response_ = other.response_;
      isTransient_ = other.isTransient_;
      failureReasonCode_ = other.failureReasonCode_;
      locationID_ = other.locationID_;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public DestinationPushResponse Clone() {
      return new DestinationPushResponse(this);
    }

    /// <summary>Field number for the "response" field.</summary>
    public const int ResponseFieldNumber = 1;
    private global::Com.Fca.Uconnect.Global.DestinationPushResponse.Types.ResponseEnum response_ = 0;
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public global::Com.Fca.Uconnect.Global.DestinationPushResponse.Types.ResponseEnum Response {
      get { return response_; }
      set {
        response_ = value;
      }
    }

    /// <summary>Field number for the "isTransient" field.</summary>
    public const int IsTransientFieldNumber = 2;
    private bool isTransient_;
    /// <summary>
    //// Indicates if the error is transient and to attempt a retry.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool IsTransient {
      get { return isTransient_; }
      set {
        isTransient_ = value;
      }
    }

    /// <summary>Field number for the "failureReasonCode" field.</summary>
    public const int FailureReasonCodeFieldNumber = 3;
    private int failureReasonCode_;
    /// <summary>
    //// provide detailed errror reason code.
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int FailureReasonCode {
      get { return failureReasonCode_; }
      set {
        failureReasonCode_ = value;
      }
    }

    /// <summary>Field number for the "LocationID" field.</summary>
    public const int LocationIDFieldNumber = 4;
    private pb::ByteString locationID_ = pb::ByteString.Empty;
    /// <summary>
    //// Assigned by the SDP. Recommended that Location requests assign the locationID from DB
    /// </summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public pb::ByteString LocationID {
      get { return locationID_; }
      set {
        locationID_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override bool Equals(object other) {
      return Equals(other as DestinationPushResponse);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public bool Equals(DestinationPushResponse other) {
      if (ReferenceEquals(other, null)) {
        return false;
      }
      if (ReferenceEquals(other, this)) {
        return true;
      }
      if (Response != other.Response) return false;
      if (IsTransient != other.IsTransient) return false;
      if (FailureReasonCode != other.FailureReasonCode) return false;
      if (LocationID != other.LocationID) return false;
      return true;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override int GetHashCode() {
      int hash = 1;
      if (Response != 0) hash ^= Response.GetHashCode();
      if (IsTransient != false) hash ^= IsTransient.GetHashCode();
      if (FailureReasonCode != 0) hash ^= FailureReasonCode.GetHashCode();
      if (LocationID.Length != 0) hash ^= LocationID.GetHashCode();
      return hash;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public override string ToString() {
      return pb::JsonFormatter.ToDiagnosticString(this);
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void WriteTo(pb::CodedOutputStream output) {
      if (Response != 0) {
        output.WriteRawTag(8);
        output.WriteEnum((int) Response);
      }
      if (IsTransient != false) {
        output.WriteRawTag(16);
        output.WriteBool(IsTransient);
      }
      if (FailureReasonCode != 0) {
        output.WriteRawTag(24);
        output.WriteInt32(FailureReasonCode);
      }
      if (LocationID.Length != 0) {
        output.WriteRawTag(34);
        output.WriteBytes(LocationID);
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public int CalculateSize() {
      int size = 0;
      if (Response != 0) {
        size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Response);
      }
      if (IsTransient != false) {
        size += 1 + 1;
      }
      if (FailureReasonCode != 0) {
        size += 1 + pb::CodedOutputStream.ComputeInt32Size(FailureReasonCode);
      }
      if (LocationID.Length != 0) {
        size += 1 + pb::CodedOutputStream.ComputeBytesSize(LocationID);
      }
      return size;
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(DestinationPushResponse other) {
      if (other == null) {
        return;
      }
      if (other.Response != 0) {
        Response = other.Response;
      }
      if (other.IsTransient != false) {
        IsTransient = other.IsTransient;
      }
      if (other.FailureReasonCode != 0) {
        FailureReasonCode = other.FailureReasonCode;
      }
      if (other.LocationID.Length != 0) {
        LocationID = other.LocationID;
      }
    }

    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public void MergeFrom(pb::CodedInputStream input) {
      uint tag;
      while ((tag = input.ReadTag()) != 0) {
        switch(tag) {
          default:
            input.SkipLastField();
            break;
          case 8: {
            response_ = (global::Com.Fca.Uconnect.Global.DestinationPushResponse.Types.ResponseEnum) input.ReadEnum();
            break;
          }
          case 16: {
            IsTransient = input.ReadBool();
            break;
          }
          case 24: {
            FailureReasonCode = input.ReadInt32();
            break;
          }
          case 34: {
            LocationID = input.ReadBytes();
            break;
          }
        }
      }
    }

    #region Nested types
    /// <summary>Container for nested types declared in the DestinationPushResponse message type.</summary>
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
    public static partial class Types {
      public enum ResponseEnum {
        [pbr::OriginalName("SUCCESS")] Success = 0,
        [pbr::OriginalName("INVALID_LOCATION")] InvalidLocation = 1,
        [pbr::OriginalName("INVALID_POI")] InvalidPoi = 2,
        [pbr::OriginalName("INVALID_ADDRESS")] InvalidAddress = 3,
        [pbr::OriginalName("INVALID_ROUTE_PREFERENCE")] InvalidRoutePreference = 4,
        /// <summary>
        //// Generic Error Enumeration from Application Level or System Level Error
        /// </summary>
        [pbr::OriginalName("ERROR")] Error = 5,
      }

    }
    #endregion

  }

  #endregion

}

#endregion Designer generated code
