// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/audit/v1/keyapis_audit_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.Audit.V1 { /// Holder for reflection information generated from keyapis/audit/v1/keyapis_audit_events_v1.proto public static partial class KeyapisAuditEventsV1Reflection { #region Descriptor /// File descriptor for keyapis/audit/v1/keyapis_audit_events_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisAuditEventsV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Ci5rZXlhcGlzL2F1ZGl0L3YxL2tleWFwaXNfYXVkaXRfZXZlbnRzX3YxLnBy", "b3RvEhBrZXlhcGlzLmF1ZGl0LnYxGhxnb29nbGUvYXBpL2Fubm90YXRpb25z", "LnByb3RvGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3RvGiBnb29n", "bGUvcHJvdG9idWYvZGVzY3JpcHRvci5wcm90bxofZ29vZ2xlL3Byb3RvYnVm", "L3RpbWVzdGFtcC5wcm90byKGAQoKQXVkaXRFdmVudBIMCgR0aW1lGAEgASgD", "EhEKBGtpbmQYAiABKAlCA+BBAhIVCg1wcmV2aW91c19kYXRhGAMgASgJEhkK", "DGN1cnJlbnRfZGF0YRgEIAEoCUID4EECEhQKDHNlcnZpY2VfbmFtZRgFIAEo", "CRIPCgd1c2VyX2lkGAYgASgFQpMBChNydS5rZXlhcGlzLmF1ZGl0LnYxQhNL", "ZXlhcGlzQXVkaXRWMVByb3RvSANQAFoRL2tleWFwaXNfYXVkaXRfdjHYAQH4", "AQGiAg5LRVlBUElTQVVESVRWMaoCEEtleWFwaXMuQXVkaXQuVjHKAhBLZXlh", "cGlzXEF1ZGl0XFYx6gISS2V5YXBpczo6QXVkaXQ6OlYxYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Audit.V1.AuditEvent), global::Keyapis.Audit.V1.AuditEvent.Parser, new[]{ "Time", "Kind", "PreviousData", "CurrentData", "ServiceName", "UserId" }, null, null, null, null) })); } #endregion } #region Messages /// /// Событие /// public sealed partial class AuditEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new AuditEvent()); 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.Audit.V1.KeyapisAuditEventsV1Reflection.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 AuditEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AuditEvent(AuditEvent other) : this() { time_ = other.time_; kind_ = other.kind_; previousData_ = other.previousData_; currentData_ = other.currentData_; serviceName_ = other.serviceName_; userId_ = other.userId_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public AuditEvent Clone() { return new AuditEvent(this); } /// Field number for the "time" field. public const int TimeFieldNumber = 1; private long time_; /// /// Время возникновения сигнала. /// В секундах от 01.01.1970 года в UTC. /// Присутствует всегда /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public long Time { get { return time_; } set { time_ = value; } } /// Field number for the "kind" field. public const int KindFieldNumber = 2; private string kind_ = ""; /// /// Тип события /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Kind { get { return kind_; } set { kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "previous_data" field. public const int PreviousDataFieldNumber = 3; private string previousData_ = ""; /// /// Данные до события. /// Представляет собой сериализованный json /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PreviousData { get { return previousData_; } set { previousData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "current_data" field. public const int CurrentDataFieldNumber = 4; private string currentData_ = ""; /// /// Данные после события. /// Представляет собой сериализованный json /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string CurrentData { get { return currentData_; } set { currentData_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "service_name" field. public const int ServiceNameFieldNumber = 5; private string serviceName_ = ""; /// /// Наименование сервиса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ServiceName { get { return serviceName_; } set { serviceName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "user_id" field. public const int UserIdFieldNumber = 6; private int userId_; /// /// Идентификатор пользователя /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int UserId { get { return userId_; } set { userId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as AuditEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(AuditEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Time != other.Time) return false; if (Kind != other.Kind) return false; if (PreviousData != other.PreviousData) return false; if (CurrentData != other.CurrentData) return false; if (ServiceName != other.ServiceName) return false; if (UserId != other.UserId) 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 (Time != 0L) hash ^= Time.GetHashCode(); if (Kind.Length != 0) hash ^= Kind.GetHashCode(); if (PreviousData.Length != 0) hash ^= PreviousData.GetHashCode(); if (CurrentData.Length != 0) hash ^= CurrentData.GetHashCode(); if (ServiceName.Length != 0) hash ^= ServiceName.GetHashCode(); if (UserId != 0) hash ^= UserId.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 (Time != 0L) { output.WriteRawTag(8); output.WriteInt64(Time); } if (Kind.Length != 0) { output.WriteRawTag(18); output.WriteString(Kind); } if (PreviousData.Length != 0) { output.WriteRawTag(26); output.WriteString(PreviousData); } if (CurrentData.Length != 0) { output.WriteRawTag(34); output.WriteString(CurrentData); } if (ServiceName.Length != 0) { output.WriteRawTag(42); output.WriteString(ServiceName); } if (UserId != 0) { output.WriteRawTag(48); output.WriteInt32(UserId); } 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 (Time != 0L) { output.WriteRawTag(8); output.WriteInt64(Time); } if (Kind.Length != 0) { output.WriteRawTag(18); output.WriteString(Kind); } if (PreviousData.Length != 0) { output.WriteRawTag(26); output.WriteString(PreviousData); } if (CurrentData.Length != 0) { output.WriteRawTag(34); output.WriteString(CurrentData); } if (ServiceName.Length != 0) { output.WriteRawTag(42); output.WriteString(ServiceName); } if (UserId != 0) { output.WriteRawTag(48); output.WriteInt32(UserId); } 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 (Time != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(Time); } if (Kind.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind); } if (PreviousData.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(PreviousData); } if (CurrentData.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CurrentData); } if (ServiceName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ServiceName); } if (UserId != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(UserId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(AuditEvent other) { if (other == null) { return; } if (other.Time != 0L) { Time = other.Time; } if (other.Kind.Length != 0) { Kind = other.Kind; } if (other.PreviousData.Length != 0) { PreviousData = other.PreviousData; } if (other.CurrentData.Length != 0) { CurrentData = other.CurrentData; } if (other.ServiceName.Length != 0) { ServiceName = other.ServiceName; } if (other.UserId != 0) { UserId = other.UserId; } _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: { Time = input.ReadInt64(); break; } case 18: { Kind = input.ReadString(); break; } case 26: { PreviousData = input.ReadString(); break; } case 34: { CurrentData = input.ReadString(); break; } case 42: { ServiceName = input.ReadString(); break; } case 48: { UserId = 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: { Time = input.ReadInt64(); break; } case 18: { Kind = input.ReadString(); break; } case 26: { PreviousData = input.ReadString(); break; } case 34: { CurrentData = input.ReadString(); break; } case 42: { ServiceName = input.ReadString(); break; } case 48: { UserId = input.ReadInt32(); break; } } } } #endif } #endregion } #endregion Designer generated code