//
// 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",
"bmVjdF9kZXZpY2VzX3YxLnByb3RvEhtrZXlhcGlzLmlvdF9jb25uZWN0LnNi",
"ZXIudjEaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8i1QIKBU1vZGVs",
"EgoKAmlkGAEgASgJEhQKDG1hbnVmYWN0dXJlchgCIAEoCRINCgVtb2RlbBgD",
"IAEoCRIeCgpod192ZXJzaW9uGAQgASgJUgpod192ZXJzaW9uEh4KCnN3X3Zl",
"cnNpb24YBSABKAlSCnN3X3ZlcnNpb24SEwoLZGVzY3JpcHRpb24YBiABKAkS",
"EAoIY2F0ZWdvcnkYByABKAkSTwoNZmVhdHVyZV90eXBlcxgIIAMoDjIuLmtl",
"eWFwaXMuaW90X2Nvbm5lY3Quc2Jlci52MS5Nb2RlbC5GZWF0dXJlVHlwZVII",
"ZmVhdHVyZXMiYwoLRmVhdHVyZVR5cGUSGAoUZmVhdHVyZV90eXBlX3Vua25v",
"d24QABIRCg1pbmNvbWluZ19jYWxsEAESCgoGb25saW5lEAISDwoLcmVqZWN0",
"X2NhbGwQAxIKCgZ1bmxvY2sQBCLVAQoGRGV2aWNlEgoKAmlkGAEgASgJEgwK",
"BG5hbWUYAiABKAkSIgoMZGVmYXVsdF9uYW1lGAMgASgJUgxkZWZhdWx0X25h",
"bWUSDAoEaG9tZRgEIAEoCRIMCgRyb29tGAUgASgJEjEKBW1vZGVsGAYgASgL",
"MiIua2V5YXBpcy5pb3RfY29ubmVjdC5zYmVyLnYxLk1vZGVsEh4KCmh3X3Zl",
"cnNpb24YByABKAlSCmh3X3ZlcnNpb24SHgoKc3dfdmVyc2lvbhgIIAEoCVIK",
"c3dfdmVyc2lvbiIVChNHZXRWMURldmljZXNSZXF1ZXN0IlIKFEdldFYxRGV2",
"aWNlc1Jlc3BvbnNlEjoKBGRhdGEYASADKAsyIy5rZXlhcGlzLmlvdF9jb25u",
"ZWN0LnNiZXIudjEuRGV2aWNlUgdkZXZpY2VzMrABCg5EZXZpY2VzU2Vydmlj",
"ZRKdAQoMR2V0VjFEZXZpY2VzEjAua2V5YXBpcy5pb3RfY29ubmVjdC5zYmVy",
"LnYxLkdldFYxRGV2aWNlc1JlcXVlc3QaMS5rZXlhcGlzLmlvdF9jb25uZWN0",
"LnNiZXIudjEuR2V0VjFEZXZpY2VzUmVzcG9uc2UiKILT5JMCIhIgL2lvdF9j",
"b25uZWN0L2FwaS9zYmVyL3YxL2RldmljZXNCuAEKGXJ1LmtleWFwaXMuaW90",
"X2Nvbm5lY3QudjFCGEtleWFwaXNJb3RDb25uZWN0VjFQcm90b0gDUABaFy9r",
"ZXlhcGlzX2lvdF9jb25uZWN0X3Yx2AEB+AEBogITS0VZQVBJU0lPVENPTk5F",
"Q1RWMaoCFUtleWFwaXMuSW90Q29ubmVjdC5WMcoCFUtleWFwaXNcSW90Q29u",
"bmVjdFxWMeoCF0tleWFwaXM6OklvdENvbm5lY3Q6OlYxYgZwcm90bzM="));
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.GetV1DevicesRequest), global::Keyapis.IotConnect.V1.GetV1DevicesRequest.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.GetV1DevicesResponse), global::Keyapis.IotConnect.V1.GetV1DevicesResponse.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 GetV1DevicesRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetV1DevicesRequest());
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 GetV1DevicesRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetV1DevicesRequest(GetV1DevicesRequest other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetV1DevicesRequest Clone() {
return new GetV1DevicesRequest(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GetV1DevicesRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetV1DevicesRequest 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(GetV1DevicesRequest 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 GetV1DevicesResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetV1DevicesResponse());
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 GetV1DevicesResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetV1DevicesResponse(GetV1DevicesResponse other) : this() {
data_ = other.data_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GetV1DevicesResponse Clone() {
return new GetV1DevicesResponse(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 GetV1DevicesResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GetV1DevicesResponse 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(GetV1DevicesResponse 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