//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/event/v1/keyapis_event_event_v1.proto
//
#pragma warning disable 1591, 0612, 3021, 8981
#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 Keyapis.Event.V1 {
/// Holder for reflection information generated from keyapis/event/v1/keyapis_event_event_v1.proto
public static partial class KeyapisEventEventV1Reflection {
#region Descriptor
/// File descriptor for keyapis/event/v1/keyapis_event_event_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisEventEventV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci1rZXlhcGlzL2V2ZW50L3YxL2tleWFwaXNfZXZlbnRfZXZlbnRfdjEucHJv",
"dG8SEGtleWFwaXMuZXZlbnQudjEaH2dvb2dsZS9wcm90b2J1Zi90aW1lc3Rh",
"bXAucHJvdG8aHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2ds",
"ZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9k",
"ZXNjcmlwdG9yLnByb3RvGh5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJv",
"dG8igxIKBUV2ZW50Ei8KBHR5cGUYASABKA4yHC5rZXlhcGlzLmV2ZW50LnYx",
"LkV2ZW50LlR5cGVCA+BBAhIyCglyYWlzZWRfYXQYAiABKAsyGi5nb29nbGUu",
"cHJvdG9idWYuVGltZXN0YW1wQgPgQQMSLgoJZGV2aWNlX2lkGAMgASgLMhsu",
"Z29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSNwoLZGV2aWNlX3R5cGUYBCAB",
"KA4yIi5rZXlhcGlzLmV2ZW50LnYxLkV2ZW50LkRldmljZVR5cGUSLwoKY29t",
"cGFueV9pZBgFIAEoCzIbLmdvb2d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] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Event.V1.Event), global::Keyapis.Event.V1.Event.Parser, new[]{ "Type", "RaisedAt", "DeviceId", "DeviceType", "CompanyId", "RoomId", "Relay", "UserId", "UserAgent", "BuildingId", "OrponId", "RoomNumber", "IvrPhoneNumber", "GuestPhoneNumber", "Code", "Rfid", "RequestId", "DtmfPhoneNumber", "UserKind", "Login", "Password", "Host", "DeviceModel", "RfidId", "CodeId", "CarNumber", "Os", "PushToken", "CameraUid", "ScreenshotUrl", "Vehicle", "CourierCompanyName", "OrderNumber", "CourierId" }, null, new[]{ typeof(global::Keyapis.Event.V1.Event.Types.Type), typeof(global::Keyapis.Event.V1.Event.Types.DeviceType) }, null, null)
}));
}
#endregion
}
#region Messages
///
/// Событие
///
public sealed partial class Event : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Event());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.Event.V1.KeyapisEventEventV1Reflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Event() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Event(Event other) : this() {
type_ = other.type_;
raisedAt_ = other.raisedAt_ != null ? other.raisedAt_.Clone() : null;
DeviceId = other.DeviceId;
deviceType_ = other.deviceType_;
CompanyId = other.CompanyId;
RoomId = other.RoomId;
Relay = other.Relay;
UserId = other.UserId;
UserAgent = other.UserAgent;
BuildingId = other.BuildingId;
OrponId = other.OrponId;
RoomNumber = other.RoomNumber;
IvrPhoneNumber = other.IvrPhoneNumber;
GuestPhoneNumber = other.GuestPhoneNumber;
Code = other.Code;
Rfid = other.Rfid;
RequestId = other.RequestId;
DtmfPhoneNumber = other.DtmfPhoneNumber;
UserKind = other.UserKind;
Login = other.Login;
Password = other.Password;
Host = other.Host;
DeviceModel = other.DeviceModel;
RfidId = other.RfidId;
CodeId = other.CodeId;
CarNumber = other.CarNumber;
Os = other.Os;
PushToken = other.PushToken;
CameraUid = other.CameraUid;
ScreenshotUrl = other.ScreenshotUrl;
Vehicle = other.Vehicle;
CourierCompanyName = other.CourierCompanyName;
OrderNumber = other.OrderNumber;
CourierId = other.CourierId;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Event Clone() {
return new Event(this);
}
/// Field number for the "type" field.
public const int TypeFieldNumber = 1;
private global::Keyapis.Event.V1.Event.Types.Type type_ = global::Keyapis.Event.V1.Event.Types.Type.Unknown;
///
/// Тип события.
/// Поле event_type
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Event.V1.Event.Types.Type Type {
get { return type_; }
set {
type_ = value;
}
}
/// Field number for the "raised_at" field.
public const int RaisedAtFieldNumber = 2;
private global::Google.Protobuf.WellKnownTypes.Timestamp raisedAt_;
///
/// Дата создания события.
/// # Тип: DateTime
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp RaisedAt {
get { return raisedAt_; }
set {
raisedAt_ = value;
}
}
/// Field number for the "device_id" field.
public const int DeviceIdFieldNumber = 3;
private static readonly pb::FieldCodec _single_deviceId_codec = pb::FieldCodec.ForStructWrapper(26);
private int? deviceId_;
///
/// Идентификатор устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? DeviceId {
get { return deviceId_; }
set {
deviceId_ = value;
}
}
/// Field number for the "device_type" field.
public const int DeviceTypeFieldNumber = 4;
private global::Keyapis.Event.V1.Event.Types.DeviceType deviceType_ = global::Keyapis.Event.V1.Event.Types.DeviceType.Unknown;
///
/// Тип устройства на момент события
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Event.V1.Event.Types.DeviceType DeviceType {
get { return deviceType_; }
set {
deviceType_ = value;
}
}
/// Field number for the "company_id" field.
public const int CompanyIdFieldNumber = 5;
private static readonly pb::FieldCodec _single_companyId_codec = pb::FieldCodec.ForStructWrapper(42);
private int? companyId_;
///
/// Идентификатор компании
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? CompanyId {
get { return companyId_; }
set {
companyId_ = value;
}
}
/// Field number for the "room_id" field.
public const int RoomIdFieldNumber = 6;
private static readonly pb::FieldCodec _single_roomId_codec = pb::FieldCodec.ForStructWrapper(50);
private int? roomId_;
///
/// Идентификатор квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? RoomId {
get { return roomId_; }
set {
roomId_ = value;
}
}
/// Field number for the "relay" field.
public const int RelayFieldNumber = 7;
private static readonly pb::FieldCodec _single_relay_codec = pb::FieldCodec.ForStructWrapper(58);
private int? relay_;
///
/// Индекс реле
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? Relay {
get { return relay_; }
set {
relay_ = value;
}
}
/// Field number for the "user_id" field.
public const int UserIdFieldNumber = 8;
private static readonly pb::FieldCodec _single_userId_codec = pb::FieldCodec.ForStructWrapper(66);
private int? userId_;
///
/// Идентификатор пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? UserId {
get { return userId_; }
set {
userId_ = value;
}
}
/// Field number for the "user_agent" field.
public const int UserAgentFieldNumber = 9;
private static readonly pb::FieldCodec _single_userAgent_codec = pb::FieldCodec.ForClassWrapper(74);
private string userAgent_;
///
/// Юзерагент клиента из которого пользователь выполнял запрос
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string UserAgent {
get { return userAgent_; }
set {
userAgent_ = value;
}
}
/// Field number for the "building_id" field.
public const int BuildingIdFieldNumber = 10;
private static readonly pb::FieldCodec _single_buildingId_codec = pb::FieldCodec.ForStructWrapper(82);
private int? buildingId_;
///
/// Идентификатор дома
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? BuildingId {
get { return buildingId_; }
set {
buildingId_ = value;
}
}
/// Field number for the "orpon_id" field.
public const int OrponIdFieldNumber = 11;
private static readonly pb::FieldCodec _single_orponId_codec = pb::FieldCodec.ForStructWrapper(90);
private long? orponId_;
///
/// ОРПОН
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long? OrponId {
get { return orponId_; }
set {
orponId_ = value;
}
}
/// Field number for the "room_number" field.
public const int RoomNumberFieldNumber = 12;
private static readonly pb::FieldCodec _single_roomNumber_codec = pb::FieldCodec.ForClassWrapper(98);
private string roomNumber_;
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomNumber {
get { return roomNumber_; }
set {
roomNumber_ = value;
}
}
/// Field number for the "ivr_phone_number" field.
public const int IvrPhoneNumberFieldNumber = 13;
private static readonly pb::FieldCodec _single_ivrPhoneNumber_codec = pb::FieldCodec.ForClassWrapper(106);
private string ivrPhoneNumber_;
///
/// Телефон ИВР
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string IvrPhoneNumber {
get { return ivrPhoneNumber_; }
set {
ivrPhoneNumber_ = value;
}
}
/// Field number for the "guest_phone_number" field.
public const int GuestPhoneNumberFieldNumber = 14;
private static readonly pb::FieldCodec _single_guestPhoneNumber_codec = pb::FieldCodec.ForClassWrapper(114);
private string guestPhoneNumber_;
///
/// Телефон гостя / звонящего
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string GuestPhoneNumber {
get { return guestPhoneNumber_; }
set {
guestPhoneNumber_ = value;
}
}
/// Field number for the "code" field.
public const int CodeFieldNumber = 15;
private static readonly pb::FieldCodec _single_code_codec = pb::FieldCodec.ForClassWrapper(122);
private string code_;
///
/// Код / пин код при открытии при звонке
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Code {
get { return code_; }
set {
code_ = value;
}
}
/// Field number for the "rfid" field.
public const int RfidFieldNumber = 16;
private static readonly pb::FieldCodec _single_rfid_codec = pb::FieldCodec.ForClassWrapper(130);
private string rfid_;
///
/// RFID номер
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Rfid {
get { return rfid_; }
set {
rfid_ = value;
}
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 17;
private static readonly pb::FieldCodec _single_requestId_codec = pb::FieldCodec.ForClassWrapper(138);
private string requestId_;
///
/// ИД запроса.
/// # Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = value;
}
}
/// Field number for the "dtmf_phone_number" field.
public const int DtmfPhoneNumberFieldNumber = 18;
private static readonly pb::FieldCodec _single_dtmfPhoneNumber_codec = pb::FieldCodec.ForClassWrapper(146);
private string dtmfPhoneNumber_;
///
/// Номер телефона с которого было открытие по DTMF коду
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DtmfPhoneNumber {
get { return dtmfPhoneNumber_; }
set {
dtmfPhoneNumber_ = value;
}
}
/// Field number for the "user_kind" field.
public const int UserKindFieldNumber = 19;
private static readonly pb::FieldCodec _single_userKind_codec = pb::FieldCodec.ForClassWrapper(154);
private string userKind_;
///
/// Тип УЗ на устройстве.
/// Поле user_type
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string UserKind {
get { return userKind_; }
set {
userKind_ = value;
}
}
/// Field number for the "login" field.
public const int LoginFieldNumber = 20;
private static readonly pb::FieldCodec _single_login_codec = pb::FieldCodec.ForClassWrapper(162);
private string login_;
///
/// Логин на устройстве
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Login {
get { return login_; }
set {
login_ = value;
}
}
/// Field number for the "password" field.
public const int PasswordFieldNumber = 21;
private static readonly pb::FieldCodec _single_password_codec = pb::FieldCodec.ForClassWrapper(170);
private string password_;
///
/// Пароль на устройстве
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Password {
get { return password_; }
set {
password_ = value;
}
}
/// Field number for the "host" field.
public const int HostFieldNumber = 22;
private static readonly pb::FieldCodec _single_host_codec = pb::FieldCodec.ForClassWrapper(178);
private string host_;
///
/// ip адрес устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Host {
get { return host_; }
set {
host_ = value;
}
}
/// Field number for the "device_model" field.
public const int DeviceModelFieldNumber = 23;
private static readonly pb::FieldCodec _single_deviceModel_codec = pb::FieldCodec.ForClassWrapper(186);
private string deviceModel_;
///
/// Модель устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DeviceModel {
get { return deviceModel_; }
set {
deviceModel_ = value;
}
}
/// Field number for the "rfid_id" field.
public const int RfidIdFieldNumber = 24;
private static readonly pb::FieldCodec _single_rfidId_codec = pb::FieldCodec.ForStructWrapper(194);
private int? rfidId_;
///
/// Идентификатор ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? RfidId {
get { return rfidId_; }
set {
rfidId_ = value;
}
}
/// Field number for the "code_id" field.
public const int CodeIdFieldNumber = 25;
private static readonly pb::FieldCodec _single_codeId_codec = pb::FieldCodec.ForStructWrapper(202);
private int? codeId_;
///
/// Идентификатор кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int? CodeId {
get { return codeId_; }
set {
codeId_ = value;
}
}
/// Field number for the "car_number" field.
public const int CarNumberFieldNumber = 26;
private static readonly pb::FieldCodec _single_carNumber_codec = pb::FieldCodec.ForClassWrapper(210);
private string carNumber_;
///
/// Номер машины
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CarNumber {
get { return carNumber_; }
set {
carNumber_ = value;
}
}
/// Field number for the "os" field.
public const int OsFieldNumber = 27;
private static readonly pb::FieldCodec _single_os_codec = pb::FieldCodec.ForClassWrapper(218);
private string os_;
///
/// Операционная система
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Os {
get { return os_; }
set {
os_ = value;
}
}
/// Field number for the "push_token" field.
public const int PushTokenFieldNumber = 28;
private static readonly pb::FieldCodec _single_pushToken_codec = pb::FieldCodec.ForClassWrapper(226);
private string pushToken_;
///
/// Пуш-токен для устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string PushToken {
get { return pushToken_; }
set {
pushToken_ = value;
}
}
/// Field number for the "camera_uid" field.
public const int CameraUidFieldNumber = 29;
private static readonly pb::FieldCodec _single_cameraUid_codec = pb::FieldCodec.ForClassWrapper(234);
private string cameraUid_;
///
/// ИД камеры.
/// # Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CameraUid {
get { return cameraUid_; }
set {
cameraUid_ = value;
}
}
/// Field number for the "screenshot_url" field.
public const int ScreenshotUrlFieldNumber = 30;
private static readonly pb::FieldCodec _single_screenshotUrl_codec = pb::FieldCodec.ForClassWrapper(242);
private string screenshotUrl_;
///
/// Ссылка на скриншот события
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ScreenshotUrl {
get { return screenshotUrl_; }
set {
screenshotUrl_ = value;
}
}
/// Field number for the "vehicle" field.
public const int VehicleFieldNumber = 31;
private static readonly pb::FieldCodec _single_vehicle_codec = pb::FieldCodec.ForClassWrapper(250);
private string vehicle_;
///
/// Тип ТС
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Vehicle {
get { return vehicle_; }
set {
vehicle_ = value;
}
}
/// Field number for the "courier_company_name" field.
public const int CourierCompanyNameFieldNumber = 32;
private static readonly pb::FieldCodec _single_courierCompanyName_codec = pb::FieldCodec.ForClassWrapper(258);
private string courierCompanyName_;
///
/// Наименование курьерской компании
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CourierCompanyName {
get { return courierCompanyName_; }
set {
courierCompanyName_ = value;
}
}
/// Field number for the "order_number" field.
public const int OrderNumberFieldNumber = 33;
private static readonly pb::FieldCodec _single_orderNumber_codec = pb::FieldCodec.ForClassWrapper(266);
private string orderNumber_;
///
/// Номер заказа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string OrderNumber {
get { return orderNumber_; }
set {
orderNumber_ = value;
}
}
/// Field number for the "courier_id" field.
public const int CourierIdFieldNumber = 34;
private static readonly pb::FieldCodec _single_courierId_codec = pb::FieldCodec.ForClassWrapper(274);
private string courierId_;
///
/// Идентификатор курьера
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CourierId {
get { return courierId_; }
set {
courierId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Event);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Event other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Type != other.Type) return false;
if (!object.Equals(RaisedAt, other.RaisedAt)) return false;
if (DeviceId != other.DeviceId) return false;
if (DeviceType != other.DeviceType) return false;
if (CompanyId != other.CompanyId) return false;
if (RoomId != other.RoomId) return false;
if (Relay != other.Relay) return false;
if (UserId != other.UserId) return false;
if (UserAgent != other.UserAgent) return false;
if (BuildingId != other.BuildingId) return false;
if (OrponId != other.OrponId) return false;
if (RoomNumber != other.RoomNumber) return false;
if (IvrPhoneNumber != other.IvrPhoneNumber) return false;
if (GuestPhoneNumber != other.GuestPhoneNumber) return false;
if (Code != other.Code) return false;
if (Rfid != other.Rfid) return false;
if (RequestId != other.RequestId) return false;
if (DtmfPhoneNumber != other.DtmfPhoneNumber) return false;
if (UserKind != other.UserKind) return false;
if (Login != other.Login) return false;
if (Password != other.Password) return false;
if (Host != other.Host) return false;
if (DeviceModel != other.DeviceModel) return false;
if (RfidId != other.RfidId) return false;
if (CodeId != other.CodeId) return false;
if (CarNumber != other.CarNumber) return false;
if (Os != other.Os) return false;
if (PushToken != other.PushToken) return false;
if (CameraUid != other.CameraUid) return false;
if (ScreenshotUrl != other.ScreenshotUrl) return false;
if (Vehicle != other.Vehicle) return false;
if (CourierCompanyName != other.CourierCompanyName) return false;
if (OrderNumber != other.OrderNumber) return false;
if (CourierId != other.CourierId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Type != global::Keyapis.Event.V1.Event.Types.Type.Unknown) hash ^= Type.GetHashCode();
if (raisedAt_ != null) hash ^= RaisedAt.GetHashCode();
if (deviceId_ != null) hash ^= DeviceId.GetHashCode();
if (DeviceType != global::Keyapis.Event.V1.Event.Types.DeviceType.Unknown) hash ^= DeviceType.GetHashCode();
if (companyId_ != null) hash ^= CompanyId.GetHashCode();
if (roomId_ != null) hash ^= RoomId.GetHashCode();
if (relay_ != null) hash ^= Relay.GetHashCode();
if (userId_ != null) hash ^= UserId.GetHashCode();
if (userAgent_ != null) hash ^= UserAgent.GetHashCode();
if (buildingId_ != null) hash ^= BuildingId.GetHashCode();
if (orponId_ != null) hash ^= OrponId.GetHashCode();
if (roomNumber_ != null) hash ^= RoomNumber.GetHashCode();
if (ivrPhoneNumber_ != null) hash ^= IvrPhoneNumber.GetHashCode();
if (guestPhoneNumber_ != null) hash ^= GuestPhoneNumber.GetHashCode();
if (code_ != null) hash ^= Code.GetHashCode();
if (rfid_ != null) hash ^= Rfid.GetHashCode();
if (requestId_ != null) hash ^= RequestId.GetHashCode();
if (dtmfPhoneNumber_ != null) hash ^= DtmfPhoneNumber.GetHashCode();
if (userKind_ != null) hash ^= UserKind.GetHashCode();
if (login_ != null) hash ^= Login.GetHashCode();
if (password_ != null) hash ^= Password.GetHashCode();
if (host_ != null) hash ^= Host.GetHashCode();
if (deviceModel_ != null) hash ^= DeviceModel.GetHashCode();
if (rfidId_ != null) hash ^= RfidId.GetHashCode();
if (codeId_ != null) hash ^= CodeId.GetHashCode();
if (carNumber_ != null) hash ^= CarNumber.GetHashCode();
if (os_ != null) hash ^= Os.GetHashCode();
if (pushToken_ != null) hash ^= PushToken.GetHashCode();
if (cameraUid_ != null) hash ^= CameraUid.GetHashCode();
if (screenshotUrl_ != null) hash ^= ScreenshotUrl.GetHashCode();
if (vehicle_ != null) hash ^= Vehicle.GetHashCode();
if (courierCompanyName_ != null) hash ^= CourierCompanyName.GetHashCode();
if (orderNumber_ != null) hash ^= OrderNumber.GetHashCode();
if (courierId_ != null) hash ^= CourierId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Type != global::Keyapis.Event.V1.Event.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (raisedAt_ != null) {
output.WriteRawTag(18);
output.WriteMessage(RaisedAt);
}
if (deviceId_ != null) {
_single_deviceId_codec.WriteTagAndValue(output, DeviceId);
}
if (DeviceType != global::Keyapis.Event.V1.Event.Types.DeviceType.Unknown) {
output.WriteRawTag(32);
output.WriteEnum((int) DeviceType);
}
if (companyId_ != null) {
_single_companyId_codec.WriteTagAndValue(output, CompanyId);
}
if (roomId_ != null) {
_single_roomId_codec.WriteTagAndValue(output, RoomId);
}
if (relay_ != null) {
_single_relay_codec.WriteTagAndValue(output, Relay);
}
if (userId_ != null) {
_single_userId_codec.WriteTagAndValue(output, UserId);
}
if (userAgent_ != null) {
_single_userAgent_codec.WriteTagAndValue(output, UserAgent);
}
if (buildingId_ != null) {
_single_buildingId_codec.WriteTagAndValue(output, BuildingId);
}
if (orponId_ != null) {
_single_orponId_codec.WriteTagAndValue(output, OrponId);
}
if (roomNumber_ != null) {
_single_roomNumber_codec.WriteTagAndValue(output, RoomNumber);
}
if (ivrPhoneNumber_ != null) {
_single_ivrPhoneNumber_codec.WriteTagAndValue(output, IvrPhoneNumber);
}
if (guestPhoneNumber_ != null) {
_single_guestPhoneNumber_codec.WriteTagAndValue(output, GuestPhoneNumber);
}
if (code_ != null) {
_single_code_codec.WriteTagAndValue(output, Code);
}
if (rfid_ != null) {
_single_rfid_codec.WriteTagAndValue(output, Rfid);
}
if (requestId_ != null) {
_single_requestId_codec.WriteTagAndValue(output, RequestId);
}
if (dtmfPhoneNumber_ != null) {
_single_dtmfPhoneNumber_codec.WriteTagAndValue(output, DtmfPhoneNumber);
}
if (userKind_ != null) {
_single_userKind_codec.WriteTagAndValue(output, UserKind);
}
if (login_ != null) {
_single_login_codec.WriteTagAndValue(output, Login);
}
if (password_ != null) {
_single_password_codec.WriteTagAndValue(output, Password);
}
if (host_ != null) {
_single_host_codec.WriteTagAndValue(output, Host);
}
if (deviceModel_ != null) {
_single_deviceModel_codec.WriteTagAndValue(output, DeviceModel);
}
if (rfidId_ != null) {
_single_rfidId_codec.WriteTagAndValue(output, RfidId);
}
if (codeId_ != null) {
_single_codeId_codec.WriteTagAndValue(output, CodeId);
}
if (carNumber_ != null) {
_single_carNumber_codec.WriteTagAndValue(output, CarNumber);
}
if (os_ != null) {
_single_os_codec.WriteTagAndValue(output, Os);
}
if (pushToken_ != null) {
_single_pushToken_codec.WriteTagAndValue(output, PushToken);
}
if (cameraUid_ != null) {
_single_cameraUid_codec.WriteTagAndValue(output, CameraUid);
}
if (screenshotUrl_ != null) {
_single_screenshotUrl_codec.WriteTagAndValue(output, ScreenshotUrl);
}
if (vehicle_ != null) {
_single_vehicle_codec.WriteTagAndValue(output, Vehicle);
}
if (courierCompanyName_ != null) {
_single_courierCompanyName_codec.WriteTagAndValue(output, CourierCompanyName);
}
if (orderNumber_ != null) {
_single_orderNumber_codec.WriteTagAndValue(output, OrderNumber);
}
if (courierId_ != null) {
_single_courierId_codec.WriteTagAndValue(output, CourierId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Type != global::Keyapis.Event.V1.Event.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (raisedAt_ != null) {
output.WriteRawTag(18);
output.WriteMessage(RaisedAt);
}
if (deviceId_ != null) {
_single_deviceId_codec.WriteTagAndValue(ref output, DeviceId);
}
if (DeviceType != global::Keyapis.Event.V1.Event.Types.DeviceType.Unknown) {
output.WriteRawTag(32);
output.WriteEnum((int) DeviceType);
}
if (companyId_ != null) {
_single_companyId_codec.WriteTagAndValue(ref output, CompanyId);
}
if (roomId_ != null) {
_single_roomId_codec.WriteTagAndValue(ref output, RoomId);
}
if (relay_ != null) {
_single_relay_codec.WriteTagAndValue(ref output, Relay);
}
if (userId_ != null) {
_single_userId_codec.WriteTagAndValue(ref output, UserId);
}
if (userAgent_ != null) {
_single_userAgent_codec.WriteTagAndValue(ref output, UserAgent);
}
if (buildingId_ != null) {
_single_buildingId_codec.WriteTagAndValue(ref output, BuildingId);
}
if (orponId_ != null) {
_single_orponId_codec.WriteTagAndValue(ref output, OrponId);
}
if (roomNumber_ != null) {
_single_roomNumber_codec.WriteTagAndValue(ref output, RoomNumber);
}
if (ivrPhoneNumber_ != null) {
_single_ivrPhoneNumber_codec.WriteTagAndValue(ref output, IvrPhoneNumber);
}
if (guestPhoneNumber_ != null) {
_single_guestPhoneNumber_codec.WriteTagAndValue(ref output, GuestPhoneNumber);
}
if (code_ != null) {
_single_code_codec.WriteTagAndValue(ref output, Code);
}
if (rfid_ != null) {
_single_rfid_codec.WriteTagAndValue(ref output, Rfid);
}
if (requestId_ != null) {
_single_requestId_codec.WriteTagAndValue(ref output, RequestId);
}
if (dtmfPhoneNumber_ != null) {
_single_dtmfPhoneNumber_codec.WriteTagAndValue(ref output, DtmfPhoneNumber);
}
if (userKind_ != null) {
_single_userKind_codec.WriteTagAndValue(ref output, UserKind);
}
if (login_ != null) {
_single_login_codec.WriteTagAndValue(ref output, Login);
}
if (password_ != null) {
_single_password_codec.WriteTagAndValue(ref output, Password);
}
if (host_ != null) {
_single_host_codec.WriteTagAndValue(ref output, Host);
}
if (deviceModel_ != null) {
_single_deviceModel_codec.WriteTagAndValue(ref output, DeviceModel);
}
if (rfidId_ != null) {
_single_rfidId_codec.WriteTagAndValue(ref output, RfidId);
}
if (codeId_ != null) {
_single_codeId_codec.WriteTagAndValue(ref output, CodeId);
}
if (carNumber_ != null) {
_single_carNumber_codec.WriteTagAndValue(ref output, CarNumber);
}
if (os_ != null) {
_single_os_codec.WriteTagAndValue(ref output, Os);
}
if (pushToken_ != null) {
_single_pushToken_codec.WriteTagAndValue(ref output, PushToken);
}
if (cameraUid_ != null) {
_single_cameraUid_codec.WriteTagAndValue(ref output, CameraUid);
}
if (screenshotUrl_ != null) {
_single_screenshotUrl_codec.WriteTagAndValue(ref output, ScreenshotUrl);
}
if (vehicle_ != null) {
_single_vehicle_codec.WriteTagAndValue(ref output, Vehicle);
}
if (courierCompanyName_ != null) {
_single_courierCompanyName_codec.WriteTagAndValue(ref output, CourierCompanyName);
}
if (orderNumber_ != null) {
_single_orderNumber_codec.WriteTagAndValue(ref output, OrderNumber);
}
if (courierId_ != null) {
_single_courierId_codec.WriteTagAndValue(ref output, CourierId);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Type != global::Keyapis.Event.V1.Event.Types.Type.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (raisedAt_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(RaisedAt);
}
if (deviceId_ != null) {
size += _single_deviceId_codec.CalculateSizeWithTag(DeviceId);
}
if (DeviceType != global::Keyapis.Event.V1.Event.Types.DeviceType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DeviceType);
}
if (companyId_ != null) {
size += _single_companyId_codec.CalculateSizeWithTag(CompanyId);
}
if (roomId_ != null) {
size += _single_roomId_codec.CalculateSizeWithTag(RoomId);
}
if (relay_ != null) {
size += _single_relay_codec.CalculateSizeWithTag(Relay);
}
if (userId_ != null) {
size += _single_userId_codec.CalculateSizeWithTag(UserId);
}
if (userAgent_ != null) {
size += _single_userAgent_codec.CalculateSizeWithTag(UserAgent);
}
if (buildingId_ != null) {
size += _single_buildingId_codec.CalculateSizeWithTag(BuildingId);
}
if (orponId_ != null) {
size += _single_orponId_codec.CalculateSizeWithTag(OrponId);
}
if (roomNumber_ != null) {
size += _single_roomNumber_codec.CalculateSizeWithTag(RoomNumber);
}
if (ivrPhoneNumber_ != null) {
size += _single_ivrPhoneNumber_codec.CalculateSizeWithTag(IvrPhoneNumber);
}
if (guestPhoneNumber_ != null) {
size += _single_guestPhoneNumber_codec.CalculateSizeWithTag(GuestPhoneNumber);
}
if (code_ != null) {
size += _single_code_codec.CalculateSizeWithTag(Code);
}
if (rfid_ != null) {
size += _single_rfid_codec.CalculateSizeWithTag(Rfid);
}
if (requestId_ != null) {
size += _single_requestId_codec.CalculateSizeWithTag(RequestId);
}
if (dtmfPhoneNumber_ != null) {
size += _single_dtmfPhoneNumber_codec.CalculateSizeWithTag(DtmfPhoneNumber);
}
if (userKind_ != null) {
size += _single_userKind_codec.CalculateSizeWithTag(UserKind);
}
if (login_ != null) {
size += _single_login_codec.CalculateSizeWithTag(Login);
}
if (password_ != null) {
size += _single_password_codec.CalculateSizeWithTag(Password);
}
if (host_ != null) {
size += _single_host_codec.CalculateSizeWithTag(Host);
}
if (deviceModel_ != null) {
size += _single_deviceModel_codec.CalculateSizeWithTag(DeviceModel);
}
if (rfidId_ != null) {
size += _single_rfidId_codec.CalculateSizeWithTag(RfidId);
}
if (codeId_ != null) {
size += _single_codeId_codec.CalculateSizeWithTag(CodeId);
}
if (carNumber_ != null) {
size += _single_carNumber_codec.CalculateSizeWithTag(CarNumber);
}
if (os_ != null) {
size += _single_os_codec.CalculateSizeWithTag(Os);
}
if (pushToken_ != null) {
size += _single_pushToken_codec.CalculateSizeWithTag(PushToken);
}
if (cameraUid_ != null) {
size += _single_cameraUid_codec.CalculateSizeWithTag(CameraUid);
}
if (screenshotUrl_ != null) {
size += _single_screenshotUrl_codec.CalculateSizeWithTag(ScreenshotUrl);
}
if (vehicle_ != null) {
size += _single_vehicle_codec.CalculateSizeWithTag(Vehicle);
}
if (courierCompanyName_ != null) {
size += _single_courierCompanyName_codec.CalculateSizeWithTag(CourierCompanyName);
}
if (orderNumber_ != null) {
size += _single_orderNumber_codec.CalculateSizeWithTag(OrderNumber);
}
if (courierId_ != null) {
size += _single_courierId_codec.CalculateSizeWithTag(CourierId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Event other) {
if (other == null) {
return;
}
if (other.Type != global::Keyapis.Event.V1.Event.Types.Type.Unknown) {
Type = other.Type;
}
if (other.raisedAt_ != null) {
if (raisedAt_ == null) {
RaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
RaisedAt.MergeFrom(other.RaisedAt);
}
if (other.deviceId_ != null) {
if (deviceId_ == null || other.DeviceId != 0) {
DeviceId = other.DeviceId;
}
}
if (other.DeviceType != global::Keyapis.Event.V1.Event.Types.DeviceType.Unknown) {
DeviceType = other.DeviceType;
}
if (other.companyId_ != null) {
if (companyId_ == null || other.CompanyId != 0) {
CompanyId = other.CompanyId;
}
}
if (other.roomId_ != null) {
if (roomId_ == null || other.RoomId != 0) {
RoomId = other.RoomId;
}
}
if (other.relay_ != null) {
if (relay_ == null || other.Relay != 0) {
Relay = other.Relay;
}
}
if (other.userId_ != null) {
if (userId_ == null || other.UserId != 0) {
UserId = other.UserId;
}
}
if (other.userAgent_ != null) {
if (userAgent_ == null || other.UserAgent != "") {
UserAgent = other.UserAgent;
}
}
if (other.buildingId_ != null) {
if (buildingId_ == null || other.BuildingId != 0) {
BuildingId = other.BuildingId;
}
}
if (other.orponId_ != null) {
if (orponId_ == null || other.OrponId != 0L) {
OrponId = other.OrponId;
}
}
if (other.roomNumber_ != null) {
if (roomNumber_ == null || other.RoomNumber != "") {
RoomNumber = other.RoomNumber;
}
}
if (other.ivrPhoneNumber_ != null) {
if (ivrPhoneNumber_ == null || other.IvrPhoneNumber != "") {
IvrPhoneNumber = other.IvrPhoneNumber;
}
}
if (other.guestPhoneNumber_ != null) {
if (guestPhoneNumber_ == null || other.GuestPhoneNumber != "") {
GuestPhoneNumber = other.GuestPhoneNumber;
}
}
if (other.code_ != null) {
if (code_ == null || other.Code != "") {
Code = other.Code;
}
}
if (other.rfid_ != null) {
if (rfid_ == null || other.Rfid != "") {
Rfid = other.Rfid;
}
}
if (other.requestId_ != null) {
if (requestId_ == null || other.RequestId != "") {
RequestId = other.RequestId;
}
}
if (other.dtmfPhoneNumber_ != null) {
if (dtmfPhoneNumber_ == null || other.DtmfPhoneNumber != "") {
DtmfPhoneNumber = other.DtmfPhoneNumber;
}
}
if (other.userKind_ != null) {
if (userKind_ == null || other.UserKind != "") {
UserKind = other.UserKind;
}
}
if (other.login_ != null) {
if (login_ == null || other.Login != "") {
Login = other.Login;
}
}
if (other.password_ != null) {
if (password_ == null || other.Password != "") {
Password = other.Password;
}
}
if (other.host_ != null) {
if (host_ == null || other.Host != "") {
Host = other.Host;
}
}
if (other.deviceModel_ != null) {
if (deviceModel_ == null || other.DeviceModel != "") {
DeviceModel = other.DeviceModel;
}
}
if (other.rfidId_ != null) {
if (rfidId_ == null || other.RfidId != 0) {
RfidId = other.RfidId;
}
}
if (other.codeId_ != null) {
if (codeId_ == null || other.CodeId != 0) {
CodeId = other.CodeId;
}
}
if (other.carNumber_ != null) {
if (carNumber_ == null || other.CarNumber != "") {
CarNumber = other.CarNumber;
}
}
if (other.os_ != null) {
if (os_ == null || other.Os != "") {
Os = other.Os;
}
}
if (other.pushToken_ != null) {
if (pushToken_ == null || other.PushToken != "") {
PushToken = other.PushToken;
}
}
if (other.cameraUid_ != null) {
if (cameraUid_ == null || other.CameraUid != "") {
CameraUid = other.CameraUid;
}
}
if (other.screenshotUrl_ != null) {
if (screenshotUrl_ == null || other.ScreenshotUrl != "") {
ScreenshotUrl = other.ScreenshotUrl;
}
}
if (other.vehicle_ != null) {
if (vehicle_ == null || other.Vehicle != "") {
Vehicle = other.Vehicle;
}
}
if (other.courierCompanyName_ != null) {
if (courierCompanyName_ == null || other.CourierCompanyName != "") {
CourierCompanyName = other.CourierCompanyName;
}
}
if (other.orderNumber_ != null) {
if (orderNumber_ == null || other.OrderNumber != "") {
OrderNumber = other.OrderNumber;
}
}
if (other.courierId_ != null) {
if (courierId_ == null || other.CourierId != "") {
CourierId = other.CourierId;
}
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Type = (global::Keyapis.Event.V1.Event.Types.Type) input.ReadEnum();
break;
}
case 18: {
if (raisedAt_ == null) {
RaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(RaisedAt);
break;
}
case 26: {
int? value = _single_deviceId_codec.Read(input);
if (deviceId_ == null || value != 0) {
DeviceId = value;
}
break;
}
case 32: {
DeviceType = (global::Keyapis.Event.V1.Event.Types.DeviceType) input.ReadEnum();
break;
}
case 42: {
int? value = _single_companyId_codec.Read(input);
if (companyId_ == null || value != 0) {
CompanyId = value;
}
break;
}
case 50: {
int? value = _single_roomId_codec.Read(input);
if (roomId_ == null || value != 0) {
RoomId = value;
}
break;
}
case 58: {
int? value = _single_relay_codec.Read(input);
if (relay_ == null || value != 0) {
Relay = value;
}
break;
}
case 66: {
int? value = _single_userId_codec.Read(input);
if (userId_ == null || value != 0) {
UserId = value;
}
break;
}
case 74: {
string value = _single_userAgent_codec.Read(input);
if (userAgent_ == null || value != "") {
UserAgent = value;
}
break;
}
case 82: {
int? value = _single_buildingId_codec.Read(input);
if (buildingId_ == null || value != 0) {
BuildingId = value;
}
break;
}
case 90: {
long? value = _single_orponId_codec.Read(input);
if (orponId_ == null || value != 0L) {
OrponId = value;
}
break;
}
case 98: {
string value = _single_roomNumber_codec.Read(input);
if (roomNumber_ == null || value != "") {
RoomNumber = value;
}
break;
}
case 106: {
string value = _single_ivrPhoneNumber_codec.Read(input);
if (ivrPhoneNumber_ == null || value != "") {
IvrPhoneNumber = value;
}
break;
}
case 114: {
string value = _single_guestPhoneNumber_codec.Read(input);
if (guestPhoneNumber_ == null || value != "") {
GuestPhoneNumber = value;
}
break;
}
case 122: {
string value = _single_code_codec.Read(input);
if (code_ == null || value != "") {
Code = value;
}
break;
}
case 130: {
string value = _single_rfid_codec.Read(input);
if (rfid_ == null || value != "") {
Rfid = value;
}
break;
}
case 138: {
string value = _single_requestId_codec.Read(input);
if (requestId_ == null || value != "") {
RequestId = value;
}
break;
}
case 146: {
string value = _single_dtmfPhoneNumber_codec.Read(input);
if (dtmfPhoneNumber_ == null || value != "") {
DtmfPhoneNumber = value;
}
break;
}
case 154: {
string value = _single_userKind_codec.Read(input);
if (userKind_ == null || value != "") {
UserKind = value;
}
break;
}
case 162: {
string value = _single_login_codec.Read(input);
if (login_ == null || value != "") {
Login = value;
}
break;
}
case 170: {
string value = _single_password_codec.Read(input);
if (password_ == null || value != "") {
Password = value;
}
break;
}
case 178: {
string value = _single_host_codec.Read(input);
if (host_ == null || value != "") {
Host = value;
}
break;
}
case 186: {
string value = _single_deviceModel_codec.Read(input);
if (deviceModel_ == null || value != "") {
DeviceModel = value;
}
break;
}
case 194: {
int? value = _single_rfidId_codec.Read(input);
if (rfidId_ == null || value != 0) {
RfidId = value;
}
break;
}
case 202: {
int? value = _single_codeId_codec.Read(input);
if (codeId_ == null || value != 0) {
CodeId = value;
}
break;
}
case 210: {
string value = _single_carNumber_codec.Read(input);
if (carNumber_ == null || value != "") {
CarNumber = value;
}
break;
}
case 218: {
string value = _single_os_codec.Read(input);
if (os_ == null || value != "") {
Os = value;
}
break;
}
case 226: {
string value = _single_pushToken_codec.Read(input);
if (pushToken_ == null || value != "") {
PushToken = value;
}
break;
}
case 234: {
string value = _single_cameraUid_codec.Read(input);
if (cameraUid_ == null || value != "") {
CameraUid = value;
}
break;
}
case 242: {
string value = _single_screenshotUrl_codec.Read(input);
if (screenshotUrl_ == null || value != "") {
ScreenshotUrl = value;
}
break;
}
case 250: {
string value = _single_vehicle_codec.Read(input);
if (vehicle_ == null || value != "") {
Vehicle = value;
}
break;
}
case 258: {
string value = _single_courierCompanyName_codec.Read(input);
if (courierCompanyName_ == null || value != "") {
CourierCompanyName = value;
}
break;
}
case 266: {
string value = _single_orderNumber_codec.Read(input);
if (orderNumber_ == null || value != "") {
OrderNumber = value;
}
break;
}
case 274: {
string value = _single_courierId_codec.Read(input);
if (courierId_ == null || value != "") {
CourierId = value;
}
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Type = (global::Keyapis.Event.V1.Event.Types.Type) input.ReadEnum();
break;
}
case 18: {
if (raisedAt_ == null) {
RaisedAt = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(RaisedAt);
break;
}
case 26: {
int? value = _single_deviceId_codec.Read(ref input);
if (deviceId_ == null || value != 0) {
DeviceId = value;
}
break;
}
case 32: {
DeviceType = (global::Keyapis.Event.V1.Event.Types.DeviceType) input.ReadEnum();
break;
}
case 42: {
int? value = _single_companyId_codec.Read(ref input);
if (companyId_ == null || value != 0) {
CompanyId = value;
}
break;
}
case 50: {
int? value = _single_roomId_codec.Read(ref input);
if (roomId_ == null || value != 0) {
RoomId = value;
}
break;
}
case 58: {
int? value = _single_relay_codec.Read(ref input);
if (relay_ == null || value != 0) {
Relay = value;
}
break;
}
case 66: {
int? value = _single_userId_codec.Read(ref input);
if (userId_ == null || value != 0) {
UserId = value;
}
break;
}
case 74: {
string value = _single_userAgent_codec.Read(ref input);
if (userAgent_ == null || value != "") {
UserAgent = value;
}
break;
}
case 82: {
int? value = _single_buildingId_codec.Read(ref input);
if (buildingId_ == null || value != 0) {
BuildingId = value;
}
break;
}
case 90: {
long? value = _single_orponId_codec.Read(ref input);
if (orponId_ == null || value != 0L) {
OrponId = value;
}
break;
}
case 98: {
string value = _single_roomNumber_codec.Read(ref input);
if (roomNumber_ == null || value != "") {
RoomNumber = value;
}
break;
}
case 106: {
string value = _single_ivrPhoneNumber_codec.Read(ref input);
if (ivrPhoneNumber_ == null || value != "") {
IvrPhoneNumber = value;
}
break;
}
case 114: {
string value = _single_guestPhoneNumber_codec.Read(ref input);
if (guestPhoneNumber_ == null || value != "") {
GuestPhoneNumber = value;
}
break;
}
case 122: {
string value = _single_code_codec.Read(ref input);
if (code_ == null || value != "") {
Code = value;
}
break;
}
case 130: {
string value = _single_rfid_codec.Read(ref input);
if (rfid_ == null || value != "") {
Rfid = value;
}
break;
}
case 138: {
string value = _single_requestId_codec.Read(ref input);
if (requestId_ == null || value != "") {
RequestId = value;
}
break;
}
case 146: {
string value = _single_dtmfPhoneNumber_codec.Read(ref input);
if (dtmfPhoneNumber_ == null || value != "") {
DtmfPhoneNumber = value;
}
break;
}
case 154: {
string value = _single_userKind_codec.Read(ref input);
if (userKind_ == null || value != "") {
UserKind = value;
}
break;
}
case 162: {
string value = _single_login_codec.Read(ref input);
if (login_ == null || value != "") {
Login = value;
}
break;
}
case 170: {
string value = _single_password_codec.Read(ref input);
if (password_ == null || value != "") {
Password = value;
}
break;
}
case 178: {
string value = _single_host_codec.Read(ref input);
if (host_ == null || value != "") {
Host = value;
}
break;
}
case 186: {
string value = _single_deviceModel_codec.Read(ref input);
if (deviceModel_ == null || value != "") {
DeviceModel = value;
}
break;
}
case 194: {
int? value = _single_rfidId_codec.Read(ref input);
if (rfidId_ == null || value != 0) {
RfidId = value;
}
break;
}
case 202: {
int? value = _single_codeId_codec.Read(ref input);
if (codeId_ == null || value != 0) {
CodeId = value;
}
break;
}
case 210: {
string value = _single_carNumber_codec.Read(ref input);
if (carNumber_ == null || value != "") {
CarNumber = value;
}
break;
}
case 218: {
string value = _single_os_codec.Read(ref input);
if (os_ == null || value != "") {
Os = value;
}
break;
}
case 226: {
string value = _single_pushToken_codec.Read(ref input);
if (pushToken_ == null || value != "") {
PushToken = value;
}
break;
}
case 234: {
string value = _single_cameraUid_codec.Read(ref input);
if (cameraUid_ == null || value != "") {
CameraUid = value;
}
break;
}
case 242: {
string value = _single_screenshotUrl_codec.Read(ref input);
if (screenshotUrl_ == null || value != "") {
ScreenshotUrl = value;
}
break;
}
case 250: {
string value = _single_vehicle_codec.Read(ref input);
if (vehicle_ == null || value != "") {
Vehicle = value;
}
break;
}
case 258: {
string value = _single_courierCompanyName_codec.Read(ref input);
if (courierCompanyName_ == null || value != "") {
CourierCompanyName = value;
}
break;
}
case 266: {
string value = _single_orderNumber_codec.Read(ref input);
if (orderNumber_ == null || value != "") {
OrderNumber = value;
}
break;
}
case 274: {
string value = _single_courierId_codec.Read(ref input);
if (courierId_ == null || value != "") {
CourierId = value;
}
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Event message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Тип события
///
public enum Type {
///
/// Значение не указано
///
[pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0,
///
/// Удалённое открытие
///
[pbr::OriginalName("API_OPEN_REMOTE")] ApiOpenRemote = 1,
///
/// Открытие по лицу
///
[pbr::OriginalName("FACE_OPEN_REMOTE")] FaceOpenRemote = 2,
///
/// Открытие по звонку
///
[pbr::OriginalName("PIN_CODE_OPEN_REMOTE")] PinCodeOpenRemote = 3,
///
/// Открытие по DTMF коду
///
[pbr::OriginalName("DTMF_OPEN_REMOTE")] DtmfOpenRemote = 4,
///
/// Включение аварийного режима
///
[pbr::OriginalName("EMERGENCY_MODE_ON_REMOTE")] EmergencyModeOnRemote = 5,
///
/// Отключение аварийного режима
///
[pbr::OriginalName("EMERGENCY_MODE_OFF_REMOTE")] EmergencyModeOffRemote = 6,
///
/// Открытие по коду
///
[pbr::OriginalName("CODE_OPEN_LOCAL")] CodeOpenLocal = 7,
///
/// Открытие по ключу
///
[pbr::OriginalName("RFID_OPEN_LOCAL")] RfidOpenLocal = 8,
///
/// Включение проигрывания звукового предупреждения
///
[pbr::OriginalName("EMERGENCY_ALARM_REMOTE")] EmergencyAlarmRemote = 9,
///
/// Получение логопас УЗ устройства в админке
///
[pbr::OriginalName("GET_CREDENTIALS")] GetCredentials = 10,
///
/// Смена пароля на устройстве, логируется как успешная, так и неуспешная
///
[pbr::OriginalName("CHANGE_PASSWORD")] ChangePassword = 11,
///
/// Вход пользователя
///
[pbr::OriginalName("USER_ENTRY")] UserEntry = 12,
///
/// Открытие по DTMF коду
///
[pbr::OriginalName("DTMF_OPEN_LOCAL")] DtmfOpenLocal = 13,
///
/// Открытие по номеру машины
///
[pbr::OriginalName("CAR_NUMBER_OPEN_REMOTE")] CarNumberOpenRemote = 14,
///
/// Выключение проигрывания звукового предупреждения
///
[pbr::OriginalName("EMERGENCY_ALARM_OFF_REMOTE")] EmergencyAlarmOffRemote = 15,
///
/// Включение проигрывания звукового предупреждения
///
[pbr::OriginalName("EMERGENCY_ALARM_ON_REMOTE")] EmergencyAlarmOnRemote = 16,
///
/// Устройство открыто сотрудником ЛТП
///
[pbr::OriginalName("DISPATCHER_OPEN")] DispatcherOpen = 17,
///
/// Отказано в доступе сотрудником ЛТП
///
[pbr::OriginalName("DISPATCHER_DENIED_OPEN")] DispatcherDeniedOpen = 18,
///
/// Открытие по типу авто
///
[pbr::OriginalName("VEHICLE_TYPE_OPEN_REMOTE")] VehicleTypeOpenRemote = 19,
}
///
/// Тип устройства
///
public enum DeviceType {
///
/// Значение не указано
///
[pbr::OriginalName("DEVICE_TYPE_UNKNOWN")] Unknown = 0,
///
/// Домофон
///
[pbr::OriginalName("INTERCOM")] Intercom = 1,
///
/// Шлагбаум
///
[pbr::OriginalName("BARRIER")] Barrier = 2,
///
/// Калитка
///
[pbr::OriginalName("GATE")] Gate = 3,
///
/// СКУД
///
[pbr::OriginalName("ACCESS_CONTROL_PANEL")] AccessControlPanel = 4,
///
/// Камера
///
[pbr::OriginalName("VIDEOCAMERA")] Videocamera = 5,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code