//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/access_control/v1/keyapis_access_control_events_1.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.AccessControl.V1 {
/// Holder for reflection information generated from keyapis/access_control/v1/keyapis_access_control_events_1.proto
public static partial class KeyapisAccessControlEvents1Reflection {
#region Descriptor
/// File descriptor for keyapis/access_control/v1/keyapis_access_control_events_1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisAccessControlEvents1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cj9rZXlhcGlzL2FjY2Vzc19jb250cm9sL3YxL2tleWFwaXNfYWNjZXNzX2Nv",
"bnRyb2xfZXZlbnRzXzEucHJvdG8SGWtleWFwaXMuYWNjZXNzX2NvbnRyb2wu",
"djEaH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJvdG8aHmdvb2dsZS9w",
"cm90b2J1Zi93cmFwcGVycy5wcm90byJ8ChdBY3RpdmF0ZUNtc1NldHRpbmdz",
"VGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQISFQoIb3Jwb25faWQYAiAB",
"KANCA+BBAhIWCglkZXZpY2VfaWQYAyABKAVCA+BBAhIZCgxyb29tX251bWJl",
"cnMYBCADKAlCA+BBAiJ5ChRCbG9ja0Ntc1NldHRpbmdzVGFzaxIXCgpyZXF1",
"ZXN0X2lkGAEgASgJQgPgQQISFQoIb3Jwb25faWQYAiABKANCA+BBAhIWCglk",
"ZXZpY2VfaWQYAyABKAVCA+BBAhIZCgxyb29tX251bWJlcnMYBCADKAlCA+BB",
"AiKBAQocRm9yY2VBY3RpdmF0ZUNtc1NldHRpbmdzVGFzaxIXCgpyZXF1ZXN0",
"X2lkGAEgASgJQgPgQQISFQoIb3Jwb25faWQYAiABKANCA+BBAhIWCglkZXZp",
"Y2VfaWQYAyABKAVCA+BBAhIZCgxyb29tX251bWJlcnMYBCADKAlCA+BBAiLq",
"AQoYQ29uZmlndXJlUm9vbXNSZXN1bHRUYXNrEhcKCnJlcXVlc3RfaWQYASAB",
"KAlCA+BBAhIWCglkZXZpY2VfaWQYAiABKAVCA+BBAhJMCgVyb29tcxgDIAMo",
"CzI4LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEuQ29uZmlndXJlUm9vbXNS",
"ZXN1bHRUYXNrLlJvb21CA+BBAhpPCgRSb29tEhQKB3Jvb21faWQYASABKAVC",
"A+BBAhIaCg1pc19jb25maWd1cmVkGAIgASgIQgPgQQISFQoNZXJyb3JfbWVz",
"c2FnZRgDIAEoCSLxAQoWTG9hZFJmaWRzVG9EZXZpY2VzVGFzaxIXCgpyZXF1",
"ZXN0X2lkGAEgASgJQgPgQQISSgoFcmZpZHMYAiADKAsyNi5rZXlhcGlzLmFj",
"Y2Vzc19jb250cm9sLnYxLkxvYWRSZmlkc1RvRGV2aWNlc1Rhc2suUmZpZEID",
"4EECEhcKCmRldmljZV9pZHMYAyADKAVCA+BBAhpZCgRSZmlkEg8KAmlkGAEg",
"ASgFQgPgQQISEAoDa2V5GAIgASgJQgPgQQISGAoLcm9vbV9udW1iZXIYAyAB",
"KAlCA+BBAhIUCgdyb29tX2lkGAQgASgFQgPgQQIi8gEKFkxvYWRDb2Rlc1Rv",
"RGV2aWNlc1Rhc2sSFwoKcmVxdWVzdF9pZBgBIAEoCUID4EECEkoKBWNvZGVz",
"GAIgAygLMjYua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5Mb2FkQ29kZXNU",
"b0RldmljZXNUYXNrLkNvZGVCA+BBAhIXCgpkZXZpY2VfaWRzGAMgAygFQgPg",
"QQIaWgoEQ29kZRIPCgJpZBgBIAEoBUID4EECEhEKBGNvZGUYAiABKAlCA+BB",
"AhIYCgtyb29tX251bWJlchgDIAEoCUID4EECEhQKB3Jvb21faWQYBCABKAVC",
"A+BBAiKuAgoaRGVsZXRlUmZpZHNGcm9tRGV2aWNlc1Rhc2sSFwoKcmVxdWVz",
"dF9pZBgBIAEoCUID4EECEk4KBXJmaWRzGAIgAygLMjoua2V5YXBpcy5hY2Nl",
"c3NfY29udHJvbC52MS5EZWxldGVSZmlkc0Zyb21EZXZpY2VzVGFzay5SZmlk",
"QgPgQQISFwoKZGV2aWNlX2lkcxgDIAMoBUID4EECEjMKD2lzX2ZvcmNlX2Rl",
"bGV0ZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWUaWQoEUmZp",
"ZBIPCgJpZBgBIAEoBUID4EECEhAKA2tleRgCIAEoCUID4EECEhgKC3Jvb21f",
"bnVtYmVyGAMgASgJQgPgQQISFAoHcm9vbV9pZBgEIAEoBUID4EECIq8CChpE",
"ZWxldGVDb2Rlc0Zyb21EZXZpY2VzVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJ",
"QgPgQQISTgoFY29kZXMYAiADKAsyOi5rZXlhcGlzLmFjY2Vzc19jb250cm9s",
"LnYxLkRlbGV0ZUNvZGVzRnJvbURldmljZXNUYXNrLkNvZGVCA+BBAhIXCgpk",
"ZXZpY2VfaWRzGAMgAygFQgPgQQISMwoPaXNfZm9yY2VfZGVsZXRlGAQgASgL",
"MhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZRpaCgRDb2RlEg8KAmlkGAEg",
"ASgFQgPgQQISEQoEY29kZRgCIAEoCUID4EECEhgKC3Jvb21fbnVtYmVyGAMg",
"ASgJQgPgQQISFAoHcm9vbV9pZBgEIAEoBUID4EECIoQDChBQcmVwYXJlU3Rh",
"cnRUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIbCg5zb3VuZF9maWxl",
"X3VyaRgCIAEoCUID4EECEhIKBW9ycG9uGAMgASgDQgPgQQISHwoSdGFjdF9w",
"bGF5X2R1cmF0aW9uGAQgASgFQgPgQQISHgoRdGFjdF9yZXBlYXRfY291bnQY",
"BSABKAVCA+BBAhIeChFwbGF5X3JlcGVhdF9jb3VudBgGIAEoBUID4EECEkwK",
"CXBsYXlfdHlwZRgHIAEoDjI0LmtleWFwaXMuYWNjZXNzX2NvbnRyb2wudjEu",
"UHJlcGFyZVN0YXJ0VGFzay5QbGF5VHlwZUID4EECIncKCFBsYXlUeXBlEhUK",
"EVBMQVlfVFlQRV9VTktOT1dOEAASEAoMSEFORFNFVF9PTkxZEAESEAoMU1BF",
"QUtFUl9PTkxZEAISFwoTSEFORFNFVF9BTkRfU1BFQUtFUhADEhcKE1NQRUFL",
"RVJfQU5EX0hBTkRTRVQQBCKbAgodRGVsZXRlUmZpZHNGcm9tQWxsRGV2aWNl",
"c1Rhc2sSFwoKcmVxdWVzdF9pZBgBIAEoCUID4EECElEKBXJmaWRzGAIgAygL",
"Mj0ua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52MS5EZWxldGVSZmlkc0Zyb21B",
"bGxEZXZpY2VzVGFzay5SZmlkQgPgQQISMwoPaXNfZm9yY2VfZGVsZXRlGAMg",
"ASgLMhouZ29vZ2xlLnByb3RvYnVmLkJvb2xWYWx1ZRpZCgRSZmlkEg8KAmlk",
"GAEgASgFQgPgQQISEAoDa2V5GAIgASgJQgPgQQISGAoLcm9vbV9udW1iZXIY",
"AyABKAlCA+BBAhIUCgdyb29tX2lkGAQgASgFQgPgQQIi+AEKI0RlbGV0ZVJm",
"aWRzRnJvbUFsbERldmljZXNSZXN1bHRUYXNrEhcKCnJlcXVlc3RfaWQYASAB",
"KAlCA+BBAhIUCgdyZmlkX2lkGAIgASgFQgPgQQISYwoLc3RhdHVzX3R5cGUY",
"AyABKA4ySS5rZXlhcGlzLmFjY2Vzc19jb250cm9sLnYxLkRlbGV0ZVJmaWRz",
"RnJvbUFsbERldmljZXNSZXN1bHRUYXNrLlN0YXR1c1R5cGVCA+BBAiI9CgpT",
"dGF0dXNUeXBlEhcKE1NUQVRVU19UWVBFX1VOS05PV04QABILCgdTVUNDRVNT",
"EAESCQoFRVJST1IQAkLNAQoccnUua2V5YXBpcy5hY2Nlc3NfY29udHJvbC52",
"MUIbS2V5YXBpc0FjY2Vzc0NvbnRyb2xWMVByb3RvSANQAFoaL2tleWFwaXNf",
"YWNjZXNzX2NvbnRyb2xfdjHYAQH4AQGiAhZLRVlBUElTQUNDRVNTQ09OVFJP",
"TFYxqgIYS2V5YXBpcy5BY2Nlc3NDb250cm9sLlYxygIYS2V5YXBpc1xBY2Nl",
"c3NDb250cm9sXFYx6gIaS2V5YXBpczo6QWNjZXNzQ29udHJvbDo6VjFiBnBy",
"b3RvMw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.ActivateCmsSettingsTask), global::Keyapis.AccessControl.V1.ActivateCmsSettingsTask.Parser, new[]{ "RequestId", "OrponId", "DeviceId", "RoomNumbers" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.BlockCmsSettingsTask), global::Keyapis.AccessControl.V1.BlockCmsSettingsTask.Parser, new[]{ "RequestId", "OrponId", "DeviceId", "RoomNumbers" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.ForceActivateCmsSettingsTask), global::Keyapis.AccessControl.V1.ForceActivateCmsSettingsTask.Parser, new[]{ "RequestId", "OrponId", "DeviceId", "RoomNumbers" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.ConfigureRoomsResultTask), global::Keyapis.AccessControl.V1.ConfigureRoomsResultTask.Parser, new[]{ "RequestId", "DeviceId", "Rooms" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.ConfigureRoomsResultTask.Types.Room), global::Keyapis.AccessControl.V1.ConfigureRoomsResultTask.Types.Room.Parser, new[]{ "RoomId", "IsConfigured", "ErrorMessage" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.LoadRfidsToDevicesTask), global::Keyapis.AccessControl.V1.LoadRfidsToDevicesTask.Parser, new[]{ "RequestId", "Rfids", "DeviceIds" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.LoadRfidsToDevicesTask.Types.Rfid), global::Keyapis.AccessControl.V1.LoadRfidsToDevicesTask.Types.Rfid.Parser, new[]{ "Id", "Key", "RoomNumber", "RoomId" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.LoadCodesToDevicesTask), global::Keyapis.AccessControl.V1.LoadCodesToDevicesTask.Parser, new[]{ "RequestId", "Codes", "DeviceIds" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.LoadCodesToDevicesTask.Types.Code), global::Keyapis.AccessControl.V1.LoadCodesToDevicesTask.Types.Code.Parser, new[]{ "Id", "Code_", "RoomNumber", "RoomId" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidsFromDevicesTask), global::Keyapis.AccessControl.V1.DeleteRfidsFromDevicesTask.Parser, new[]{ "RequestId", "Rfids", "DeviceIds", "IsForceDelete" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidsFromDevicesTask.Types.Rfid), global::Keyapis.AccessControl.V1.DeleteRfidsFromDevicesTask.Types.Rfid.Parser, new[]{ "Id", "Key", "RoomNumber", "RoomId" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteCodesFromDevicesTask), global::Keyapis.AccessControl.V1.DeleteCodesFromDevicesTask.Parser, new[]{ "RequestId", "Codes", "DeviceIds", "IsForceDelete" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteCodesFromDevicesTask.Types.Code), global::Keyapis.AccessControl.V1.DeleteCodesFromDevicesTask.Types.Code.Parser, new[]{ "Id", "Code_", "RoomNumber", "RoomId" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.PrepareStartTask), global::Keyapis.AccessControl.V1.PrepareStartTask.Parser, new[]{ "RequestId", "SoundFileUri", "Orpon", "TactPlayDuration", "TactRepeatCount", "PlayRepeatCount", "PlayType" }, null, new[]{ typeof(global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesTask), global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesTask.Parser, new[]{ "RequestId", "Rfids", "IsForceDelete" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesTask.Types.Rfid), global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesTask.Types.Rfid.Parser, new[]{ "Id", "Key", "RoomNumber", "RoomId" }, null, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask), global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Parser, new[]{ "RequestId", "RfidId", "StatusType" }, null, new[]{ typeof(global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType) }, null, null)
}));
}
#endregion
}
#region Messages
///
/// Задача на активацию аналоговых трубок квартир для устройства на доме.
/// Очередь key.access_control.activate_cms
///
public sealed partial class ActivateCmsSettingsTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ActivateCmsSettingsTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.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 ActivateCmsSettingsTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ActivateCmsSettingsTask(ActivateCmsSettingsTask other) : this() {
requestId_ = other.requestId_;
orponId_ = other.orponId_;
deviceId_ = other.deviceId_;
roomNumbers_ = other.roomNumbers_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ActivateCmsSettingsTask Clone() {
return new ActivateCmsSettingsTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "orpon_id" field.
public const int OrponIdFieldNumber = 2;
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 "device_id" field.
public const int DeviceIdFieldNumber = 3;
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 "room_numbers" field.
public const int RoomNumbersFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_roomNumbers_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField roomNumbers_ = new pbc::RepeatedField();
///
/// Номера квартир с включенным режимом подписок, у которых блокируется аналоговая трубка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RoomNumbers {
get { return roomNumbers_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ActivateCmsSettingsTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ActivateCmsSettingsTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (OrponId != other.OrponId) return false;
if (DeviceId != other.DeviceId) return false;
if(!roomNumbers_.Equals(other.roomNumbers_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
if (OrponId != 0L) hash ^= OrponId.GetHashCode();
if (DeviceId != 0) hash ^= DeviceId.GetHashCode();
hash ^= roomNumbers_.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (OrponId != 0L) {
output.WriteRawTag(16);
output.WriteInt64(OrponId);
}
if (DeviceId != 0) {
output.WriteRawTag(24);
output.WriteInt32(DeviceId);
}
roomNumbers_.WriteTo(output, _repeated_roomNumbers_codec);
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (OrponId != 0L) {
output.WriteRawTag(16);
output.WriteInt64(OrponId);
}
if (DeviceId != 0) {
output.WriteRawTag(24);
output.WriteInt32(DeviceId);
}
roomNumbers_.WriteTo(ref output, _repeated_roomNumbers_codec);
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
if (OrponId != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrponId);
}
if (DeviceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId);
}
size += roomNumbers_.CalculateSize(_repeated_roomNumbers_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ActivateCmsSettingsTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.OrponId != 0L) {
OrponId = other.OrponId;
}
if (other.DeviceId != 0) {
DeviceId = other.DeviceId;
}
roomNumbers_.Add(other.roomNumbers_);
_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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
OrponId = input.ReadInt64();
break;
}
case 24: {
DeviceId = input.ReadInt32();
break;
}
case 34: {
roomNumbers_.AddEntriesFrom(input, _repeated_roomNumbers_codec);
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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
OrponId = input.ReadInt64();
break;
}
case 24: {
DeviceId = input.ReadInt32();
break;
}
case 34: {
roomNumbers_.AddEntriesFrom(ref input, _repeated_roomNumbers_codec);
break;
}
}
}
}
#endif
}
///
/// Задача на блокировку аналоговых трубок квартир для устройства на доме.
/// Очередь key.access_control.block_cms
///
public sealed partial class BlockCmsSettingsTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new BlockCmsSettingsTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[1]; }
}
[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 BlockCmsSettingsTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockCmsSettingsTask(BlockCmsSettingsTask other) : this() {
requestId_ = other.requestId_;
orponId_ = other.orponId_;
deviceId_ = other.deviceId_;
roomNumbers_ = other.roomNumbers_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BlockCmsSettingsTask Clone() {
return new BlockCmsSettingsTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "orpon_id" field.
public const int OrponIdFieldNumber = 2;
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 "device_id" field.
public const int DeviceIdFieldNumber = 3;
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 "room_numbers" field.
public const int RoomNumbersFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_roomNumbers_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField roomNumbers_ = new pbc::RepeatedField();
///
/// Номера квартир с включенным режимом подписок, у которых активируется аналоговая трубка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RoomNumbers {
get { return roomNumbers_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BlockCmsSettingsTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BlockCmsSettingsTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (OrponId != other.OrponId) return false;
if (DeviceId != other.DeviceId) return false;
if(!roomNumbers_.Equals(other.roomNumbers_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
if (OrponId != 0L) hash ^= OrponId.GetHashCode();
if (DeviceId != 0) hash ^= DeviceId.GetHashCode();
hash ^= roomNumbers_.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (OrponId != 0L) {
output.WriteRawTag(16);
output.WriteInt64(OrponId);
}
if (DeviceId != 0) {
output.WriteRawTag(24);
output.WriteInt32(DeviceId);
}
roomNumbers_.WriteTo(output, _repeated_roomNumbers_codec);
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (OrponId != 0L) {
output.WriteRawTag(16);
output.WriteInt64(OrponId);
}
if (DeviceId != 0) {
output.WriteRawTag(24);
output.WriteInt32(DeviceId);
}
roomNumbers_.WriteTo(ref output, _repeated_roomNumbers_codec);
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
if (OrponId != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrponId);
}
if (DeviceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId);
}
size += roomNumbers_.CalculateSize(_repeated_roomNumbers_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BlockCmsSettingsTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.OrponId != 0L) {
OrponId = other.OrponId;
}
if (other.DeviceId != 0) {
DeviceId = other.DeviceId;
}
roomNumbers_.Add(other.roomNumbers_);
_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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
OrponId = input.ReadInt64();
break;
}
case 24: {
DeviceId = input.ReadInt32();
break;
}
case 34: {
roomNumbers_.AddEntriesFrom(input, _repeated_roomNumbers_codec);
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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
OrponId = input.ReadInt64();
break;
}
case 24: {
DeviceId = input.ReadInt32();
break;
}
case 34: {
roomNumbers_.AddEntriesFrom(ref input, _repeated_roomNumbers_codec);
break;
}
}
}
}
#endif
}
///
/// Задача на активацию аналоговых трубок квартир для устройства на доме без дополнительных проверок на устройстве.
/// Очередь key.access_control.force_activate_cms
///
public sealed partial class ForceActivateCmsSettingsTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ForceActivateCmsSettingsTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[2]; }
}
[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 ForceActivateCmsSettingsTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ForceActivateCmsSettingsTask(ForceActivateCmsSettingsTask other) : this() {
requestId_ = other.requestId_;
orponId_ = other.orponId_;
deviceId_ = other.deviceId_;
roomNumbers_ = other.roomNumbers_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ForceActivateCmsSettingsTask Clone() {
return new ForceActivateCmsSettingsTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "orpon_id" field.
public const int OrponIdFieldNumber = 2;
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 "device_id" field.
public const int DeviceIdFieldNumber = 3;
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 "room_numbers" field.
public const int RoomNumbersFieldNumber = 4;
private static readonly pb::FieldCodec _repeated_roomNumbers_codec
= pb::FieldCodec.ForString(34);
private readonly pbc::RepeatedField roomNumbers_ = new pbc::RepeatedField();
///
/// Номера квартир для которых необходимо активация аналоговых трубок
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField RoomNumbers {
get { return roomNumbers_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ForceActivateCmsSettingsTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ForceActivateCmsSettingsTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (OrponId != other.OrponId) return false;
if (DeviceId != other.DeviceId) return false;
if(!roomNumbers_.Equals(other.roomNumbers_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
if (OrponId != 0L) hash ^= OrponId.GetHashCode();
if (DeviceId != 0) hash ^= DeviceId.GetHashCode();
hash ^= roomNumbers_.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (OrponId != 0L) {
output.WriteRawTag(16);
output.WriteInt64(OrponId);
}
if (DeviceId != 0) {
output.WriteRawTag(24);
output.WriteInt32(DeviceId);
}
roomNumbers_.WriteTo(output, _repeated_roomNumbers_codec);
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (OrponId != 0L) {
output.WriteRawTag(16);
output.WriteInt64(OrponId);
}
if (DeviceId != 0) {
output.WriteRawTag(24);
output.WriteInt32(DeviceId);
}
roomNumbers_.WriteTo(ref output, _repeated_roomNumbers_codec);
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
if (OrponId != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(OrponId);
}
if (DeviceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId);
}
size += roomNumbers_.CalculateSize(_repeated_roomNumbers_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ForceActivateCmsSettingsTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.OrponId != 0L) {
OrponId = other.OrponId;
}
if (other.DeviceId != 0) {
DeviceId = other.DeviceId;
}
roomNumbers_.Add(other.roomNumbers_);
_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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
OrponId = input.ReadInt64();
break;
}
case 24: {
DeviceId = input.ReadInt32();
break;
}
case 34: {
roomNumbers_.AddEntriesFrom(input, _repeated_roomNumbers_codec);
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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
OrponId = input.ReadInt64();
break;
}
case 24: {
DeviceId = input.ReadInt32();
break;
}
case 34: {
roomNumbers_.AddEntriesFrom(ref input, _repeated_roomNumbers_codec);
break;
}
}
}
}
#endif
}
///
/// Задача ответ на конфигурацию квартир.
/// Очередь key.access_control.configure_rooms_result
///
public sealed partial class ConfigureRoomsResultTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ConfigureRoomsResultTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[3]; }
}
[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 ConfigureRoomsResultTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ConfigureRoomsResultTask(ConfigureRoomsResultTask other) : this() {
requestId_ = other.requestId_;
deviceId_ = other.deviceId_;
rooms_ = other.rooms_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ConfigureRoomsResultTask Clone() {
return new ConfigureRoomsResultTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "device_id" field.
public const int DeviceIdFieldNumber = 2;
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 "rooms" field.
public const int RoomsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_rooms_codec
= pb::FieldCodec.ForMessage(26, global::Keyapis.AccessControl.V1.ConfigureRoomsResultTask.Types.Room.Parser);
private readonly pbc::RepeatedField rooms_ = new pbc::RepeatedField();
///
/// Список квартир с результатом конфигурации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Rooms {
get { return rooms_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ConfigureRoomsResultTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ConfigureRoomsResultTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (DeviceId != other.DeviceId) return false;
if(!rooms_.Equals(other.rooms_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
if (DeviceId != 0) hash ^= DeviceId.GetHashCode();
hash ^= rooms_.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (DeviceId != 0) {
output.WriteRawTag(16);
output.WriteInt32(DeviceId);
}
rooms_.WriteTo(output, _repeated_rooms_codec);
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (DeviceId != 0) {
output.WriteRawTag(16);
output.WriteInt32(DeviceId);
}
rooms_.WriteTo(ref output, _repeated_rooms_codec);
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
if (DeviceId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId);
}
size += rooms_.CalculateSize(_repeated_rooms_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ConfigureRoomsResultTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.DeviceId != 0) {
DeviceId = other.DeviceId;
}
rooms_.Add(other.rooms_);
_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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
DeviceId = input.ReadInt32();
break;
}
case 26: {
rooms_.AddEntriesFrom(input, _repeated_rooms_codec);
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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
DeviceId = input.ReadInt32();
break;
}
case 26: {
rooms_.AddEntriesFrom(ref input, _repeated_rooms_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the ConfigureRoomsResultTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Результат конфигурации квартиры
///
public sealed partial class Room : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Room());
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.AccessControl.V1.ConfigureRoomsResultTask.Descriptor.NestedTypes[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 Room() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Room(Room other) : this() {
roomId_ = other.roomId_;
isConfigured_ = other.isConfigured_;
errorMessage_ = other.errorMessage_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Room Clone() {
return new Room(this);
}
/// Field number for the "room_id" field.
public const int RoomIdFieldNumber = 1;
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 "is_configured" field.
public const int IsConfiguredFieldNumber = 2;
private bool isConfigured_;
///
/// Признак "Сконфигурировано"
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsConfigured {
get { return isConfigured_; }
set {
isConfigured_ = value;
}
}
/// Field number for the "error_message" field.
public const int ErrorMessageFieldNumber = 3;
private string errorMessage_ = "";
///
/// Текст ошибки
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ErrorMessage {
get { return errorMessage_; }
set {
errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Room);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Room other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RoomId != other.RoomId) return false;
if (IsConfigured != other.IsConfigured) return false;
if (ErrorMessage != other.ErrorMessage) 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 (RoomId != 0) hash ^= RoomId.GetHashCode();
if (IsConfigured != false) hash ^= IsConfigured.GetHashCode();
if (ErrorMessage.Length != 0) hash ^= ErrorMessage.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 (RoomId != 0) {
output.WriteRawTag(8);
output.WriteInt32(RoomId);
}
if (IsConfigured != false) {
output.WriteRawTag(16);
output.WriteBool(IsConfigured);
}
if (ErrorMessage.Length != 0) {
output.WriteRawTag(26);
output.WriteString(ErrorMessage);
}
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 (RoomId != 0) {
output.WriteRawTag(8);
output.WriteInt32(RoomId);
}
if (IsConfigured != false) {
output.WriteRawTag(16);
output.WriteBool(IsConfigured);
}
if (ErrorMessage.Length != 0) {
output.WriteRawTag(26);
output.WriteString(ErrorMessage);
}
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 (RoomId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
}
if (IsConfigured != false) {
size += 1 + 1;
}
if (ErrorMessage.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Room other) {
if (other == null) {
return;
}
if (other.RoomId != 0) {
RoomId = other.RoomId;
}
if (other.IsConfigured != false) {
IsConfigured = other.IsConfigured;
}
if (other.ErrorMessage.Length != 0) {
ErrorMessage = other.ErrorMessage;
}
_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: {
RoomId = input.ReadInt32();
break;
}
case 16: {
IsConfigured = input.ReadBool();
break;
}
case 26: {
ErrorMessage = input.ReadString();
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: {
RoomId = input.ReadInt32();
break;
}
case 16: {
IsConfigured = input.ReadBool();
break;
}
case 26: {
ErrorMessage = input.ReadString();
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Задача на добавление ключей на устройства.
/// Очередь key.access_control.load_rfids_to_devices
///
public sealed partial class LoadRfidsToDevicesTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadRfidsToDevicesTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[4]; }
}
[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 LoadRfidsToDevicesTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LoadRfidsToDevicesTask(LoadRfidsToDevicesTask other) : this() {
requestId_ = other.requestId_;
rfids_ = other.rfids_.Clone();
deviceIds_ = other.deviceIds_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LoadRfidsToDevicesTask Clone() {
return new LoadRfidsToDevicesTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "rfids" field.
public const int RfidsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_rfids_codec
= pb::FieldCodec.ForMessage(18, global::Keyapis.AccessControl.V1.LoadRfidsToDevicesTask.Types.Rfid.Parser);
private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField();
///
/// Список ключей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Rfids {
get { return rfids_; }
}
/// Field number for the "device_ids" field.
public const int DeviceIdsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_deviceIds_codec
= pb::FieldCodec.ForInt32(26);
private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField();
///
/// Список идентификаторов устройств
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DeviceIds {
get { return deviceIds_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LoadRfidsToDevicesTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LoadRfidsToDevicesTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if(!rfids_.Equals(other.rfids_)) return false;
if(!deviceIds_.Equals(other.deviceIds_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
hash ^= rfids_.GetHashCode();
hash ^= deviceIds_.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
rfids_.WriteTo(output, _repeated_rfids_codec);
deviceIds_.WriteTo(output, _repeated_deviceIds_codec);
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
rfids_.WriteTo(ref output, _repeated_rfids_codec);
deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec);
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
size += rfids_.CalculateSize(_repeated_rfids_codec);
size += deviceIds_.CalculateSize(_repeated_deviceIds_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LoadRfidsToDevicesTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
rfids_.Add(other.rfids_);
deviceIds_.Add(other.deviceIds_);
_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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
rfids_.AddEntriesFrom(input, _repeated_rfids_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec);
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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the LoadRfidsToDevicesTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ключ
///
public sealed partial class Rfid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rfid());
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.AccessControl.V1.LoadRfidsToDevicesTask.Descriptor.NestedTypes[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 Rfid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rfid(Rfid other) : this() {
id_ = other.id_;
key_ = other.key_;
roomNumber_ = other.roomNumber_;
roomId_ = other.roomId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rfid Clone() {
return new Rfid(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private int id_;
///
/// Идентификатор
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "key" field.
public const int KeyFieldNumber = 2;
private string key_ = "";
///
/// Значение ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Key {
get { return key_; }
set {
key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_number" field.
public const int RoomNumberFieldNumber = 3;
private string roomNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomNumber {
get { return roomNumber_; }
set {
roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_id" field.
public const int RoomIdFieldNumber = 4;
private int roomId_;
///
/// Идентификатор квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RoomId {
get { return roomId_; }
set {
roomId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Rfid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Rfid other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Key != other.Key) return false;
if (RoomNumber != other.RoomNumber) return false;
if (RoomId != other.RoomId) 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 (Id != 0) hash ^= Id.GetHashCode();
if (Key.Length != 0) hash ^= Key.GetHashCode();
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
if (RoomId != 0) hash ^= RoomId.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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Key.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Key);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Key.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Key);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Key.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
}
if (RoomNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber);
}
if (RoomId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Rfid other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Key.Length != 0) {
Key = other.Key;
}
if (other.RoomNumber.Length != 0) {
RoomNumber = other.RoomNumber;
}
if (other.RoomId != 0) {
RoomId = other.RoomId;
}
_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: {
Id = input.ReadInt32();
break;
}
case 18: {
Key = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
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: {
Id = input.ReadInt32();
break;
}
case 18: {
Key = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Задача на добавление кодов на устройства.
/// Очередь key.access_control.load_codes_to_devices
///
public sealed partial class LoadCodesToDevicesTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new LoadCodesToDevicesTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[5]; }
}
[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 LoadCodesToDevicesTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LoadCodesToDevicesTask(LoadCodesToDevicesTask other) : this() {
requestId_ = other.requestId_;
codes_ = other.codes_.Clone();
deviceIds_ = other.deviceIds_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LoadCodesToDevicesTask Clone() {
return new LoadCodesToDevicesTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "codes" field.
public const int CodesFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_codes_codec
= pb::FieldCodec.ForMessage(18, global::Keyapis.AccessControl.V1.LoadCodesToDevicesTask.Types.Code.Parser);
private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField();
///
/// Список кодов
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Codes {
get { return codes_; }
}
/// Field number for the "device_ids" field.
public const int DeviceIdsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_deviceIds_codec
= pb::FieldCodec.ForInt32(26);
private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField();
///
/// Список идентификаторов устройств
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DeviceIds {
get { return deviceIds_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LoadCodesToDevicesTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LoadCodesToDevicesTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if(!codes_.Equals(other.codes_)) return false;
if(!deviceIds_.Equals(other.deviceIds_)) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
hash ^= codes_.GetHashCode();
hash ^= deviceIds_.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
codes_.WriteTo(output, _repeated_codes_codec);
deviceIds_.WriteTo(output, _repeated_deviceIds_codec);
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
codes_.WriteTo(ref output, _repeated_codes_codec);
deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec);
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
size += codes_.CalculateSize(_repeated_codes_codec);
size += deviceIds_.CalculateSize(_repeated_deviceIds_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LoadCodesToDevicesTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
codes_.Add(other.codes_);
deviceIds_.Add(other.deviceIds_);
_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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
codes_.AddEntriesFrom(input, _repeated_codes_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec);
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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
codes_.AddEntriesFrom(ref input, _repeated_codes_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the LoadCodesToDevicesTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Код
///
public sealed partial class Code : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Code());
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.AccessControl.V1.LoadCodesToDevicesTask.Descriptor.NestedTypes[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 Code() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Code(Code other) : this() {
id_ = other.id_;
code_ = other.code_;
roomNumber_ = other.roomNumber_;
roomId_ = other.roomId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Code Clone() {
return new Code(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private int id_;
///
/// Идентификатор
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "code" field.
public const int Code_FieldNumber = 2;
private string code_ = "";
///
/// Значение кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Code_ {
get { return code_; }
set {
code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_number" field.
public const int RoomNumberFieldNumber = 3;
private string roomNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomNumber {
get { return roomNumber_; }
set {
roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_id" field.
public const int RoomIdFieldNumber = 4;
private int roomId_;
///
/// Идентификатор квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RoomId {
get { return roomId_; }
set {
roomId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Code);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Code other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Code_ != other.Code_) return false;
if (RoomNumber != other.RoomNumber) return false;
if (RoomId != other.RoomId) 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 (Id != 0) hash ^= Id.GetHashCode();
if (Code_.Length != 0) hash ^= Code_.GetHashCode();
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
if (RoomId != 0) hash ^= RoomId.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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Code_.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code_);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Code_.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code_);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Code_.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Code_);
}
if (RoomNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber);
}
if (RoomId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Code other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Code_.Length != 0) {
Code_ = other.Code_;
}
if (other.RoomNumber.Length != 0) {
RoomNumber = other.RoomNumber;
}
if (other.RoomId != 0) {
RoomId = other.RoomId;
}
_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: {
Id = input.ReadInt32();
break;
}
case 18: {
Code_ = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
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: {
Id = input.ReadInt32();
break;
}
case 18: {
Code_ = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Задача на удаление ключей с устройств.
/// Очередь key.access_control.delete_rfids_from_devices
///
public sealed partial class DeleteRfidsFromDevicesTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidsFromDevicesTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[6]; }
}
[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 DeleteRfidsFromDevicesTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRfidsFromDevicesTask(DeleteRfidsFromDevicesTask other) : this() {
requestId_ = other.requestId_;
rfids_ = other.rfids_.Clone();
deviceIds_ = other.deviceIds_.Clone();
IsForceDelete = other.IsForceDelete;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRfidsFromDevicesTask Clone() {
return new DeleteRfidsFromDevicesTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "rfids" field.
public const int RfidsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_rfids_codec
= pb::FieldCodec.ForMessage(18, global::Keyapis.AccessControl.V1.DeleteRfidsFromDevicesTask.Types.Rfid.Parser);
private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField();
///
/// Список ключей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Rfids {
get { return rfids_; }
}
/// Field number for the "device_ids" field.
public const int DeviceIdsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_deviceIds_codec
= pb::FieldCodec.ForInt32(26);
private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField();
///
/// Список идентификаторов устройств
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DeviceIds {
get { return deviceIds_; }
}
/// Field number for the "is_force_delete" field.
public const int IsForceDeleteFieldNumber = 4;
private static readonly pb::FieldCodec _single_isForceDelete_codec = pb::FieldCodec.ForStructWrapper(34);
private bool? isForceDelete_;
///
/// Удаление без ожидания ответа от устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsForceDelete {
get { return isForceDelete_; }
set {
isForceDelete_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteRfidsFromDevicesTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteRfidsFromDevicesTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if(!rfids_.Equals(other.rfids_)) return false;
if(!deviceIds_.Equals(other.deviceIds_)) return false;
if (IsForceDelete != other.IsForceDelete) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
hash ^= rfids_.GetHashCode();
hash ^= deviceIds_.GetHashCode();
if (isForceDelete_ != null) hash ^= IsForceDelete.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
rfids_.WriteTo(output, _repeated_rfids_codec);
deviceIds_.WriteTo(output, _repeated_deviceIds_codec);
if (isForceDelete_ != null) {
_single_isForceDelete_codec.WriteTagAndValue(output, IsForceDelete);
}
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
rfids_.WriteTo(ref output, _repeated_rfids_codec);
deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec);
if (isForceDelete_ != null) {
_single_isForceDelete_codec.WriteTagAndValue(ref output, IsForceDelete);
}
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
size += rfids_.CalculateSize(_repeated_rfids_codec);
size += deviceIds_.CalculateSize(_repeated_deviceIds_codec);
if (isForceDelete_ != null) {
size += _single_isForceDelete_codec.CalculateSizeWithTag(IsForceDelete);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeleteRfidsFromDevicesTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
rfids_.Add(other.rfids_);
deviceIds_.Add(other.deviceIds_);
if (other.isForceDelete_ != null) {
if (isForceDelete_ == null || other.IsForceDelete != false) {
IsForceDelete = other.IsForceDelete;
}
}
_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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
rfids_.AddEntriesFrom(input, _repeated_rfids_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec);
break;
}
case 34: {
bool? value = _single_isForceDelete_codec.Read(input);
if (isForceDelete_ == null || value != false) {
IsForceDelete = 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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec);
break;
}
case 34: {
bool? value = _single_isForceDelete_codec.Read(ref input);
if (isForceDelete_ == null || value != false) {
IsForceDelete = value;
}
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeleteRfidsFromDevicesTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ключ
///
public sealed partial class Rfid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rfid());
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.AccessControl.V1.DeleteRfidsFromDevicesTask.Descriptor.NestedTypes[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 Rfid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rfid(Rfid other) : this() {
id_ = other.id_;
key_ = other.key_;
roomNumber_ = other.roomNumber_;
roomId_ = other.roomId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rfid Clone() {
return new Rfid(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private int id_;
///
/// Идентификатор
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "key" field.
public const int KeyFieldNumber = 2;
private string key_ = "";
///
/// Значение ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Key {
get { return key_; }
set {
key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_number" field.
public const int RoomNumberFieldNumber = 3;
private string roomNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomNumber {
get { return roomNumber_; }
set {
roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_id" field.
public const int RoomIdFieldNumber = 4;
private int roomId_;
///
/// Идентификатор квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RoomId {
get { return roomId_; }
set {
roomId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Rfid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Rfid other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Key != other.Key) return false;
if (RoomNumber != other.RoomNumber) return false;
if (RoomId != other.RoomId) 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 (Id != 0) hash ^= Id.GetHashCode();
if (Key.Length != 0) hash ^= Key.GetHashCode();
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
if (RoomId != 0) hash ^= RoomId.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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Key.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Key);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Key.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Key);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Key.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
}
if (RoomNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber);
}
if (RoomId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Rfid other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Key.Length != 0) {
Key = other.Key;
}
if (other.RoomNumber.Length != 0) {
RoomNumber = other.RoomNumber;
}
if (other.RoomId != 0) {
RoomId = other.RoomId;
}
_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: {
Id = input.ReadInt32();
break;
}
case 18: {
Key = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
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: {
Id = input.ReadInt32();
break;
}
case 18: {
Key = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Задача на удаление кодов с устройств.
/// Очередь key.access_control.delete_codes_from_devices
///
public sealed partial class DeleteCodesFromDevicesTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCodesFromDevicesTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[7]; }
}
[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 DeleteCodesFromDevicesTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteCodesFromDevicesTask(DeleteCodesFromDevicesTask other) : this() {
requestId_ = other.requestId_;
codes_ = other.codes_.Clone();
deviceIds_ = other.deviceIds_.Clone();
IsForceDelete = other.IsForceDelete;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteCodesFromDevicesTask Clone() {
return new DeleteCodesFromDevicesTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "codes" field.
public const int CodesFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_codes_codec
= pb::FieldCodec.ForMessage(18, global::Keyapis.AccessControl.V1.DeleteCodesFromDevicesTask.Types.Code.Parser);
private readonly pbc::RepeatedField codes_ = new pbc::RepeatedField();
///
/// Список кодов
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Codes {
get { return codes_; }
}
/// Field number for the "device_ids" field.
public const int DeviceIdsFieldNumber = 3;
private static readonly pb::FieldCodec _repeated_deviceIds_codec
= pb::FieldCodec.ForInt32(26);
private readonly pbc::RepeatedField deviceIds_ = new pbc::RepeatedField();
///
/// Список идентификаторов устройств
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField DeviceIds {
get { return deviceIds_; }
}
/// Field number for the "is_force_delete" field.
public const int IsForceDeleteFieldNumber = 4;
private static readonly pb::FieldCodec _single_isForceDelete_codec = pb::FieldCodec.ForStructWrapper(34);
private bool? isForceDelete_;
///
/// Удаление без ожидания ответа от устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsForceDelete {
get { return isForceDelete_; }
set {
isForceDelete_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteCodesFromDevicesTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteCodesFromDevicesTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if(!codes_.Equals(other.codes_)) return false;
if(!deviceIds_.Equals(other.deviceIds_)) return false;
if (IsForceDelete != other.IsForceDelete) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
hash ^= codes_.GetHashCode();
hash ^= deviceIds_.GetHashCode();
if (isForceDelete_ != null) hash ^= IsForceDelete.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
codes_.WriteTo(output, _repeated_codes_codec);
deviceIds_.WriteTo(output, _repeated_deviceIds_codec);
if (isForceDelete_ != null) {
_single_isForceDelete_codec.WriteTagAndValue(output, IsForceDelete);
}
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
codes_.WriteTo(ref output, _repeated_codes_codec);
deviceIds_.WriteTo(ref output, _repeated_deviceIds_codec);
if (isForceDelete_ != null) {
_single_isForceDelete_codec.WriteTagAndValue(ref output, IsForceDelete);
}
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
size += codes_.CalculateSize(_repeated_codes_codec);
size += deviceIds_.CalculateSize(_repeated_deviceIds_codec);
if (isForceDelete_ != null) {
size += _single_isForceDelete_codec.CalculateSizeWithTag(IsForceDelete);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeleteCodesFromDevicesTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
codes_.Add(other.codes_);
deviceIds_.Add(other.deviceIds_);
if (other.isForceDelete_ != null) {
if (isForceDelete_ == null || other.IsForceDelete != false) {
IsForceDelete = other.IsForceDelete;
}
}
_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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
codes_.AddEntriesFrom(input, _repeated_codes_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(input, _repeated_deviceIds_codec);
break;
}
case 34: {
bool? value = _single_isForceDelete_codec.Read(input);
if (isForceDelete_ == null || value != false) {
IsForceDelete = 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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
codes_.AddEntriesFrom(ref input, _repeated_codes_codec);
break;
}
case 26:
case 24: {
deviceIds_.AddEntriesFrom(ref input, _repeated_deviceIds_codec);
break;
}
case 34: {
bool? value = _single_isForceDelete_codec.Read(ref input);
if (isForceDelete_ == null || value != false) {
IsForceDelete = value;
}
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeleteCodesFromDevicesTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Код
///
public sealed partial class Code : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Code());
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.AccessControl.V1.DeleteCodesFromDevicesTask.Descriptor.NestedTypes[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 Code() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Code(Code other) : this() {
id_ = other.id_;
code_ = other.code_;
roomNumber_ = other.roomNumber_;
roomId_ = other.roomId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Code Clone() {
return new Code(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private int id_;
///
/// Идентификатор
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "code" field.
public const int Code_FieldNumber = 2;
private string code_ = "";
///
/// Значение кода
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Code_ {
get { return code_; }
set {
code_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_number" field.
public const int RoomNumberFieldNumber = 3;
private string roomNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomNumber {
get { return roomNumber_; }
set {
roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_id" field.
public const int RoomIdFieldNumber = 4;
private int roomId_;
///
/// Идентификатор квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RoomId {
get { return roomId_; }
set {
roomId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Code);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Code other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Code_ != other.Code_) return false;
if (RoomNumber != other.RoomNumber) return false;
if (RoomId != other.RoomId) 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 (Id != 0) hash ^= Id.GetHashCode();
if (Code_.Length != 0) hash ^= Code_.GetHashCode();
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
if (RoomId != 0) hash ^= RoomId.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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Code_.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code_);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Code_.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Code_);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Code_.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Code_);
}
if (RoomNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber);
}
if (RoomId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Code other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Code_.Length != 0) {
Code_ = other.Code_;
}
if (other.RoomNumber.Length != 0) {
RoomNumber = other.RoomNumber;
}
if (other.RoomId != 0) {
RoomId = other.RoomId;
}
_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: {
Id = input.ReadInt32();
break;
}
case 18: {
Code_ = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
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: {
Id = input.ReadInt32();
break;
}
case 18: {
Code_ = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Команда на подготовку и старт оповещения через домофоны.
/// Очередь key.access_control.alert.prepare_start
///
public sealed partial class PrepareStartTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PrepareStartTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[8]; }
}
[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 PrepareStartTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PrepareStartTask(PrepareStartTask other) : this() {
requestId_ = other.requestId_;
soundFileUri_ = other.soundFileUri_;
orpon_ = other.orpon_;
tactPlayDuration_ = other.tactPlayDuration_;
tactRepeatCount_ = other.tactRepeatCount_;
playRepeatCount_ = other.playRepeatCount_;
playType_ = other.playType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PrepareStartTask Clone() {
return new PrepareStartTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "sound_file_uri" field.
public const int SoundFileUriFieldNumber = 2;
private string soundFileUri_ = "";
///
/// Ссылка на звуковой файл для проигрывания.
/// Файл должен лежать на внутреннем хранилище.
/// # Диапазон: 2..100
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SoundFileUri {
get { return soundFileUri_; }
set {
soundFileUri_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "orpon" field.
public const int OrponFieldNumber = 3;
private long orpon_;
///
/// Идентификатор ОРПОН дома, на котором запускаем проигрывание
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long Orpon {
get { return orpon_; }
set {
orpon_ = value;
}
}
/// Field number for the "tact_play_duration" field.
public const int TactPlayDurationFieldNumber = 4;
private int tactPlayDuration_;
///
/// Длительность воспроизведения такта в секундах.
/// Такт включает в себя проигрывание файла на трубках или на динамике.
/// # Диапазон: 0..65536
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int TactPlayDuration {
get { return tactPlayDuration_; }
set {
tactPlayDuration_ = value;
}
}
/// Field number for the "tact_repeat_count" field.
public const int TactRepeatCountFieldNumber = 5;
private int tactRepeatCount_;
///
/// Количество последовательных повторов тактов перед сменой динамика на трубки или наоборот.
/// # Диапазон: 0..65536
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int TactRepeatCount {
get { return tactRepeatCount_; }
set {
tactRepeatCount_ = value;
}
}
/// Field number for the "play_repeat_count" field.
public const int PlayRepeatCountFieldNumber = 6;
private int playRepeatCount_;
///
/// Количество дополнительных повторов тактов, т.е. умолчание=0 - это проигрывание одного такта.
/// # Диапазон: 0..65536
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PlayRepeatCount {
get { return playRepeatCount_; }
set {
playRepeatCount_ = value;
}
}
/// Field number for the "play_type" field.
public const int PlayTypeFieldNumber = 7;
private global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType playType_ = global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType.Unknown;
///
/// Тип проигрывания
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType PlayType {
get { return playType_; }
set {
playType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PrepareStartTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PrepareStartTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (SoundFileUri != other.SoundFileUri) return false;
if (Orpon != other.Orpon) return false;
if (TactPlayDuration != other.TactPlayDuration) return false;
if (TactRepeatCount != other.TactRepeatCount) return false;
if (PlayRepeatCount != other.PlayRepeatCount) return false;
if (PlayType != other.PlayType) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
if (SoundFileUri.Length != 0) hash ^= SoundFileUri.GetHashCode();
if (Orpon != 0L) hash ^= Orpon.GetHashCode();
if (TactPlayDuration != 0) hash ^= TactPlayDuration.GetHashCode();
if (TactRepeatCount != 0) hash ^= TactRepeatCount.GetHashCode();
if (PlayRepeatCount != 0) hash ^= PlayRepeatCount.GetHashCode();
if (PlayType != global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType.Unknown) hash ^= PlayType.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (SoundFileUri.Length != 0) {
output.WriteRawTag(18);
output.WriteString(SoundFileUri);
}
if (Orpon != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Orpon);
}
if (TactPlayDuration != 0) {
output.WriteRawTag(32);
output.WriteInt32(TactPlayDuration);
}
if (TactRepeatCount != 0) {
output.WriteRawTag(40);
output.WriteInt32(TactRepeatCount);
}
if (PlayRepeatCount != 0) {
output.WriteRawTag(48);
output.WriteInt32(PlayRepeatCount);
}
if (PlayType != global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType.Unknown) {
output.WriteRawTag(56);
output.WriteEnum((int) PlayType);
}
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (SoundFileUri.Length != 0) {
output.WriteRawTag(18);
output.WriteString(SoundFileUri);
}
if (Orpon != 0L) {
output.WriteRawTag(24);
output.WriteInt64(Orpon);
}
if (TactPlayDuration != 0) {
output.WriteRawTag(32);
output.WriteInt32(TactPlayDuration);
}
if (TactRepeatCount != 0) {
output.WriteRawTag(40);
output.WriteInt32(TactRepeatCount);
}
if (PlayRepeatCount != 0) {
output.WriteRawTag(48);
output.WriteInt32(PlayRepeatCount);
}
if (PlayType != global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType.Unknown) {
output.WriteRawTag(56);
output.WriteEnum((int) PlayType);
}
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
if (SoundFileUri.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SoundFileUri);
}
if (Orpon != 0L) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Orpon);
}
if (TactPlayDuration != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TactPlayDuration);
}
if (TactRepeatCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TactRepeatCount);
}
if (PlayRepeatCount != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlayRepeatCount);
}
if (PlayType != global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) PlayType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PrepareStartTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.SoundFileUri.Length != 0) {
SoundFileUri = other.SoundFileUri;
}
if (other.Orpon != 0L) {
Orpon = other.Orpon;
}
if (other.TactPlayDuration != 0) {
TactPlayDuration = other.TactPlayDuration;
}
if (other.TactRepeatCount != 0) {
TactRepeatCount = other.TactRepeatCount;
}
if (other.PlayRepeatCount != 0) {
PlayRepeatCount = other.PlayRepeatCount;
}
if (other.PlayType != global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType.Unknown) {
PlayType = other.PlayType;
}
_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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
SoundFileUri = input.ReadString();
break;
}
case 24: {
Orpon = input.ReadInt64();
break;
}
case 32: {
TactPlayDuration = input.ReadInt32();
break;
}
case 40: {
TactRepeatCount = input.ReadInt32();
break;
}
case 48: {
PlayRepeatCount = input.ReadInt32();
break;
}
case 56: {
PlayType = (global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType) input.ReadEnum();
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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
SoundFileUri = input.ReadString();
break;
}
case 24: {
Orpon = input.ReadInt64();
break;
}
case 32: {
TactPlayDuration = input.ReadInt32();
break;
}
case 40: {
TactRepeatCount = input.ReadInt32();
break;
}
case 48: {
PlayRepeatCount = input.ReadInt32();
break;
}
case 56: {
PlayType = (global::Keyapis.AccessControl.V1.PrepareStartTask.Types.PlayType) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the PrepareStartTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Тип проигрывания.
/// # Тип: byte
///
public enum PlayType {
///
/// Значение не указано
///
[pbr::OriginalName("PLAY_TYPE_UNKNOWN")] Unknown = 0,
///
/// Только на аналоговые трубки
///
[pbr::OriginalName("HANDSET_ONLY")] HandsetOnly = 1,
///
/// Tолько на динамик домофона
///
[pbr::OriginalName("SPEAKER_ONLY")] SpeakerOnly = 2,
///
/// Сначала на аналоговые трубки проигрываем заданное количество тактов, затем на динамик домофона
///
[pbr::OriginalName("HANDSET_AND_SPEAKER")] HandsetAndSpeaker = 3,
///
/// Сначала на динамик домофона проигрываем заданное количество тактов, затем на аналоговые трубки
///
[pbr::OriginalName("SPEAKER_AND_HANDSET")] SpeakerAndHandset = 4,
}
}
#endregion
}
///
/// Задача на удаление ключей со всех устройств.
/// Очередь key.access_control.delete_rfids_from_all_devices
///
public sealed partial class DeleteRfidsFromAllDevicesTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidsFromAllDevicesTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[9]; }
}
[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 DeleteRfidsFromAllDevicesTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRfidsFromAllDevicesTask(DeleteRfidsFromAllDevicesTask other) : this() {
requestId_ = other.requestId_;
rfids_ = other.rfids_.Clone();
IsForceDelete = other.IsForceDelete;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRfidsFromAllDevicesTask Clone() {
return new DeleteRfidsFromAllDevicesTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "rfids" field.
public const int RfidsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_rfids_codec
= pb::FieldCodec.ForMessage(18, global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesTask.Types.Rfid.Parser);
private readonly pbc::RepeatedField rfids_ = new pbc::RepeatedField();
///
/// Список ключей
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Rfids {
get { return rfids_; }
}
/// Field number for the "is_force_delete" field.
public const int IsForceDeleteFieldNumber = 3;
private static readonly pb::FieldCodec _single_isForceDelete_codec = pb::FieldCodec.ForStructWrapper(26);
private bool? isForceDelete_;
///
/// Удаление без ожидания ответа от устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool? IsForceDelete {
get { return isForceDelete_; }
set {
isForceDelete_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteRfidsFromAllDevicesTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteRfidsFromAllDevicesTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if(!rfids_.Equals(other.rfids_)) return false;
if (IsForceDelete != other.IsForceDelete) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
hash ^= rfids_.GetHashCode();
if (isForceDelete_ != null) hash ^= IsForceDelete.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
rfids_.WriteTo(output, _repeated_rfids_codec);
if (isForceDelete_ != null) {
_single_isForceDelete_codec.WriteTagAndValue(output, IsForceDelete);
}
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
rfids_.WriteTo(ref output, _repeated_rfids_codec);
if (isForceDelete_ != null) {
_single_isForceDelete_codec.WriteTagAndValue(ref output, IsForceDelete);
}
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
size += rfids_.CalculateSize(_repeated_rfids_codec);
if (isForceDelete_ != null) {
size += _single_isForceDelete_codec.CalculateSizeWithTag(IsForceDelete);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeleteRfidsFromAllDevicesTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
rfids_.Add(other.rfids_);
if (other.isForceDelete_ != null) {
if (isForceDelete_ == null || other.IsForceDelete != false) {
IsForceDelete = other.IsForceDelete;
}
}
_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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
rfids_.AddEntriesFrom(input, _repeated_rfids_codec);
break;
}
case 26: {
bool? value = _single_isForceDelete_codec.Read(input);
if (isForceDelete_ == null || value != false) {
IsForceDelete = 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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
rfids_.AddEntriesFrom(ref input, _repeated_rfids_codec);
break;
}
case 26: {
bool? value = _single_isForceDelete_codec.Read(ref input);
if (isForceDelete_ == null || value != false) {
IsForceDelete = value;
}
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeleteRfidsFromAllDevicesTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ключ
///
public sealed partial class Rfid : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Rfid());
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.AccessControl.V1.DeleteRfidsFromAllDevicesTask.Descriptor.NestedTypes[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 Rfid() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rfid(Rfid other) : this() {
id_ = other.id_;
key_ = other.key_;
roomNumber_ = other.roomNumber_;
roomId_ = other.roomId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rfid Clone() {
return new Rfid(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private int id_;
///
/// Идентификатор
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Id {
get { return id_; }
set {
id_ = value;
}
}
/// Field number for the "key" field.
public const int KeyFieldNumber = 2;
private string key_ = "";
///
/// Значение ключа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Key {
get { return key_; }
set {
key_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_number" field.
public const int RoomNumberFieldNumber = 3;
private string roomNumber_ = "";
///
/// Номер квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RoomNumber {
get { return roomNumber_; }
set {
roomNumber_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room_id" field.
public const int RoomIdFieldNumber = 4;
private int roomId_;
///
/// Идентификатор квартиры
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int RoomId {
get { return roomId_; }
set {
roomId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Rfid);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Rfid other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Key != other.Key) return false;
if (RoomNumber != other.RoomNumber) return false;
if (RoomId != other.RoomId) 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 (Id != 0) hash ^= Id.GetHashCode();
if (Key.Length != 0) hash ^= Key.GetHashCode();
if (RoomNumber.Length != 0) hash ^= RoomNumber.GetHashCode();
if (RoomId != 0) hash ^= RoomId.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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Key.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Key);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
output.WriteRawTag(8);
output.WriteInt32(Id);
}
if (Key.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Key);
}
if (RoomNumber.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomNumber);
}
if (RoomId != 0) {
output.WriteRawTag(32);
output.WriteInt32(RoomId);
}
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 (Id != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
}
if (Key.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Key);
}
if (RoomNumber.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomNumber);
}
if (RoomId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Rfid other) {
if (other == null) {
return;
}
if (other.Id != 0) {
Id = other.Id;
}
if (other.Key.Length != 0) {
Key = other.Key;
}
if (other.RoomNumber.Length != 0) {
RoomNumber = other.RoomNumber;
}
if (other.RoomId != 0) {
RoomId = other.RoomId;
}
_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: {
Id = input.ReadInt32();
break;
}
case 18: {
Key = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
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: {
Id = input.ReadInt32();
break;
}
case 18: {
Key = input.ReadString();
break;
}
case 26: {
RoomNumber = input.ReadString();
break;
}
case 32: {
RoomId = input.ReadInt32();
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Результат задачи на удаление ключа со всех устройств.
/// Очередь key.access_control.delete_rfids_from_all_devices_result
///
public sealed partial class DeleteRfidsFromAllDevicesResultTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteRfidsFromAllDevicesResultTask());
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.AccessControl.V1.KeyapisAccessControlEvents1Reflection.Descriptor.MessageTypes[10]; }
}
[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 DeleteRfidsFromAllDevicesResultTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRfidsFromAllDevicesResultTask(DeleteRfidsFromAllDevicesResultTask other) : this() {
requestId_ = other.requestId_;
rfidId_ = other.rfidId_;
statusType_ = other.statusType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteRfidsFromAllDevicesResultTask Clone() {
return new DeleteRfidsFromAllDevicesResultTask(this);
}
/// Field number for the "request_id" field.
public const int RequestIdFieldNumber = 1;
private string requestId_ = "";
///
/// Идентификатор запроса
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string RequestId {
get { return requestId_; }
set {
requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "rfid_id" field.
public const int RfidIdFieldNumber = 2;
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 "status_type" field.
public const int StatusTypeFieldNumber = 3;
private global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType statusType_ = global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType.Unknown;
///
/// Статус удаления ключа со всех устройств
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType StatusType {
get { return statusType_; }
set {
statusType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteRfidsFromAllDevicesResultTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteRfidsFromAllDevicesResultTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (RfidId != other.RfidId) return false;
if (StatusType != other.StatusType) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode();
if (RfidId != 0) hash ^= RfidId.GetHashCode();
if (StatusType != global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType.Unknown) hash ^= StatusType.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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (RfidId != 0) {
output.WriteRawTag(16);
output.WriteInt32(RfidId);
}
if (StatusType != global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) StatusType);
}
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 (RequestId.Length != 0) {
output.WriteRawTag(10);
output.WriteString(RequestId);
}
if (RfidId != 0) {
output.WriteRawTag(16);
output.WriteInt32(RfidId);
}
if (StatusType != global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) StatusType);
}
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 (RequestId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId);
}
if (RfidId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RfidId);
}
if (StatusType != global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StatusType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeleteRfidsFromAllDevicesResultTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.RfidId != 0) {
RfidId = other.RfidId;
}
if (other.StatusType != global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType.Unknown) {
StatusType = other.StatusType;
}
_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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
RfidId = input.ReadInt32();
break;
}
case 24: {
StatusType = (global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType) input.ReadEnum();
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 10: {
RequestId = input.ReadString();
break;
}
case 16: {
RfidId = input.ReadInt32();
break;
}
case 24: {
StatusType = (global::Keyapis.AccessControl.V1.DeleteRfidsFromAllDevicesResultTask.Types.StatusType) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeleteRfidsFromAllDevicesResultTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Справочник статусов удаления ключа со всех устройств.
/// # Тип: byte
///
public enum StatusType {
///
/// Значение не указано
///
[pbr::OriginalName("STATUS_TYPE_UNKNOWN")] Unknown = 0,
///
/// Настроен
///
[pbr::OriginalName("SUCCESS")] Success = 1,
///
/// Ошибка
///
[pbr::OriginalName("ERROR")] Error = 2,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code