//
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: keyapis/iot_connect_sber/v1/keyapis_iot_connect_command_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_command_v1.proto
public static partial class KeyapisIotConnectCommandV1Reflection {
#region Descriptor
/// File descriptor for keyapis/iot_connect_sber/v1/keyapis_iot_connect_command_v1.proto
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static KeyapisIotConnectCommandV1Reflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkBrZXlhcGlzL2lvdF9jb25uZWN0X3NiZXIvdjEva2V5YXBpc19pb3RfY29u",
"bmVjdF9jb21tYW5kX3YxLnByb3RvEhtrZXlhcGlzLmlvdF9jb25uZWN0X3Ni",
"ZXIudjEaHGdvb2dsZS9hcGkvYW5ub3RhdGlvbnMucHJvdG8iUAoSRGV2aWNl",
"Q29tbWFuZEFycmF5EjoKBnN0YXRlcxgBIAMoCzIqLmtleWFwaXMuaW90X2Nv",
"bm5lY3Rfc2Jlci52MS5EZXZpY2VDb21tYW5kIooECg1EZXZpY2VDb21tYW5k",
"ElEKEGNvbW1hbmRfa2V5X3R5cGUYASABKA4yMi5rZXlhcGlzLmlvdF9jb25u",
"ZWN0X3NiZXIudjEuRGV2aWNlQ29tbWFuZC5LZXlUeXBlUgNrZXkSPwoFdmFs",
"dWUYAiABKAsyMC5rZXlhcGlzLmlvdF9jb25uZWN0X3NiZXIudjEuRGV2aWNl",
"Q29tbWFuZC5WYWx1ZRqmAgoFVmFsdWUSQwoEdHlwZRgBIAEoDjI1LmtleWFw",
"aXMuaW90X2Nvbm5lY3Rfc2Jlci52MS5EZXZpY2VDb21tYW5kLlZhbHVlLlR5",
"cGUSZQoPdmFsdWVfZW51bV90eXBlGAIgASgOMj4ua2V5YXBpcy5pb3RfY29u",
"bmVjdF9zYmVyLnYxLkRldmljZUNvbW1hbmQuVmFsdWUuVmFsdWVFbnVtVHlw",
"ZUgAUgplbnVtX3ZhbHVlIiIKBFR5cGUSEAoMVFlQRV9VTktOT1dOEAASCAoE",
"RU5VTRABIkQKDVZhbHVlRW51bVR5cGUSGwoXVkFMVUVfRU5VTV9UWVBFX1VO",
"S05PV04QABIKCgZSRUpFQ1QQARIKCgZVTkxPQ0sQAkIHCgV2YWx1ZSI8CgdL",
"ZXlUeXBlEhQKEEtFWV9UWVBFX1VOS05PV04QABIPCgtSRUpFQ1RfQ0FMTBAB",
"EgoKBlVOTE9DSxACIsQBChJQb3N0Q29tbWFuZFJlcXVlc3QSTQoHZGV2aWNl",
"cxgBIAMoCzI8LmtleWFwaXMuaW90X2Nvbm5lY3Rfc2Jlci52MS5Qb3N0Q29t",
"bWFuZFJlcXVlc3QuRGV2aWNlc0VudHJ5Gl8KDERldmljZXNFbnRyeRILCgNr",
"ZXkYASABKAkSPgoFdmFsdWUYAiABKAsyLy5rZXlhcGlzLmlvdF9jb25uZWN0",
"X3NiZXIudjEuRGV2aWNlQ29tbWFuZEFycmF5OgI4ASIVChNQb3N0Q29tbWFu",
"ZFJlc3BvbnNlMrABCg5Db21tYW5kU2VydmljZRKdAQoLUG9zdENvbW1hbmQS",
"Ly5rZXlhcGlzLmlvdF9jb25uZWN0X3NiZXIudjEuUG9zdENvbW1hbmRSZXF1",
"ZXN0GjAua2V5YXBpcy5pb3RfY29ubmVjdF9zYmVyLnYxLlBvc3RDb21tYW5k",
"UmVzcG9uc2UiK4LT5JMCJSIgL2lvdF9jb25uZWN0X3NiZXIvYXBpL3YxL2Nv",
"bW1hbmQ6ASpCuAEKGXJ1LmtleWFwaXMuaW90X2Nvbm5lY3QudjFCGEtleWFw",
"aXNJb3RDb25uZWN0VjFQcm90b0gDUABaFy9rZXlhcGlzX2lvdF9jb25uZWN0",
"X3Yx2AEB+AEBogITS0VZQVBJU0lPVENPTk5FQ1RWMaoCFUtleWFwaXMuSW90",
"Q29ubmVjdC5WMcoCFUtleWFwaXNcSW90Q29ubmVjdFxWMeoCF0tleWFwaXM6",
"OklvdENvbm5lY3Q6OlYxYgZwcm90bzM="));
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.DeviceCommandArray), global::Keyapis.IotConnect.V1.DeviceCommandArray.Parser, new[]{ "States" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceCommand), global::Keyapis.IotConnect.V1.DeviceCommand.Parser, new[]{ "CommandKeyType", "Value" }, null, new[]{ typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value), global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Parser, new[]{ "Type", "ValueEnumType" }, new[]{ "Value" }, new[]{ typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type), typeof(global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType) }, null, null)}),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCommandRequest), global::Keyapis.IotConnect.V1.PostCommandRequest.Parser, new[]{ "Devices" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.IotConnect.V1.PostCommandResponse), global::Keyapis.IotConnect.V1.PostCommandResponse.Parser, null, null, null, null, null)
}));
}
#endregion
}
#region Messages
///
/// Массив команд на изменение статуса устройства
///
public sealed partial class DeviceCommandArray : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceCommandArray());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IotConnect.V1.KeyapisIotConnectCommandV1Reflection.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 DeviceCommandArray() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommandArray(DeviceCommandArray other) : this() {
states_ = other.states_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommandArray Clone() {
return new DeviceCommandArray(this);
}
/// Field number for the "states" field.
public const int StatesFieldNumber = 1;
private static readonly pb::FieldCodec _repeated_states_codec
= pb::FieldCodec.ForMessage(10, global::Keyapis.IotConnect.V1.DeviceCommand.Parser);
private readonly pbc::RepeatedField states_ = new pbc::RepeatedField();
///
/// Команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField States {
get { return states_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeviceCommandArray);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeviceCommandArray other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!states_.Equals(other.states_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= states_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
states_.WriteTo(output, _repeated_states_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
states_.WriteTo(ref output, _repeated_states_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += states_.CalculateSize(_repeated_states_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeviceCommandArray other) {
if (other == null) {
return;
}
states_.Add(other.states_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
states_.AddEntriesFrom(input, _repeated_states_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
states_.AddEntriesFrom(ref input, _repeated_states_codec);
break;
}
}
}
}
#endif
}
///
/// Команды на изменение статуса устройства
///
public sealed partial class DeviceCommand : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new DeviceCommand());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IotConnect.V1.KeyapisIotConnectCommandV1Reflection.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 DeviceCommand() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommand(DeviceCommand other) : this() {
commandKeyType_ = other.commandKeyType_;
value_ = other.value_ != null ? other.value_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public DeviceCommand Clone() {
return new DeviceCommand(this);
}
/// Field number for the "command_key_type" field.
public const int CommandKeyTypeFieldNumber = 1;
private global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType commandKeyType_ = global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown;
///
/// Тип команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType CommandKeyType {
get { return commandKeyType_; }
set {
commandKeyType_ = value;
}
}
/// Field number for the "value" field.
public const int ValueFieldNumber = 2;
private global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value value_;
///
/// Значение команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value Value {
get { return value_; }
set {
value_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as DeviceCommand);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(DeviceCommand other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (CommandKeyType != other.CommandKeyType) return false;
if (!object.Equals(Value, other.Value)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) hash ^= CommandKeyType.GetHashCode();
if (value_ != null) hash ^= Value.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) CommandKeyType);
}
if (value_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) CommandKeyType);
}
if (value_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Value);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) CommandKeyType);
}
if (value_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Value);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(DeviceCommand other) {
if (other == null) {
return;
}
if (other.CommandKeyType != global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType.Unknown) {
CommandKeyType = other.CommandKeyType;
}
if (other.value_ != null) {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value();
}
Value.MergeFrom(other.Value);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
CommandKeyType = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType) input.ReadEnum();
break;
}
case 18: {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value();
}
input.ReadMessage(Value);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
CommandKeyType = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.KeyType) input.ReadEnum();
break;
}
case 18: {
if (value_ == null) {
Value = new global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value();
}
input.ReadMessage(Value);
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the DeviceCommand message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Список ключей команд на изменение статуса устройства
///
public enum KeyType {
///
/// Значение не указано
///
[pbr::OriginalName("KEY_TYPE_UNKNOWN")] Unknown = 0,
///
/// Отклонение звонка
///
[pbr::OriginalName("REJECT_CALL")] RejectCall = 1,
///
/// Открытие замка
///
[pbr::OriginalName("UNLOCK")] Unlock = 2,
}
///
/// Значение команды на изменение статуса устройства
///
public sealed partial class Value : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Value());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Keyapis.IotConnect.V1.DeviceCommand.Descriptor.NestedTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Value() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Value(Value other) : this() {
type_ = other.type_;
switch (other.ValueCase) {
case ValueOneofCase.ValueEnumType:
ValueEnumType = other.ValueEnumType;
break;
}
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Value Clone() {
return new Value(this);
}
/// Field number for the "type" field.
public const int TypeFieldNumber = 1;
private global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type type_ = global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown;
///
/// Тип значения команды на изменение статуса устройства
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type Type {
get { return type_; }
set {
type_ = value;
}
}
/// Field number for the "value_enum_type" field.
public const int ValueEnumTypeFieldNumber = 2;
///
/// Значения команды на изменение статуса устройства типа перечисление
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType ValueEnumType {
get { return HasValueEnumType ? (global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType) value_ : global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.ValueEnumType.Unknown; }
set {
value_ = value;
valueCase_ = ValueOneofCase.ValueEnumType;
}
}
/// Gets whether the "value_enum_type" field is set
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasValueEnumType {
get { return valueCase_ == ValueOneofCase.ValueEnumType; }
}
/// Clears the value of the oneof if it's currently set to "value_enum_type"
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearValueEnumType() {
if (HasValueEnumType) {
ClearValue();
}
}
private object value_;
/// Enum of possible cases for the "value" oneof.
public enum ValueOneofCase {
None = 0,
ValueEnumType = 2,
}
private ValueOneofCase valueCase_ = ValueOneofCase.None;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ValueOneofCase ValueCase {
get { return valueCase_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearValue() {
valueCase_ = ValueOneofCase.None;
value_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Value);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Value other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Type != other.Type) return false;
if (ValueEnumType != other.ValueEnumType) return false;
if (ValueCase != other.ValueCase) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) hash ^= Type.GetHashCode();
if (HasValueEnumType) hash ^= ValueEnumType.GetHashCode();
hash ^= (int) valueCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (HasValueEnumType) {
output.WriteRawTag(16);
output.WriteEnum((int) ValueEnumType);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
output.WriteRawTag(8);
output.WriteEnum((int) Type);
}
if (HasValueEnumType) {
output.WriteRawTag(16);
output.WriteEnum((int) ValueEnumType);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
}
if (HasValueEnumType) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ValueEnumType);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Value other) {
if (other == null) {
return;
}
if (other.Type != global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type.Unknown) {
Type = other.Type;
}
switch (other.ValueCase) {
case ValueOneofCase.ValueEnumType:
ValueEnumType = other.ValueEnumType;
break;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
Type = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type) input.ReadEnum();
break;
}
case 16: {
value_ = input.ReadEnum();
valueCase_ = ValueOneofCase.ValueEnumType;
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
Type = (global::Keyapis.IotConnect.V1.DeviceCommand.Types.Value.Types.Type) input.ReadEnum();
break;
}
case 16: {
value_ = input.ReadEnum();
valueCase_ = ValueOneofCase.ValueEnumType;
break;
}
}
}
}
#endif
#region Nested types
/// Container for nested types declared in the Value message type.
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
///
/// Тип значения команд на изменение статуса устройства
///
public enum Type {
///
/// Значение не указано
///
[pbr::OriginalName("TYPE_UNKNOWN")] Unknown = 0,
///
/// Перечисление
///
[pbr::OriginalName("ENUM")] Enum = 1,
}
///
/// Значения команд на изменение статуса устройства типа перечисление
///
public enum ValueEnumType {
///
/// Значение не указано
///
[pbr::OriginalName("VALUE_ENUM_TYPE_UNKNOWN")] Unknown = 0,
///
/// Отклонение звонка
///
[pbr::OriginalName("REJECT")] Reject = 1,
///
/// Открытие замка
///
[pbr::OriginalName("UNLOCK")] Unlock = 2,
}
}
#endregion
}
}
#endregion
}
///
/// Запрос на изменение состояния устройства
///
public sealed partial class PostCommandRequest : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCommandRequest());
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.KeyapisIotConnectCommandV1Reflection.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 PostCommandRequest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCommandRequest(PostCommandRequest other) : this() {
devices_ = other.devices_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCommandRequest Clone() {
return new PostCommandRequest(this);
}
/// Field number for the "devices" field.
public const int DevicesFieldNumber = 1;
private static readonly pbc::MapField.Codec _map_devices_codec
= new pbc::MapField.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Keyapis.IotConnect.V1.DeviceCommandArray.Parser), 10);
private readonly pbc::MapField devices_ = new pbc::MapField();
///
/// Массив домофонов со статусами
///
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField Devices {
get { return devices_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCommandRequest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCommandRequest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Devices.Equals(other.Devices)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= Devices.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
devices_.WriteTo(output, _map_devices_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
devices_.WriteTo(ref output, _map_devices_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += devices_.CalculateSize(_map_devices_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PostCommandRequest other) {
if (other == null) {
return;
}
devices_.MergeFrom(other.devices_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
devices_.AddEntriesFrom(input, _map_devices_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
devices_.AddEntriesFrom(ref input, _map_devices_codec);
break;
}
}
}
}
#endif
}
///
/// Ответ на запрос на изменение состояния устройства
///
public sealed partial class PostCommandResponse : pb::IMessage
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostCommandResponse());
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.KeyapisIotConnectCommandV1Reflection.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 PostCommandResponse() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCommandResponse(PostCommandResponse other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PostCommandResponse Clone() {
return new PostCommandResponse(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PostCommandResponse);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PostCommandResponse 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(PostCommandResponse other) {
if (other == null) {
return;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code