//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/watchdog/v1/keyapis_watchdog_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.Watchdog.V1 {
/// Holder for reflection information generated from keyapis/watchdog/v1/keyapis_watchdog_events_v1.proto
public static partial class KeyapisWatchdogEventsV1Reflection {
#region Descriptor
/// File descriptor for keyapis/watchdog/v1/keyapis_watchdog_events_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisWatchdogEventsV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjRrZXlhcGlzL3dhdGNoZG9nL3YxL2tleWFwaXNfd2F0Y2hkb2dfZXZlbnRz",
"X3YxLnByb3RvEhNrZXlhcGlzLndhdGNoZG9nLnYxGh9nb29nbGUvYXBpL2Zp",
"ZWxkX2JlaGF2aW9yLnByb3RvIvMBChZEZXZpY2VBdmFpbGFiaWxpdHlUYXNr",
"EhcKCnJlcXVlc3RfaWQYASABKAlCA+BBAhIWCglkZXZpY2VfaWQYAiABKAVC",
"A+BBAhJcChFhdmFpbGFiaWxpdHlfdHlwZRgDIAEoDjI8LmtleWFwaXMud2F0",
"Y2hkb2cudjEuRGV2aWNlQXZhaWxhYmlsaXR5VGFzay5BdmFpbGFiaWxpdHlU",
"eXBlQgPgQQIiSgoQQXZhaWxhYmlsaXR5VHlwZRIdChlBVkFJTEFCSUxJVFlf",
"VFlQRV9VTktOT1dOEAASCgoGT05MSU5FEAESCwoHT0ZGTElORRACQqgBChZy",
"dS5rZXlhcGlzLndhdGNoZG9nLnYxQhZLZXlhcGlzV2F0Y2hkb2dWMVByb3Rv",
"SANQAFoUL2tleWFwaXNfd2F0Y2hkb2dfdjHYAQH4AQGiAhFLRVlBUElTV0FU",
"Q0hET0dWMaoCE0tleWFwaXMuV2F0Y2hkb2cuVjHKAhNLZXlhcGlzXFdhdGNo",
"ZG9nXFYx6gIVS2V5YXBpczo6V2F0Y2hkb2c6OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.Watchdog.V1.DeviceAvailabilityTask), global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Parser, new[]{ "RequestId", "DeviceId", "AvailabilityType" }, null, new[]{ typeof(global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType) }, null, null)
}));
}
#endregion
}
#region Messages
///
/// Событие изменения доступности устройства.
/// Очередь bus.watchdog.device_availability
///
public sealed partial class DeviceAvailabilityTask : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceAvailabilityTask());
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.Watchdog.V1.KeyapisWatchdogEventsV1Reflection.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 DeviceAvailabilityTask() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceAvailabilityTask(DeviceAvailabilityTask other) : this() {
requestId_ = other.requestId_;
deviceId_ = other.deviceId_;
availabilityType_ = other.availabilityType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceAvailabilityTask Clone() {
return new DeviceAvailabilityTask(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 "availability_type" field.
public const int AvailabilityTypeFieldNumber = 3;
private global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType availabilityType_ = global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType.Unknown;
///
/// Тип доступности
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType AvailabilityType {
get { return availabilityType_; }
set {
availabilityType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeviceAvailabilityTask);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeviceAvailabilityTask 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 (AvailabilityType != other.AvailabilityType) 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();
if (AvailabilityType != global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType.Unknown) hash ^= AvailabilityType.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);
}
if (AvailabilityType != global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) AvailabilityType);
}
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);
}
if (AvailabilityType != global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) AvailabilityType);
}
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);
}
if (AvailabilityType != global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AvailabilityType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeviceAvailabilityTask other) {
if (other == null) {
return;
}
if (other.RequestId.Length != 0) {
RequestId = other.RequestId;
}
if (other.DeviceId != 0) {
DeviceId = other.DeviceId;
}
if (other.AvailabilityType != global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType.Unknown) {
AvailabilityType = other.AvailabilityType;
}
_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 24: {
AvailabilityType = (global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType) 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: {
DeviceId = input.ReadInt32();
break;
}
case 24: {
AvailabilityType = (global::Keyapis.Watchdog.V1.DeviceAvailabilityTask.Types.AvailabilityType) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeviceAvailabilityTask message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Тип доступности
///
public enum AvailabilityType {
///
/// Значение не указано
///
[pbr::OriginalName("AVAILABILITY_TYPE_UNKNOWN")] Unknown = 0,
///
/// Онлайн
///
[pbr::OriginalName("ONLINE")] Online = 1,
///
/// Офлайн
///
[pbr::OriginalName("OFFLINE")] Offline = 2,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code