// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/vc/v1/keyapis_vc_camera_access_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_camera_access_v1.proto public static partial class KeyapisVcCameraAccessV1Reflection { #region Descriptor /// File descriptor for keyapis/vc/v1/keyapis_vc_camera_access_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisVcCameraAccessV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ci9rZXlhcGlzL3ZjL3YxL2tleWFwaXNfdmNfY2FtZXJhX2FjY2Vzc192MS5w", "cm90bxINa2V5YXBpcy52Yy52MRofZ29vZ2xlL3Byb3RvYnVmL3RpbWVzdGFt", "cC5wcm90bxocZ29vZ2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xl", "L2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2Rl", "c2NyaXB0b3IucHJvdG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90", "byLkAQoMQ2FtZXJhQWNjZXNzEhgKC2V4dGVybmFsX2lkGAEgASgJQgPgQQIS", "RAoNYWNjZXNzb3JfdHlwZRgCIAEoDjIoLmtleWFwaXMudmMudjEuQ2FtZXJh", "QWNjZXNzLkFjY2Vzc29yVHlwZUID4EECEhgKC2FjY2Vzc29yX2lkGAMgASgJ", "QgPgQQISGgoNdmNfY29tcGFueV9pZBgEIAEoBUID4EECIj4KDEFjY2Vzc29y", "VHlwZRIZChVBQ0NFU1NPUl9UWVBFX1VOS05PV04QABIICgRVU0VSEAESCQoF", "R1JPVVAQAkJ+ChBydS5rZXlhcGlzLnZjLnYxQhBLZXlhcGlzVmNWMVByb3Rv", "SANQAFoOL2tleWFwaXNfdmNfdjHYAQH4AQGiAgtLRVlBUElTVkNWMaoCDUtl", "eWFwaXMuVmMuVjHKAg1LZXlhcGlzXFZjXFYx6gIPS2V5YXBpczo6VmM6OlYx", "YgZwcm90bzM=")); 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, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Vc.V1.CameraAccess), global::Keyapis.Vc.V1.CameraAccess.Parser, new[]{ "ExternalId", "AccessorType", "AccessorId", "VcCompanyId" }, null, new[]{ typeof(global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType) }, null, null) })); } #endregion } #region Messages /// /// Доступ к камере. /// # Описание модели /// public sealed partial class CameraAccess : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new CameraAccess()); 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.KeyapisVcCameraAccessV1Reflection.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 CameraAccess() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraAccess(CameraAccess other) : this() { externalId_ = other.externalId_; accessorType_ = other.accessorType_; accessorId_ = other.accessorId_; vcCompanyId_ = other.vcCompanyId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public CameraAccess Clone() { return new CameraAccess(this); } /// Field number for the "external_id" field. public const int ExternalIdFieldNumber = 1; 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"); } } /// Field number for the "accessor_type" field. public const int AccessorTypeFieldNumber = 2; private global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType accessorType_ = 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 AccessorType { get { return accessorType_; } set { accessorType_ = value; } } /// Field number for the "accessor_id" field. public const int AccessorIdFieldNumber = 3; 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 = 4; 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 CameraAccess); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(CameraAccess other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ExternalId != other.ExternalId) return false; if (AccessorType != other.AccessorType) 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 (ExternalId.Length != 0) hash ^= ExternalId.GetHashCode(); if (AccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) hash ^= AccessorType.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 (ExternalId.Length != 0) { output.WriteRawTag(10); output.WriteString(ExternalId); } if (AccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) AccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(26); output.WriteString(AccessorId); } if (VcCompanyId != 0) { output.WriteRawTag(32); 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 (ExternalId.Length != 0) { output.WriteRawTag(10); output.WriteString(ExternalId); } if (AccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) AccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(26); output.WriteString(AccessorId); } if (VcCompanyId != 0) { output.WriteRawTag(32); 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 (ExternalId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ExternalId); } if (AccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AccessorType); } 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(CameraAccess other) { if (other == null) { return; } if (other.ExternalId.Length != 0) { ExternalId = other.ExternalId; } if (other.AccessorType != global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType.Unknown) { AccessorType = other.AccessorType; } 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: { ExternalId = input.ReadString(); break; } case 16: { AccessorType = (global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType) input.ReadEnum(); break; } case 26: { AccessorId = input.ReadString(); break; } case 32: { 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: { ExternalId = input.ReadString(); break; } case 16: { AccessorType = (global::Keyapis.Vc.V1.CameraAccess.Types.AccessorType) input.ReadEnum(); break; } case 26: { AccessorId = input.ReadString(); break; } case 32: { VcCompanyId = input.ReadInt32(); break; } } } } #endif #region Nested types /// Container for nested types declared in the CameraAccess message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Тип субъекта доступа /// public enum AccessorType { /// /// Значение не указно /// [pbr::OriginalName("ACCESSOR_TYPE_UNKNOWN")] Unknown = 0, /// /// Пользователь /// [pbr::OriginalName("USER")] User = 1, /// /// ГРуппа /// [pbr::OriginalName("GROUP")] Group = 2, } } #endregion } #endregion } #endregion Designer generated code