//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/iot_connect/v1/keyapis_iot_connect_callback_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.IotConnect.V1 {
/// Holder for reflection information generated from keyapis/iot_connect/v1/keyapis_iot_connect_callback_v1.proto
public static partial class KeyapisIotConnectCallbackV1Reflection {
#region Descriptor
/// File descriptor for keyapis/iot_connect/v1/keyapis_iot_connect_callback_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisIotConnectCallbackV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjxrZXlhcGlzL2lvdF9jb25uZWN0L3YxL2tleWFwaXNfaW90X2Nvbm5lY3Rf",
"Y2FsbGJhY2tfdjEucHJvdG8SFmtleWFwaXMuaW90X2Nvbm5lY3QudjEaH2dv",
"b2dsZS9wcm90b2J1Zi90aW1lc3RhbXAucHJvdG8aHGdvb2dsZS9hcGkvYW5u",
"b3RhdGlvbnMucHJvdG8aH2dvb2dsZS9hcGkvZmllbGRfYmVoYXZpb3IucHJv",
"dG8aHmdvb2dsZS9wcm90b2J1Zi93cmFwcGVycy5wcm90byIYChZHZXRDYWxs",
"YmFja1VzZXJSZXF1ZXN0IjAKF0dldENhbGxiYWNrVXNlclJlc3BvbnNlEhUK",
"BGRhdGEYASABKAVSB3VzZXJfaWQiuAIKBU1vZGVsEgoKAmlkGAEgASgJEhQK",
"DG1hbnVmYWN0dXJlchgCIAEoCRINCgVtb2RlbBgDIAEoCRISCgpod192ZXJz",
"aW9uGAQgASgJEhIKCnN3X3ZlcnNpb24YBSABKAkSEwoLZGVzY3JpcHRpb24Y",
"BiABKAkSEAoIY2F0ZWdvcnkYByABKAkSSgoNZmVhdHVyZV90eXBlcxgIIAMo",
"DjIpLmtleWFwaXMuaW90X2Nvbm5lY3QudjEuTW9kZWwuRmVhdHVyZVR5cGVS",
"CGZlYXR1cmVzImMKC0ZlYXR1cmVUeXBlEhgKFEZFQVRVUkVfVFlQRV9VTktO",
"T1dOEAASEQoNSU5DT01JTkdfQ0FMTBABEgoKBk9OTElORRACEg8KC1JFSkVD",
"VF9DQUxMEAMSCgoGVU5MT0NLEAQiqgEKBkRldmljZRIKCgJpZBgBIAEoCRIM",
"CgRuYW1lGAIgASgJEhQKDGRlZmF1bHRfbmFtZRgDIAEoCRIMCgRob21lGAQg",
"ASgJEgwKBHJvb20YBSABKAkSLAoFbW9kZWwYBiABKAsyHS5rZXlhcGlzLmlv",
"dF9jb25uZWN0LnYxLk1vZGVsEhIKCmh3X3ZlcnNpb24YByABKAkSEgoKc3df",
"dmVyc2lvbhgIIAEoCSJHChBEZXZpY2VTdGF0ZUFycmF5EjMKBnN0YXRlcxgB",
"IAMoCzIjLmtleWFwaXMuaW90X2Nvbm5lY3QudjEuRGV2aWNlU3RhdGUiSwoS",
"RGV2aWNlQ29tbWFuZEFycmF5EjUKBnN0YXRlcxgBIAMoCzIlLmtleWFwaXMu",
"aW90X2Nvbm5lY3QudjEuRGV2aWNlQ29tbWFuZCL2AwoNRGV2aWNlQ29tbWFu",
"ZBJMChBjb21tYW5kX2tleV90eXBlGAEgASgOMi0ua2V5YXBpcy5pb3RfY29u",
"bmVjdC52MS5EZXZpY2VDb21tYW5kLktleVR5cGVSA2tleRI6CgV2YWx1ZRgC",
"IAEoCzIrLmtleWFwaXMuaW90X2Nvbm5lY3QudjEuRGV2aWNlQ29tbWFuZC5W",
"YWx1ZRqcAgoFVmFsdWUSPgoEdHlwZRgBIAEoDjIwLmtleWFwaXMuaW90X2Nv",
"bm5lY3QudjEuRGV2aWNlQ29tbWFuZC5WYWx1ZS5UeXBlEmAKD3ZhbHVlX2Vu",
"dW1fdHlwZRgCIAEoDjI5LmtleWFwaXMuaW90X2Nvbm5lY3QudjEuRGV2aWNl",
"Q29tbWFuZC5WYWx1ZS5WYWx1ZUVudW1UeXBlSABSCmVudW1fdmFsdWUiIgoE",
"VHlwZRIQCgxUWVBFX1VOS05PV04QABIICgRFTlVNEAEiRAoNVmFsdWVFbnVt",
"VHlwZRIbChdWQUxVRV9FTlVNX1RZUEVfVU5LTk9XThAAEgoKBlJFSkVDVBAB",
"EgoKBlVOTE9DSxACQgcKBXZhbHVlIjwKB0tleVR5cGUSFAoQS0VZX1RZUEVf",
"VU5LTk9XThAAEg8KC1JFSkVDVF9DQUxMEAESCgoGVU5MT0NLEAIi0wIKC0Rl",
"dmljZVN0YXRlEkgKDnN0YXRlX2tleV90eXBlGAEgASgOMisua2V5YXBpcy5p",
"b3RfY29ubmVjdC52MS5EZXZpY2VTdGF0ZS5LZXlUeXBlUgNrZXkSOAoFdmFs",
"dWUYAiABKAsyKS5rZXlhcGlzLmlvdF9jb25uZWN0LnYxLkRldmljZVN0YXRl",
"LlZhbHVlGpIBCgVWYWx1ZRI8CgR0eXBlGAEgASgOMi4ua2V5YXBpcy5pb3Rf",
"Y29ubmVjdC52MS5EZXZpY2VTdGF0ZS5WYWx1ZS5UeXBlEh4KCGlzX3ZhbHVl",
"GAIgASgISABSCmJvb2xfdmFsdWUiIgoEVHlwZRIQCgxUWVBFX1VOS05PV04Q",
"ABIICgRCT09MEAFCBwoFdmFsdWUiKwoHS2V5VHlwZRIUChBLRVlfVFlQRV9V",
"TktOT1dOEAASCgoGT05MSU5FEAEiGwoZR2V0Q2FsbGJhY2tEZXZpY2VzUmVx",
"dWVzdCJKChpHZXRDYWxsYmFja0RldmljZXNSZXNwb25zZRIsCgRkYXRhGAEg",
"AygLMh4ua2V5YXBpcy5pb3RfY29ubmVjdC52MS5EZXZpY2UiKwoYUG9zdENh",
"bGxiYWNrUXVlcnlSZXF1ZXN0Eg8KB2RldmljZXMYASADKAkixgEKGVBvc3RD",
"YWxsYmFja1F1ZXJ5UmVzcG9uc2USUgoEZGF0YRgBIAMoCzI7LmtleWFwaXMu",
"aW90X2Nvbm5lY3QudjEuUG9zdENhbGxiYWNrUXVlcnlSZXNwb25zZS5EYXRh",
"RW50cnlSB2RldmljZXMaVQoJRGF0YUVudHJ5EgsKA2tleRgBIAEoCRI3CgV2",
"YWx1ZRgCIAEoCzIoLmtleWFwaXMuaW90X2Nvbm5lY3QudjEuRGV2aWNlU3Rh",
"dGVBcnJheToCOAEiygEKGlBvc3RDYWxsYmFja0NvbW1hbmRSZXF1ZXN0ElAK",
"B2RldmljZXMYASADKAsyPy5rZXlhcGlzLmlvdF9jb25uZWN0LnYxLlBvc3RD",
"YWxsYmFja0NvbW1hbmRSZXF1ZXN0LkRldmljZXNFbnRyeRpaCgxEZXZpY2Vz",
"RW50cnkSCwoDa2V5GAEgASgJEjkKBXZhbHVlGAIgASgLMioua2V5YXBpcy5p",
"b3RfY29ubmVjdC52MS5EZXZpY2VDb21tYW5kQXJyYXk6AjgBIh0KG1Bvc3RD",
"YWxsYmFja0NvbW1hbmRSZXNwb25zZSIbChlQb3N0Q2FsbGJhY2tVbmxpbmtS",
"ZXF1ZXN0IhwKGlBvc3RDYWxsYmFja1VubGlua1Jlc3BvbnNlMusGChlJb3RD",
"b25uZWN0Q2FsbGJhY2tTZXJ2aWNlEp0BCg9HZXRDYWxsYmFja1VzZXISLi5r",
"ZXlhcGlzLmlvdF9jb25uZWN0LnYxLkdldENhbGxiYWNrVXNlclJlcXVlc3Qa",
"Ly5rZXlhcGlzLmlvdF9jb25uZWN0LnYxLkdldENhbGxiYWNrVXNlclJlc3Bv",
"bnNlIimC0+STAiMSIS9pb3RfY29ubmVjdC9hcGkvdjEvY2FsbGJhY2svdXNl",
"chKoAQoSUG9zdENhbGxiYWNrVW5saW5rEjEua2V5YXBpcy5pb3RfY29ubmVj",
"dC52MS5Qb3N0Q2FsbGJhY2tVbmxpbmtSZXF1ZXN0GjIua2V5YXBpcy5pb3Rf",
"Y29ubmVjdC52MS5Qb3N0Q2FsbGJhY2tVbmxpbmtSZXNwb25zZSIrgtPkkwIl",
"IiMvaW90X2Nvbm5lY3QvYXBpL3YxL2NhbGxiYWNrL3VubGluaxKpAQoSR2V0",
"Q2FsbGJhY2tEZXZpY2VzEjEua2V5YXBpcy5pb3RfY29ubmVjdC52MS5HZXRD",
"YWxsYmFja0RldmljZXNSZXF1ZXN0GjIua2V5YXBpcy5pb3RfY29ubmVjdC52",
"MS5HZXRDYWxsYmFja0RldmljZXNSZXNwb25zZSIsgtPkkwImEiQvaW90X2Nv",
"bm5lY3QvYXBpL3YxL2NhbGxiYWNrL2RldmljZXMSpwEKEVBvc3RDYWxsYmFj",
"a1F1ZXJ5EjAua2V5YXBpcy5pb3RfY29ubmVjdC52MS5Qb3N0Q2FsbGJhY2tR",
"dWVyeVJlcXVlc3QaMS5rZXlhcGlzLmlvdF9jb25uZWN0LnYxLlBvc3RDYWxs",
"YmFja1F1ZXJ5UmVzcG9uc2UiLYLT5JMCJyIiL2lvdF9jb25uZWN0L2FwaS92",
"MS9jYWxsYmFjay9xdWVyeToBKhKsAQoTUG9zdENhbGxiYWNrQ29tbWFuZBIy",
"LmtleWFwaXMuaW90X2Nvbm5lY3QudjEuUG9zdENhbGxiYWNrQ29tbWFuZFJl",
"cXVlc3QaMy5rZXlhcGlzLmlvdF9jb25uZWN0LnYxLlBvc3RDYWxsYmFja0Nv",
"bW1hbmRSZXNwb25zZSIsgtPkkwImIiQvaW90X2Nvbm5lY3QvYXBpL3YxL2Nh",
"bGxiYWNrL2NvbW1hbmRCuAEKGXJ1LmtleWFwaXMuaW90X2Nvbm5lY3QudjFC",
"GEtleWFwaXNJb3RDb25uZWN0VjFQcm90b0gDUABaFy9rZXlhcGlzX2lvdF9j",
"b25uZWN0X3Yx2AEB+AEBogITS0VZQVBJU0lPVENPTk5FQ1RWMaoCFUtleWFw",
"aXMuSW90Q29ubmVjdC5WMcoCFUtleWFwaXNcSW90Q29ubmVjdFxWMeoCF0tl",
"eWFwaXM6OklvdENvbm5lY3Q6OlYxYgZwcm90bzM="));
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.WellKnownTypes.WrappersReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.GetCallbackUserRequest), global::Keyapis.IotConnect.V1.GetCallbackUserRequest.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.GetCallbackUserResponse), global::Keyapis.IotConnect.V1.GetCallbackUserResponse.Parser, new[]{ "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.Model), global::Keyapis.IotConnect.V1.Model.Parser, new[]{ "Id", "Manufacturer", "Model_", "HwVersion", "SwVersion", "Description", "Category", "FeatureTypes" }, null, new[]{ typeof(global::Keyapis.IotConnect.V1.Model.Types.FeatureType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.Device), global::Keyapis.IotConnect.V1.Device.Parser, new[]{ "Id", "Name", "DefaultName", "Home", "Room", "Model", "HwVersion", "SwVersion" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceStateArray), global::Keyapis.IotConnect.V1.DeviceStateArray.Parser, new[]{ "States" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceCommandArray), global::Keyapis.IotConnect.V1.DeviceCommandArray.Parser, new[]{ "States" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceCommand), global::Keyapis.IotConnect.V1.DeviceCommand.Parser, new[]{ "CommandKeyType", "Value" }, null, new[]{ typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value), global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Parser, new[]{ "Type", "ValueEnumType" }, new[]{ "Value" }, new[]{ typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type), typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType) }, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceState), global::Keyapis.IotConnect.V1.DeviceState.Parser, new[]{ "StateKeyType", "Value" }, null, new[]{ typeof(global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceState.Types.Value), global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Parser, new[]{ "Type", "IsValue" }, new[]{ "Value" }, new[]{ typeof(global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type) }, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.GetCallbackDevicesRequest), global::Keyapis.IotConnect.V1.GetCallbackDevicesRequest.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.GetCallbackDevicesResponse), global::Keyapis.IotConnect.V1.GetCallbackDevicesResponse.Parser, new[]{ "Data" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCallbackQueryRequest), global::Keyapis.IotConnect.V1.PostCallbackQueryRequest.Parser, new[]{ "Devices" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCallbackQueryResponse), global::Keyapis.IotConnect.V1.PostCallbackQueryResponse.Parser, new[]{ "Data" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCallbackCommandRequest), global::Keyapis.IotConnect.V1.PostCallbackCommandRequest.Parser, new[]{ "Devices" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCallbackCommandResponse), global::Keyapis.IotConnect.V1.PostCallbackCommandResponse.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCallbackUnlinkRequest), global::Keyapis.IotConnect.V1.PostCallbackUnlinkRequest.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCallbackUnlinkResponse), global::Keyapis.IotConnect.V1.PostCallbackUnlinkResponse.Parser, null, null, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Запрос метода получения пользователя для соединения аккаунтов
///
public sealed partial class GetCallbackUserRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCallbackUserRequest());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.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 GetCallbackUserRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackUserRequest(GetCallbackUserRequest other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackUserRequest Clone() {
return new GetCallbackUserRequest(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetCallbackUserRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCallbackUserRequest 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(GetCallbackUserRequest 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
}
///
/// Ответ на запрос метода получения пользователя для соединения аккаунтов
///
public sealed partial class GetCallbackUserResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCallbackUserResponse());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.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 GetCallbackUserResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackUserResponse(GetCallbackUserResponse other) : this() {
data_ = other.data_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackUserResponse Clone() {
return new GetCallbackUserResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private int data_;
///
/// Идентификатор пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Data {
get { return data_; }
set {
data_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetCallbackUserResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCallbackUserResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Data != other.Data) 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 != 0) hash ^= Data.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 != 0) {
output.WriteRawTag(8);
output.WriteInt32(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 (Data != 0) {
output.WriteRawTag(8);
output.WriteInt32(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 (Data != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Data);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetCallbackUserResponse other) {
if (other == null) {
return;
}
if (other.Data != 0) {
Data = other.Data;
}
_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: {
Data = 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: {
Data = input.ReadInt32();
break;
}
}
}
}
#endif
}
///
/// Объект Модель устройства
///
public sealed partial class Model : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Model());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.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 Model() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Model(Model other) : this() {
id_ = other.id_;
manufacturer_ = other.manufacturer_;
model_ = other.model_;
hwVersion_ = other.hwVersion_;
swVersion_ = other.swVersion_;
description_ = other.description_;
category_ = other.category_;
featureTypes_ = other.featureTypes_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Model Clone() {
return new Model(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private string id_ = "";
///
/// Идентификатор модели
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Id {
get { return id_; }
set {
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "manufacturer" field.
public const int ManufacturerFieldNumber = 2;
private string manufacturer_ = "";
///
/// Производитель
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Manufacturer {
get { return manufacturer_; }
set {
manufacturer_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "model" field.
public const int Model_FieldNumber = 3;
private string model_ = "";
///
/// Название модели
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Model_ {
get { return model_; }
set {
model_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "hw_version" field.
public const int HwVersionFieldNumber = 4;
private string hwVersion_ = "";
///
/// Версия оборудования
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string HwVersion {
get { return hwVersion_; }
set {
hwVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "sw_version" field.
public const int SwVersionFieldNumber = 5;
private string swVersion_ = "";
///
/// Версия прошивки
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SwVersion {
get { return swVersion_; }
set {
swVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "description" field.
public const int DescriptionFieldNumber = 6;
private string description_ = "";
///
/// Описание
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Description {
get { return description_; }
set {
description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "category" field.
public const int CategoryFieldNumber = 7;
private string category_ = "";
///
/// Категория устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Category {
get { return category_; }
set {
category_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "feature_types" field.
public const int FeatureTypesFieldNumber = 8;
private static readonly pb::FieldCodec _repeated_featureTypes_codec
= pb::FieldCodec.ForEnum(66, x => (int) x, x => (global::Keyapis.IotConnect.V1.Model.Types.FeatureType) x);
private readonly pbc::RepeatedField featureTypes_ = new pbc::RepeatedField();
///
/// Список функций
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField FeatureTypes {
get { return featureTypes_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Model);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Model other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Manufacturer != other.Manufacturer) return false;
if (Model_ != other.Model_) return false;
if (HwVersion != other.HwVersion) return false;
if (SwVersion != other.SwVersion) return false;
if (Description != other.Description) return false;
if (Category != other.Category) return false;
if(!featureTypes_.Equals(other.featureTypes_)) 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 (Id.Length != 0) hash ^= Id.GetHashCode();
if (Manufacturer.Length != 0) hash ^= Manufacturer.GetHashCode();
if (Model_.Length != 0) hash ^= Model_.GetHashCode();
if (HwVersion.Length != 0) hash ^= HwVersion.GetHashCode();
if (SwVersion.Length != 0) hash ^= SwVersion.GetHashCode();
if (Description.Length != 0) hash ^= Description.GetHashCode();
if (Category.Length != 0) hash ^= Category.GetHashCode();
hash ^= featureTypes_.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 (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Manufacturer.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Manufacturer);
}
if (Model_.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Model_);
}
if (HwVersion.Length != 0) {
output.WriteRawTag(34);
output.WriteString(HwVersion);
}
if (SwVersion.Length != 0) {
output.WriteRawTag(42);
output.WriteString(SwVersion);
}
if (Description.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Description);
}
if (Category.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Category);
}
featureTypes_.WriteTo(output, _repeated_featureTypes_codec);
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 (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Manufacturer.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Manufacturer);
}
if (Model_.Length != 0) {
output.WriteRawTag(26);
output.WriteString(Model_);
}
if (HwVersion.Length != 0) {
output.WriteRawTag(34);
output.WriteString(HwVersion);
}
if (SwVersion.Length != 0) {
output.WriteRawTag(42);
output.WriteString(SwVersion);
}
if (Description.Length != 0) {
output.WriteRawTag(50);
output.WriteString(Description);
}
if (Category.Length != 0) {
output.WriteRawTag(58);
output.WriteString(Category);
}
featureTypes_.WriteTo(ref output, _repeated_featureTypes_codec);
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 (Id.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
}
if (Manufacturer.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Manufacturer);
}
if (Model_.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Model_);
}
if (HwVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(HwVersion);
}
if (SwVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SwVersion);
}
if (Description.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
}
if (Category.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Category);
}
size += featureTypes_.CalculateSize(_repeated_featureTypes_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Model other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
if (other.Manufacturer.Length != 0) {
Manufacturer = other.Manufacturer;
}
if (other.Model_.Length != 0) {
Model_ = other.Model_;
}
if (other.HwVersion.Length != 0) {
HwVersion = other.HwVersion;
}
if (other.SwVersion.Length != 0) {
SwVersion = other.SwVersion;
}
if (other.Description.Length != 0) {
Description = other.Description;
}
if (other.Category.Length != 0) {
Category = other.Category;
}
featureTypes_.Add(other.featureTypes_);
_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: {
Id = input.ReadString();
break;
}
case 18: {
Manufacturer = input.ReadString();
break;
}
case 26: {
Model_ = input.ReadString();
break;
}
case 34: {
HwVersion = input.ReadString();
break;
}
case 42: {
SwVersion = input.ReadString();
break;
}
case 50: {
Description = input.ReadString();
break;
}
case 58: {
Category = input.ReadString();
break;
}
case 66:
case 64: {
featureTypes_.AddEntriesFrom(input, _repeated_featureTypes_codec);
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: {
Id = input.ReadString();
break;
}
case 18: {
Manufacturer = input.ReadString();
break;
}
case 26: {
Model_ = input.ReadString();
break;
}
case 34: {
HwVersion = input.ReadString();
break;
}
case 42: {
SwVersion = input.ReadString();
break;
}
case 50: {
Description = input.ReadString();
break;
}
case 58: {
Category = input.ReadString();
break;
}
case 66:
case 64: {
featureTypes_.AddEntriesFrom(ref input, _repeated_featureTypes_codec);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Model message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Список функций устройства
///
public enum FeatureType {
///
/// Значение не указано
///
[pbr::OriginalName("FEATURE_TYPE_UNKNOWN")] Unknown = 0,
///
/// Сигнализация о поступившем звонке
///
[pbr::OriginalName("INCOMING_CALL")] IncomingCall = 1,
///
/// Сигнализация о доступности устройства
///
[pbr::OriginalName("ONLINE")] Online = 2,
///
/// Отклонение звонка
///
[pbr::OriginalName("REJECT_CALL")] RejectCall = 3,
///
/// Открытие замка
///
[pbr::OriginalName("UNLOCK")] Unlock = 4,
}
}
#endregion
}
///
/// Объект устройства
///
public sealed partial class Device : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Device());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.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 Device() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Device(Device other) : this() {
id_ = other.id_;
name_ = other.name_;
defaultName_ = other.defaultName_;
home_ = other.home_;
room_ = other.room_;
model_ = other.model_ != null ? other.model_.Clone() : null;
hwVersion_ = other.hwVersion_;
swVersion_ = other.swVersion_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Device Clone() {
return new Device(this);
}
/// Field number for the "id" field.
public const int IdFieldNumber = 1;
private string id_ = "";
///
/// Идентификатор устройства на платформе Ключ.
/// Конкатенация user_id и device_id плафтормы Ключ
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Id {
get { return id_; }
set {
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "name" field.
public const int NameFieldNumber = 2;
private string name_ = "";
///
/// Название устройства на платформе Ключ
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "default_name" field.
public const int DefaultNameFieldNumber = 3;
private string defaultName_ = "";
///
/// Название устройства от производителя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DefaultName {
get { return defaultName_; }
set {
defaultName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "home" field.
public const int HomeFieldNumber = 4;
private string home_ = "";
///
/// Адрес дома, где установлено устройство
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Home {
get { return home_; }
set {
home_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "room" field.
public const int RoomFieldNumber = 5;
private string room_ = "";
///
/// Название или номер подъезда
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Room {
get { return room_; }
set {
room_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "model" field.
public const int ModelFieldNumber = 6;
private global::Keyapis.IotConnect.V1.Model model_;
///
/// Тип устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.Model Model {
get { return model_; }
set {
model_ = value;
}
}
/// Field number for the "hw_version" field.
public const int HwVersionFieldNumber = 7;
private string hwVersion_ = "";
///
/// HW версия устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string HwVersion {
get { return hwVersion_; }
set {
hwVersion_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// Field number for the "sw_version" field.
public const int SwVersionFieldNumber = 8;
private string swVersion_ = "";
///
/// SW версия устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string SwVersion {
get { return swVersion_; }
set {
swVersion_ = 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 Device);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Device other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Id != other.Id) return false;
if (Name != other.Name) return false;
if (DefaultName != other.DefaultName) return false;
if (Home != other.Home) return false;
if (Room != other.Room) return false;
if (!object.Equals(Model, other.Model)) return false;
if (HwVersion != other.HwVersion) return false;
if (SwVersion != other.SwVersion) 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 (Id.Length != 0) hash ^= Id.GetHashCode();
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (DefaultName.Length != 0) hash ^= DefaultName.GetHashCode();
if (Home.Length != 0) hash ^= Home.GetHashCode();
if (Room.Length != 0) hash ^= Room.GetHashCode();
if (model_ != null) hash ^= Model.GetHashCode();
if (HwVersion.Length != 0) hash ^= HwVersion.GetHashCode();
if (SwVersion.Length != 0) hash ^= SwVersion.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 (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Name.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Name);
}
if (DefaultName.Length != 0) {
output.WriteRawTag(26);
output.WriteString(DefaultName);
}
if (Home.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Home);
}
if (Room.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Room);
}
if (model_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Model);
}
if (HwVersion.Length != 0) {
output.WriteRawTag(58);
output.WriteString(HwVersion);
}
if (SwVersion.Length != 0) {
output.WriteRawTag(66);
output.WriteString(SwVersion);
}
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 (Id.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Id);
}
if (Name.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Name);
}
if (DefaultName.Length != 0) {
output.WriteRawTag(26);
output.WriteString(DefaultName);
}
if (Home.Length != 0) {
output.WriteRawTag(34);
output.WriteString(Home);
}
if (Room.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Room);
}
if (model_ != null) {
output.WriteRawTag(50);
output.WriteMessage(Model);
}
if (HwVersion.Length != 0) {
output.WriteRawTag(58);
output.WriteString(HwVersion);
}
if (SwVersion.Length != 0) {
output.WriteRawTag(66);
output.WriteString(SwVersion);
}
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 (Id.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
}
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (DefaultName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultName);
}
if (Home.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Home);
}
if (Room.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Room);
}
if (model_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Model);
}
if (HwVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(HwVersion);
}
if (SwVersion.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(SwVersion);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Device other) {
if (other == null) {
return;
}
if (other.Id.Length != 0) {
Id = other.Id;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.DefaultName.Length != 0) {
DefaultName = other.DefaultName;
}
if (other.Home.Length != 0) {
Home = other.Home;
}
if (other.Room.Length != 0) {
Room = other.Room;
}
if (other.model_ != null) {
if (model_ == null) {
Model = new global::Keyapis.IotConnect.V1.Model();
}
Model.MergeFrom(other.Model);
}
if (other.HwVersion.Length != 0) {
HwVersion = other.HwVersion;
}
if (other.SwVersion.Length != 0) {
SwVersion = other.SwVersion;
}
_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: {
Id = input.ReadString();
break;
}
case 18: {
Name = input.ReadString();
break;
}
case 26: {
DefaultName = input.ReadString();
break;
}
case 34: {
Home = input.ReadString();
break;
}
case 42: {
Room = input.ReadString();
break;
}
case 50: {
if (model_ == null) {
Model = new global::Keyapis.IotConnect.V1.Model();
}
input.ReadMessage(Model);
break;
}
case 58: {
HwVersion = input.ReadString();
break;
}
case 66: {
SwVersion = 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 10: {
Id = input.ReadString();
break;
}
case 18: {
Name = input.ReadString();
break;
}
case 26: {
DefaultName = input.ReadString();
break;
}
case 34: {
Home = input.ReadString();
break;
}
case 42: {
Room = input.ReadString();
break;
}
case 50: {
if (model_ == null) {
Model = new global::Keyapis.IotConnect.V1.Model();
}
input.ReadMessage(Model);
break;
}
case 58: {
HwVersion = input.ReadString();
break;
}
case 66: {
SwVersion = input.ReadString();
break;
}
}
}
}
#endif
}
///
/// Массив статусов устройства
///
public sealed partial class DeviceStateArray : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceStateArray());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.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 DeviceStateArray() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceStateArray(DeviceStateArray other) : this() {
states_ = other.states_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceStateArray Clone() {
return new DeviceStateArray(this);
}
/// Field number for the "states" field.
public const int StatesFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_states_codec
= pb::FieldCodec.ForMessage(10, global::Keyapis.IotConnect.V1.DeviceState.Parser);
private readonly pbc::RepeatedField states_ = new pbc::RepeatedField();
///
/// Статусы устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField States {
get { return states_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeviceStateArray);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeviceStateArray other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!states_.Equals(other.states_)) 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;
hash ^= states_.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
states_.WriteTo(output, _repeated_states_codec);
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) {
states_.WriteTo(ref output, _repeated_states_codec);
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;
size += states_.CalculateSize(_repeated_states_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeviceStateArray other) {
if (other == null) {
return;
}
states_.Add(other.states_);
_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: {
states_.AddEntriesFrom(input, _repeated_states_codec);
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: {
states_.AddEntriesFrom(ref input, _repeated_states_codec);
break;
}
}
}
}
#endif
}
///
/// Массив команд на изменение статуса устройства
///
public sealed partial class DeviceCommandArray : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceCommandArray());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[5]; }
}
[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 DeviceCommandArray() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommandArray(DeviceCommandArray other) : this() {
states_ = other.states_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommandArray Clone() {
return new DeviceCommandArray(this);
}
/// Field number for the "states" field.
public const int StatesFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_states_codec
= pb::FieldCodec.ForMessage(10, global::Keyapis.IotConnect.V1.DeviceCommand.Parser);
private readonly pbc::RepeatedField states_ = new pbc::RepeatedField();
///
/// Команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField States {
get { return states_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeviceCommandArray);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeviceCommandArray other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!states_.Equals(other.states_)) 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;
hash ^= states_.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
states_.WriteTo(output, _repeated_states_codec);
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) {
states_.WriteTo(ref output, _repeated_states_codec);
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;
size += states_.CalculateSize(_repeated_states_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeviceCommandArray other) {
if (other == null) {
return;
}
states_.Add(other.states_);
_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: {
states_.AddEntriesFrom(input, _repeated_states_codec);
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: {
states_.AddEntriesFrom(ref input, _repeated_states_codec);
break;
}
}
}
}
#endif
}
///
/// Команды на изменение статуса устройства
///
public sealed partial class DeviceCommand : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceCommand());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[6]; }
}
[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 DeviceCommand() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommand(DeviceCommand other) : this() {
commandKeyType_ = other.commandKeyType_;
value_ = other.value_ != null ? other.value_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommand Clone() {
return new DeviceCommand(this);
}
/// Field number for the "command_key_type" field.
public const int CommandKeyTypeFieldNumber = 1;
private global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType commandKeyType_ = global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown;
///
/// Тип команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType CommandKeyType {
get { return commandKeyType_; }
set {
commandKeyType_ = value;
}
}
/// Field number for the "value" field.
public const int ValueFieldNumber = 2;
private global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value value_;
///
/// Значение команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value Value {
get { return value_; }
set {
value_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeviceCommand);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeviceCommand other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CommandKeyType != other.CommandKeyType) return false;
if (!object.Equals(Value, other.Value)) 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 (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) hash ^= CommandKeyType.GetHashCode();
if (value_ != null) hash ^= Value.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 (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) CommandKeyType);
}
if (value_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
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 (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) CommandKeyType);
}
if (value_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
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 (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CommandKeyType);
}
if (value_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeviceCommand other) {
if (other == null) {
return;
}
if (other.CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
CommandKeyType = other.CommandKeyType;
}
if (other.value_ != null) {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value();
}
Value.MergeFrom(other.Value);
}
_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: {
CommandKeyType = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType) input.ReadEnum();
break;
}
case 18: {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value();
}
input.ReadMessage(Value);
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: {
CommandKeyType = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType) input.ReadEnum();
break;
}
case 18: {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value();
}
input.ReadMessage(Value);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeviceCommand message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Список ключей команд на изменение статуса устройства
///
public enum KeyType {
///
/// Значение не указано
///
[pbr::OriginalName("KEY_TYPE_UNKNOWN")] Unknown = 0,
///
/// Отклонение звонка
///
[pbr::OriginalName("REJECT_CALL")] RejectCall = 1,
///
/// Открытие замка
///
[pbr::OriginalName("UNLOCK")] Unlock = 2,
}
///
/// Значение команды на изменение статуса устройства
///
public sealed partial class Value : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Value());
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.IotConnect.V1.DeviceCommand.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 Value() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Value(Value other) : this() {
type_ = other.type_;
switch (other.ValueCase) {
case ValueOneofCase.ValueEnumType:
ValueEnumType = other.ValueEnumType;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Value Clone() {
return new Value(this);
}
/// Field number for the "type" field.
public const int TypeFieldNumber = 1;
private global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type type_ = global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown;
///
/// Тип значения команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type Type {
get { return type_; }
set {
type_ = value;
}
}
/// Field number for the "value_enum_type" field.
public const int ValueEnumTypeFieldNumber = 2;
///
/// Значения команды на изменение статуса устройства типа перечисление
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType ValueEnumType {
get { return HasValueEnumType ? (global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType) value_ : global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType.Unknown; }
set {
value_ = value;
valueCase_ = ValueOneofCase.ValueEnumType;
}
}
/// Gets whether the "value_enum_type" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasValueEnumType {
get { return valueCase_ == ValueOneofCase.ValueEnumType; }
}
/// Clears the value of the oneof if it's currently set to "value_enum_type"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearValueEnumType() {
if (HasValueEnumType) {
ClearValue();
}
}
private object value_;
/// Enum of possible cases for the "value" oneof.
public enum ValueOneofCase {
None = 0,
ValueEnumType = 2,
}
private ValueOneofCase valueCase_ = ValueOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValueOneofCase ValueCase {
get { return valueCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearValue() {
valueCase_ = ValueOneofCase.None;
value_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Value);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Value other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Type != other.Type) return false;
if (ValueEnumType != other.ValueEnumType) return false;
if (ValueCase != other.ValueCase) 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 (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) hash ^= Type.GetHashCode();
if (HasValueEnumType) hash ^= ValueEnumType.GetHashCode();
hash ^= (int) valueCase_;
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 (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (HasValueEnumType) {
output.WriteRawTag(16);
output.WriteEnum((int) ValueEnumType);
}
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 (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (HasValueEnumType) {
output.WriteRawTag(16);
output.WriteEnum((int) ValueEnumType);
}
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 (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (HasValueEnumType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValueEnumType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Value other) {
if (other == null) {
return;
}
if (other.Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
Type = other.Type;
}
switch (other.ValueCase) {
case ValueOneofCase.ValueEnumType:
ValueEnumType = other.ValueEnumType;
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 8: {
Type = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type) input.ReadEnum();
break;
}
case 16: {
value_ = input.ReadEnum();
valueCase_ = ValueOneofCase.ValueEnumType;
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: {
Type = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type) input.ReadEnum();
break;
}
case 16: {
value_ = input.ReadEnum();
valueCase_ = ValueOneofCase.ValueEnumType;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Value message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Тип значения команд на изменение статуса устройства
///
public enum Type {
///
/// Значение не указано
///
[pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0,
///
/// Перечисление
///
[pbr::OriginalName("ENUM")] Enum = 1,
}
///
/// Значения команд на изменение статуса устройства типа перечисление
///
public enum ValueEnumType {
///
/// Значение не указано
///
[pbr::OriginalName("VALUE_ENUM_TYPE_UNKNOWN")] Unknown = 0,
///
/// Отклонение звонка
///
[pbr::OriginalName("REJECT")] Reject = 1,
///
/// Открытие замка
///
[pbr::OriginalName("UNLOCK")] Unlock = 2,
}
}
#endregion
}
}
#endregion
}
///
/// Статус устройства
///
public sealed partial class DeviceState : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceState());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[7]; }
}
[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 DeviceState() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceState(DeviceState other) : this() {
stateKeyType_ = other.stateKeyType_;
value_ = other.value_ != null ? other.value_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceState Clone() {
return new DeviceState(this);
}
/// Field number for the "state_key_type" field.
public const int StateKeyTypeFieldNumber = 1;
private global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType stateKeyType_ = global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType.Unknown;
///
/// Тип статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType StateKeyType {
get { return stateKeyType_; }
set {
stateKeyType_ = value;
}
}
/// Field number for the "value" field.
public const int ValueFieldNumber = 2;
private global::Keyapis.IotConnect.V1.DeviceState.Types.Value value_;
///
/// Значение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceState.Types.Value Value {
get { return value_; }
set {
value_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeviceState);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeviceState other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (StateKeyType != other.StateKeyType) return false;
if (!object.Equals(Value, other.Value)) 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 (StateKeyType != global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType.Unknown) hash ^= StateKeyType.GetHashCode();
if (value_ != null) hash ^= Value.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 (StateKeyType != global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) StateKeyType);
}
if (value_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
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 (StateKeyType != global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) StateKeyType);
}
if (value_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
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 (StateKeyType != global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) StateKeyType);
}
if (value_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeviceState other) {
if (other == null) {
return;
}
if (other.StateKeyType != global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType.Unknown) {
StateKeyType = other.StateKeyType;
}
if (other.value_ != null) {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceState.Types.Value();
}
Value.MergeFrom(other.Value);
}
_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: {
StateKeyType = (global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType) input.ReadEnum();
break;
}
case 18: {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceState.Types.Value();
}
input.ReadMessage(Value);
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: {
StateKeyType = (global::Keyapis.IotConnect.V1.DeviceState.Types.KeyType) input.ReadEnum();
break;
}
case 18: {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceState.Types.Value();
}
input.ReadMessage(Value);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeviceState message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Список ключей статусов устройства
///
public enum KeyType {
///
/// Значение не указано
///
[pbr::OriginalName("KEY_TYPE_UNKNOWN")] Unknown = 0,
///
/// Статус доступности устройства
///
[pbr::OriginalName("ONLINE")] Online = 1,
}
///
/// Значение статуса устройства
///
public sealed partial class Value : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Value());
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.IotConnect.V1.DeviceState.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 Value() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Value(Value other) : this() {
type_ = other.type_;
switch (other.ValueCase) {
case ValueOneofCase.IsValue:
IsValue = other.IsValue;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Value Clone() {
return new Value(this);
}
/// Field number for the "type" field.
public const int TypeFieldNumber = 1;
private global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type type_ = global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type.Unknown;
///
/// Тип значения статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type Type {
get { return type_; }
set {
type_ = value;
}
}
/// Field number for the "is_value" field.
public const int IsValueFieldNumber = 2;
///
/// Значение логического типа
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IsValue {
get { return HasIsValue ? (bool) value_ : false; }
set {
value_ = value;
valueCase_ = ValueOneofCase.IsValue;
}
}
/// Gets whether the "is_value" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasIsValue {
get { return valueCase_ == ValueOneofCase.IsValue; }
}
/// Clears the value of the oneof if it's currently set to "is_value"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearIsValue() {
if (HasIsValue) {
ClearValue();
}
}
private object value_;
/// Enum of possible cases for the "value" oneof.
public enum ValueOneofCase {
None = 0,
IsValue = 2,
}
private ValueOneofCase valueCase_ = ValueOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValueOneofCase ValueCase {
get { return valueCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearValue() {
valueCase_ = ValueOneofCase.None;
value_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Value);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Value other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Type != other.Type) return false;
if (IsValue != other.IsValue) return false;
if (ValueCase != other.ValueCase) 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 (Type != global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type.Unknown) hash ^= Type.GetHashCode();
if (HasIsValue) hash ^= IsValue.GetHashCode();
hash ^= (int) valueCase_;
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 (Type != global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (HasIsValue) {
output.WriteRawTag(16);
output.WriteBool(IsValue);
}
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 (Type != global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (HasIsValue) {
output.WriteRawTag(16);
output.WriteBool(IsValue);
}
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 (Type != global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (HasIsValue) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Value other) {
if (other == null) {
return;
}
if (other.Type != global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type.Unknown) {
Type = other.Type;
}
switch (other.ValueCase) {
case ValueOneofCase.IsValue:
IsValue = other.IsValue;
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 8: {
Type = (global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type) input.ReadEnum();
break;
}
case 16: {
IsValue = input.ReadBool();
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: {
Type = (global::Keyapis.IotConnect.V1.DeviceState.Types.Value.Types.Type) input.ReadEnum();
break;
}
case 16: {
IsValue = input.ReadBool();
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Value message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Тип значения статуса устройства
///
public enum Type {
///
/// Значение не указано
///
[pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0,
///
/// Логический тип
///
[pbr::OriginalName("BOOL")] Bool = 1,
}
}
#endregion
}
}
#endregion
}
///
/// Запрос метода получения устройств, доступных пользователю
///
public sealed partial class GetCallbackDevicesRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCallbackDevicesRequest());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[8]; }
}
[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 GetCallbackDevicesRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackDevicesRequest(GetCallbackDevicesRequest other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackDevicesRequest Clone() {
return new GetCallbackDevicesRequest(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetCallbackDevicesRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCallbackDevicesRequest 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(GetCallbackDevicesRequest 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
}
///
/// Ответ на запрос метода получения устройств, доступных пользователю
///
public sealed partial class GetCallbackDevicesResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetCallbackDevicesResponse());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[9]; }
}
[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 GetCallbackDevicesResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackDevicesResponse(GetCallbackDevicesResponse other) : this() {
data_ = other.data_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetCallbackDevicesResponse Clone() {
return new GetCallbackDevicesResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_data_codec
= pb::FieldCodec.ForMessage(10, global::Keyapis.IotConnect.V1.Device.Parser);
private readonly pbc::RepeatedField data_ = new pbc::RepeatedField();
///
/// Домофоны, доступные пользователю
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Data {
get { return data_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetCallbackDevicesResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetCallbackDevicesResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!data_.Equals(other.data_)) 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;
hash ^= data_.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
data_.WriteTo(output, _repeated_data_codec);
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) {
data_.WriteTo(ref output, _repeated_data_codec);
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;
size += data_.CalculateSize(_repeated_data_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GetCallbackDevicesResponse other) {
if (other == null) {
return;
}
data_.Add(other.data_);
_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: {
data_.AddEntriesFrom(input, _repeated_data_codec);
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: {
data_.AddEntriesFrom(ref input, _repeated_data_codec);
break;
}
}
}
}
#endif
}
///
/// Запрос статуса домофонов пользователя
///
public sealed partial class PostCallbackQueryRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCallbackQueryRequest());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[10]; }
}
[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 PostCallbackQueryRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackQueryRequest(PostCallbackQueryRequest other) : this() {
devices_ = other.devices_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackQueryRequest Clone() {
return new PostCallbackQueryRequest(this);
}
/// Field number for the "devices" field.
public const int DevicesFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_devices_codec
= pb::FieldCodec.ForString(10);
private readonly pbc::RepeatedField devices_ = new pbc::RepeatedField();
///
/// Массив идентификаторов домофонов пользователя
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField Devices {
get { return devices_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCallbackQueryRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCallbackQueryRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!devices_.Equals(other.devices_)) 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;
hash ^= devices_.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
devices_.WriteTo(output, _repeated_devices_codec);
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) {
devices_.WriteTo(ref output, _repeated_devices_codec);
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;
size += devices_.CalculateSize(_repeated_devices_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostCallbackQueryRequest other) {
if (other == null) {
return;
}
devices_.Add(other.devices_);
_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: {
devices_.AddEntriesFrom(input, _repeated_devices_codec);
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: {
devices_.AddEntriesFrom(ref input, _repeated_devices_codec);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос статуса домофонов пользователя
///
public sealed partial class PostCallbackQueryResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCallbackQueryResponse());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[11]; }
}
[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 PostCallbackQueryResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackQueryResponse(PostCallbackQueryResponse other) : this() {
data_ = other.data_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackQueryResponse Clone() {
return new PostCallbackQueryResponse(this);
}
/// Field number for the "data" field.
public const int DataFieldNumber = 1;
private static readonly pbc::MapField.Codec _map_data_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Keyapis.IotConnect.V1.DeviceStateArray.Parser), 10);
private readonly pbc::MapField data_ = new pbc::MapField();
///
/// Массив домофонов со статусами
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField Data {
get { return data_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCallbackQueryResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCallbackQueryResponse other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Data.Equals(other.Data)) 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;
hash ^= Data.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
data_.WriteTo(output, _map_data_codec);
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) {
data_.WriteTo(ref output, _map_data_codec);
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;
size += data_.CalculateSize(_map_data_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostCallbackQueryResponse other) {
if (other == null) {
return;
}
data_.MergeFrom(other.data_);
_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: {
data_.AddEntriesFrom(input, _map_data_codec);
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: {
data_.AddEntriesFrom(ref input, _map_data_codec);
break;
}
}
}
}
#endif
}
///
/// Запрос на изменение статуса домофона
///
public sealed partial class PostCallbackCommandRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCallbackCommandRequest());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[12]; }
}
[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 PostCallbackCommandRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackCommandRequest(PostCallbackCommandRequest other) : this() {
devices_ = other.devices_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackCommandRequest Clone() {
return new PostCallbackCommandRequest(this);
}
/// Field number for the "devices" field.
public const int DevicesFieldNumber = 1;
private static readonly pbc::MapField.Codec _map_devices_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Keyapis.IotConnect.V1.DeviceCommandArray.Parser), 10);
private readonly pbc::MapField devices_ = new pbc::MapField();
///
/// Массив домофонов со статусами
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField Devices {
get { return devices_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCallbackCommandRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCallbackCommandRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Devices.Equals(other.Devices)) 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;
hash ^= Devices.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
devices_.WriteTo(output, _map_devices_codec);
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) {
devices_.WriteTo(ref output, _map_devices_codec);
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;
size += devices_.CalculateSize(_map_devices_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostCallbackCommandRequest other) {
if (other == null) {
return;
}
devices_.MergeFrom(other.devices_);
_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: {
devices_.AddEntriesFrom(input, _map_devices_codec);
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: {
devices_.AddEntriesFrom(ref input, _map_devices_codec);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос на изменение статуса домофона
///
public sealed partial class PostCallbackCommandResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCallbackCommandResponse());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[13]; }
}
[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 PostCallbackCommandResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackCommandResponse(PostCallbackCommandResponse other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackCommandResponse Clone() {
return new PostCallbackCommandResponse(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCallbackCommandResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCallbackCommandResponse 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(PostCallbackCommandResponse 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
}
///
/// Запрос метода разъединения аккаунтов
///
public sealed partial class PostCallbackUnlinkRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCallbackUnlinkRequest());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[14]; }
}
[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 PostCallbackUnlinkRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackUnlinkRequest(PostCallbackUnlinkRequest other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackUnlinkRequest Clone() {
return new PostCallbackUnlinkRequest(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCallbackUnlinkRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCallbackUnlinkRequest 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(PostCallbackUnlinkRequest 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
}
///
/// Ответ на запрос метода разъединения аккаунтов
///
public sealed partial class PostCallbackUnlinkResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCallbackUnlinkResponse());
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.IotConnect.V1.KeyapisIotConnectCallbackV1Reflection.Descriptor.MessageTypes[15]; }
}
[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 PostCallbackUnlinkResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackUnlinkResponse(PostCallbackUnlinkResponse other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCallbackUnlinkResponse Clone() {
return new PostCallbackUnlinkResponse(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCallbackUnlinkResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCallbackUnlinkResponse 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(PostCallbackUnlinkResponse 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
}
#endregion
}
#endregion Designer generated code