2788 lines
102 KiB
C#
2788 lines
102 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: Protos/sitestream.proto
|
|
// </auto-generated>
|
|
#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 ScadaLink.Communication.Grpc {
|
|
|
|
/// <summary>Holder for reflection information generated from Protos/sitestream.proto</summary>
|
|
public static partial class SitestreamReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for Protos/sitestream.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static SitestreamReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"ChdQcm90b3Mvc2l0ZXN0cmVhbS5wcm90bxIKc2l0ZXN0cmVhbRofZ29vZ2xl",
|
|
"L3Byb3RvYnVmL3RpbWVzdGFtcC5wcm90bxoeZ29vZ2xlL3Byb3RvYnVmL3dy",
|
|
"YXBwZXJzLnByb3RvIk0KFUluc3RhbmNlU3RyZWFtUmVxdWVzdBIWCg5jb3Jy",
|
|
"ZWxhdGlvbl9pZBgBIAEoCRIcChRpbnN0YW5jZV91bmlxdWVfbmFtZRgCIAEo",
|
|
"CSKoAQoPU2l0ZVN0cmVhbUV2ZW50EhYKDmNvcnJlbGF0aW9uX2lkGAEgASgJ",
|
|
"Ej0KEWF0dHJpYnV0ZV9jaGFuZ2VkGAIgASgLMiAuc2l0ZXN0cmVhbS5BdHRy",
|
|
"aWJ1dGVWYWx1ZVVwZGF0ZUgAEjUKDWFsYXJtX2NoYW5nZWQYAyABKAsyHC5z",
|
|
"aXRlc3RyZWFtLkFsYXJtU3RhdGVVcGRhdGVIAEIHCgVldmVudCLIAQoUQXR0",
|
|
"cmlidXRlVmFsdWVVcGRhdGUSHAoUaW5zdGFuY2VfdW5pcXVlX25hbWUYASAB",
|
|
"KAkSFgoOYXR0cmlidXRlX3BhdGgYAiABKAkSFgoOYXR0cmlidXRlX25hbWUY",
|
|
"AyABKAkSDQoFdmFsdWUYBCABKAkSJAoHcXVhbGl0eRgFIAEoDjITLnNpdGVz",
|
|
"dHJlYW0uUXVhbGl0eRItCgl0aW1lc3RhbXAYBiABKAsyGi5nb29nbGUucHJv",
|
|
"dG9idWYuVGltZXN0YW1wIuwBChBBbGFybVN0YXRlVXBkYXRlEhwKFGluc3Rh",
|
|
"bmNlX3VuaXF1ZV9uYW1lGAEgASgJEhIKCmFsYXJtX25hbWUYAiABKAkSKQoF",
|
|
"c3RhdGUYAyABKA4yGi5zaXRlc3RyZWFtLkFsYXJtU3RhdGVFbnVtEhAKCHBy",
|
|
"aW9yaXR5GAQgASgFEi0KCXRpbWVzdGFtcBgFIAEoCzIaLmdvb2dsZS5wcm90",
|
|
"b2J1Zi5UaW1lc3RhbXASKQoFbGV2ZWwYBiABKA4yGi5zaXRlc3RyZWFtLkFs",
|
|
"YXJtTGV2ZWxFbnVtEg8KB21lc3NhZ2UYByABKAki9QMKDUF1ZGl0RXZlbnRE",
|
|
"dG8SEAoIZXZlbnRfaWQYASABKAkSMwoPb2NjdXJyZWRfYXRfdXRjGAIgASgL",
|
|
"MhouZ29vZ2xlLnByb3RvYnVmLlRpbWVzdGFtcBIPCgdjaGFubmVsGAMgASgJ",
|
|
"EgwKBGtpbmQYBCABKAkSFgoOY29ycmVsYXRpb25faWQYBSABKAkSFgoOc291",
|
|
"cmNlX3NpdGVfaWQYBiABKAkSGgoSc291cmNlX2luc3RhbmNlX2lkGAcgASgJ",
|
|
"EhUKDXNvdXJjZV9zY3JpcHQYCCABKAkSDQoFYWN0b3IYCSABKAkSDgoGdGFy",
|
|
"Z2V0GAogASgJEg4KBnN0YXR1cxgLIAEoCRIwCgtodHRwX3N0YXR1cxgMIAEo",
|
|
"CzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlEjAKC2R1cmF0aW9uX21z",
|
|
"GA0gASgLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSFQoNZXJyb3Jf",
|
|
"bWVzc2FnZRgOIAEoCRIUCgxlcnJvcl9kZXRhaWwYDyABKAkSFwoPcmVxdWVz",
|
|
"dF9zdW1tYXJ5GBAgASgJEhgKEHJlc3BvbnNlX3N1bW1hcnkYESABKAkSGQoR",
|
|
"cGF5bG9hZF90cnVuY2F0ZWQYEiABKAgSDQoFZXh0cmEYEyABKAkiPAoPQXVk",
|
|
"aXRFdmVudEJhdGNoEikKBmV2ZW50cxgBIAMoCzIZLnNpdGVzdHJlYW0uQXVk",
|
|
"aXRFdmVudER0byInCglJbmdlc3RBY2sSGgoSYWNjZXB0ZWRfZXZlbnRfaWRz",
|
|
"GAEgAygJKlwKB1F1YWxpdHkSFwoTUVVBTElUWV9VTlNQRUNJRklFRBAAEhAK",
|
|
"DFFVQUxJVFlfR09PRBABEhUKEVFVQUxJVFlfVU5DRVJUQUlOEAISDwoLUVVB",
|
|
"TElUWV9CQUQQAypdCg5BbGFybVN0YXRlRW51bRIbChdBTEFSTV9TVEFURV9V",
|
|
"TlNQRUNJRklFRBAAEhYKEkFMQVJNX1NUQVRFX05PUk1BTBABEhYKEkFMQVJN",
|
|
"X1NUQVRFX0FDVElWRRACKoUBCg5BbGFybUxldmVsRW51bRIUChBBTEFSTV9M",
|
|
"RVZFTF9OT05FEAASEwoPQUxBUk1fTEVWRUxfTE9XEAESFwoTQUxBUk1fTEVW",
|
|
"RUxfTE9XX0xPVxACEhQKEEFMQVJNX0xFVkVMX0hJR0gQAxIZChVBTEFSTV9M",
|
|
"RVZFTF9ISUdIX0hJR0gQBDKzAQoRU2l0ZVN0cmVhbVNlcnZpY2USVQoRU3Vi",
|
|
"c2NyaWJlSW5zdGFuY2USIS5zaXRlc3RyZWFtLkluc3RhbmNlU3RyZWFtUmVx",
|
|
"dWVzdBobLnNpdGVzdHJlYW0uU2l0ZVN0cmVhbUV2ZW50MAESRwoRSW5nZXN0",
|
|
"QXVkaXRFdmVudHMSGy5zaXRlc3RyZWFtLkF1ZGl0RXZlbnRCYXRjaBoVLnNp",
|
|
"dGVzdHJlYW0uSW5nZXN0QWNrQh+qAhxTY2FkYUxpbmsuQ29tbXVuaWNhdGlv",
|
|
"bi5HcnBjYgZwcm90bzM="));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
|
|
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::ScadaLink.Communication.Grpc.Quality), typeof(global::ScadaLink.Communication.Grpc.AlarmStateEnum), typeof(global::ScadaLink.Communication.Grpc.AlarmLevelEnum), }, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ScadaLink.Communication.Grpc.InstanceStreamRequest), global::ScadaLink.Communication.Grpc.InstanceStreamRequest.Parser, new[]{ "CorrelationId", "InstanceUniqueName" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ScadaLink.Communication.Grpc.SiteStreamEvent), global::ScadaLink.Communication.Grpc.SiteStreamEvent.Parser, new[]{ "CorrelationId", "AttributeChanged", "AlarmChanged" }, new[]{ "Event" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ScadaLink.Communication.Grpc.AttributeValueUpdate), global::ScadaLink.Communication.Grpc.AttributeValueUpdate.Parser, new[]{ "InstanceUniqueName", "AttributePath", "AttributeName", "Value", "Quality", "Timestamp" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ScadaLink.Communication.Grpc.AlarmStateUpdate), global::ScadaLink.Communication.Grpc.AlarmStateUpdate.Parser, new[]{ "InstanceUniqueName", "AlarmName", "State", "Priority", "Timestamp", "Level", "Message" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ScadaLink.Communication.Grpc.AuditEventDto), global::ScadaLink.Communication.Grpc.AuditEventDto.Parser, new[]{ "EventId", "OccurredAtUtc", "Channel", "Kind", "CorrelationId", "SourceSiteId", "SourceInstanceId", "SourceScript", "Actor", "Target", "Status", "HttpStatus", "DurationMs", "ErrorMessage", "ErrorDetail", "RequestSummary", "ResponseSummary", "PayloadTruncated", "Extra" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ScadaLink.Communication.Grpc.AuditEventBatch), global::ScadaLink.Communication.Grpc.AuditEventBatch.Parser, new[]{ "Events" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::ScadaLink.Communication.Grpc.IngestAck), global::ScadaLink.Communication.Grpc.IngestAck.Parser, new[]{ "AcceptedEventIds" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Enums
|
|
public enum Quality {
|
|
[pbr::OriginalName("QUALITY_UNSPECIFIED")] Unspecified = 0,
|
|
[pbr::OriginalName("QUALITY_GOOD")] Good = 1,
|
|
[pbr::OriginalName("QUALITY_UNCERTAIN")] Uncertain = 2,
|
|
[pbr::OriginalName("QUALITY_BAD")] Bad = 3,
|
|
}
|
|
|
|
public enum AlarmStateEnum {
|
|
[pbr::OriginalName("ALARM_STATE_UNSPECIFIED")] AlarmStateUnspecified = 0,
|
|
[pbr::OriginalName("ALARM_STATE_NORMAL")] AlarmStateNormal = 1,
|
|
[pbr::OriginalName("ALARM_STATE_ACTIVE")] AlarmStateActive = 2,
|
|
}
|
|
|
|
/// <summary>
|
|
/// Severity level for an active alarm. Binary trigger types (ValueMatch,
|
|
/// RangeViolation, RateOfChange) always emit ALARM_LEVEL_NONE. The HiLo
|
|
/// trigger type emits one of the directional values.
|
|
/// </summary>
|
|
public enum AlarmLevelEnum {
|
|
[pbr::OriginalName("ALARM_LEVEL_NONE")] AlarmLevelNone = 0,
|
|
[pbr::OriginalName("ALARM_LEVEL_LOW")] AlarmLevelLow = 1,
|
|
[pbr::OriginalName("ALARM_LEVEL_LOW_LOW")] AlarmLevelLowLow = 2,
|
|
[pbr::OriginalName("ALARM_LEVEL_HIGH")] AlarmLevelHigh = 3,
|
|
[pbr::OriginalName("ALARM_LEVEL_HIGH_HIGH")] AlarmLevelHighHigh = 4,
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class InstanceStreamRequest : pb::IMessage<InstanceStreamRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<InstanceStreamRequest> _parser = new pb::MessageParser<InstanceStreamRequest>(() => new InstanceStreamRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<InstanceStreamRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ScadaLink.Communication.Grpc.SitestreamReflection.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 InstanceStreamRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public InstanceStreamRequest(InstanceStreamRequest other) : this() {
|
|
correlationId_ = other.correlationId_;
|
|
instanceUniqueName_ = other.instanceUniqueName_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public InstanceStreamRequest Clone() {
|
|
return new InstanceStreamRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "correlation_id" field.</summary>
|
|
public const int CorrelationIdFieldNumber = 1;
|
|
private string correlationId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string CorrelationId {
|
|
get { return correlationId_; }
|
|
set {
|
|
correlationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "instance_unique_name" field.</summary>
|
|
public const int InstanceUniqueNameFieldNumber = 2;
|
|
private string instanceUniqueName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string InstanceUniqueName {
|
|
get { return instanceUniqueName_; }
|
|
set {
|
|
instanceUniqueName_ = 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 InstanceStreamRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(InstanceStreamRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (CorrelationId != other.CorrelationId) return false;
|
|
if (InstanceUniqueName != other.InstanceUniqueName) 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 (CorrelationId.Length != 0) hash ^= CorrelationId.GetHashCode();
|
|
if (InstanceUniqueName.Length != 0) hash ^= InstanceUniqueName.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 (CorrelationId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CorrelationId);
|
|
}
|
|
if (InstanceUniqueName.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(InstanceUniqueName);
|
|
}
|
|
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 (CorrelationId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CorrelationId);
|
|
}
|
|
if (InstanceUniqueName.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(InstanceUniqueName);
|
|
}
|
|
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 (CorrelationId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationId);
|
|
}
|
|
if (InstanceUniqueName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceUniqueName);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(InstanceStreamRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.CorrelationId.Length != 0) {
|
|
CorrelationId = other.CorrelationId;
|
|
}
|
|
if (other.InstanceUniqueName.Length != 0) {
|
|
InstanceUniqueName = other.InstanceUniqueName;
|
|
}
|
|
_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
CorrelationId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
InstanceUniqueName = 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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
CorrelationId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
InstanceUniqueName = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class SiteStreamEvent : pb::IMessage<SiteStreamEvent>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<SiteStreamEvent> _parser = new pb::MessageParser<SiteStreamEvent>(() => new SiteStreamEvent());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<SiteStreamEvent> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ScadaLink.Communication.Grpc.SitestreamReflection.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 SiteStreamEvent() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public SiteStreamEvent(SiteStreamEvent other) : this() {
|
|
correlationId_ = other.correlationId_;
|
|
switch (other.EventCase) {
|
|
case EventOneofCase.AttributeChanged:
|
|
AttributeChanged = other.AttributeChanged.Clone();
|
|
break;
|
|
case EventOneofCase.AlarmChanged:
|
|
AlarmChanged = other.AlarmChanged.Clone();
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public SiteStreamEvent Clone() {
|
|
return new SiteStreamEvent(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "correlation_id" field.</summary>
|
|
public const int CorrelationIdFieldNumber = 1;
|
|
private string correlationId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string CorrelationId {
|
|
get { return correlationId_; }
|
|
set {
|
|
correlationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "attribute_changed" field.</summary>
|
|
public const int AttributeChangedFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ScadaLink.Communication.Grpc.AttributeValueUpdate AttributeChanged {
|
|
get { return eventCase_ == EventOneofCase.AttributeChanged ? (global::ScadaLink.Communication.Grpc.AttributeValueUpdate) event_ : null; }
|
|
set {
|
|
event_ = value;
|
|
eventCase_ = value == null ? EventOneofCase.None : EventOneofCase.AttributeChanged;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "alarm_changed" field.</summary>
|
|
public const int AlarmChangedFieldNumber = 3;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ScadaLink.Communication.Grpc.AlarmStateUpdate AlarmChanged {
|
|
get { return eventCase_ == EventOneofCase.AlarmChanged ? (global::ScadaLink.Communication.Grpc.AlarmStateUpdate) event_ : null; }
|
|
set {
|
|
event_ = value;
|
|
eventCase_ = value == null ? EventOneofCase.None : EventOneofCase.AlarmChanged;
|
|
}
|
|
}
|
|
|
|
private object event_;
|
|
/// <summary>Enum of possible cases for the "event" oneof.</summary>
|
|
public enum EventOneofCase {
|
|
None = 0,
|
|
AttributeChanged = 2,
|
|
AlarmChanged = 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 SiteStreamEvent);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(SiteStreamEvent other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (CorrelationId != other.CorrelationId) return false;
|
|
if (!object.Equals(AttributeChanged, other.AttributeChanged)) return false;
|
|
if (!object.Equals(AlarmChanged, other.AlarmChanged)) 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 (CorrelationId.Length != 0) hash ^= CorrelationId.GetHashCode();
|
|
if (eventCase_ == EventOneofCase.AttributeChanged) hash ^= AttributeChanged.GetHashCode();
|
|
if (eventCase_ == EventOneofCase.AlarmChanged) hash ^= AlarmChanged.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 (CorrelationId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CorrelationId);
|
|
}
|
|
if (eventCase_ == EventOneofCase.AttributeChanged) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(AttributeChanged);
|
|
}
|
|
if (eventCase_ == EventOneofCase.AlarmChanged) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(AlarmChanged);
|
|
}
|
|
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 (CorrelationId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(CorrelationId);
|
|
}
|
|
if (eventCase_ == EventOneofCase.AttributeChanged) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(AttributeChanged);
|
|
}
|
|
if (eventCase_ == EventOneofCase.AlarmChanged) {
|
|
output.WriteRawTag(26);
|
|
output.WriteMessage(AlarmChanged);
|
|
}
|
|
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 (CorrelationId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationId);
|
|
}
|
|
if (eventCase_ == EventOneofCase.AttributeChanged) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AttributeChanged);
|
|
}
|
|
if (eventCase_ == EventOneofCase.AlarmChanged) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(AlarmChanged);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(SiteStreamEvent other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.CorrelationId.Length != 0) {
|
|
CorrelationId = other.CorrelationId;
|
|
}
|
|
switch (other.EventCase) {
|
|
case EventOneofCase.AttributeChanged:
|
|
if (AttributeChanged == null) {
|
|
AttributeChanged = new global::ScadaLink.Communication.Grpc.AttributeValueUpdate();
|
|
}
|
|
AttributeChanged.MergeFrom(other.AttributeChanged);
|
|
break;
|
|
case EventOneofCase.AlarmChanged:
|
|
if (AlarmChanged == null) {
|
|
AlarmChanged = new global::ScadaLink.Communication.Grpc.AlarmStateUpdate();
|
|
}
|
|
AlarmChanged.MergeFrom(other.AlarmChanged);
|
|
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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
CorrelationId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ScadaLink.Communication.Grpc.AttributeValueUpdate subBuilder = new global::ScadaLink.Communication.Grpc.AttributeValueUpdate();
|
|
if (eventCase_ == EventOneofCase.AttributeChanged) {
|
|
subBuilder.MergeFrom(AttributeChanged);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
AttributeChanged = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ScadaLink.Communication.Grpc.AlarmStateUpdate subBuilder = new global::ScadaLink.Communication.Grpc.AlarmStateUpdate();
|
|
if (eventCase_ == EventOneofCase.AlarmChanged) {
|
|
subBuilder.MergeFrom(AlarmChanged);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
AlarmChanged = 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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
CorrelationId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
global::ScadaLink.Communication.Grpc.AttributeValueUpdate subBuilder = new global::ScadaLink.Communication.Grpc.AttributeValueUpdate();
|
|
if (eventCase_ == EventOneofCase.AttributeChanged) {
|
|
subBuilder.MergeFrom(AttributeChanged);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
AttributeChanged = subBuilder;
|
|
break;
|
|
}
|
|
case 26: {
|
|
global::ScadaLink.Communication.Grpc.AlarmStateUpdate subBuilder = new global::ScadaLink.Communication.Grpc.AlarmStateUpdate();
|
|
if (eventCase_ == EventOneofCase.AlarmChanged) {
|
|
subBuilder.MergeFrom(AlarmChanged);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
AlarmChanged = subBuilder;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class AttributeValueUpdate : pb::IMessage<AttributeValueUpdate>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<AttributeValueUpdate> _parser = new pb::MessageParser<AttributeValueUpdate>(() => new AttributeValueUpdate());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<AttributeValueUpdate> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ScadaLink.Communication.Grpc.SitestreamReflection.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 AttributeValueUpdate() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AttributeValueUpdate(AttributeValueUpdate other) : this() {
|
|
instanceUniqueName_ = other.instanceUniqueName_;
|
|
attributePath_ = other.attributePath_;
|
|
attributeName_ = other.attributeName_;
|
|
value_ = other.value_;
|
|
quality_ = other.quality_;
|
|
timestamp_ = other.timestamp_ != null ? other.timestamp_.Clone() : null;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AttributeValueUpdate Clone() {
|
|
return new AttributeValueUpdate(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "instance_unique_name" field.</summary>
|
|
public const int InstanceUniqueNameFieldNumber = 1;
|
|
private string instanceUniqueName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string InstanceUniqueName {
|
|
get { return instanceUniqueName_; }
|
|
set {
|
|
instanceUniqueName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "attribute_path" field.</summary>
|
|
public const int AttributePathFieldNumber = 2;
|
|
private string attributePath_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string AttributePath {
|
|
get { return attributePath_; }
|
|
set {
|
|
attributePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "attribute_name" field.</summary>
|
|
public const int AttributeNameFieldNumber = 3;
|
|
private string attributeName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string AttributeName {
|
|
get { return attributeName_; }
|
|
set {
|
|
attributeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "value" field.</summary>
|
|
public const int ValueFieldNumber = 4;
|
|
private string value_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Value {
|
|
get { return value_; }
|
|
set {
|
|
value_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "quality" field.</summary>
|
|
public const int QualityFieldNumber = 5;
|
|
private global::ScadaLink.Communication.Grpc.Quality quality_ = global::ScadaLink.Communication.Grpc.Quality.Unspecified;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ScadaLink.Communication.Grpc.Quality Quality {
|
|
get { return quality_; }
|
|
set {
|
|
quality_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "timestamp" field.</summary>
|
|
public const int TimestampFieldNumber = 6;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp timestamp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp Timestamp {
|
|
get { return timestamp_; }
|
|
set {
|
|
timestamp_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as AttributeValueUpdate);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(AttributeValueUpdate other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (InstanceUniqueName != other.InstanceUniqueName) return false;
|
|
if (AttributePath != other.AttributePath) return false;
|
|
if (AttributeName != other.AttributeName) return false;
|
|
if (Value != other.Value) return false;
|
|
if (Quality != other.Quality) return false;
|
|
if (!object.Equals(Timestamp, other.Timestamp)) 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 (InstanceUniqueName.Length != 0) hash ^= InstanceUniqueName.GetHashCode();
|
|
if (AttributePath.Length != 0) hash ^= AttributePath.GetHashCode();
|
|
if (AttributeName.Length != 0) hash ^= AttributeName.GetHashCode();
|
|
if (Value.Length != 0) hash ^= Value.GetHashCode();
|
|
if (Quality != global::ScadaLink.Communication.Grpc.Quality.Unspecified) hash ^= Quality.GetHashCode();
|
|
if (timestamp_ != null) hash ^= Timestamp.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 (InstanceUniqueName.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(InstanceUniqueName);
|
|
}
|
|
if (AttributePath.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(AttributePath);
|
|
}
|
|
if (AttributeName.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(AttributeName);
|
|
}
|
|
if (Value.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Value);
|
|
}
|
|
if (Quality != global::ScadaLink.Communication.Grpc.Quality.Unspecified) {
|
|
output.WriteRawTag(40);
|
|
output.WriteEnum((int) Quality);
|
|
}
|
|
if (timestamp_ != null) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(Timestamp);
|
|
}
|
|
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 (InstanceUniqueName.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(InstanceUniqueName);
|
|
}
|
|
if (AttributePath.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(AttributePath);
|
|
}
|
|
if (AttributeName.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(AttributeName);
|
|
}
|
|
if (Value.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Value);
|
|
}
|
|
if (Quality != global::ScadaLink.Communication.Grpc.Quality.Unspecified) {
|
|
output.WriteRawTag(40);
|
|
output.WriteEnum((int) Quality);
|
|
}
|
|
if (timestamp_ != null) {
|
|
output.WriteRawTag(50);
|
|
output.WriteMessage(Timestamp);
|
|
}
|
|
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 (InstanceUniqueName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceUniqueName);
|
|
}
|
|
if (AttributePath.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(AttributePath);
|
|
}
|
|
if (AttributeName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(AttributeName);
|
|
}
|
|
if (Value.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Value);
|
|
}
|
|
if (Quality != global::ScadaLink.Communication.Grpc.Quality.Unspecified) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Quality);
|
|
}
|
|
if (timestamp_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timestamp);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(AttributeValueUpdate other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.InstanceUniqueName.Length != 0) {
|
|
InstanceUniqueName = other.InstanceUniqueName;
|
|
}
|
|
if (other.AttributePath.Length != 0) {
|
|
AttributePath = other.AttributePath;
|
|
}
|
|
if (other.AttributeName.Length != 0) {
|
|
AttributeName = other.AttributeName;
|
|
}
|
|
if (other.Value.Length != 0) {
|
|
Value = other.Value;
|
|
}
|
|
if (other.Quality != global::ScadaLink.Communication.Grpc.Quality.Unspecified) {
|
|
Quality = other.Quality;
|
|
}
|
|
if (other.timestamp_ != null) {
|
|
if (timestamp_ == null) {
|
|
Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
Timestamp.MergeFrom(other.Timestamp);
|
|
}
|
|
_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
InstanceUniqueName = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
AttributePath = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
AttributeName = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Value = input.ReadString();
|
|
break;
|
|
}
|
|
case 40: {
|
|
Quality = (global::ScadaLink.Communication.Grpc.Quality) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 50: {
|
|
if (timestamp_ == null) {
|
|
Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(Timestamp);
|
|
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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
InstanceUniqueName = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
AttributePath = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
AttributeName = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Value = input.ReadString();
|
|
break;
|
|
}
|
|
case 40: {
|
|
Quality = (global::ScadaLink.Communication.Grpc.Quality) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 50: {
|
|
if (timestamp_ == null) {
|
|
Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(Timestamp);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class AlarmStateUpdate : pb::IMessage<AlarmStateUpdate>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<AlarmStateUpdate> _parser = new pb::MessageParser<AlarmStateUpdate>(() => new AlarmStateUpdate());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<AlarmStateUpdate> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ScadaLink.Communication.Grpc.SitestreamReflection.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 AlarmStateUpdate() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AlarmStateUpdate(AlarmStateUpdate other) : this() {
|
|
instanceUniqueName_ = other.instanceUniqueName_;
|
|
alarmName_ = other.alarmName_;
|
|
state_ = other.state_;
|
|
priority_ = other.priority_;
|
|
timestamp_ = other.timestamp_ != null ? other.timestamp_.Clone() : null;
|
|
level_ = other.level_;
|
|
message_ = other.message_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AlarmStateUpdate Clone() {
|
|
return new AlarmStateUpdate(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "instance_unique_name" field.</summary>
|
|
public const int InstanceUniqueNameFieldNumber = 1;
|
|
private string instanceUniqueName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string InstanceUniqueName {
|
|
get { return instanceUniqueName_; }
|
|
set {
|
|
instanceUniqueName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "alarm_name" field.</summary>
|
|
public const int AlarmNameFieldNumber = 2;
|
|
private string alarmName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string AlarmName {
|
|
get { return alarmName_; }
|
|
set {
|
|
alarmName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "state" field.</summary>
|
|
public const int StateFieldNumber = 3;
|
|
private global::ScadaLink.Communication.Grpc.AlarmStateEnum state_ = global::ScadaLink.Communication.Grpc.AlarmStateEnum.AlarmStateUnspecified;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ScadaLink.Communication.Grpc.AlarmStateEnum State {
|
|
get { return state_; }
|
|
set {
|
|
state_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "priority" field.</summary>
|
|
public const int PriorityFieldNumber = 4;
|
|
private int priority_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Priority {
|
|
get { return priority_; }
|
|
set {
|
|
priority_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "timestamp" field.</summary>
|
|
public const int TimestampFieldNumber = 5;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp timestamp_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp Timestamp {
|
|
get { return timestamp_; }
|
|
set {
|
|
timestamp_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "level" field.</summary>
|
|
public const int LevelFieldNumber = 6;
|
|
private global::ScadaLink.Communication.Grpc.AlarmLevelEnum level_ = global::ScadaLink.Communication.Grpc.AlarmLevelEnum.AlarmLevelNone;
|
|
/// <summary>
|
|
/// ALARM_LEVEL_NONE for binary trigger types; set by HiLo.
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::ScadaLink.Communication.Grpc.AlarmLevelEnum Level {
|
|
get { return level_; }
|
|
set {
|
|
level_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "message" field.</summary>
|
|
public const int MessageFieldNumber = 7;
|
|
private string message_ = "";
|
|
/// <summary>
|
|
/// Optional per-band operator message; empty when unset.
|
|
/// </summary>
|
|
[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 AlarmStateUpdate);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(AlarmStateUpdate other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (InstanceUniqueName != other.InstanceUniqueName) return false;
|
|
if (AlarmName != other.AlarmName) return false;
|
|
if (State != other.State) return false;
|
|
if (Priority != other.Priority) return false;
|
|
if (!object.Equals(Timestamp, other.Timestamp)) return false;
|
|
if (Level != other.Level) return false;
|
|
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 (InstanceUniqueName.Length != 0) hash ^= InstanceUniqueName.GetHashCode();
|
|
if (AlarmName.Length != 0) hash ^= AlarmName.GetHashCode();
|
|
if (State != global::ScadaLink.Communication.Grpc.AlarmStateEnum.AlarmStateUnspecified) hash ^= State.GetHashCode();
|
|
if (Priority != 0) hash ^= Priority.GetHashCode();
|
|
if (timestamp_ != null) hash ^= Timestamp.GetHashCode();
|
|
if (Level != global::ScadaLink.Communication.Grpc.AlarmLevelEnum.AlarmLevelNone) hash ^= Level.GetHashCode();
|
|
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 (InstanceUniqueName.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(InstanceUniqueName);
|
|
}
|
|
if (AlarmName.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(AlarmName);
|
|
}
|
|
if (State != global::ScadaLink.Communication.Grpc.AlarmStateEnum.AlarmStateUnspecified) {
|
|
output.WriteRawTag(24);
|
|
output.WriteEnum((int) State);
|
|
}
|
|
if (Priority != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(Priority);
|
|
}
|
|
if (timestamp_ != null) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(Timestamp);
|
|
}
|
|
if (Level != global::ScadaLink.Communication.Grpc.AlarmLevelEnum.AlarmLevelNone) {
|
|
output.WriteRawTag(48);
|
|
output.WriteEnum((int) Level);
|
|
}
|
|
if (Message.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
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 (InstanceUniqueName.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(InstanceUniqueName);
|
|
}
|
|
if (AlarmName.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(AlarmName);
|
|
}
|
|
if (State != global::ScadaLink.Communication.Grpc.AlarmStateEnum.AlarmStateUnspecified) {
|
|
output.WriteRawTag(24);
|
|
output.WriteEnum((int) State);
|
|
}
|
|
if (Priority != 0) {
|
|
output.WriteRawTag(32);
|
|
output.WriteInt32(Priority);
|
|
}
|
|
if (timestamp_ != null) {
|
|
output.WriteRawTag(42);
|
|
output.WriteMessage(Timestamp);
|
|
}
|
|
if (Level != global::ScadaLink.Communication.Grpc.AlarmLevelEnum.AlarmLevelNone) {
|
|
output.WriteRawTag(48);
|
|
output.WriteEnum((int) Level);
|
|
}
|
|
if (Message.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
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 (InstanceUniqueName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(InstanceUniqueName);
|
|
}
|
|
if (AlarmName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(AlarmName);
|
|
}
|
|
if (State != global::ScadaLink.Communication.Grpc.AlarmStateEnum.AlarmStateUnspecified) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) State);
|
|
}
|
|
if (Priority != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Priority);
|
|
}
|
|
if (timestamp_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Timestamp);
|
|
}
|
|
if (Level != global::ScadaLink.Communication.Grpc.AlarmLevelEnum.AlarmLevelNone) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Level);
|
|
}
|
|
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(AlarmStateUpdate other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.InstanceUniqueName.Length != 0) {
|
|
InstanceUniqueName = other.InstanceUniqueName;
|
|
}
|
|
if (other.AlarmName.Length != 0) {
|
|
AlarmName = other.AlarmName;
|
|
}
|
|
if (other.State != global::ScadaLink.Communication.Grpc.AlarmStateEnum.AlarmStateUnspecified) {
|
|
State = other.State;
|
|
}
|
|
if (other.Priority != 0) {
|
|
Priority = other.Priority;
|
|
}
|
|
if (other.timestamp_ != null) {
|
|
if (timestamp_ == null) {
|
|
Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
Timestamp.MergeFrom(other.Timestamp);
|
|
}
|
|
if (other.Level != global::ScadaLink.Communication.Grpc.AlarmLevelEnum.AlarmLevelNone) {
|
|
Level = other.Level;
|
|
}
|
|
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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
InstanceUniqueName = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
AlarmName = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
State = (global::ScadaLink.Communication.Grpc.AlarmStateEnum) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Priority = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 42: {
|
|
if (timestamp_ == null) {
|
|
Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(Timestamp);
|
|
break;
|
|
}
|
|
case 48: {
|
|
Level = (global::ScadaLink.Communication.Grpc.AlarmLevelEnum) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 58: {
|
|
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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
InstanceUniqueName = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
AlarmName = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
State = (global::ScadaLink.Communication.Grpc.AlarmStateEnum) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 32: {
|
|
Priority = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 42: {
|
|
if (timestamp_ == null) {
|
|
Timestamp = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(Timestamp);
|
|
break;
|
|
}
|
|
case 48: {
|
|
Level = (global::ScadaLink.Communication.Grpc.AlarmLevelEnum) input.ReadEnum();
|
|
break;
|
|
}
|
|
case 58: {
|
|
Message = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Audit Log (#23) telemetry: single lifecycle event ferried from a site SQLite
|
|
/// hot-path row to central via IngestAuditEvents. Mirrors AuditEvent (Commons)
|
|
/// minus the site-local ForwardState and the central IngestedAtUtc (set on ingest).
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class AuditEventDto : pb::IMessage<AuditEventDto>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<AuditEventDto> _parser = new pb::MessageParser<AuditEventDto>(() => new AuditEventDto());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<AuditEventDto> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ScadaLink.Communication.Grpc.SitestreamReflection.Descriptor.MessageTypes[4]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AuditEventDto() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AuditEventDto(AuditEventDto other) : this() {
|
|
eventId_ = other.eventId_;
|
|
occurredAtUtc_ = other.occurredAtUtc_ != null ? other.occurredAtUtc_.Clone() : null;
|
|
channel_ = other.channel_;
|
|
kind_ = other.kind_;
|
|
correlationId_ = other.correlationId_;
|
|
sourceSiteId_ = other.sourceSiteId_;
|
|
sourceInstanceId_ = other.sourceInstanceId_;
|
|
sourceScript_ = other.sourceScript_;
|
|
actor_ = other.actor_;
|
|
target_ = other.target_;
|
|
status_ = other.status_;
|
|
HttpStatus = other.HttpStatus;
|
|
DurationMs = other.DurationMs;
|
|
errorMessage_ = other.errorMessage_;
|
|
errorDetail_ = other.errorDetail_;
|
|
requestSummary_ = other.requestSummary_;
|
|
responseSummary_ = other.responseSummary_;
|
|
payloadTruncated_ = other.payloadTruncated_;
|
|
extra_ = other.extra_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AuditEventDto Clone() {
|
|
return new AuditEventDto(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "event_id" field.</summary>
|
|
public const int EventIdFieldNumber = 1;
|
|
private string eventId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string EventId {
|
|
get { return eventId_; }
|
|
set {
|
|
eventId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "occurred_at_utc" field.</summary>
|
|
public const int OccurredAtUtcFieldNumber = 2;
|
|
private global::Google.Protobuf.WellKnownTypes.Timestamp occurredAtUtc_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::Google.Protobuf.WellKnownTypes.Timestamp OccurredAtUtc {
|
|
get { return occurredAtUtc_; }
|
|
set {
|
|
occurredAtUtc_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "channel" field.</summary>
|
|
public const int ChannelFieldNumber = 3;
|
|
private string channel_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Channel {
|
|
get { return channel_; }
|
|
set {
|
|
channel_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "kind" field.</summary>
|
|
public const int KindFieldNumber = 4;
|
|
private string kind_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Kind {
|
|
get { return kind_; }
|
|
set {
|
|
kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "correlation_id" field.</summary>
|
|
public const int CorrelationIdFieldNumber = 5;
|
|
private string correlationId_ = "";
|
|
/// <summary>
|
|
/// empty string represents null
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string CorrelationId {
|
|
get { return correlationId_; }
|
|
set {
|
|
correlationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "source_site_id" field.</summary>
|
|
public const int SourceSiteIdFieldNumber = 6;
|
|
private string sourceSiteId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string SourceSiteId {
|
|
get { return sourceSiteId_; }
|
|
set {
|
|
sourceSiteId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "source_instance_id" field.</summary>
|
|
public const int SourceInstanceIdFieldNumber = 7;
|
|
private string sourceInstanceId_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string SourceInstanceId {
|
|
get { return sourceInstanceId_; }
|
|
set {
|
|
sourceInstanceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "source_script" field.</summary>
|
|
public const int SourceScriptFieldNumber = 8;
|
|
private string sourceScript_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string SourceScript {
|
|
get { return sourceScript_; }
|
|
set {
|
|
sourceScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "actor" field.</summary>
|
|
public const int ActorFieldNumber = 9;
|
|
private string actor_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Actor {
|
|
get { return actor_; }
|
|
set {
|
|
actor_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "target" field.</summary>
|
|
public const int TargetFieldNumber = 10;
|
|
private string target_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Target {
|
|
get { return target_; }
|
|
set {
|
|
target_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "status" field.</summary>
|
|
public const int StatusFieldNumber = 11;
|
|
private string status_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Status {
|
|
get { return status_; }
|
|
set {
|
|
status_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "http_status" field.</summary>
|
|
public const int HttpStatusFieldNumber = 12;
|
|
private static readonly pb::FieldCodec<int?> _single_httpStatus_codec = pb::FieldCodec.ForStructWrapper<int>(98);
|
|
private int? httpStatus_;
|
|
/// <summary>
|
|
/// null when absent
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int? HttpStatus {
|
|
get { return httpStatus_; }
|
|
set {
|
|
httpStatus_ = value;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "duration_ms" field.</summary>
|
|
public const int DurationMsFieldNumber = 13;
|
|
private static readonly pb::FieldCodec<int?> _single_durationMs_codec = pb::FieldCodec.ForStructWrapper<int>(106);
|
|
private int? durationMs_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int? DurationMs {
|
|
get { return durationMs_; }
|
|
set {
|
|
durationMs_ = value;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>Field number for the "error_message" field.</summary>
|
|
public const int ErrorMessageFieldNumber = 14;
|
|
private string errorMessage_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string ErrorMessage {
|
|
get { return errorMessage_; }
|
|
set {
|
|
errorMessage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "error_detail" field.</summary>
|
|
public const int ErrorDetailFieldNumber = 15;
|
|
private string errorDetail_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string ErrorDetail {
|
|
get { return errorDetail_; }
|
|
set {
|
|
errorDetail_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "request_summary" field.</summary>
|
|
public const int RequestSummaryFieldNumber = 16;
|
|
private string requestSummary_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string RequestSummary {
|
|
get { return requestSummary_; }
|
|
set {
|
|
requestSummary_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "response_summary" field.</summary>
|
|
public const int ResponseSummaryFieldNumber = 17;
|
|
private string responseSummary_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string ResponseSummary {
|
|
get { return responseSummary_; }
|
|
set {
|
|
responseSummary_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "payload_truncated" field.</summary>
|
|
public const int PayloadTruncatedFieldNumber = 18;
|
|
private bool payloadTruncated_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool PayloadTruncated {
|
|
get { return payloadTruncated_; }
|
|
set {
|
|
payloadTruncated_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "extra" field.</summary>
|
|
public const int ExtraFieldNumber = 19;
|
|
private string extra_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Extra {
|
|
get { return extra_; }
|
|
set {
|
|
extra_ = 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 AuditEventDto);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(AuditEventDto other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (EventId != other.EventId) return false;
|
|
if (!object.Equals(OccurredAtUtc, other.OccurredAtUtc)) return false;
|
|
if (Channel != other.Channel) return false;
|
|
if (Kind != other.Kind) return false;
|
|
if (CorrelationId != other.CorrelationId) return false;
|
|
if (SourceSiteId != other.SourceSiteId) return false;
|
|
if (SourceInstanceId != other.SourceInstanceId) return false;
|
|
if (SourceScript != other.SourceScript) return false;
|
|
if (Actor != other.Actor) return false;
|
|
if (Target != other.Target) return false;
|
|
if (Status != other.Status) return false;
|
|
if (HttpStatus != other.HttpStatus) return false;
|
|
if (DurationMs != other.DurationMs) return false;
|
|
if (ErrorMessage != other.ErrorMessage) return false;
|
|
if (ErrorDetail != other.ErrorDetail) return false;
|
|
if (RequestSummary != other.RequestSummary) return false;
|
|
if (ResponseSummary != other.ResponseSummary) return false;
|
|
if (PayloadTruncated != other.PayloadTruncated) return false;
|
|
if (Extra != other.Extra) 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 (EventId.Length != 0) hash ^= EventId.GetHashCode();
|
|
if (occurredAtUtc_ != null) hash ^= OccurredAtUtc.GetHashCode();
|
|
if (Channel.Length != 0) hash ^= Channel.GetHashCode();
|
|
if (Kind.Length != 0) hash ^= Kind.GetHashCode();
|
|
if (CorrelationId.Length != 0) hash ^= CorrelationId.GetHashCode();
|
|
if (SourceSiteId.Length != 0) hash ^= SourceSiteId.GetHashCode();
|
|
if (SourceInstanceId.Length != 0) hash ^= SourceInstanceId.GetHashCode();
|
|
if (SourceScript.Length != 0) hash ^= SourceScript.GetHashCode();
|
|
if (Actor.Length != 0) hash ^= Actor.GetHashCode();
|
|
if (Target.Length != 0) hash ^= Target.GetHashCode();
|
|
if (Status.Length != 0) hash ^= Status.GetHashCode();
|
|
if (httpStatus_ != null) hash ^= HttpStatus.GetHashCode();
|
|
if (durationMs_ != null) hash ^= DurationMs.GetHashCode();
|
|
if (ErrorMessage.Length != 0) hash ^= ErrorMessage.GetHashCode();
|
|
if (ErrorDetail.Length != 0) hash ^= ErrorDetail.GetHashCode();
|
|
if (RequestSummary.Length != 0) hash ^= RequestSummary.GetHashCode();
|
|
if (ResponseSummary.Length != 0) hash ^= ResponseSummary.GetHashCode();
|
|
if (PayloadTruncated != false) hash ^= PayloadTruncated.GetHashCode();
|
|
if (Extra.Length != 0) hash ^= Extra.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 (EventId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(EventId);
|
|
}
|
|
if (occurredAtUtc_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(OccurredAtUtc);
|
|
}
|
|
if (Channel.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Channel);
|
|
}
|
|
if (Kind.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Kind);
|
|
}
|
|
if (CorrelationId.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(CorrelationId);
|
|
}
|
|
if (SourceSiteId.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(SourceSiteId);
|
|
}
|
|
if (SourceInstanceId.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(SourceInstanceId);
|
|
}
|
|
if (SourceScript.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(SourceScript);
|
|
}
|
|
if (Actor.Length != 0) {
|
|
output.WriteRawTag(74);
|
|
output.WriteString(Actor);
|
|
}
|
|
if (Target.Length != 0) {
|
|
output.WriteRawTag(82);
|
|
output.WriteString(Target);
|
|
}
|
|
if (Status.Length != 0) {
|
|
output.WriteRawTag(90);
|
|
output.WriteString(Status);
|
|
}
|
|
if (httpStatus_ != null) {
|
|
_single_httpStatus_codec.WriteTagAndValue(output, HttpStatus);
|
|
}
|
|
if (durationMs_ != null) {
|
|
_single_durationMs_codec.WriteTagAndValue(output, DurationMs);
|
|
}
|
|
if (ErrorMessage.Length != 0) {
|
|
output.WriteRawTag(114);
|
|
output.WriteString(ErrorMessage);
|
|
}
|
|
if (ErrorDetail.Length != 0) {
|
|
output.WriteRawTag(122);
|
|
output.WriteString(ErrorDetail);
|
|
}
|
|
if (RequestSummary.Length != 0) {
|
|
output.WriteRawTag(130, 1);
|
|
output.WriteString(RequestSummary);
|
|
}
|
|
if (ResponseSummary.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(ResponseSummary);
|
|
}
|
|
if (PayloadTruncated != false) {
|
|
output.WriteRawTag(144, 1);
|
|
output.WriteBool(PayloadTruncated);
|
|
}
|
|
if (Extra.Length != 0) {
|
|
output.WriteRawTag(154, 1);
|
|
output.WriteString(Extra);
|
|
}
|
|
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 (EventId.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(EventId);
|
|
}
|
|
if (occurredAtUtc_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(OccurredAtUtc);
|
|
}
|
|
if (Channel.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Channel);
|
|
}
|
|
if (Kind.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Kind);
|
|
}
|
|
if (CorrelationId.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(CorrelationId);
|
|
}
|
|
if (SourceSiteId.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(SourceSiteId);
|
|
}
|
|
if (SourceInstanceId.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(SourceInstanceId);
|
|
}
|
|
if (SourceScript.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(SourceScript);
|
|
}
|
|
if (Actor.Length != 0) {
|
|
output.WriteRawTag(74);
|
|
output.WriteString(Actor);
|
|
}
|
|
if (Target.Length != 0) {
|
|
output.WriteRawTag(82);
|
|
output.WriteString(Target);
|
|
}
|
|
if (Status.Length != 0) {
|
|
output.WriteRawTag(90);
|
|
output.WriteString(Status);
|
|
}
|
|
if (httpStatus_ != null) {
|
|
_single_httpStatus_codec.WriteTagAndValue(ref output, HttpStatus);
|
|
}
|
|
if (durationMs_ != null) {
|
|
_single_durationMs_codec.WriteTagAndValue(ref output, DurationMs);
|
|
}
|
|
if (ErrorMessage.Length != 0) {
|
|
output.WriteRawTag(114);
|
|
output.WriteString(ErrorMessage);
|
|
}
|
|
if (ErrorDetail.Length != 0) {
|
|
output.WriteRawTag(122);
|
|
output.WriteString(ErrorDetail);
|
|
}
|
|
if (RequestSummary.Length != 0) {
|
|
output.WriteRawTag(130, 1);
|
|
output.WriteString(RequestSummary);
|
|
}
|
|
if (ResponseSummary.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(ResponseSummary);
|
|
}
|
|
if (PayloadTruncated != false) {
|
|
output.WriteRawTag(144, 1);
|
|
output.WriteBool(PayloadTruncated);
|
|
}
|
|
if (Extra.Length != 0) {
|
|
output.WriteRawTag(154, 1);
|
|
output.WriteString(Extra);
|
|
}
|
|
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 (EventId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(EventId);
|
|
}
|
|
if (occurredAtUtc_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(OccurredAtUtc);
|
|
}
|
|
if (Channel.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Channel);
|
|
}
|
|
if (Kind.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Kind);
|
|
}
|
|
if (CorrelationId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(CorrelationId);
|
|
}
|
|
if (SourceSiteId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceSiteId);
|
|
}
|
|
if (SourceInstanceId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceInstanceId);
|
|
}
|
|
if (SourceScript.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceScript);
|
|
}
|
|
if (Actor.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Actor);
|
|
}
|
|
if (Target.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Target);
|
|
}
|
|
if (Status.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Status);
|
|
}
|
|
if (httpStatus_ != null) {
|
|
size += _single_httpStatus_codec.CalculateSizeWithTag(HttpStatus);
|
|
}
|
|
if (durationMs_ != null) {
|
|
size += _single_durationMs_codec.CalculateSizeWithTag(DurationMs);
|
|
}
|
|
if (ErrorMessage.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorMessage);
|
|
}
|
|
if (ErrorDetail.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ErrorDetail);
|
|
}
|
|
if (RequestSummary.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(RequestSummary);
|
|
}
|
|
if (ResponseSummary.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(ResponseSummary);
|
|
}
|
|
if (PayloadTruncated != false) {
|
|
size += 2 + 1;
|
|
}
|
|
if (Extra.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(Extra);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(AuditEventDto other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.EventId.Length != 0) {
|
|
EventId = other.EventId;
|
|
}
|
|
if (other.occurredAtUtc_ != null) {
|
|
if (occurredAtUtc_ == null) {
|
|
OccurredAtUtc = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
OccurredAtUtc.MergeFrom(other.OccurredAtUtc);
|
|
}
|
|
if (other.Channel.Length != 0) {
|
|
Channel = other.Channel;
|
|
}
|
|
if (other.Kind.Length != 0) {
|
|
Kind = other.Kind;
|
|
}
|
|
if (other.CorrelationId.Length != 0) {
|
|
CorrelationId = other.CorrelationId;
|
|
}
|
|
if (other.SourceSiteId.Length != 0) {
|
|
SourceSiteId = other.SourceSiteId;
|
|
}
|
|
if (other.SourceInstanceId.Length != 0) {
|
|
SourceInstanceId = other.SourceInstanceId;
|
|
}
|
|
if (other.SourceScript.Length != 0) {
|
|
SourceScript = other.SourceScript;
|
|
}
|
|
if (other.Actor.Length != 0) {
|
|
Actor = other.Actor;
|
|
}
|
|
if (other.Target.Length != 0) {
|
|
Target = other.Target;
|
|
}
|
|
if (other.Status.Length != 0) {
|
|
Status = other.Status;
|
|
}
|
|
if (other.httpStatus_ != null) {
|
|
if (httpStatus_ == null || other.HttpStatus != 0) {
|
|
HttpStatus = other.HttpStatus;
|
|
}
|
|
}
|
|
if (other.durationMs_ != null) {
|
|
if (durationMs_ == null || other.DurationMs != 0) {
|
|
DurationMs = other.DurationMs;
|
|
}
|
|
}
|
|
if (other.ErrorMessage.Length != 0) {
|
|
ErrorMessage = other.ErrorMessage;
|
|
}
|
|
if (other.ErrorDetail.Length != 0) {
|
|
ErrorDetail = other.ErrorDetail;
|
|
}
|
|
if (other.RequestSummary.Length != 0) {
|
|
RequestSummary = other.RequestSummary;
|
|
}
|
|
if (other.ResponseSummary.Length != 0) {
|
|
ResponseSummary = other.ResponseSummary;
|
|
}
|
|
if (other.PayloadTruncated != false) {
|
|
PayloadTruncated = other.PayloadTruncated;
|
|
}
|
|
if (other.Extra.Length != 0) {
|
|
Extra = other.Extra;
|
|
}
|
|
_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
EventId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (occurredAtUtc_ == null) {
|
|
OccurredAtUtc = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(OccurredAtUtc);
|
|
break;
|
|
}
|
|
case 26: {
|
|
Channel = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Kind = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
CorrelationId = input.ReadString();
|
|
break;
|
|
}
|
|
case 50: {
|
|
SourceSiteId = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
SourceInstanceId = input.ReadString();
|
|
break;
|
|
}
|
|
case 66: {
|
|
SourceScript = input.ReadString();
|
|
break;
|
|
}
|
|
case 74: {
|
|
Actor = input.ReadString();
|
|
break;
|
|
}
|
|
case 82: {
|
|
Target = input.ReadString();
|
|
break;
|
|
}
|
|
case 90: {
|
|
Status = input.ReadString();
|
|
break;
|
|
}
|
|
case 98: {
|
|
int? value = _single_httpStatus_codec.Read(input);
|
|
if (httpStatus_ == null || value != 0) {
|
|
HttpStatus = value;
|
|
}
|
|
break;
|
|
}
|
|
case 106: {
|
|
int? value = _single_durationMs_codec.Read(input);
|
|
if (durationMs_ == null || value != 0) {
|
|
DurationMs = value;
|
|
}
|
|
break;
|
|
}
|
|
case 114: {
|
|
ErrorMessage = input.ReadString();
|
|
break;
|
|
}
|
|
case 122: {
|
|
ErrorDetail = input.ReadString();
|
|
break;
|
|
}
|
|
case 130: {
|
|
RequestSummary = input.ReadString();
|
|
break;
|
|
}
|
|
case 138: {
|
|
ResponseSummary = input.ReadString();
|
|
break;
|
|
}
|
|
case 144: {
|
|
PayloadTruncated = input.ReadBool();
|
|
break;
|
|
}
|
|
case 154: {
|
|
Extra = 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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
EventId = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (occurredAtUtc_ == null) {
|
|
OccurredAtUtc = new global::Google.Protobuf.WellKnownTypes.Timestamp();
|
|
}
|
|
input.ReadMessage(OccurredAtUtc);
|
|
break;
|
|
}
|
|
case 26: {
|
|
Channel = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Kind = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
CorrelationId = input.ReadString();
|
|
break;
|
|
}
|
|
case 50: {
|
|
SourceSiteId = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
SourceInstanceId = input.ReadString();
|
|
break;
|
|
}
|
|
case 66: {
|
|
SourceScript = input.ReadString();
|
|
break;
|
|
}
|
|
case 74: {
|
|
Actor = input.ReadString();
|
|
break;
|
|
}
|
|
case 82: {
|
|
Target = input.ReadString();
|
|
break;
|
|
}
|
|
case 90: {
|
|
Status = input.ReadString();
|
|
break;
|
|
}
|
|
case 98: {
|
|
int? value = _single_httpStatus_codec.Read(ref input);
|
|
if (httpStatus_ == null || value != 0) {
|
|
HttpStatus = value;
|
|
}
|
|
break;
|
|
}
|
|
case 106: {
|
|
int? value = _single_durationMs_codec.Read(ref input);
|
|
if (durationMs_ == null || value != 0) {
|
|
DurationMs = value;
|
|
}
|
|
break;
|
|
}
|
|
case 114: {
|
|
ErrorMessage = input.ReadString();
|
|
break;
|
|
}
|
|
case 122: {
|
|
ErrorDetail = input.ReadString();
|
|
break;
|
|
}
|
|
case 130: {
|
|
RequestSummary = input.ReadString();
|
|
break;
|
|
}
|
|
case 138: {
|
|
ResponseSummary = input.ReadString();
|
|
break;
|
|
}
|
|
case 144: {
|
|
PayloadTruncated = input.ReadBool();
|
|
break;
|
|
}
|
|
case 154: {
|
|
Extra = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class AuditEventBatch : pb::IMessage<AuditEventBatch>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<AuditEventBatch> _parser = new pb::MessageParser<AuditEventBatch>(() => new AuditEventBatch());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<AuditEventBatch> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ScadaLink.Communication.Grpc.SitestreamReflection.Descriptor.MessageTypes[5]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AuditEventBatch() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AuditEventBatch(AuditEventBatch other) : this() {
|
|
events_ = other.events_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public AuditEventBatch Clone() {
|
|
return new AuditEventBatch(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "events" field.</summary>
|
|
public const int EventsFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<global::ScadaLink.Communication.Grpc.AuditEventDto> _repeated_events_codec
|
|
= pb::FieldCodec.ForMessage(10, global::ScadaLink.Communication.Grpc.AuditEventDto.Parser);
|
|
private readonly pbc::RepeatedField<global::ScadaLink.Communication.Grpc.AuditEventDto> events_ = new pbc::RepeatedField<global::ScadaLink.Communication.Grpc.AuditEventDto>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::ScadaLink.Communication.Grpc.AuditEventDto> Events {
|
|
get { return events_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as AuditEventBatch);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(AuditEventBatch other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!events_.Equals(other.events_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= events_.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
|
|
events_.WriteTo(output, _repeated_events_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
events_.WriteTo(ref output, _repeated_events_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += events_.CalculateSize(_repeated_events_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(AuditEventBatch other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
events_.Add(other.events_);
|
|
_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
events_.AddEntriesFrom(input, _repeated_events_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
events_.AddEntriesFrom(ref input, _repeated_events_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class IngestAck : pb::IMessage<IngestAck>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<IngestAck> _parser = new pb::MessageParser<IngestAck>(() => new IngestAck());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<IngestAck> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::ScadaLink.Communication.Grpc.SitestreamReflection.Descriptor.MessageTypes[6]; }
|
|
}
|
|
|
|
[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 IngestAck() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public IngestAck(IngestAck other) : this() {
|
|
acceptedEventIds_ = other.acceptedEventIds_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public IngestAck Clone() {
|
|
return new IngestAck(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "accepted_event_ids" field.</summary>
|
|
public const int AcceptedEventIdsFieldNumber = 1;
|
|
private static readonly pb::FieldCodec<string> _repeated_acceptedEventIds_codec
|
|
= pb::FieldCodec.ForString(10);
|
|
private readonly pbc::RepeatedField<string> acceptedEventIds_ = new pbc::RepeatedField<string>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<string> AcceptedEventIds {
|
|
get { return acceptedEventIds_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as IngestAck);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(IngestAck other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if(!acceptedEventIds_.Equals(other.acceptedEventIds_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
hash ^= acceptedEventIds_.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
|
|
acceptedEventIds_.WriteTo(output, _repeated_acceptedEventIds_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
acceptedEventIds_.WriteTo(ref output, _repeated_acceptedEventIds_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
size += acceptedEventIds_.CalculateSize(_repeated_acceptedEventIds_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(IngestAck other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
acceptedEventIds_.Add(other.acceptedEventIds_);
|
|
_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) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
acceptedEventIds_.AddEntriesFrom(input, _repeated_acceptedEventIds_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
if ((tag & 7) == 4) {
|
|
// Abort on any end group tag.
|
|
return;
|
|
}
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
acceptedEventIds_.AddEntriesFrom(ref input, _repeated_acceptedEventIds_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|