// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: deviceapis/device/v1/deviceapis_device_fr_v1.proto // #pragma warning disable 1591, 0612, 3021, 8981 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Deviceapis.Device.V1 { /// Holder for reflection information generated from deviceapis/device/v1/deviceapis_device_fr_v1.proto public static partial class DeviceapisDeviceFrV1Reflection { #region Descriptor /// File descriptor for deviceapis/device/v1/deviceapis_device_fr_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static DeviceapisDeviceFrV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CjJkZXZpY2VhcGlzL2RldmljZS92MS9kZXZpY2VhcGlzX2RldmljZV9mcl92", "MS5wcm90bxIUZGV2aWNlYXBpcy5kZXZpY2UudjEaNmRldmljZWFwaXMvZGV2", "aWNlL3YxL2RldmljZWFwaXNfZGV2aWNlX2NvbW1vbl92MS5wcm90bxocZ29v", "Z2xlL2FwaS9hbm5vdGF0aW9ucy5wcm90bxofZ29vZ2xlL2FwaS9maWVsZF9i", "ZWhhdmlvci5wcm90bxogZ29vZ2xlL3Byb3RvYnVmL2ZpZWxkX21hc2sucHJv", "dG8aLnByb3RvYy1nZW4tb3BlbmFwaXYyL29wdGlvbnMvYW5ub3RhdGlvbnMu", "cHJvdG8idwoSRWRpdEZhY2VyZWNSZXF1ZXN0EjAKBGRhdGEYASABKAsyHS5k", "ZXZpY2VhcGlzLmRldmljZS52MS5GYWNlcmVjQgPgQQISLwoLdXBkYXRlX21h", "c2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrIq8BChNFZGl0", "RmFjZXJlY1Jlc3BvbnNlEkAKBWVycm9yGAEgASgLMi8uZGV2aWNlYXBpcy5k", "ZXZpY2UudjEuRWRpdEZhY2VyZWNSZXNwb25zZS5FcnJvckgAGk4KBUVycm9y", "EjsKCnZhbGlkYXRpb24YASABKAsyJS5kZXZpY2VhcGlzLmRldmljZS52MS5W", "YWxpZGF0aW9uRXJyb3JIAEIICgZyZWFzb25CBgoEdHlwZSKIBAoHRmFjZXJl", "YxIiCgppc19lbmFibGVkGAEgASgIQg7gQQKSQQhKBiJ0cnVlIhIvCgxtYWlu", "X2FkZHJlc3MYAiABKAlCGeBBApJBE0oRImZyLmtleS5ydC5ydTo4MCISLQoL", "YWx0X2FkZHJlc3MYAyABKAlCGJJBFUoTImZyLmtleS5ydC5ydTo4MDgwIhIy", "CgdyZXF1ZXN0GAQgASgJQiHgQQKSQRtKGSIvYXBpL3YxL3JlY29nbml6ZS8z", "MTcwMCISLwoNYXV0aG9yaXphdGlvbhgFIAEoCUIY4EECkkESShAiaW50ZXJj", "b21fdG9rZW4iEjAKBmdyb3VwcxgGIAMoCUIgkkEdShtbInRoaXNfZ3JvdXAi", "LCJ0aGF0X2dyb3VwIl0SLQoLcmVsYXlfaW5kZXgYByABKAVCGJJBFUoBMVkA", "AAAAwP/fQGkAAAAAAADwPxIoCg1zZW5kX2ludGVydmFsGAggASgFQhGSQQ5K", "AzIwMFkAAAAAAECPQBIrCg1mYWNlX2xpdmVuZXNzGAkgASgCQhSSQRFKBiIw", "Ljk1IlkAAAAAAADwPxIfCg1taW5fZmFjZV9zaXplGAogASgFQgiSQQVKAzMy", "MBIgCg1tYXhfZmFjZV9zaXplGAsgASgFQgmSQQZKBDEwODASGQoIYWRkX3Np", "emUYDCABKAVCB5JBBEoCNDAiEwoRR2V0RmFjZXJlY1JlcXVlc3QiSwoSR2V0", "RmFjZXJlY1Jlc3BvbnNlEi0KBGRhdGEYASABKAsyHS5kZXZpY2VhcGlzLmRl", "dmljZS52MS5GYWNlcmVjSABCBgoEdHlwZTKcAgoORmFjZXJlY1NlcnZpY2US", "iAEKC0VkaXRGYWNlcmVjEiguZGV2aWNlYXBpcy5kZXZpY2UudjEuRWRpdEZh", "Y2VyZWNSZXF1ZXN0GikuZGV2aWNlYXBpcy5kZXZpY2UudjEuRWRpdEZhY2Vy", "ZWNSZXNwb25zZSIkgtPkkwIeMhYvZGV2aWNlL2FwaS92MS9mYWNlcmVjOgRk", "YXRhEn8KCkdldEZhY2VyZWMSJy5kZXZpY2VhcGlzLmRldmljZS52MS5HZXRG", "YWNlcmVjUmVxdWVzdBooLmRldmljZWFwaXMuZGV2aWNlLnYxLkdldEZhY2Vy", "ZWNSZXNwb25zZSIegtPkkwIYEhYvZGV2aWNlL2FwaS92MS9mYWNlcmVjQq8B", "ChdydS5kZXZpY2VhcGlzLmRldmljZS52MUIXRGV2aWNlYXBpc0RldmljZVYx", "UHJvdG9IA1AAWhUvZGV2aWNlYXBpc19kZXZpY2VfdjHYAQH4AQGiAhJERVZJ", "Q0VBUElTREVWSUNFVjGqAhREZXZpY2VhcGlzLkRldmljZS5WMcoCFERldmlj", "ZWFwaXNcRGV2aWNlXFYx6gIWRGV2aWNlYXBpczo6RGV2aWNlOjpWMWIGcHJv", "dG8z")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Deviceapis.Device.V1.DeviceapisDeviceCommonV1Reflection.Descriptor, global::Google.Api.AnnotationsReflection.Descriptor, global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Grpc.Gateway.ProtocGenOpenapiv2.Options.AnnotationsReflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditFacerecRequest), global::Deviceapis.Device.V1.EditFacerecRequest.Parser, new[]{ "Data", "UpdateMask" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditFacerecResponse), global::Deviceapis.Device.V1.EditFacerecResponse.Parser, new[]{ "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error), global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error.Parser, new[]{ "Validation" }, new[]{ "Reason" }, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.Facerec), global::Deviceapis.Device.V1.Facerec.Parser, new[]{ "IsEnabled", "MainAddress", "AltAddress", "Request", "Authorization", "Groups", "RelayIndex", "SendInterval", "FaceLiveness", "MinFaceSize", "MaxFaceSize", "AddSize" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetFacerecRequest), global::Deviceapis.Device.V1.GetFacerecRequest.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Deviceapis.Device.V1.GetFacerecResponse), global::Deviceapis.Device.V1.GetFacerecResponse.Parser, new[]{ "Data" }, new[]{ "Type" }, null, null, null) })); } #endregion } #region Messages /// /// Запрос редактирования настроек Face Recognition /// public sealed partial class EditFacerecRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditFacerecRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Deviceapis.Device.V1.DeviceapisDeviceFrV1Reflection.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 EditFacerecRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditFacerecRequest(EditFacerecRequest other) : this() { data_ = other.data_ != null ? other.data_.Clone() : null; updateMask_ = other.updateMask_ != null ? other.updateMask_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditFacerecRequest Clone() { return new EditFacerecRequest(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; private global::Deviceapis.Device.V1.Facerec data_; /// /// Настройки Face Recognition /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.Facerec Data { get { return data_; } set { data_ = value; } } /// Field number for the "update_mask" field. public const int UpdateMaskFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.FieldMask updateMask_; /// /// Маска полей обновления /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Google.Protobuf.WellKnownTypes.FieldMask UpdateMask { get { return updateMask_; } set { updateMask_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EditFacerecRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EditFacerecRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (!object.Equals(UpdateMask, other.UpdateMask)) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (data_ != null) hash ^= Data.GetHashCode(); if (updateMask_ != null) hash ^= UpdateMask.GetHashCode(); if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (updateMask_ != null) { output.WriteRawTag(18); output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (data_ != null) { output.WriteRawTag(10); output.WriteMessage(Data); } if (updateMask_ != null) { output.WriteRawTag(18); output.WriteMessage(UpdateMask); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (data_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (updateMask_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateMask); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EditFacerecRequest other) { if (other == null) { return; } if (other.data_ != null) { if (data_ == null) { Data = new global::Deviceapis.Device.V1.Facerec(); } Data.MergeFrom(other.Data); } if (other.updateMask_ != null) { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } UpdateMask.MergeFrom(other.UpdateMask); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (data_ == null) { Data = new global::Deviceapis.Device.V1.Facerec(); } input.ReadMessage(Data); break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { if (data_ == null) { Data = new global::Deviceapis.Device.V1.Facerec(); } input.ReadMessage(Data); break; } case 18: { if (updateMask_ == null) { UpdateMask = new global::Google.Protobuf.WellKnownTypes.FieldMask(); } input.ReadMessage(UpdateMask); break; } } } } #endif } /// /// Ответ на запрос редактирования настроек Face Recognition /// public sealed partial class EditFacerecResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new EditFacerecResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Deviceapis.Device.V1.DeviceapisDeviceFrV1Reflection.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 EditFacerecResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditFacerecResponse(EditFacerecResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Error: Error = other.Error.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EditFacerecResponse Clone() { return new EditFacerecResponse(this); } /// Field number for the "error" field. public const int ErrorFieldNumber = 1; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Error; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Error = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as EditFacerecResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(EditFacerecResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Error, other.Error)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Error) hash ^= Error.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(10); output.WriteMessage(Error); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Error) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Error); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(EditFacerecResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Error: if (Error == null) { Error = new global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error(); } Error.MergeFrom(other.Error); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error subBuilder = new global::Deviceapis.Device.V1.EditFacerecResponse.Types.Error(); if (typeCase_ == TypeOneofCase.Error) { subBuilder.MergeFrom(Error); } input.ReadMessage(subBuilder); Error = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the EditFacerecResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Ошибка запроса /// public sealed partial class Error : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Error()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Deviceapis.Device.V1.EditFacerecResponse.Descriptor.NestedTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error(Error other) : this() { switch (other.ReasonCase) { case ReasonOneofCase.Validation: Validation = other.Validation.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Error Clone() { return new Error(this); } /// Field number for the "validation" field. public const int ValidationFieldNumber = 1; /// /// Ошибка валидации /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.ValidationError Validation { get { return reasonCase_ == ReasonOneofCase.Validation ? (global::Deviceapis.Device.V1.ValidationError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Validation; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Validation = 1, } private ReasonOneofCase reasonCase_ = ReasonOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ReasonOneofCase ReasonCase { get { return reasonCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearReason() { reasonCase_ = ReasonOneofCase.None; reason_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Error); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Error other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Validation, other.Validation)) return false; if (ReasonCase != other.ReasonCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (reasonCase_ == ReasonOneofCase.Validation) hash ^= Validation.GetHashCode(); hash ^= (int) reasonCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (reasonCase_ == ReasonOneofCase.Validation) { output.WriteRawTag(10); output.WriteMessage(Validation); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (reasonCase_ == ReasonOneofCase.Validation) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Validation); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Error other) { if (other == null) { return; } switch (other.ReasonCase) { case ReasonOneofCase.Validation: if (Validation == null) { Validation = new global::Deviceapis.Device.V1.ValidationError(); } Validation.MergeFrom(other.Validation); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Deviceapis.Device.V1.ValidationError subBuilder = new global::Deviceapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Deviceapis.Device.V1.ValidationError subBuilder = new global::Deviceapis.Device.V1.ValidationError(); if (reasonCase_ == ReasonOneofCase.Validation) { subBuilder.MergeFrom(Validation); } input.ReadMessage(subBuilder); Validation = subBuilder; break; } } } } #endif } } #endregion } /// /// Настройки Face Recognition /// public sealed partial class Facerec : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Facerec()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Deviceapis.Device.V1.DeviceapisDeviceFrV1Reflection.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 Facerec() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Facerec(Facerec other) : this() { isEnabled_ = other.isEnabled_; mainAddress_ = other.mainAddress_; altAddress_ = other.altAddress_; request_ = other.request_; authorization_ = other.authorization_; groups_ = other.groups_.Clone(); relayIndex_ = other.relayIndex_; sendInterval_ = other.sendInterval_; faceLiveness_ = other.faceLiveness_; minFaceSize_ = other.minFaceSize_; maxFaceSize_ = other.maxFaceSize_; addSize_ = other.addSize_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Facerec Clone() { return new Facerec(this); } /// Field number for the "is_enabled" field. public const int IsEnabledFieldNumber = 1; private bool isEnabled_; /// /// Флаг включения Face Recognition /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool IsEnabled { get { return isEnabled_; } set { isEnabled_ = value; } } /// Field number for the "main_address" field. public const int MainAddressFieldNumber = 2; private string mainAddress_ = ""; /// /// Адрес /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MainAddress { get { return mainAddress_; } set { mainAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "alt_address" field. public const int AltAddressFieldNumber = 3; private string altAddress_ = ""; /// /// Альтернативный адрес /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string AltAddress { get { return altAddress_; } set { altAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "request" field. public const int RequestFieldNumber = 4; private string request_ = ""; /// /// Путь запроса к серверу /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Request { get { return request_; } set { request_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "authorization" field. public const int AuthorizationFieldNumber = 5; private string authorization_ = ""; /// /// Токен /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Authorization { get { return authorization_; } set { authorization_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "groups" field. public const int GroupsFieldNumber = 6; private static readonly pb::FieldCodec _repeated_groups_codec = pb::FieldCodec.ForString(50); private readonly pbc::RepeatedField groups_ = new pbc::RepeatedField(); /// /// Идентификаторы групп профилей в identix /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public pbc::RepeatedField Groups { get { return groups_; } } /// Field number for the "relay_index" field. public const int RelayIndexFieldNumber = 7; private int relayIndex_; /// /// Индекс реле. /// Диапазон: 1..32767 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RelayIndex { get { return relayIndex_; } set { relayIndex_ = value; } } /// Field number for the "send_interval" field. public const int SendIntervalFieldNumber = 8; private int sendInterval_; /// /// Интервал отправки, миллисекунд /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int SendInterval { get { return sendInterval_; } set { sendInterval_ = value; } } /// Field number for the "face_liveness" field. public const int FaceLivenessFieldNumber = 9; private float faceLiveness_; /// /// Доступность FR /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public float FaceLiveness { get { return faceLiveness_; } set { faceLiveness_ = value; } } /// Field number for the "min_face_size" field. public const int MinFaceSizeFieldNumber = 10; private int minFaceSize_; /// /// Минимальный размер лица, пикселей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MinFaceSize { get { return minFaceSize_; } set { minFaceSize_ = value; } } /// Field number for the "max_face_size" field. public const int MaxFaceSizeFieldNumber = 11; private int maxFaceSize_; /// /// Максимальный размер лица, пикселей /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int MaxFaceSize { get { return maxFaceSize_; } set { maxFaceSize_ = value; } } /// Field number for the "add_size" field. public const int AddSizeFieldNumber = 12; private int addSize_; /// /// Добавление размера, процентов /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int AddSize { get { return addSize_; } set { addSize_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Facerec); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Facerec other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (IsEnabled != other.IsEnabled) return false; if (MainAddress != other.MainAddress) return false; if (AltAddress != other.AltAddress) return false; if (Request != other.Request) return false; if (Authorization != other.Authorization) return false; if(!groups_.Equals(other.groups_)) return false; if (RelayIndex != other.RelayIndex) return false; if (SendInterval != other.SendInterval) return false; if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(FaceLiveness, other.FaceLiveness)) return false; if (MinFaceSize != other.MinFaceSize) return false; if (MaxFaceSize != other.MaxFaceSize) return false; if (AddSize != other.AddSize) 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 (IsEnabled != false) hash ^= IsEnabled.GetHashCode(); if (MainAddress.Length != 0) hash ^= MainAddress.GetHashCode(); if (AltAddress.Length != 0) hash ^= AltAddress.GetHashCode(); if (Request.Length != 0) hash ^= Request.GetHashCode(); if (Authorization.Length != 0) hash ^= Authorization.GetHashCode(); hash ^= groups_.GetHashCode(); if (RelayIndex != 0) hash ^= RelayIndex.GetHashCode(); if (SendInterval != 0) hash ^= SendInterval.GetHashCode(); if (FaceLiveness != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(FaceLiveness); if (MinFaceSize != 0) hash ^= MinFaceSize.GetHashCode(); if (MaxFaceSize != 0) hash ^= MaxFaceSize.GetHashCode(); if (AddSize != 0) hash ^= AddSize.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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } if (MainAddress.Length != 0) { output.WriteRawTag(18); output.WriteString(MainAddress); } if (AltAddress.Length != 0) { output.WriteRawTag(26); output.WriteString(AltAddress); } if (Request.Length != 0) { output.WriteRawTag(34); output.WriteString(Request); } if (Authorization.Length != 0) { output.WriteRawTag(42); output.WriteString(Authorization); } groups_.WriteTo(output, _repeated_groups_codec); if (RelayIndex != 0) { output.WriteRawTag(56); output.WriteInt32(RelayIndex); } if (SendInterval != 0) { output.WriteRawTag(64); output.WriteInt32(SendInterval); } if (FaceLiveness != 0F) { output.WriteRawTag(77); output.WriteFloat(FaceLiveness); } if (MinFaceSize != 0) { output.WriteRawTag(80); output.WriteInt32(MinFaceSize); } if (MaxFaceSize != 0) { output.WriteRawTag(88); output.WriteInt32(MaxFaceSize); } if (AddSize != 0) { output.WriteRawTag(96); output.WriteInt32(AddSize); } 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 (IsEnabled != false) { output.WriteRawTag(8); output.WriteBool(IsEnabled); } if (MainAddress.Length != 0) { output.WriteRawTag(18); output.WriteString(MainAddress); } if (AltAddress.Length != 0) { output.WriteRawTag(26); output.WriteString(AltAddress); } if (Request.Length != 0) { output.WriteRawTag(34); output.WriteString(Request); } if (Authorization.Length != 0) { output.WriteRawTag(42); output.WriteString(Authorization); } groups_.WriteTo(ref output, _repeated_groups_codec); if (RelayIndex != 0) { output.WriteRawTag(56); output.WriteInt32(RelayIndex); } if (SendInterval != 0) { output.WriteRawTag(64); output.WriteInt32(SendInterval); } if (FaceLiveness != 0F) { output.WriteRawTag(77); output.WriteFloat(FaceLiveness); } if (MinFaceSize != 0) { output.WriteRawTag(80); output.WriteInt32(MinFaceSize); } if (MaxFaceSize != 0) { output.WriteRawTag(88); output.WriteInt32(MaxFaceSize); } if (AddSize != 0) { output.WriteRawTag(96); output.WriteInt32(AddSize); } 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 (IsEnabled != false) { size += 1 + 1; } if (MainAddress.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MainAddress); } if (AltAddress.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AltAddress); } if (Request.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Request); } if (Authorization.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Authorization); } size += groups_.CalculateSize(_repeated_groups_codec); if (RelayIndex != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RelayIndex); } if (SendInterval != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SendInterval); } if (FaceLiveness != 0F) { size += 1 + 4; } if (MinFaceSize != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinFaceSize); } if (MaxFaceSize != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaxFaceSize); } if (AddSize != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(AddSize); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Facerec other) { if (other == null) { return; } if (other.IsEnabled != false) { IsEnabled = other.IsEnabled; } if (other.MainAddress.Length != 0) { MainAddress = other.MainAddress; } if (other.AltAddress.Length != 0) { AltAddress = other.AltAddress; } if (other.Request.Length != 0) { Request = other.Request; } if (other.Authorization.Length != 0) { Authorization = other.Authorization; } groups_.Add(other.groups_); if (other.RelayIndex != 0) { RelayIndex = other.RelayIndex; } if (other.SendInterval != 0) { SendInterval = other.SendInterval; } if (other.FaceLiveness != 0F) { FaceLiveness = other.FaceLiveness; } if (other.MinFaceSize != 0) { MinFaceSize = other.MinFaceSize; } if (other.MaxFaceSize != 0) { MaxFaceSize = other.MaxFaceSize; } if (other.AddSize != 0) { AddSize = other.AddSize; } _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: { IsEnabled = input.ReadBool(); break; } case 18: { MainAddress = input.ReadString(); break; } case 26: { AltAddress = input.ReadString(); break; } case 34: { Request = input.ReadString(); break; } case 42: { Authorization = input.ReadString(); break; } case 50: { groups_.AddEntriesFrom(input, _repeated_groups_codec); break; } case 56: { RelayIndex = input.ReadInt32(); break; } case 64: { SendInterval = input.ReadInt32(); break; } case 77: { FaceLiveness = input.ReadFloat(); break; } case 80: { MinFaceSize = input.ReadInt32(); break; } case 88: { MaxFaceSize = input.ReadInt32(); break; } case 96: { AddSize = input.ReadInt32(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 8: { IsEnabled = input.ReadBool(); break; } case 18: { MainAddress = input.ReadString(); break; } case 26: { AltAddress = input.ReadString(); break; } case 34: { Request = input.ReadString(); break; } case 42: { Authorization = input.ReadString(); break; } case 50: { groups_.AddEntriesFrom(ref input, _repeated_groups_codec); break; } case 56: { RelayIndex = input.ReadInt32(); break; } case 64: { SendInterval = input.ReadInt32(); break; } case 77: { FaceLiveness = input.ReadFloat(); break; } case 80: { MinFaceSize = input.ReadInt32(); break; } case 88: { MaxFaceSize = input.ReadInt32(); break; } case 96: { AddSize = input.ReadInt32(); break; } } } } #endif } /// /// Запрос получения настроек Face Recognition /// public sealed partial class GetFacerecRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFacerecRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Deviceapis.Device.V1.DeviceapisDeviceFrV1Reflection.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 GetFacerecRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetFacerecRequest(GetFacerecRequest other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetFacerecRequest Clone() { return new GetFacerecRequest(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetFacerecRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetFacerecRequest 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(GetFacerecRequest 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 } /// /// Ответ на запрос получения настроек Face Recognition /// public sealed partial class GetFacerecResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new GetFacerecResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pbr::MessageDescriptor Descriptor { get { return global::Deviceapis.Device.V1.DeviceapisDeviceFrV1Reflection.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 GetFacerecResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetFacerecResponse(GetFacerecResponse other) : this() { switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public GetFacerecResponse Clone() { return new GetFacerecResponse(this); } /// Field number for the "data" field. public const int DataFieldNumber = 1; /// /// Настройки Face Recognition /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Deviceapis.Device.V1.Facerec Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Deviceapis.Device.V1.Facerec) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Data = 1, } private TypeOneofCase typeCase_ = TypeOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TypeOneofCase TypeCase { get { return typeCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearType() { typeCase_ = TypeOneofCase.None; type_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as GetFacerecResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(GetFacerecResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Data, other.Data)) return false; if (TypeCase != other.TypeCase) return false; return Equals(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override int GetHashCode() { int hash = 1; if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); hash ^= (int) typeCase_; if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return hash; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override string ToString() { return pb::JsonFormatter.ToDiagnosticString(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void WriteTo(pb::CodedOutputStream output) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE output.WriteRawMessage(this); #else if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(output); } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(10); output.WriteMessage(Data); } if (_unknownFields != null) { _unknownFields.WriteTo(ref output); } } #endif [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int CalculateSize() { int size = 0; if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(GetFacerecResponse other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Deviceapis.Device.V1.Facerec(); } Data.MergeFrom(other.Data); break; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { global::Deviceapis.Device.V1.Facerec subBuilder = new global::Deviceapis.Device.V1.Facerec(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { global::Deviceapis.Device.V1.Facerec subBuilder = new global::Deviceapis.Device.V1.Facerec(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } } } } #endif } #endregion } #endregion Designer generated code