// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: keyapis/telemetry_control/v1/keyapis_telemetry_control_stream_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.TelemetryControl.V1 { /// Holder for reflection information generated from keyapis/telemetry_control/v1/keyapis_telemetry_control_stream_v1.proto public static partial class KeyapisTelemetryControlStreamV1Reflection { #region Descriptor /// File descriptor for keyapis/telemetry_control/v1/keyapis_telemetry_control_stream_v1.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static KeyapisTelemetryControlStreamV1Reflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CkZrZXlhcGlzL3RlbGVtZXRyeV9jb250cm9sL3YxL2tleWFwaXNfdGVsZW1l", "dHJ5X2NvbnRyb2xfc3RyZWFtX3YxLnByb3RvEhxrZXlhcGlzLnRlbGVtZXRy", "eV9jb250cm9sLnYxGh9nb29nbGUvYXBpL2ZpZWxkX2JlaGF2aW9yLnByb3Rv", "GkhrZXlhcGlzL3RlbGVtZXRyeV9jb250cm9sL3YxL2tleWFwaXNfdGVsZW1l", "dHJ5X2NvbnRyb2xfYnVpbGRpbmdfdjEucHJvdG8aRmtleWFwaXMvdGVsZW1l", "dHJ5X2NvbnRyb2wvdjEva2V5YXBpc190ZWxlbWV0cnlfY29udHJvbF9kZXZp", "Y2VfdjEucHJvdG8i2QMKHlBvc3RSZXNvdXJjZUZ1bGxEdXBsZXhSZXNwb25z", "ZRIXCgpyZXF1ZXN0X2lkGAEgASgJQgPgQQIScQoVdXBzZXJ0X3Jlc291cmNl", "X2V2ZW50GAIgASgLMlAua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5Q", "b3N0UmVzb3VyY2VGdWxsRHVwbGV4UmVzcG9uc2UuVXBzZXJ0UmVzb3VyY2VF", "dmVudEgAEnEKFXJlbW92ZV9yZXNvdXJjZV9ldmVudBgDIAEoCzJQLmtleWFw", "aXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuUG9zdFJlc291cmNlRnVsbER1cGxl", "eFJlc3BvbnNlLlJlbW92ZVJlc291cmNlRXZlbnRIABpZChNSZW1vdmVSZXNv", "dXJjZUV2ZW50EkIKC3Jlc291cmNlX2lkGAEgASgLMigua2V5YXBpcy50ZWxl", "bWV0cnlfY29udHJvbC52MS5SZXNvdXJjZUlkQgPgQQIaVAoTVXBzZXJ0UmVz", "b3VyY2VFdmVudBI9CghyZXNvdXJjZRgBIAEoCzImLmtleWFwaXMudGVsZW1l", "dHJ5X2NvbnRyb2wudjEuUmVzb3VyY2VCA+BBAkIHCgVldmVudCLPAQoKUmVz", "b3VyY2VJZBIVCgtidWlsZGluZ19pZBgBIAEoBUgAEhMKCWRldmljZV9pZBgC", "IAEoBUgAEhkKD21ldHJpY19wb2ludF9pZBgDIAEoCUgAEhYKDGluZGljYXRv", "cl9pZBgEIAEoBUgAEloKFmluZGljYXRvcl9tZXRyaWNfcG9pbnQYBSABKAsy", "OC5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkRldmljZUluZGljYXRv", "ck1ldHJpY1BvaW50SABCBgoEdHlwZSLqAgoIUmVzb3VyY2USOgoIYnVpbGRp", "bmcYASABKAsyJi5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkJ1aWxk", "aW5nSAASNgoGZGV2aWNlGAIgASgLMiQua2V5YXBpcy50ZWxlbWV0cnlfY29u", "dHJvbC52MS5EZXZpY2VIABJICgxtZXRyaWNfcG9pbnQYAyABKAsyMC5rZXlh", "cGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLkRldmljZS5NZXRyaWNQb2ludEgA", "EjwKCWluZGljYXRvchgEIAEoCzInLmtleWFwaXMudGVsZW1ldHJ5X2NvbnRy", "b2wudjEuSW5kaWNhdG9ySAASWgoWaW5kaWNhdG9yX21ldHJpY19wb2ludBgF", "IAEoCzI4LmtleWFwaXMudGVsZW1ldHJ5X2NvbnRyb2wudjEuRGV2aWNlSW5k", "aWNhdG9yTWV0cmljUG9pbnRIAEIGCgR0eXBlIp4FCh1Qb3N0UmVzb3VyY2VG", "dWxsRHVwbGV4UmVxdWVzdBISCgpyZXF1ZXN0X2lkGAEgASgJEnAKFXJlc291", "cmNlX2FzeW5jX3N0YXR1cxgCIAEoCzJPLmtleWFwaXMudGVsZW1ldHJ5X2Nv", "bnRyb2wudjEuUG9zdFJlc291cmNlRnVsbER1cGxleFJlcXVlc3QuUmVzb3Vy", "Y2VBc3luY1N0YXR1c0gAGu4DChNSZXNvdXJjZUFzeW5jU3RhdHVzEkIKC3Jl", "c291cmNlX2lkGAEgASgLMigua2V5YXBpcy50ZWxlbWV0cnlfY29udHJvbC52", "MS5SZXNvdXJjZUlkQgPgQQISZwoEZGF0YRgCIAEoCzJXLmtleWFwaXMudGVs", "ZW1ldHJ5X2NvbnRyb2wudjEuUG9zdFJlc291cmNlRnVsbER1cGxleFJlcXVl", "c3QuUmVzb3VyY2VBc3luY1N0YXR1cy5TdWNjZXNzSAASZgoFZXJyb3IYAyAB", "KAsyVS5rZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlBvc3RSZXNvdXJj", "ZUZ1bGxEdXBsZXhSZXF1ZXN0LlJlc291cmNlQXN5bmNTdGF0dXMuRXJyb3JI", "ABoJCgdTdWNjZXNzGq4BCgVFcnJvchJ1Cgd1bmtub3duGAEgASgLMmIua2V5", "YXBpcy50ZWxlbWV0cnlfY29udHJvbC52MS5Qb3N0UmVzb3VyY2VGdWxsRHVw", "bGV4UmVxdWVzdC5SZXNvdXJjZUFzeW5jU3RhdHVzLkVycm9yLlVua25vd25F", "cnJvckgAGiQKDFVua25vd25FcnJvchIUCgdtZXNzYWdlGAEgASgJQgPgQQJC", "CAoGcmVhc29uQgYKBHR5cGVCBgoEdGFzazKrAQoNU3RyZWFtU2VydmljZRKZ", "AQoWUG9zdFJlc291cmNlRnVsbER1cGxleBI7LmtleWFwaXMudGVsZW1ldHJ5", "X2NvbnRyb2wudjEuUG9zdFJlc291cmNlRnVsbER1cGxleFJlcXVlc3QaPC5r", "ZXlhcGlzLnRlbGVtZXRyeV9jb250cm9sLnYxLlBvc3RSZXNvdXJjZUZ1bGxE", "dXBsZXhSZXNwb25zZSIAKAEwAULiAQofcnUua2V5YXBpcy50ZWxlbWV0cnlf", "Y29udHJvbC52MUIeS2V5YXBpc1RlbGVtZXRyeUNvbnRyb2xWMVByb3RvSANQ", "AFodL2tleWFwaXNfdGVsZW1ldHJ5X2NvbnRyb2xfdjHYAQH4AQGiAhlLRVlB", "UElTVEVMRU1FVFJZQ09OVFJPTFYxqgIbS2V5YXBpcy5UZWxlbWV0cnlDb250", "cm9sLlYxygIbS2V5YXBpc1xUZWxlbWV0cnlDb250cm9sXFYx6gIdS2V5YXBp", "czo6VGVsZW1ldHJ5Q29udHJvbDo6VjFiBnByb3RvMw==")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Keyapis.TelemetryControl.V1.KeyapisTelemetryControlBuildingV1Reflection.Descriptor, global::Keyapis.TelemetryControl.V1.KeyapisTelemetryControlDeviceV1Reflection.Descriptor, }, new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Parser, new[]{ "RequestId", "UpsertResourceEvent", "RemoveResourceEvent" }, new[]{ "Event" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent.Parser, new[]{ "ResourceId" }, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent.Parser, new[]{ "Resource" }, null, null, null, null)}), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.ResourceId), global::Keyapis.TelemetryControl.V1.ResourceId.Parser, new[]{ "BuildingId", "DeviceId", "MetricPointId", "IndicatorId", "IndicatorMetricPoint" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.Resource), global::Keyapis.TelemetryControl.V1.Resource.Parser, new[]{ "Building", "Device", "MetricPoint", "Indicator", "IndicatorMetricPoint" }, new[]{ "Type" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Parser, new[]{ "RequestId", "ResourceAsyncStatus" }, new[]{ "Task" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Parser, new[]{ "ResourceId", "Data", "Error" }, new[]{ "Type" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success.Parser, null, null, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Parser, new[]{ "Unknown" }, new[]{ "Reason" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError), global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError.Parser, new[]{ "Message" }, null, null, null, null)})})}) })); } #endregion } #region Messages /// /// Событие создания/изменения ресурса /// public sealed partial class PostResourceFullDuplexResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostResourceFullDuplexResponse()); 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.TelemetryControl.V1.KeyapisTelemetryControlStreamV1Reflection.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 PostResourceFullDuplexResponse() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostResourceFullDuplexResponse(PostResourceFullDuplexResponse other) : this() { requestId_ = other.requestId_; switch (other.EventCase) { case EventOneofCase.UpsertResourceEvent: UpsertResourceEvent = other.UpsertResourceEvent.Clone(); break; case EventOneofCase.RemoveResourceEvent: RemoveResourceEvent = other.RemoveResourceEvent.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostResourceFullDuplexResponse Clone() { return new PostResourceFullDuplexResponse(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "upsert_resource_event" field. public const int UpsertResourceEventFieldNumber = 2; /// /// Событие создания/обновления ресурса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent UpsertResourceEvent { get { return eventCase_ == EventOneofCase.UpsertResourceEvent ? (global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent) event_ : null; } set { event_ = value; eventCase_ = value == null ? EventOneofCase.None : EventOneofCase.UpsertResourceEvent; } } /// Field number for the "remove_resource_event" field. public const int RemoveResourceEventFieldNumber = 3; /// /// Событие удаления ресурса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent RemoveResourceEvent { get { return eventCase_ == EventOneofCase.RemoveResourceEvent ? (global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent) event_ : null; } set { event_ = value; eventCase_ = value == null ? EventOneofCase.None : EventOneofCase.RemoveResourceEvent; } } private object event_; /// Enum of possible cases for the "event" oneof. public enum EventOneofCase { None = 0, UpsertResourceEvent = 2, RemoveResourceEvent = 3, } private EventOneofCase eventCase_ = EventOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public EventOneofCase EventCase { get { return eventCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearEvent() { eventCase_ = EventOneofCase.None; event_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostResourceFullDuplexResponse); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostResourceFullDuplexResponse other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(UpsertResourceEvent, other.UpsertResourceEvent)) return false; if (!object.Equals(RemoveResourceEvent, other.RemoveResourceEvent)) return false; if (EventCase != other.EventCase) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (eventCase_ == EventOneofCase.UpsertResourceEvent) hash ^= UpsertResourceEvent.GetHashCode(); if (eventCase_ == EventOneofCase.RemoveResourceEvent) hash ^= RemoveResourceEvent.GetHashCode(); hash ^= (int) eventCase_; 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (eventCase_ == EventOneofCase.UpsertResourceEvent) { output.WriteRawTag(18); output.WriteMessage(UpsertResourceEvent); } if (eventCase_ == EventOneofCase.RemoveResourceEvent) { output.WriteRawTag(26); output.WriteMessage(RemoveResourceEvent); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (eventCase_ == EventOneofCase.UpsertResourceEvent) { output.WriteRawTag(18); output.WriteMessage(UpsertResourceEvent); } if (eventCase_ == EventOneofCase.RemoveResourceEvent) { output.WriteRawTag(26); output.WriteMessage(RemoveResourceEvent); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (eventCase_ == EventOneofCase.UpsertResourceEvent) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpsertResourceEvent); } if (eventCase_ == EventOneofCase.RemoveResourceEvent) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(RemoveResourceEvent); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostResourceFullDuplexResponse other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } switch (other.EventCase) { case EventOneofCase.UpsertResourceEvent: if (UpsertResourceEvent == null) { UpsertResourceEvent = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent(); } UpsertResourceEvent.MergeFrom(other.UpsertResourceEvent); break; case EventOneofCase.RemoveResourceEvent: if (RemoveResourceEvent == null) { RemoveResourceEvent = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent(); } RemoveResourceEvent.MergeFrom(other.RemoveResourceEvent); 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent(); if (eventCase_ == EventOneofCase.UpsertResourceEvent) { subBuilder.MergeFrom(UpsertResourceEvent); } input.ReadMessage(subBuilder); UpsertResourceEvent = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent(); if (eventCase_ == EventOneofCase.RemoveResourceEvent) { subBuilder.MergeFrom(RemoveResourceEvent); } input.ReadMessage(subBuilder); RemoveResourceEvent = 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.UpsertResourceEvent(); if (eventCase_ == EventOneofCase.UpsertResourceEvent) { subBuilder.MergeFrom(UpsertResourceEvent); } input.ReadMessage(subBuilder); UpsertResourceEvent = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexResponse.Types.RemoveResourceEvent(); if (eventCase_ == EventOneofCase.RemoveResourceEvent) { subBuilder.MergeFrom(RemoveResourceEvent); } input.ReadMessage(subBuilder); RemoveResourceEvent = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostResourceFullDuplexResponse message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Событие удаления ресурса /// public sealed partial class RemoveResourceEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new RemoveResourceEvent()); 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.TelemetryControl.V1.PostResourceFullDuplexResponse.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 RemoveResourceEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoveResourceEvent(RemoveResourceEvent other) : this() { resourceId_ = other.resourceId_ != null ? other.resourceId_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public RemoveResourceEvent Clone() { return new RemoveResourceEvent(this); } /// Field number for the "resource_id" field. public const int ResourceIdFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.ResourceId resourceId_; /// /// Идентификатор ресурса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.ResourceId ResourceId { get { return resourceId_; } set { resourceId_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as RemoveResourceEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(RemoveResourceEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(ResourceId, other.ResourceId)) 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 (resourceId_ != null) hash ^= ResourceId.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 (resourceId_ != null) { output.WriteRawTag(10); output.WriteMessage(ResourceId); } 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 (resourceId_ != null) { output.WriteRawTag(10); output.WriteMessage(ResourceId); } 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 (resourceId_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceId); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(RemoveResourceEvent other) { if (other == null) { return; } if (other.resourceId_ != null) { if (resourceId_ == null) { ResourceId = new global::Keyapis.TelemetryControl.V1.ResourceId(); } ResourceId.MergeFrom(other.ResourceId); } _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 (resourceId_ == null) { ResourceId = new global::Keyapis.TelemetryControl.V1.ResourceId(); } input.ReadMessage(ResourceId); 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 (resourceId_ == null) { ResourceId = new global::Keyapis.TelemetryControl.V1.ResourceId(); } input.ReadMessage(ResourceId); break; } } } } #endif } /// /// Событие создания/обновления ресурса /// public sealed partial class UpsertResourceEvent : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UpsertResourceEvent()); 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.TelemetryControl.V1.PostResourceFullDuplexResponse.Descriptor.NestedTypes[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 UpsertResourceEvent() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpsertResourceEvent(UpsertResourceEvent other) : this() { resource_ = other.resource_ != null ? other.resource_.Clone() : null; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UpsertResourceEvent Clone() { return new UpsertResourceEvent(this); } /// Field number for the "resource" field. public const int ResourceFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.Resource resource_; /// /// Ресурс /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Resource Resource { get { return resource_; } set { resource_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UpsertResourceEvent); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UpsertResourceEvent other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Resource, other.Resource)) 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 (resource_ != null) hash ^= Resource.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 (resource_ != null) { output.WriteRawTag(10); output.WriteMessage(Resource); } 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 (resource_ != null) { output.WriteRawTag(10); output.WriteMessage(Resource); } 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 (resource_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Resource); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UpsertResourceEvent other) { if (other == null) { return; } if (other.resource_ != null) { if (resource_ == null) { Resource = new global::Keyapis.TelemetryControl.V1.Resource(); } Resource.MergeFrom(other.Resource); } _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 (resource_ == null) { Resource = new global::Keyapis.TelemetryControl.V1.Resource(); } input.ReadMessage(Resource); 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 (resource_ == null) { Resource = new global::Keyapis.TelemetryControl.V1.Resource(); } input.ReadMessage(Resource); break; } } } } #endif } } #endregion } /// /// Идентификатор ресурса /// public sealed partial class ResourceId : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceId()); 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.TelemetryControl.V1.KeyapisTelemetryControlStreamV1Reflection.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 ResourceId() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResourceId(ResourceId other) : this() { switch (other.TypeCase) { case TypeOneofCase.BuildingId: BuildingId = other.BuildingId; break; case TypeOneofCase.DeviceId: DeviceId = other.DeviceId; break; case TypeOneofCase.MetricPointId: MetricPointId = other.MetricPointId; break; case TypeOneofCase.IndicatorId: IndicatorId = other.IndicatorId; break; case TypeOneofCase.IndicatorMetricPoint: IndicatorMetricPoint = other.IndicatorMetricPoint.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResourceId Clone() { return new ResourceId(this); } /// Field number for the "building_id" field. public const int BuildingIdFieldNumber = 1; /// /// Идентификатор объекта строительства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int BuildingId { get { return HasBuildingId ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.BuildingId; } } /// Gets whether the "building_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasBuildingId { get { return typeCase_ == TypeOneofCase.BuildingId; } } /// Clears the value of the oneof if it's currently set to "building_id" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearBuildingId() { if (HasBuildingId) { ClearType(); } } /// Field number for the "device_id" field. public const int DeviceIdFieldNumber = 2; /// /// Идентификатор ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int DeviceId { get { return HasDeviceId ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.DeviceId; } } /// Gets whether the "device_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasDeviceId { get { return typeCase_ == TypeOneofCase.DeviceId; } } /// Clears the value of the oneof if it's currently set to "device_id" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearDeviceId() { if (HasDeviceId) { ClearType(); } } /// Field number for the "metric_point_id" field. public const int MetricPointIdFieldNumber = 3; /// /// Идентификатор ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string MetricPointId { get { return HasMetricPointId ? (string) type_ : ""; } set { type_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); typeCase_ = TypeOneofCase.MetricPointId; } } /// Gets whether the "metric_point_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasMetricPointId { get { return typeCase_ == TypeOneofCase.MetricPointId; } } /// Clears the value of the oneof if it's currently set to "metric_point_id" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearMetricPointId() { if (HasMetricPointId) { ClearType(); } } /// Field number for the "indicator_id" field. public const int IndicatorIdFieldNumber = 4; /// /// Идентификатор индикатора /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int IndicatorId { get { return HasIndicatorId ? (int) type_ : 0; } set { type_ = value; typeCase_ = TypeOneofCase.IndicatorId; } } /// Gets whether the "indicator_id" field is set [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool HasIndicatorId { get { return typeCase_ == TypeOneofCase.IndicatorId; } } /// Clears the value of the oneof if it's currently set to "indicator_id" [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearIndicatorId() { if (HasIndicatorId) { ClearType(); } } /// Field number for the "indicator_metric_point" field. public const int IndicatorMetricPointFieldNumber = 5; /// /// Связка индикатора и ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint IndicatorMetricPoint { get { return typeCase_ == TypeOneofCase.IndicatorMetricPoint ? (global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.IndicatorMetricPoint; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, BuildingId = 1, DeviceId = 2, MetricPointId = 3, IndicatorId = 4, IndicatorMetricPoint = 5, } 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 ResourceId); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ResourceId other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (BuildingId != other.BuildingId) return false; if (DeviceId != other.DeviceId) return false; if (MetricPointId != other.MetricPointId) return false; if (IndicatorId != other.IndicatorId) return false; if (!object.Equals(IndicatorMetricPoint, other.IndicatorMetricPoint)) 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 (HasBuildingId) hash ^= BuildingId.GetHashCode(); if (HasDeviceId) hash ^= DeviceId.GetHashCode(); if (HasMetricPointId) hash ^= MetricPointId.GetHashCode(); if (HasIndicatorId) hash ^= IndicatorId.GetHashCode(); if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) hash ^= IndicatorMetricPoint.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 (HasBuildingId) { output.WriteRawTag(8); output.WriteInt32(BuildingId); } if (HasDeviceId) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (HasMetricPointId) { output.WriteRawTag(26); output.WriteString(MetricPointId); } if (HasIndicatorId) { output.WriteRawTag(32); output.WriteInt32(IndicatorId); } if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { output.WriteRawTag(42); output.WriteMessage(IndicatorMetricPoint); } 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 (HasBuildingId) { output.WriteRawTag(8); output.WriteInt32(BuildingId); } if (HasDeviceId) { output.WriteRawTag(16); output.WriteInt32(DeviceId); } if (HasMetricPointId) { output.WriteRawTag(26); output.WriteString(MetricPointId); } if (HasIndicatorId) { output.WriteRawTag(32); output.WriteInt32(IndicatorId); } if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { output.WriteRawTag(42); output.WriteMessage(IndicatorMetricPoint); } 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 (HasBuildingId) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(BuildingId); } if (HasDeviceId) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(DeviceId); } if (HasMetricPointId) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MetricPointId); } if (HasIndicatorId) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(IndicatorId); } if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(IndicatorMetricPoint); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(ResourceId other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.BuildingId: BuildingId = other.BuildingId; break; case TypeOneofCase.DeviceId: DeviceId = other.DeviceId; break; case TypeOneofCase.MetricPointId: MetricPointId = other.MetricPointId; break; case TypeOneofCase.IndicatorId: IndicatorId = other.IndicatorId; break; case TypeOneofCase.IndicatorMetricPoint: if (IndicatorMetricPoint == null) { IndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } IndicatorMetricPoint.MergeFrom(other.IndicatorMetricPoint); 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: { BuildingId = input.ReadInt32(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { MetricPointId = input.ReadString(); break; } case 32: { IndicatorId = input.ReadInt32(); break; } case 42: { global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { subBuilder.MergeFrom(IndicatorMetricPoint); } input.ReadMessage(subBuilder); IndicatorMetricPoint = 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 8: { BuildingId = input.ReadInt32(); break; } case 16: { DeviceId = input.ReadInt32(); break; } case 26: { MetricPointId = input.ReadString(); break; } case 32: { IndicatorId = input.ReadInt32(); break; } case 42: { global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { subBuilder.MergeFrom(IndicatorMetricPoint); } input.ReadMessage(subBuilder); IndicatorMetricPoint = subBuilder; break; } } } } #endif } /// /// Ресурс /// public sealed partial class Resource : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Resource()); 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.TelemetryControl.V1.KeyapisTelemetryControlStreamV1Reflection.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 Resource() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Resource(Resource other) : this() { switch (other.TypeCase) { case TypeOneofCase.Building: Building = other.Building.Clone(); break; case TypeOneofCase.Device: Device = other.Device.Clone(); break; case TypeOneofCase.MetricPoint: MetricPoint = other.MetricPoint.Clone(); break; case TypeOneofCase.Indicator: Indicator = other.Indicator.Clone(); break; case TypeOneofCase.IndicatorMetricPoint: IndicatorMetricPoint = other.IndicatorMetricPoint.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Resource Clone() { return new Resource(this); } /// Field number for the "building" field. public const int BuildingFieldNumber = 1; /// /// Объект строительства /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Building Building { get { return typeCase_ == TypeOneofCase.Building ? (global::Keyapis.TelemetryControl.V1.Building) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Building; } } /// Field number for the "device" field. public const int DeviceFieldNumber = 2; /// /// Идентификатор ПУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device Device { get { return typeCase_ == TypeOneofCase.Device ? (global::Keyapis.TelemetryControl.V1.Device) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Device; } } /// Field number for the "metric_point" field. public const int MetricPointFieldNumber = 3; /// /// Точка учета /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint MetricPoint { get { return typeCase_ == TypeOneofCase.MetricPoint ? (global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.MetricPoint; } } /// Field number for the "indicator" field. public const int IndicatorFieldNumber = 4; /// /// Индикатор /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.Indicator Indicator { get { return typeCase_ == TypeOneofCase.Indicator ? (global::Keyapis.TelemetryControl.V1.Indicator) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Indicator; } } /// Field number for the "indicator_metric_point" field. public const int IndicatorMetricPointFieldNumber = 5; /// /// Связка индикатора и ТУ /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint IndicatorMetricPoint { get { return typeCase_ == TypeOneofCase.IndicatorMetricPoint ? (global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.IndicatorMetricPoint; } } private object type_; /// Enum of possible cases for the "type" oneof. public enum TypeOneofCase { None = 0, Building = 1, Device = 2, MetricPoint = 3, Indicator = 4, IndicatorMetricPoint = 5, } 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 Resource); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Resource other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(Building, other.Building)) return false; if (!object.Equals(Device, other.Device)) return false; if (!object.Equals(MetricPoint, other.MetricPoint)) return false; if (!object.Equals(Indicator, other.Indicator)) return false; if (!object.Equals(IndicatorMetricPoint, other.IndicatorMetricPoint)) 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.Building) hash ^= Building.GetHashCode(); if (typeCase_ == TypeOneofCase.Device) hash ^= Device.GetHashCode(); if (typeCase_ == TypeOneofCase.MetricPoint) hash ^= MetricPoint.GetHashCode(); if (typeCase_ == TypeOneofCase.Indicator) hash ^= Indicator.GetHashCode(); if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) hash ^= IndicatorMetricPoint.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.Building) { output.WriteRawTag(10); output.WriteMessage(Building); } if (typeCase_ == TypeOneofCase.Device) { output.WriteRawTag(18); output.WriteMessage(Device); } if (typeCase_ == TypeOneofCase.MetricPoint) { output.WriteRawTag(26); output.WriteMessage(MetricPoint); } if (typeCase_ == TypeOneofCase.Indicator) { output.WriteRawTag(34); output.WriteMessage(Indicator); } if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { output.WriteRawTag(42); output.WriteMessage(IndicatorMetricPoint); } 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.Building) { output.WriteRawTag(10); output.WriteMessage(Building); } if (typeCase_ == TypeOneofCase.Device) { output.WriteRawTag(18); output.WriteMessage(Device); } if (typeCase_ == TypeOneofCase.MetricPoint) { output.WriteRawTag(26); output.WriteMessage(MetricPoint); } if (typeCase_ == TypeOneofCase.Indicator) { output.WriteRawTag(34); output.WriteMessage(Indicator); } if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { output.WriteRawTag(42); output.WriteMessage(IndicatorMetricPoint); } 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.Building) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Building); } if (typeCase_ == TypeOneofCase.Device) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Device); } if (typeCase_ == TypeOneofCase.MetricPoint) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(MetricPoint); } if (typeCase_ == TypeOneofCase.Indicator) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Indicator); } if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(IndicatorMetricPoint); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(Resource other) { if (other == null) { return; } switch (other.TypeCase) { case TypeOneofCase.Building: if (Building == null) { Building = new global::Keyapis.TelemetryControl.V1.Building(); } Building.MergeFrom(other.Building); break; case TypeOneofCase.Device: if (Device == null) { Device = new global::Keyapis.TelemetryControl.V1.Device(); } Device.MergeFrom(other.Device); break; case TypeOneofCase.MetricPoint: if (MetricPoint == null) { MetricPoint = new global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint(); } MetricPoint.MergeFrom(other.MetricPoint); break; case TypeOneofCase.Indicator: if (Indicator == null) { Indicator = new global::Keyapis.TelemetryControl.V1.Indicator(); } Indicator.MergeFrom(other.Indicator); break; case TypeOneofCase.IndicatorMetricPoint: if (IndicatorMetricPoint == null) { IndicatorMetricPoint = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); } IndicatorMetricPoint.MergeFrom(other.IndicatorMetricPoint); 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::Keyapis.TelemetryControl.V1.Building subBuilder = new global::Keyapis.TelemetryControl.V1.Building(); if (typeCase_ == TypeOneofCase.Building) { subBuilder.MergeFrom(Building); } input.ReadMessage(subBuilder); Building = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Device) { subBuilder.MergeFrom(Device); } input.ReadMessage(subBuilder); Device = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint(); if (typeCase_ == TypeOneofCase.MetricPoint) { subBuilder.MergeFrom(MetricPoint); } input.ReadMessage(subBuilder); MetricPoint = subBuilder; break; } case 34: { global::Keyapis.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); if (typeCase_ == TypeOneofCase.Indicator) { subBuilder.MergeFrom(Indicator); } input.ReadMessage(subBuilder); Indicator = subBuilder; break; } case 42: { global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { subBuilder.MergeFrom(IndicatorMetricPoint); } input.ReadMessage(subBuilder); IndicatorMetricPoint = 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::Keyapis.TelemetryControl.V1.Building subBuilder = new global::Keyapis.TelemetryControl.V1.Building(); if (typeCase_ == TypeOneofCase.Building) { subBuilder.MergeFrom(Building); } input.ReadMessage(subBuilder); Building = subBuilder; break; } case 18: { global::Keyapis.TelemetryControl.V1.Device subBuilder = new global::Keyapis.TelemetryControl.V1.Device(); if (typeCase_ == TypeOneofCase.Device) { subBuilder.MergeFrom(Device); } input.ReadMessage(subBuilder); Device = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.Device.Types.MetricPoint(); if (typeCase_ == TypeOneofCase.MetricPoint) { subBuilder.MergeFrom(MetricPoint); } input.ReadMessage(subBuilder); MetricPoint = subBuilder; break; } case 34: { global::Keyapis.TelemetryControl.V1.Indicator subBuilder = new global::Keyapis.TelemetryControl.V1.Indicator(); if (typeCase_ == TypeOneofCase.Indicator) { subBuilder.MergeFrom(Indicator); } input.ReadMessage(subBuilder); Indicator = subBuilder; break; } case 42: { global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint subBuilder = new global::Keyapis.TelemetryControl.V1.DeviceIndicatorMetricPoint(); if (typeCase_ == TypeOneofCase.IndicatorMetricPoint) { subBuilder.MergeFrom(IndicatorMetricPoint); } input.ReadMessage(subBuilder); IndicatorMetricPoint = subBuilder; break; } } } } #endif } /// /// Запрос создания задачи с клиента на сервере /// public sealed partial class PostResourceFullDuplexRequest : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PostResourceFullDuplexRequest()); 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.TelemetryControl.V1.KeyapisTelemetryControlStreamV1Reflection.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 PostResourceFullDuplexRequest() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostResourceFullDuplexRequest(PostResourceFullDuplexRequest other) : this() { requestId_ = other.requestId_; switch (other.TaskCase) { case TaskOneofCase.ResourceAsyncStatus: ResourceAsyncStatus = other.ResourceAsyncStatus.Clone(); break; } _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PostResourceFullDuplexRequest Clone() { return new PostResourceFullDuplexRequest(this); } /// Field number for the "request_id" field. public const int RequestIdFieldNumber = 1; private string requestId_ = ""; /// /// Идентификатор запроса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RequestId { get { return requestId_; } set { requestId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "resource_async_status" field. public const int ResourceAsyncStatusFieldNumber = 2; /// /// Результат обработки ресурса на клиенте /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus ResourceAsyncStatus { get { return taskCase_ == TaskOneofCase.ResourceAsyncStatus ? (global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus) task_ : null; } set { task_ = value; taskCase_ = value == null ? TaskOneofCase.None : TaskOneofCase.ResourceAsyncStatus; } } private object task_; /// Enum of possible cases for the "task" oneof. public enum TaskOneofCase { None = 0, ResourceAsyncStatus = 2, } private TaskOneofCase taskCase_ = TaskOneofCase.None; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public TaskOneofCase TaskCase { get { return taskCase_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void ClearTask() { taskCase_ = TaskOneofCase.None; task_ = null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as PostResourceFullDuplexRequest); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(PostResourceFullDuplexRequest other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (RequestId != other.RequestId) return false; if (!object.Equals(ResourceAsyncStatus, other.ResourceAsyncStatus)) return false; if (TaskCase != other.TaskCase) 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 (RequestId.Length != 0) hash ^= RequestId.GetHashCode(); if (taskCase_ == TaskOneofCase.ResourceAsyncStatus) hash ^= ResourceAsyncStatus.GetHashCode(); hash ^= (int) taskCase_; 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (taskCase_ == TaskOneofCase.ResourceAsyncStatus) { output.WriteRawTag(18); output.WriteMessage(ResourceAsyncStatus); } 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 (RequestId.Length != 0) { output.WriteRawTag(10); output.WriteString(RequestId); } if (taskCase_ == TaskOneofCase.ResourceAsyncStatus) { output.WriteRawTag(18); output.WriteMessage(ResourceAsyncStatus); } 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 (RequestId.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(RequestId); } if (taskCase_ == TaskOneofCase.ResourceAsyncStatus) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceAsyncStatus); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(PostResourceFullDuplexRequest other) { if (other == null) { return; } if (other.RequestId.Length != 0) { RequestId = other.RequestId; } switch (other.TaskCase) { case TaskOneofCase.ResourceAsyncStatus: if (ResourceAsyncStatus == null) { ResourceAsyncStatus = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus(); } ResourceAsyncStatus.MergeFrom(other.ResourceAsyncStatus); 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus(); if (taskCase_ == TaskOneofCase.ResourceAsyncStatus) { subBuilder.MergeFrom(ResourceAsyncStatus); } input.ReadMessage(subBuilder); ResourceAsyncStatus = 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: { RequestId = input.ReadString(); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus(); if (taskCase_ == TaskOneofCase.ResourceAsyncStatus) { subBuilder.MergeFrom(ResourceAsyncStatus); } input.ReadMessage(subBuilder); ResourceAsyncStatus = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the PostResourceFullDuplexRequest message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Результат обработки ресурса на клиенте /// public sealed partial class ResourceAsyncStatus : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new ResourceAsyncStatus()); 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.TelemetryControl.V1.PostResourceFullDuplexRequest.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 ResourceAsyncStatus() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public ResourceAsyncStatus(ResourceAsyncStatus other) : this() { resourceId_ = other.resourceId_ != null ? other.resourceId_.Clone() : null; switch (other.TypeCase) { case TypeOneofCase.Data: Data = other.Data.Clone(); break; 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 ResourceAsyncStatus Clone() { return new ResourceAsyncStatus(this); } /// Field number for the "resource_id" field. public const int ResourceIdFieldNumber = 1; private global::Keyapis.TelemetryControl.V1.ResourceId resourceId_; /// /// Идентификатор ресурса /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.ResourceId ResourceId { get { return resourceId_; } set { resourceId_ = value; } } /// Field number for the "data" field. public const int DataFieldNumber = 2; /// /// Успех /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success Data { get { return typeCase_ == TypeOneofCase.Data ? (global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success) type_ : null; } set { type_ = value; typeCase_ = value == null ? TypeOneofCase.None : TypeOneofCase.Data; } } /// Field number for the "error" field. public const int ErrorFieldNumber = 3; /// /// Ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error Error { get { return typeCase_ == TypeOneofCase.Error ? (global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.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, Data = 2, Error = 3, } 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 ResourceAsyncStatus); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(ResourceAsyncStatus other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (!object.Equals(ResourceId, other.ResourceId)) return false; if (!object.Equals(Data, other.Data)) return false; 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 (resourceId_ != null) hash ^= ResourceId.GetHashCode(); if (typeCase_ == TypeOneofCase.Data) hash ^= Data.GetHashCode(); 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 (resourceId_ != null) { output.WriteRawTag(10); output.WriteMessage(ResourceId); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(26); 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 (resourceId_ != null) { output.WriteRawTag(10); output.WriteMessage(ResourceId); } if (typeCase_ == TypeOneofCase.Data) { output.WriteRawTag(18); output.WriteMessage(Data); } if (typeCase_ == TypeOneofCase.Error) { output.WriteRawTag(26); 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 (resourceId_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResourceId); } if (typeCase_ == TypeOneofCase.Data) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Data); } 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(ResourceAsyncStatus other) { if (other == null) { return; } if (other.resourceId_ != null) { if (resourceId_ == null) { ResourceId = new global::Keyapis.TelemetryControl.V1.ResourceId(); } ResourceId.MergeFrom(other.ResourceId); } switch (other.TypeCase) { case TypeOneofCase.Data: if (Data == null) { Data = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success(); } Data.MergeFrom(other.Data); break; case TypeOneofCase.Error: if (Error == null) { Error = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.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: { if (resourceId_ == null) { ResourceId = new global::Keyapis.TelemetryControl.V1.ResourceId(); } input.ReadMessage(ResourceId); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.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: { if (resourceId_ == null) { ResourceId = new global::Keyapis.TelemetryControl.V1.ResourceId(); } input.ReadMessage(ResourceId); break; } case 18: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Success(); if (typeCase_ == TypeOneofCase.Data) { subBuilder.MergeFrom(Data); } input.ReadMessage(subBuilder); Data = subBuilder; break; } case 26: { global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.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 ResourceAsyncStatus message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Команда принята /// public sealed partial class Success : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new Success()); 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.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.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 Success() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Success(Success other) : this() { _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public Success Clone() { return new Success(this); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as Success); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(Success 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(Success other) { if (other == null) { return; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(pb::CodedInputStream input) { #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE input.ReadRawMessage(this); #else uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; } } } #endif } /// /// Ошибки обработки ресурса на клиенте /// public sealed partial class 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::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Descriptor.NestedTypes[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 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.Unknown: Unknown = other.Unknown.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 "unknown" field. public const int UnknownFieldNumber = 1; /// /// Неизвестная ошибка /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError Unknown { get { return reasonCase_ == ReasonOneofCase.Unknown ? (global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError) reason_ : null; } set { reason_ = value; reasonCase_ = value == null ? ReasonOneofCase.None : ReasonOneofCase.Unknown; } } private object reason_; /// Enum of possible cases for the "reason" oneof. public enum ReasonOneofCase { None = 0, Unknown = 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(Unknown, other.Unknown)) 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.Unknown) hash ^= Unknown.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.Unknown) { output.WriteRawTag(10); output.WriteMessage(Unknown); } 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.Unknown) { output.WriteRawTag(10); output.WriteMessage(Unknown); } 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.Unknown) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(Unknown); } 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.Unknown: if (Unknown == null) { Unknown = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError(); } Unknown.MergeFrom(other.Unknown); 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::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError(); if (reasonCase_ == ReasonOneofCase.Unknown) { subBuilder.MergeFrom(Unknown); } input.ReadMessage(subBuilder); Unknown = 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::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError subBuilder = new global::Keyapis.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.Types.UnknownError(); if (reasonCase_ == ReasonOneofCase.Unknown) { subBuilder.MergeFrom(Unknown); } input.ReadMessage(subBuilder); Unknown = subBuilder; break; } } } } #endif #region Nested types /// Container for nested types declared in the Error message type. [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static partial class Types { /// /// Неизвестная ошибка на стороне клиента /// public sealed partial class UnknownError : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new UnknownError()); 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.TelemetryControl.V1.PostResourceFullDuplexRequest.Types.ResourceAsyncStatus.Types.Error.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 UnknownError() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnknownError(UnknownError other) : this() { message_ = other.message_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public UnknownError Clone() { return new UnknownError(this); } /// Field number for the "message" field. public const int MessageFieldNumber = 1; private string message_ = ""; /// /// Произвольный текст ошибки на стороне клиента. /// Отправляется в случае если в спецификации нет подходящей ошибки. /// После анализа таких ошибок в спецификацию добавляется специальный тип под эту ошибку /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public override bool Equals(object other) { return Equals(other as UnknownError); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Equals(UnknownError other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Message != other.Message) 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 (Message.Length != 0) hash ^= Message.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 (Message.Length != 0) { output.WriteRawTag(10); output.WriteString(Message); } 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 (Message.Length != 0) { output.WriteRawTag(10); output.WriteString(Message); } 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 (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (_unknownFields != null) { size += _unknownFields.CalculateSize(); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public void MergeFrom(UnknownError other) { if (other == null) { return; } if (other.Message.Length != 0) { Message = other.Message; } _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: { Message = input.ReadString(); break; } } } #endif } #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); break; case 10: { Message = input.ReadString(); break; } } } } #endif } } #endregion } } #endregion } } #endregion } #endregion } #endregion Designer generated code