// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/device/v1/keyapis_device_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.Device.V1 { /// Holder for reflection information generated from keyapis/device/v1/keyapis_device_access_v1.proto public static partial class KeyapisDeviceAccessV1Reflection { #region Descriptor /// File descriptor for keyapis/device/v1/keyapis_device_access_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisDeviceAccessV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjBrZXlhcGlzL2RldmljZS92MS9rZXlhcGlzX2RldmljZV9hY2Nlc3NfdjEu", "cHJvdG8SEWtleWFwaXMuZGV2aWNlLnYxGh9nb29nbGUvcHJvdG9idWYvdGlt", "ZXN0YW1wLnByb3RvGhxnb29nbGUvYXBpL2Fubm90YXRpb25zLnByb3RvGh9n", "b29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGiBnb29nbGUvcHJvdG9i", "dWYvZGVzY3JpcHRvci5wcm90bxowa2V5YXBpcy9kZXZpY2UvdjEva2V5YXBp", "c19kZXZpY2VfZGV2aWNlX3YxLnByb3RvIsABCgxEZXZpY2VBY2Nlc3MSFgoJ", "ZGV2aWNlX2lkGAEgASgFQgPgQQISSAoNYWNjZXNzb3JfdHlwZRgCIAEoDjIs", "LmtleWFwaXMuZGV2aWNlLnYxLkRldmljZUFjY2Vzcy5BY2Nlc3NvclR5cGVC", "A+BBAhIYCgthY2Nlc3Nvcl9pZBgDIAEoCUID4EECIjQKDEFjY2Vzc29yVHlw", "ZRIZChVBQ0NFU1NPUl9UWVBFX1VOS05PV04QABIJCgVHUk9VUBABQpoBChRy", "dS5rZXlhcGlzLmRldmljZS52MUIUS2V5YXBpc0RldmljZVYxUHJvdG9IA1AA", "WhIva2V5YXBpc19kZXZpY2VfdjHYAQH4AQGiAg9LRVlBUElTREVWSUNFVjGq", "AhFLZXlhcGlzLkRldmljZS5WMcoCEUtleWFwaXNcRGV2aWNlXFYx6gITS2V5", "YXBpczo6RGV2aWNlOjpWMWIGcHJvdG8z")); 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::Keyapis.Device.V1.KeyapisDeviceDeviceV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Device.V1.DeviceAccess), global::Keyapis.Device.V1.DeviceAccess.Parser, new[]{ "DeviceId", "AccessorType", "AccessorId" }, null, new[]{ typeof(global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType) }, null, null) })); } #endregion } #region Messages /// /// Доступ к устройству. /// # Описание модели /// public sealed partial class DeviceAccess : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceAccess()); 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.Device.V1.KeyapisDeviceAccessV1Reflection.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 DeviceAccess() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceAccess(DeviceAccess other) : this() { deviceId_ = other.deviceId_; accessorType_ = other.accessorType_; accessorId_ = other.accessorId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public DeviceAccess Clone() { return new DeviceAccess(this); } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 1; private int deviceId_; /// /// Идентификатор. /// # Диапазон: 0..2147483647 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return deviceId_; } set { deviceId_ = value; } } /// Field number for the "accessor_type" field. public const int AccessorTypeFieldNumber = 2; private global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType accessorType_ = global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown; /// /// Тип субъекта доступа /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.Device.V1.DeviceAccess.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"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as DeviceAccess); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(DeviceAccess other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (DeviceId != other.DeviceId) return false; if (AccessorType != other.AccessorType) return false; if (AccessorId != other.AccessorId) 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 (DeviceId != 0) hash ^= DeviceId.GetHashCode(); if (AccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) hash ^= AccessorType.GetHashCode(); if (AccessorId.Length != 0) hash ^= AccessorId.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 (DeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(DeviceId); } if (AccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) AccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(26); output.WriteString(AccessorId); } 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 (DeviceId != 0) { output.WriteRawTag(8); output.WriteInt32(DeviceId); } if (AccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { output.WriteRawTag(16); output.WriteEnum((int) AccessorType); } if (AccessorId.Length != 0) { output.WriteRawTag(26); output.WriteString(AccessorId); } 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 (DeviceId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (AccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AccessorType); } if (AccessorId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AccessorId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(DeviceAccess other) { if (other == null) { return; } if (other.DeviceId != 0) { DeviceId = other.DeviceId; } if (other.AccessorType != global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType.Unknown) { AccessorType = other.AccessorType; } if (other.AccessorId.Length != 0) { AccessorId = other.AccessorId; } _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: { DeviceId = input.ReadInt32(); break; } case 16: { AccessorType = (global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType) input.ReadEnum(); break; } case 26: { AccessorId = 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: { DeviceId = input.ReadInt32(); break; } case 16: { AccessorType = (global::Keyapis.Device.V1.DeviceAccess.Types.AccessorType) input.ReadEnum(); break; } case 26: { AccessorId = input.ReadString(); break; } } } } #endif #region Nested types /// Container for nested types declared in the DeviceAccess 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("GROUP")] Group = 1, } } #endregion } #endregion } #endregion Designer generated code