//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/vc/v1/keyapis_vc_events_v1.proto
//
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Keyapis.Vc.V1 {
/// Holder for reflection information generated from keyapis/vc/v1/keyapis_vc_events_v1.proto
public static partial class KeyapisVcEventsV1Reflection {
#region Descriptor
/// File descriptor for keyapis/vc/v1/keyapis_vc_events_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisVcEventsV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CihrZXlhcGlzL3ZjL3YxL2tleWFwaXNfdmNfZXZlbnRzX3YxLnByb3RvEg1r",
"ZXlhcGlzLnZjLnYxGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3Rv",
"Ghxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9nb29nbGUvYXBpL2Zp",
"ZWxkX2JlaGF2aW9yLnByb3RvGiBnb29nbGUvcHJvdG9idWYvZGVzY3JpcHRv",
"ci5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dyYXBwZXJzLnByb3RvGi9rZXlh",
"cGlzL3ZjL3YxL2tleWFwaXNfdmNfY2FtZXJhX2FjY2Vzc192MS5wcm90byLW",
"AQoWQ3JlYXRlQ2FtZXJhQWNjZXNzVGFzaxIXCgpyZXF1ZXN0X2lkGAEgASgJ",
"QgPgQQISGQoMZXh0ZXJuYWxfaWRzGAIgAygJQgPgQQISUgobY2FtZXJhX2Fj",
"Y2Vzc19hY2Nlc3Nvcl90eXBlGAMgASgOMigua2V5YXBpcy52Yy52MS5DYW1l",
"cmFBY2Nlc3MuQWNjZXNzb3JUeXBlQgPgQQISGAoLYWNjZXNzb3JfaWQYBCAB",
"KAlCA+BBAhIaCg12Y19jb21wYW55X2lkGAUgASgFQgPgQQIi1gEKFkRlbGV0",
"ZUNhbWVyYUFjY2Vzc1Rhc2sSFwoKcmVxdWVzdF9pZBgBIAEoCUID4EECEhkK",
"DGV4dGVybmFsX2lkcxgCIAMoCUID4EECElIKG2NhbWVyYV9hY2Nlc3NfYWNj",
"ZXNzb3JfdHlwZRgDIAEoDjIoLmtleWFwaXMudmMudjEuQ2FtZXJhQWNjZXNz",
"LkFjY2Vzc29yVHlwZUID4EECEhgKC2FjY2Vzc29yX2lkGAQgASgJQgPgQQIS",
"GgoNdmNfY29tcGFueV9pZBgFIAEoBUID4EECIk8KGkRldGFjaENhbWVyYUZy",
"b21EZXZpY2VUYXNrEhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIYCgtleHRl",
"cm5hbF9pZBgCIAEoCUID4EECIlQKH0RldGFjaENhbWVyYUZyb21BY2Nlc3NQ",
"b2ludFRhc2sSFwoKcmVxdWVzdF9pZBgBIAEoCUID4EECEhgKC2V4dGVybmFs",
"X2lkGAIgASgJQgPgQQJCfgoQcnUua2V5YXBpcy52Yy52MUIQS2V5YXBpc1Zj",
"VjFQcm90b0gDUABaDi9rZXlhcGlzX3ZjX3Yx2AEB+AEBogILS0VZQVBJU1ZD",
"VjGqAg1LZXlhcGlzLlZjLlYxygINS2V5YXBpc1xWY1xWMeoCD0tleWFwaXM6",
"OlZjOjpWMWIGcHJvdG8z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, global::Keyapis.Vc.V1.KeyapisVcCameraAccessV1Reflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CreateCameraAccessTask), global::Keyapis.Vc.V1.CreateCameraAccessTask.Parser, new[]{ "RequestId", "ExternalIds", "CameraAccessAccessorType", "AccessorId", "VcCompanyId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.DeleteCameraAccessTask), global::Keyapis.Vc.V1.DeleteCameraAccessTask.Parser, new[]{ "RequestId", "ExternalIds", "CameraAccessAccessorType", "AccessorId", "VcCompanyId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.DetachCameraFromDeviceTask), global::Keyapis.Vc.V1.DetachCameraFromDeviceTask.Parser, new[]{ "RequestId", "ExternalId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.DetachCameraFromAccessPointTask), global::Keyapis.Vc.V1.DetachCameraFromAccessPointTask.Parser, new[]{ "RequestId", "ExternalId" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Задача на создание доступа к камере.
/// Очередь key.vc.create_camera_access
///
public sealed partial class CreateCameraAccessTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CreateCameraAccessTask());
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.Vc.V1.KeyapisVcEventsV1Reflection.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 CreateCameraAccessTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CreateCameraAccessTask(CreateCameraAccessTask other) : this() {
requestId_ = other.requestId_;
externalIds_ = other.externalIds_.Clone();
cameraAccessAccessorType_ = other.cameraAccessAccessorType_;
accessorId_ = other.accessorId_;
vcCompanyId_ = other.vcCompanyId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CreateCameraAccessTask Clone() {
return new CreateCameraAccessTask(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 "external_ids" field.
public const int ExternalIdsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_externalIds_codec
= pb::FieldCodec.ForString(18);
private readonly pbc::RepeatedField externalIds_ = new pbc::RepeatedField();
///
/// Идентификаторы камер в vcfront.
/// # Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ExternalIds {
get { return externalIds_; }
}
/// Field number for the "camera_access_accessor_type" field.
public const int CameraAccessAccessorTypeFieldNumber = 3;
private global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType cameraAccessAccessorType_ = global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown;
///
/// Тип субъекта доступа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType CameraAccessAccessorType {
get { return cameraAccessAccessorType_; }
set {
cameraAccessAccessorType_ = value;
}
}
/// Field number for the "accessor_id" field.
public const int AccessorIdFieldNumber = 4;
private string accessorId_ = "";
///
/// Идентификатор субъекта доступа.
/// # Диапазон: 1..36
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AccessorId {
get { return accessorId_; }
set {
accessorId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "vc_company_id" field.
public const int VcCompanyIdFieldNumber = 5;
private int vcCompanyId_;
///
/// Идентификатор компании в vcfront.
/// # Диапазон: 1..2147483647
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int VcCompanyId {
get { return vcCompanyId_; }
set {
vcCompanyId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as CreateCameraAccessTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CreateCameraAccessTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if(!externalIds_.Equals(other.externalIds_)) return false;
if (CameraAccessAccessorType != other.CameraAccessAccessorType) return false;
if (AccessorId != other.AccessorId) return false;
if (VcCompanyId != other.VcCompanyId) 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 ^= externalIds_.GetHashCode();
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) hash ^= CameraAccessAccessorType.GetHashCode();
if (AccessorId.Length != 0) hash ^= AccessorId.GetHashCode();
if (VcCompanyId != 0) hash ^= VcCompanyId.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);
}
externalIds_.WriteTo(output, _repeated_externalIds_codec);
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) CameraAccessAccessorType);
}
if (AccessorId.Length != 0) {
output.WriteRawTag(34);
output.WriteString(AccessorId);
}
if (VcCompanyId != 0) {
output.WriteRawTag(40);
output.WriteInt32(VcCompanyId);
}
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);
}
externalIds_.WriteTo(ref output, _repeated_externalIds_codec);
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) CameraAccessAccessorType);
}
if (AccessorId.Length != 0) {
output.WriteRawTag(34);
output.WriteString(AccessorId);
}
if (VcCompanyId != 0) {
output.WriteRawTag(40);
output.WriteInt32(VcCompanyId);
}
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 += externalIds_.CalculateSize(_repeated_externalIds_codec);
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CameraAccessAccessorType);
}
if (AccessorId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessorId);
}
if (VcCompanyId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(VcCompanyId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CreateCameraAccessTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
externalIds_.Add(other.externalIds_);
if (other.CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
CameraAccessAccessorType = other.CameraAccessAccessorType;
}
if (other.AccessorId.Length != 0) {
AccessorId = other.AccessorId;
}
if (other.VcCompanyId != 0) {
VcCompanyId = other.VcCompanyId;
}
_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: {
externalIds_.AddEntriesFrom(input, _repeated_externalIds_codec);
break;
}
case 24: {
CameraAccessAccessorType = (global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType) input.ReadEnum();
break;
}
case 34: {
AccessorId = input.ReadString();
break;
}
case 40: {
VcCompanyId = 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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
externalIds_.AddEntriesFrom(ref input, _repeated_externalIds_codec);
break;
}
case 24: {
CameraAccessAccessorType = (global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType) input.ReadEnum();
break;
}
case 34: {
AccessorId = input.ReadString();
break;
}
case 40: {
VcCompanyId = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Задача на удаление доступа к камере.
/// Очередь key.vc.delete_camera_access
///
public sealed partial class DeleteCameraAccessTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeleteCameraAccessTask());
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.Vc.V1.KeyapisVcEventsV1Reflection.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 DeleteCameraAccessTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteCameraAccessTask(DeleteCameraAccessTask other) : this() {
requestId_ = other.requestId_;
externalIds_ = other.externalIds_.Clone();
cameraAccessAccessorType_ = other.cameraAccessAccessorType_;
accessorId_ = other.accessorId_;
vcCompanyId_ = other.vcCompanyId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeleteCameraAccessTask Clone() {
return new DeleteCameraAccessTask(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 "external_ids" field.
public const int ExternalIdsFieldNumber = 2;
private static readonly pb::FieldCodec _repeated_externalIds_codec
= pb::FieldCodec.ForString(18);
private readonly pbc::RepeatedField externalIds_ = new pbc::RepeatedField();
///
/// Идентификаторы камер в vcfront.
/// # Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField ExternalIds {
get { return externalIds_; }
}
/// Field number for the "camera_access_accessor_type" field.
public const int CameraAccessAccessorTypeFieldNumber = 3;
private global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType cameraAccessAccessorType_ = global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown;
///
/// Тип субъекта доступа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType CameraAccessAccessorType {
get { return cameraAccessAccessorType_; }
set {
cameraAccessAccessorType_ = value;
}
}
/// Field number for the "accessor_id" field.
public const int AccessorIdFieldNumber = 4;
private string accessorId_ = "";
///
/// Идентификатор субъекта доступа.
/// # Диапазон: 1..36
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string AccessorId {
get { return accessorId_; }
set {
accessorId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "vc_company_id" field.
public const int VcCompanyIdFieldNumber = 5;
private int vcCompanyId_;
///
/// Идентификатор компании в vcfront.
/// # Диапазон: 1..2147483647
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int VcCompanyId {
get { return vcCompanyId_; }
set {
vcCompanyId_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeleteCameraAccessTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeleteCameraAccessTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if(!externalIds_.Equals(other.externalIds_)) return false;
if (CameraAccessAccessorType != other.CameraAccessAccessorType) return false;
if (AccessorId != other.AccessorId) return false;
if (VcCompanyId != other.VcCompanyId) 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 ^= externalIds_.GetHashCode();
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) hash ^= CameraAccessAccessorType.GetHashCode();
if (AccessorId.Length != 0) hash ^= AccessorId.GetHashCode();
if (VcCompanyId != 0) hash ^= VcCompanyId.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);
}
externalIds_.WriteTo(output, _repeated_externalIds_codec);
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) CameraAccessAccessorType);
}
if (AccessorId.Length != 0) {
output.WriteRawTag(34);
output.WriteString(AccessorId);
}
if (VcCompanyId != 0) {
output.WriteRawTag(40);
output.WriteInt32(VcCompanyId);
}
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);
}
externalIds_.WriteTo(ref output, _repeated_externalIds_codec);
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) CameraAccessAccessorType);
}
if (AccessorId.Length != 0) {
output.WriteRawTag(34);
output.WriteString(AccessorId);
}
if (VcCompanyId != 0) {
output.WriteRawTag(40);
output.WriteInt32(VcCompanyId);
}
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 += externalIds_.CalculateSize(_repeated_externalIds_codec);
if (CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CameraAccessAccessorType);
}
if (AccessorId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessorId);
}
if (VcCompanyId != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(VcCompanyId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeleteCameraAccessTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
externalIds_.Add(other.externalIds_);
if (other.CameraAccessAccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) {
CameraAccessAccessorType = other.CameraAccessAccessorType;
}
if (other.AccessorId.Length != 0) {
AccessorId = other.AccessorId;
}
if (other.VcCompanyId != 0) {
VcCompanyId = other.VcCompanyId;
}
_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: {
externalIds_.AddEntriesFrom(input, _repeated_externalIds_codec);
break;
}
case 24: {
CameraAccessAccessorType = (global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType) input.ReadEnum();
break;
}
case 34: {
AccessorId = input.ReadString();
break;
}
case 40: {
VcCompanyId = 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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
externalIds_.AddEntriesFrom(ref input, _repeated_externalIds_codec);
break;
}
case 24: {
CameraAccessAccessorType = (global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType) input.ReadEnum();
break;
}
case 34: {
AccessorId = input.ReadString();
break;
}
case 40: {
VcCompanyId = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Задача на отвязку камеры от устройств.
/// Отправляется при удалении камеры.
/// Очередь key.vc.detach_camera_from_devices
///
public sealed partial class DetachCameraFromDeviceTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetachCameraFromDeviceTask());
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.Vc.V1.KeyapisVcEventsV1Reflection.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 DetachCameraFromDeviceTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DetachCameraFromDeviceTask(DetachCameraFromDeviceTask other) : this() {
requestId_ = other.requestId_;
externalId_ = other.externalId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DetachCameraFromDeviceTask Clone() {
return new DetachCameraFromDeviceTask(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 "external_id" field.
public const int ExternalIdFieldNumber = 2;
private string externalId_ = "";
///
/// Идентификатор камер в vcfront.
/// # Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ExternalId {
get { return externalId_; }
set {
externalId_ = 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 DetachCameraFromDeviceTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DetachCameraFromDeviceTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (ExternalId != other.ExternalId) 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 (ExternalId.Length != 0) hash ^= ExternalId.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 (ExternalId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ExternalId);
}
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 (ExternalId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ExternalId);
}
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 (ExternalId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DetachCameraFromDeviceTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.ExternalId.Length != 0) {
ExternalId = other.ExternalId;
}
_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: {
ExternalId = 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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
ExternalId = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Задача на отвязку камеры от точек доступа.
/// Отправляется при удалении камеры.
/// Очередь key.vc.detach_camera_from_access_points
///
public sealed partial class DetachCameraFromAccessPointTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DetachCameraFromAccessPointTask());
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.Vc.V1.KeyapisVcEventsV1Reflection.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 DetachCameraFromAccessPointTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DetachCameraFromAccessPointTask(DetachCameraFromAccessPointTask other) : this() {
requestId_ = other.requestId_;
externalId_ = other.externalId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DetachCameraFromAccessPointTask Clone() {
return new DetachCameraFromAccessPointTask(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 "external_id" field.
public const int ExternalIdFieldNumber = 2;
private string externalId_ = "";
///
/// Идентификатор камер в vcfront.
/// # Тип: Guid
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ExternalId {
get { return externalId_; }
set {
externalId_ = 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 DetachCameraFromAccessPointTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DetachCameraFromAccessPointTask other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (RequestId != other.RequestId) return false;
if (ExternalId != other.ExternalId) 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 (ExternalId.Length != 0) hash ^= ExternalId.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 (ExternalId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ExternalId);
}
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 (ExternalId.Length != 0) {
output.WriteRawTag(18);
output.WriteString(ExternalId);
}
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 (ExternalId.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalId);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DetachCameraFromAccessPointTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.ExternalId.Length != 0) {
ExternalId = other.ExternalId;
}
_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: {
ExternalId = 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 10: {
RequestId = input.ReadString();
break;
}
case 18: {
ExternalId = input.ReadString();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code