//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deviceapis/device/v1/deviceapis_device_syslog_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 Deviceapis.Device.V1 {
/// Holder for reflection information generated from deviceapis/device/v1/deviceapis_device_syslog_v1.proto
public static partial class DeviceapisDeviceSyslogV1Reflection {
#region Descriptor
/// File descriptor for deviceapis/device/v1/deviceapis_device_syslog_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static DeviceapisDeviceSyslogV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjZkZXZpY2VhcGlzL2RldmljZS92MS9kZXZpY2VhcGlzX2RldmljZV9zeXNs",
"b2dfdjEucHJvdG8SFGRldmljZWFwaXMuZGV2aWNlLnYxGjZkZXZpY2VhcGlz",
"L2RldmljZS92MS9kZXZpY2VhcGlzX2RldmljZV9jb21tb25fdjEucHJvdG8a",
"HGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8aH2dvb2dsZS9hcGkvZmll",
"bGRfYmVoYXZpb3IucHJvdG8aIGdvb2dsZS9wcm90b2J1Zi9maWVsZF9tYXNr",
"LnByb3RvGi5wcm90b2MtZ2VuLW9wZW5hcGl2Mi9vcHRpb25zL2Fubm90YXRp",
"b25zLnByb3RvIoUBChlFZGl0U3lzbG9nU2V0dGluZ3NSZXF1ZXN0EjcKBGRh",
"dGEYASABKAsyJC5kZXZpY2VhcGlzLmRldmljZS52MS5TeXNsb2dTZXR0aW5n",
"c0ID4EECEi8KC3VwZGF0ZV9tYXNrGAIgASgLMhouZ29vZ2xlLnByb3RvYnVm",
"LkZpZWxkTWFzayLzAQoaRWRpdFN5c2xvZ1NldHRpbmdzUmVzcG9uc2USNAoE",
"ZGF0YRgBIAEoCzIkLmRldmljZWFwaXMuZGV2aWNlLnYxLlN5c2xvZ1NldHRp",
"bmdzSAASRwoFZXJyb3IYAiABKAsyNi5kZXZpY2VhcGlzLmRldmljZS52MS5F",
"ZGl0U3lzbG9nU2V0dGluZ3NSZXNwb25zZS5FcnJvckgAGk4KBUVycm9yEjsK",
"CnZhbGlkYXRpb24YASABKAsyJS5kZXZpY2VhcGlzLmRldmljZS52MS5WYWxp",
"ZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSIaChhHZXRTeXNsb2dT",
"ZXR0aW5nc1JlcXVlc3QiWQoZR2V0U3lzbG9nU2V0dGluZ3NSZXNwb25zZRI0",
"CgRkYXRhGAEgASgLMiQuZGV2aWNlYXBpcy5kZXZpY2UudjEuU3lzbG9nU2V0",
"dGluZ3NIAEIGCgR0eXBlIrADCg5TeXNsb2dTZXR0aW5ncxJUCg1wcm90b2Nv",
"bF90eXBlGAEgASgOMjEuZGV2aWNlYXBpcy5kZXZpY2UudjEuU3lzbG9nU2V0",
"dGluZ3MuUHJvdG9jb2xUeXBlQgqSQQdKBSJVRFAiEi0KB2FkZHJlc3MYAiAB",
"KAlCHJJBGUoUInN5c2xvZy5hY21lLmlvOjUxNCKAAQUSVwoObG9nX2xldmVs",
"X3R5cGUYAyABKA4yMS5kZXZpY2VhcGlzLmRldmljZS52MS5TeXNsb2dTZXR0",
"aW5ncy5Mb2dMZXZlbFR5cGVCDJJBCUoHIkVSUk9SIiKCAQoMTG9nTGV2ZWxU",
"eXBlEhoKFkxPR19MRVZFTF9UWVBFX1VOS05PV04QABINCglFTUVSR0VOQ1kQ",
"ARIJCgVBTEVSVBACEggKBENSSVQQAxIJCgVFUlJPUhAEEggKBFdBUk4QBRII",
"CgROT1RFEAYSCAoESU5GTxAHEgkKBURFQlVHEAgiOwoMUHJvdG9jb2xUeXBl",
"EhkKFVBST1RPQ09MX1RZUEVfVU5LTk9XThAAEgcKA1VEUBABEgcKA1RDUBAC",
"Mt4CChVTeXNsb2dTZXR0aW5nc1NlcnZpY2USpQEKEkVkaXRTeXNsb2dTZXR0",
"aW5ncxIvLmRldmljZWFwaXMuZGV2aWNlLnYxLkVkaXRTeXNsb2dTZXR0aW5n",
"c1JlcXVlc3QaMC5kZXZpY2VhcGlzLmRldmljZS52MS5FZGl0U3lzbG9nU2V0",
"dGluZ3NSZXNwb25zZSIsgtPkkwImMh4vZGV2aWNlL2FwaS92MS9zeXNsb2cv",
"c2V0dGluZ3M6BGRhdGESnAEKEUdldFN5c2xvZ1NldHRpbmdzEi4uZGV2aWNl",
"YXBpcy5kZXZpY2UudjEuR2V0U3lzbG9nU2V0dGluZ3NSZXF1ZXN0Gi8uZGV2",
"aWNlYXBpcy5kZXZpY2UudjEuR2V0U3lzbG9nU2V0dGluZ3NSZXNwb25zZSIm",
"gtPkkwIgEh4vZGV2aWNlL2FwaS92MS9zeXNsb2cvc2V0dGluZ3NCrwEKF3J1",
"LmRldmljZWFwaXMuZGV2aWNlLnYxQhdEZXZpY2VhcGlzRGV2aWNlVjFQcm90",
"b0gDUABaFS9kZXZpY2VhcGlzX2RldmljZV92MdgBAfgBAaICEkRFVklDRUFQ",
"SVNERVZJQ0VWMaoCFERldmljZWFwaXMuRGV2aWNlLlYxygIURGV2aWNlYXBp",
"c1xEZXZpY2VcVjHqAhZEZXZpY2VhcGlzOjpEZXZpY2U6OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Deviceapis.Device.V1.DeviceapisDeviceCommonV1Reflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditSyslogSettingsRequest), global::Deviceapis.Device.V1.EditSyslogSettingsRequest.Parser, new[]{ "Data", "UpdateMask" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditSyslogSettingsResponse), global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Parser, new[]{ "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error), global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSyslogSettingsRequest), global::Deviceapis.Device.V1.GetSyslogSettingsRequest.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetSyslogSettingsResponse), global::Deviceapis.Device.V1.GetSyslogSettingsResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.SyslogSettings), global::Deviceapis.Device.V1.SyslogSettings.Parser, new[]{ "ProtocolType", "Address", "LogLevelType" }, null, new[]{ typeof(global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType), typeof(global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType) }, null, null)
}));
}
#endregion
}
#region Messages
///
/// Запрос редактирования настроек Syslog-сервера
///
public sealed partial class EditSyslogSettingsRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditSyslogSettingsRequest());
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::Deviceapis.Device.V1.DeviceapisDeviceSyslogV1Reflection.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 EditSyslogSettingsRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EditSyslogSettingsRequest(EditSyslogSettingsRequest other) : this() {
data_ = other.data_ != null ? other.data_.Clone() : null;
updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EditSyslogSettingsRequest Clone() {
return new EditSyslogSettingsRequest(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private global::Deviceapis.Device.V1.SyslogSettings data_;
///
/// Настройки Syslog-сервера
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Deviceapis.Device.V1.SyslogSettings Data {
get { return data_; }
set {
data_ = value;
}
}
/// Field number for the "update_mask" field.
public const int UpdateMaskFieldNumber = 2;
private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_;
///
/// Маска полей обновления
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask {
get { return updateMask_; }
set {
updateMask_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as EditSyslogSettingsRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(EditSyslogSettingsRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
if (!object.Equals(UpdateMask, other.UpdateMask)) 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 (data_ != null) hash ^= Data.GetHashCode();
if (updateMask_ != null) hash ^= UpdateMask.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 (data_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (updateMask_ != null) {
output.WriteRawTag(18);
output.WriteMessage(UpdateMask);
}
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 (data_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (updateMask_ != null) {
output.WriteRawTag(18);
output.WriteMessage(UpdateMask);
}
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 (data_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (updateMask_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(EditSyslogSettingsRequest other) {
if (other == null) {
return;
}
if (other.data_ != null) {
if (data_ == null) {
Data = new global::Deviceapis.Device.V1.SyslogSettings();
}
Data.MergeFrom(other.Data);
}
if (other.updateMask_ != null) {
if (updateMask_ == null) {
UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
}
UpdateMask.MergeFrom(other.UpdateMask);
}
_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: {
if (data_ == null) {
Data = new global::Deviceapis.Device.V1.SyslogSettings();
}
input.ReadMessage(Data);
break;
}
case 18: {
if (updateMask_ == null) {
UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
}
input.ReadMessage(UpdateMask);
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: {
if (data_ == null) {
Data = new global::Deviceapis.Device.V1.SyslogSettings();
}
input.ReadMessage(Data);
break;
}
case 18: {
if (updateMask_ == null) {
UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask();
}
input.ReadMessage(UpdateMask);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос редактирования настроек Syslog-сервера
///
public sealed partial class EditSyslogSettingsResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditSyslogSettingsResponse());
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::Deviceapis.Device.V1.DeviceapisDeviceSyslogV1Reflection.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 EditSyslogSettingsResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EditSyslogSettingsResponse(EditSyslogSettingsResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
case TypeOneofCase.Error:
Error = other.Error.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public EditSyslogSettingsResponse Clone() {
return new EditSyslogSettingsResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Настройки Syslog-сервера
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Deviceapis.Device.V1.SyslogSettings Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Deviceapis.Device.V1.SyslogSettings) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
/// Field number for the "error" field.
public const int ErrorFieldNumber = 2;
///
/// Ошибка
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error Error {
get { return typeCase_ == TypeOneofCase.Error ? (global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
Error = 2,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as EditSyslogSettingsResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(EditSyslogSettingsResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
if (!object.Equals(Error, other.Error)) return false;
if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode();
hash ^= (int) typeCase_;
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
output.WriteRawTag(18);
output.WriteMessage(Error);
}
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 (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (typeCase_ == TypeOneofCase.Error) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(EditSyslogSettingsResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Deviceapis.Device.V1.SyslogSettings();
}
Data.MergeFrom(other.Data);
break;
case TypeOneofCase.Error:
if (Error == null) {
Error = new global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error();
}
Error.MergeFrom(other.Error);
break;
}
_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: {
global::Deviceapis.Device.V1.SyslogSettings subBuilder = new global::Deviceapis.Device.V1.SyslogSettings();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
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: {
global::Deviceapis.Device.V1.SyslogSettings subBuilder = new global::Deviceapis.Device.V1.SyslogSettings();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
case 18: {
global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditSyslogSettingsResponse.Types.Error();
if (typeCase_ == TypeOneofCase.Error) {
subBuilder.MergeFrom(Error);
}
input.ReadMessage(subBuilder);
Error = subBuilder;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the EditSyslogSettingsResponse message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Ошибка запроса
///
public sealed partial class Error : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error());
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::Deviceapis.Device.V1.EditSyslogSettingsResponse.Descriptor.NestedTypes[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 Error() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error(Error other) : this() {
switch (other.ReasonCase) {
case ReasonOneofCase.Validation:
Validation = other.Validation.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Error Clone() {
return new Error(this);
}
/// Field number for the "validation" field.
public const int ValidationFieldNumber = 1;
///
/// Ошибка валидации
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Deviceapis.Device.V1.ValidationError Validation {
get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Deviceapis.Device.V1.ValidationError) reason_ : null; }
set {
reason_ = value;
reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation;
}
}
private object reason_;
/// Enum of possible cases for the "reason" oneof.
public enum ReasonOneofCase {
None = 0,
Validation = 1,
}
private ReasonOneofCase reasonCase_ = ReasonOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ReasonOneofCase ReasonCase {
get { return reasonCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearReason() {
reasonCase_ = ReasonOneofCase.None;
reason_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Error);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Error other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Validation, other.Validation)) return false;
if (ReasonCase != other.ReasonCase) 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 (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode();
hash ^= (int) reasonCase_;
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 (reasonCase_ == ReasonOneofCase.Validation) {
output.WriteRawTag(10);
output.WriteMessage(Validation);
}
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 (reasonCase_ == ReasonOneofCase.Validation) {
output.WriteRawTag(10);
output.WriteMessage(Validation);
}
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 (reasonCase_ == ReasonOneofCase.Validation) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Error other) {
if (other == null) {
return;
}
switch (other.ReasonCase) {
case ReasonOneofCase.Validation:
if (Validation == null) {
Validation = new global::Deviceapis.Device.V1.ValidationError();
}
Validation.MergeFrom(other.Validation);
break;
}
_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: {
global::Deviceapis.Device.V1.ValidationError subBuilder = new global::Deviceapis.Device.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
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: {
global::Deviceapis.Device.V1.ValidationError subBuilder = new global::Deviceapis.Device.V1.ValidationError();
if (reasonCase_ == ReasonOneofCase.Validation) {
subBuilder.MergeFrom(Validation);
}
input.ReadMessage(subBuilder);
Validation = subBuilder;
break;
}
}
}
}
#endif
}
}
#endregion
}
///
/// Запрос получения настроек Syslog-сервера
///
public sealed partial class GetSyslogSettingsRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSyslogSettingsRequest());
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::Deviceapis.Device.V1.DeviceapisDeviceSyslogV1Reflection.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 GetSyslogSettingsRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetSyslogSettingsRequest(GetSyslogSettingsRequest other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetSyslogSettingsRequest Clone() {
return new GetSyslogSettingsRequest(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetSyslogSettingsRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetSyslogSettingsRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
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 (_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 (_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 (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetSyslogSettingsRequest other) {
if (other == null) {
return;
}
_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;
}
}
#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;
}
}
}
#endif
}
///
/// Ответ на запрос получения настроек Syslog-сервера
///
public sealed partial class GetSyslogSettingsResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetSyslogSettingsResponse());
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::Deviceapis.Device.V1.DeviceapisDeviceSyslogV1Reflection.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 GetSyslogSettingsResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetSyslogSettingsResponse(GetSyslogSettingsResponse other) : this() {
switch (other.TypeCase) {
case TypeOneofCase.Data:
Data = other.Data.Clone();
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetSyslogSettingsResponse Clone() {
return new GetSyslogSettingsResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
///
/// Настройки Syslog-сервера
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Deviceapis.Device.V1.SyslogSettings Data {
get { return typeCase_ == TypeOneofCase.Data ? (global::Deviceapis.Device.V1.SyslogSettings) type_ : null; }
set {
type_ = value;
typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data;
}
}
private object type_;
/// Enum of possible cases for the "type" oneof.
public enum TypeOneofCase {
None = 0,
Data = 1,
}
private TypeOneofCase typeCase_ = TypeOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TypeOneofCase TypeCase {
get { return typeCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearType() {
typeCase_ = TypeOneofCase.None;
type_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetSyslogSettingsResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetSyslogSettingsResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Data, other.Data)) return false;
if (TypeCase != other.TypeCase) 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 (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode();
hash ^= (int) typeCase_;
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
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 (typeCase_ == TypeOneofCase.Data) {
output.WriteRawTag(10);
output.WriteMessage(Data);
}
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 (typeCase_ == TypeOneofCase.Data) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetSyslogSettingsResponse other) {
if (other == null) {
return;
}
switch (other.TypeCase) {
case TypeOneofCase.Data:
if (Data == null) {
Data = new global::Deviceapis.Device.V1.SyslogSettings();
}
Data.MergeFrom(other.Data);
break;
}
_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: {
global::Deviceapis.Device.V1.SyslogSettings subBuilder = new global::Deviceapis.Device.V1.SyslogSettings();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
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: {
global::Deviceapis.Device.V1.SyslogSettings subBuilder = new global::Deviceapis.Device.V1.SyslogSettings();
if (typeCase_ == TypeOneofCase.Data) {
subBuilder.MergeFrom(Data);
}
input.ReadMessage(subBuilder);
Data = subBuilder;
break;
}
}
}
}
#endif
}
///
/// Настройки Syslog-сервера
///
public sealed partial class SyslogSettings : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SyslogSettings());
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::Deviceapis.Device.V1.DeviceapisDeviceSyslogV1Reflection.Descriptor.MessageTypes[4]; }
}
[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 SyslogSettings() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SyslogSettings(SyslogSettings other) : this() {
protocolType_ = other.protocolType_;
address_ = other.address_;
logLevelType_ = other.logLevelType_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public SyslogSettings Clone() {
return new SyslogSettings(this);
}
/// Field number for the "protocol_type" field.
public const int ProtocolTypeFieldNumber = 1;
private global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType protocolType_ = global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType.Unknown;
///
/// Тип протокола
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType ProtocolType {
get { return protocolType_; }
set {
protocolType_ = value;
}
}
/// Field number for the "address" field.
public const int AddressFieldNumber = 2;
private string address_ = "";
///
/// Адрес Syslog-сервера.
/// Сетевой адрес и порт.
/// Пример: 192.168.0.1:514, syslog.acme.io:6514
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Address {
get { return address_; }
set {
address_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "log_level_type" field.
public const int LogLevelTypeFieldNumber = 3;
private global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType logLevelType_ = global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType.Unknown;
///
/// Уровень логирования
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType LogLevelType {
get { return logLevelType_; }
set {
logLevelType_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as SyslogSettings);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(SyslogSettings other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ProtocolType != other.ProtocolType) return false;
if (Address != other.Address) return false;
if (LogLevelType != other.LogLevelType) 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 (ProtocolType != global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType.Unknown) hash ^= ProtocolType.GetHashCode();
if (Address.Length != 0) hash ^= Address.GetHashCode();
if (LogLevelType != global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType.Unknown) hash ^= LogLevelType.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 (ProtocolType != global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) ProtocolType);
}
if (Address.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Address);
}
if (LogLevelType != global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) LogLevelType);
}
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 (ProtocolType != global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) ProtocolType);
}
if (Address.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Address);
}
if (LogLevelType != global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType.Unknown) {
output.WriteRawTag(24);
output.WriteEnum((int) LogLevelType);
}
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 (ProtocolType != global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ProtocolType);
}
if (Address.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Address);
}
if (LogLevelType != global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) LogLevelType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(SyslogSettings other) {
if (other == null) {
return;
}
if (other.ProtocolType != global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType.Unknown) {
ProtocolType = other.ProtocolType;
}
if (other.Address.Length != 0) {
Address = other.Address;
}
if (other.LogLevelType != global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType.Unknown) {
LogLevelType = other.LogLevelType;
}
_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: {
ProtocolType = (global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType) input.ReadEnum();
break;
}
case 18: {
Address = input.ReadString();
break;
}
case 24: {
LogLevelType = (global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType) 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 8: {
ProtocolType = (global::Deviceapis.Device.V1.SyslogSettings.Types.ProtocolType) input.ReadEnum();
break;
}
case 18: {
Address = input.ReadString();
break;
}
case 24: {
LogLevelType = (global::Deviceapis.Device.V1.SyslogSettings.Types.LogLevelType) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the SyslogSettings message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Уровень логирования
///
public enum LogLevelType {
///
/// Значение не указано
///
[pbr::OriginalName("LOG_LEVEL_TYPE_UNKNOWN")] Unknown = 0,
///
/// Система не пригодна для использования
///
[pbr::OriginalName("EMERGENCY")] Emergency = 1,
///
/// Требуются немедленные меры
///
[pbr::OriginalName("ALERT")] Alert = 2,
///
/// Сообщение о критическом состоянии
///
[pbr::OriginalName("CRIT")] Crit = 3,
///
/// Сообщение об ошибочном состоянии
///
[pbr::OriginalName("ERROR")] Error = 4,
///
/// Предупреждение
///
[pbr::OriginalName("WARN")] Warn = 5,
///
/// Сообщение о значительном нормальном событии
///
[pbr::OriginalName("NOTE")] Note = 6,
///
/// Информационное сообщение
///
[pbr::OriginalName("INFO")] Info = 7,
///
/// Сообщение отладочного уровня
///
[pbr::OriginalName("DEBUG")] Debug = 8,
}
///
/// Тип протокола
///
public enum ProtocolType {
///
/// Значение не указано
///
[pbr::OriginalName("PROTOCOL_TYPE_UNKNOWN")] Unknown = 0,
///
/// Протокол UDP
///
[pbr::OriginalName("UDP")] Udp = 1,
///
/// Протокол TCP
///
[pbr::OriginalName("TCP")] Tcp = 2,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code