//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/iot_connect_sber/v1/keyapis_iot_connect_devices_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_sber/v1/keyapis_iot_connect_devices_v1.proto
public static partial class KeyapisIotConnectDevicesV1Reflection {
#region Descriptor
/// File descriptor for keyapis/iot_connect_sber/v1/keyapis_iot_connect_devices_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisIotConnectDevicesV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkBrZXlhcGlzL2lvdF9jb25uZWN0X3NiZXIvdjEva2V5YXBpc19pb3RfY29u",
"bmVjdF9kZXZpY2VzX3YxLnByb3RvEhtrZXlhcGlzLmlvdF9jb25uZWN0X3Ni",
"ZXIudjEaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8ivQIKBU1vZGVs",
"EgoKAmlkGAEgASgJEhQKDG1hbnVmYWN0dXJlchgCIAEoCRINCgVtb2RlbBgD",
"IAEoCRISCgpod192ZXJzaW9uGAQgASgJEhIKCnN3X3ZlcnNpb24YBSABKAkS",
"EwoLZGVzY3JpcHRpb24YBiABKAkSEAoIY2F0ZWdvcnkYByABKAkSTwoNZmVh",
"dHVyZV90eXBlcxgIIAMoDjIuLmtleWFwaXMuaW90X2Nvbm5lY3Rfc2Jlci52",
"MS5Nb2RlbC5GZWF0dXJlVHlwZVIIZmVhdHVyZXMiYwoLRmVhdHVyZVR5cGUS",
"GAoURkVBVFVSRV9UWVBFX1VOS05PV04QABIRCg1JTkNPTUlOR19DQUxMEAES",
"CgoGT05MSU5FEAISDwoLUkVKRUNUX0NBTEwQAxIKCgZVTkxPQ0sQBCKvAQoG",
"RGV2aWNlEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSFAoMZGVmYXVsdF9u",
"YW1lGAMgASgJEgwKBGhvbWUYBCABKAkSDAoEcm9vbRgFIAEoCRIxCgVtb2Rl",
"bBgGIAEoCzIiLmtleWFwaXMuaW90X2Nvbm5lY3Rfc2Jlci52MS5Nb2RlbBIS",
"Cgpod192ZXJzaW9uGAcgASgJEhIKCnN3X3ZlcnNpb24YCCABKAkiTAoQRGV2",
"aWNlU3RhdGVBcnJheRI4CgZzdGF0ZXMYASADKAsyKC5rZXlhcGlzLmlvdF9j",
"b25uZWN0X3NiZXIudjEuRGV2aWNlU3RhdGUi4gIKC0RldmljZVN0YXRlEk0K",
"DnN0YXRlX2tleV90eXBlGAEgASgOMjAua2V5YXBpcy5pb3RfY29ubmVjdF9z",
"YmVyLnYxLkRldmljZVN0YXRlLktleVR5cGVSA2tleRI9CgV2YWx1ZRgCIAEo",
"CzIuLmtleWFwaXMuaW90X2Nvbm5lY3Rfc2Jlci52MS5EZXZpY2VTdGF0ZS5W",
"YWx1ZRqXAQoFVmFsdWUSQQoEdHlwZRgBIAEoDjIzLmtleWFwaXMuaW90X2Nv",
"bm5lY3Rfc2Jlci52MS5EZXZpY2VTdGF0ZS5WYWx1ZS5UeXBlEh4KCGlzX3Zh",
"bHVlGAIgASgISABSCmJvb2xfdmFsdWUiIgoEVHlwZRIQCgxUWVBFX1VOS05P",
"V04QABIICgRCT09MEAFCBwoFdmFsdWUiKwoHS2V5VHlwZRIUChBLRVlfVFlQ",
"RV9VTktOT1dOEAASCgoGT05MSU5FEAEiEwoRR2V0RGV2aWNlc1JlcXVlc3Qi",
"RwoSR2V0RGV2aWNlc1Jlc3BvbnNlEjEKBGRhdGEYASADKAsyIy5rZXlhcGlz",
"LmlvdF9jb25uZWN0X3NiZXIudjEuRGV2aWNlMqoBCg5EZXZpY2VzU2Vydmlj",
"ZRKXAQoKR2V0RGV2aWNlcxIuLmtleWFwaXMuaW90X2Nvbm5lY3Rfc2Jlci52",
"MS5HZXREZXZpY2VzUmVxdWVzdBovLmtleWFwaXMuaW90X2Nvbm5lY3Rfc2Jl",
"ci52MS5HZXREZXZpY2VzUmVzcG9uc2UiKILT5JMCIhIgL2lvdF9jb25uZWN0",
"X3NiZXIvYXBpL3YxL2RldmljZXNCuAEKGXJ1LmtleWFwaXMuaW90X2Nvbm5l",
"Y3QudjFCGEtleWFwaXNJb3RDb25uZWN0VjFQcm90b0gDUABaFy9rZXlhcGlz",
"X2lvdF9jb25uZWN0X3Yx2AEB+AEBogITS0VZQVBJU0lPVENPTk5FQ1RWMaoC",
"FUtleWFwaXMuSW90Q29ubmVjdC5WMcoCFUtleWFwaXNcSW90Q29ubmVjdFxW",
"MeoCF0tleWFwaXM6OklvdENvbm5lY3Q6OlYxYgZwcm90bzM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Google.Api.AnnotationsReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
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.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.GetDevicesRequest), global::Keyapis.IotConnect.V1.GetDevicesRequest.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.GetDevicesResponse), global::Keyapis.IotConnect.V1.GetDevicesResponse.Parser, new[]{ "Data" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Объект Модель устройства
///
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.KeyapisIotConnectDevicesV1Reflection.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 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.KeyapisIotConnectDevicesV1Reflection.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 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.KeyapisIotConnectDevicesV1Reflection.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 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 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.KeyapisIotConnectDevicesV1Reflection.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 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 GetDevicesRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDevicesRequest());
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.KeyapisIotConnectDevicesV1Reflection.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 GetDevicesRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetDevicesRequest(GetDevicesRequest other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetDevicesRequest Clone() {
return new GetDevicesRequest(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetDevicesRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetDevicesRequest 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(GetDevicesRequest 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 GetDevicesResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetDevicesResponse());
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.KeyapisIotConnectDevicesV1Reflection.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 GetDevicesResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetDevicesResponse(GetDevicesResponse other) : this() {
data_ = other.data_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetDevicesResponse Clone() {
return new GetDevicesResponse(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 GetDevicesResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetDevicesResponse 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(GetDevicesResponse 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
}
#endregion
}
#endregion Designer generated code