@lansweeper/diagrams-grpc 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.ignorecompat +0 -0
- package/CHANGELOG.md +8 -0
- package/Lansweeper.Diagrams.GRPC.csproj +28 -0
- package/bin/Debug/net6.0/Lansweeper.Diagrams.GRPC.deps.json +149 -0
- package/bin/Debug/net6.0/Lansweeper.Diagrams.GRPC.dll +0 -0
- package/bin/Debug/net6.0/Lansweeper.Diagrams.GRPC.pdb +0 -0
- package/buf.yaml +19 -0
- package/gen-proto/diagrams_grpc_pb.d.ts +41 -0
- package/gen-proto/diagrams_grpc_pb.js +44 -0
- package/gen-proto/diagrams_pb.d.ts +122 -0
- package/gen-proto/diagrams_pb.js +916 -0
- package/gen-proto/image.json +1 -0
- package/gen-proto/index.d.ts +2 -0
- package/gen-proto/index.js +3 -0
- package/obj/Debug/net6.0/16bfc45f637a20e2_diagrams.protodep +2 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.AssemblyInfo.cs +25 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.AssemblyInfoInputs.cache +1 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.GeneratedMSBuildEditorConfig.editorconfig +10 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.assets.cache +0 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.csproj.AssemblyReference.cache +0 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.csproj.CoreCompileInputs.cache +1 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.csproj.FileListAbsolute.txt +12 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.dll +0 -0
- package/obj/Debug/net6.0/Lansweeper.Diagrams.GRPC.pdb +0 -0
- package/obj/Debug/net6.0/proto/Diagrams.cs +1083 -0
- package/obj/Debug/net6.0/proto/DiagramsGrpc.cs +155 -0
- package/obj/Debug/net6.0/ref/Lansweeper.Diagrams.GRPC.dll +0 -0
- package/obj/Debug/net6.0/refint/Lansweeper.Diagrams.GRPC.dll +0 -0
- package/obj/Lansweeper.Diagrams.GRPC.csproj.nuget.dgspec.json +86 -0
- package/obj/Lansweeper.Diagrams.GRPC.csproj.nuget.g.props +21 -0
- package/obj/Lansweeper.Diagrams.GRPC.csproj.nuget.g.targets +6 -0
- package/obj/project.assets.json +385 -0
- package/obj/project.nuget.cache +16 -0
- package/package.json +16 -0
- package/proto/diagrams.proto +37 -0
|
@@ -0,0 +1,1083 @@
|
|
|
1
|
+
// <auto-generated>
|
|
2
|
+
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
// source: proto/diagrams.proto
|
|
4
|
+
// </auto-generated>
|
|
5
|
+
#pragma warning disable 1591, 0612, 3021
|
|
6
|
+
#region Designer generated code
|
|
7
|
+
|
|
8
|
+
using pb = global::Google.Protobuf;
|
|
9
|
+
using pbc = global::Google.Protobuf.Collections;
|
|
10
|
+
using pbr = global::Google.Protobuf.Reflection;
|
|
11
|
+
using scg = global::System.Collections.Generic;
|
|
12
|
+
namespace Lansweeper.Diagrams.GRPC {
|
|
13
|
+
|
|
14
|
+
/// <summary>Holder for reflection information generated from proto/diagrams.proto</summary>
|
|
15
|
+
public static partial class DiagramsReflection {
|
|
16
|
+
|
|
17
|
+
#region Descriptor
|
|
18
|
+
/// <summary>File descriptor for proto/diagrams.proto</summary>
|
|
19
|
+
public static pbr::FileDescriptor Descriptor {
|
|
20
|
+
get { return descriptor; }
|
|
21
|
+
}
|
|
22
|
+
private static pbr::FileDescriptor descriptor;
|
|
23
|
+
|
|
24
|
+
static DiagramsReflection() {
|
|
25
|
+
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
26
|
+
string.Concat(
|
|
27
|
+
"ChRwcm90by9kaWFncmFtcy5wcm90bxIWbGFuc3dlZXBlci5kaWFncmFtcy52",
|
|
28
|
+
"MSKHAQoORGlhZ3JhbVJlcXVlc3QSDgoGc2l0ZUlkGAEgASgJEhYKDmluc3Rh",
|
|
29
|
+
"bGxhdGlvbklkGAIgASgJEj0KC2RpYWdyYW1UeXBlGAMgASgOMiMubGFuc3dl",
|
|
30
|
+
"ZXBlci5kaWFncmFtcy52MS5EaWFncmFtVHlwZUgAiAEBQg4KDF9kaWFncmFt",
|
|
31
|
+
"VHlwZSKmAgoHRGlhZ3JhbRIKCgJpZBgBIAEoCRI4CgtkaWFncmFtVHlwZRgC",
|
|
32
|
+
"IAEoDjIjLmxhbnN3ZWVwZXIuZGlhZ3JhbXMudjEuRGlhZ3JhbVR5cGUSNQoG",
|
|
33
|
+
"YXNzZXRzGAMgAygLMiUubGFuc3dlZXBlci5kaWFncmFtcy52MS5EaWFncmFt",
|
|
34
|
+
"LkFzc2V0EkMKDVJlbGF0aW9uc2hpcHMYBCADKAsyLC5sYW5zd2VlcGVyLmRp",
|
|
35
|
+
"YWdyYW1zLnYxLkRpYWdyYW0uUmVsYXRpb25zaGlwGiEKBUFzc2V0EgoKAmlk",
|
|
36
|
+
"GAEgASgFEgwKBHRleHQYAiABKAkaNgoMUmVsYXRpb25zaGlwEhMKC2Zyb21B",
|
|
37
|
+
"c3NldElkGAEgASgFEhEKCXRvQXNzZXRJZBgCIAEoBSo8CgtEaWFncmFtVHlw",
|
|
38
|
+
"ZRIUChBORVRXT1JLX1RPUE9MT0dZEAASFwoTVklSVFVBTF9FTlZJUk9OTUVO",
|
|
39
|
+
"VBABMngKD0RpYWdyYW1zU2VydmljZRJlChhHZXREaWFncmFtQnlJbnN0YWxs",
|
|
40
|
+
"YXRpb24SJi5sYW5zd2VlcGVyLmRpYWdyYW1zLnYxLkRpYWdyYW1SZXF1ZXN0",
|
|
41
|
+
"Gh8ubGFuc3dlZXBlci5kaWFncmFtcy52MS5EaWFncmFtIgBCG6oCGExhbnN3",
|
|
42
|
+
"ZWVwZXIuRGlhZ3JhbXMuR1JQQ2IGcHJvdG8z"));
|
|
43
|
+
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
44
|
+
new pbr::FileDescriptor[] { },
|
|
45
|
+
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Lansweeper.Diagrams.GRPC.DiagramType), }, null, new pbr::GeneratedClrTypeInfo[] {
|
|
46
|
+
new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Diagrams.GRPC.DiagramRequest), global::Lansweeper.Diagrams.GRPC.DiagramRequest.Parser, new[]{ "SiteId", "InstallationId", "DiagramType" }, new[]{ "DiagramType" }, null, null, null),
|
|
47
|
+
new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Diagrams.GRPC.Diagram), global::Lansweeper.Diagrams.GRPC.Diagram.Parser, new[]{ "Id", "DiagramType", "Assets", "Relationships" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Diagrams.GRPC.Diagram.Types.Asset), global::Lansweeper.Diagrams.GRPC.Diagram.Types.Asset.Parser, new[]{ "Id", "Text" }, null, null, null, null),
|
|
48
|
+
new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Diagrams.GRPC.Diagram.Types.Relationship), global::Lansweeper.Diagrams.GRPC.Diagram.Types.Relationship.Parser, new[]{ "FromAssetId", "ToAssetId" }, null, null, null, null)})
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
#endregion
|
|
52
|
+
|
|
53
|
+
}
|
|
54
|
+
#region Enums
|
|
55
|
+
public enum DiagramType {
|
|
56
|
+
[pbr::OriginalName("NETWORK_TOPOLOGY")] NetworkTopology = 0,
|
|
57
|
+
[pbr::OriginalName("VIRTUAL_ENVIRONMENT")] VirtualEnvironment = 1,
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#endregion
|
|
61
|
+
|
|
62
|
+
#region Messages
|
|
63
|
+
public sealed partial class DiagramRequest : pb::IMessage<DiagramRequest>
|
|
64
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
65
|
+
, pb::IBufferMessage
|
|
66
|
+
#endif
|
|
67
|
+
{
|
|
68
|
+
private static readonly pb::MessageParser<DiagramRequest> _parser = new pb::MessageParser<DiagramRequest>(() => new DiagramRequest());
|
|
69
|
+
private pb::UnknownFieldSet _unknownFields;
|
|
70
|
+
private int _hasBits0;
|
|
71
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
72
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
73
|
+
public static pb::MessageParser<DiagramRequest> Parser { get { return _parser; } }
|
|
74
|
+
|
|
75
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
76
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
77
|
+
public static pbr::MessageDescriptor Descriptor {
|
|
78
|
+
get { return global::Lansweeper.Diagrams.GRPC.DiagramsReflection.Descriptor.MessageTypes[0]; }
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
82
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
83
|
+
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
84
|
+
get { return Descriptor; }
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
88
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
89
|
+
public DiagramRequest() {
|
|
90
|
+
OnConstruction();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
partial void OnConstruction();
|
|
94
|
+
|
|
95
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
96
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
97
|
+
public DiagramRequest(DiagramRequest other) : this() {
|
|
98
|
+
_hasBits0 = other._hasBits0;
|
|
99
|
+
siteId_ = other.siteId_;
|
|
100
|
+
installationId_ = other.installationId_;
|
|
101
|
+
diagramType_ = other.diagramType_;
|
|
102
|
+
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
106
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
107
|
+
public DiagramRequest Clone() {
|
|
108
|
+
return new DiagramRequest(this);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/// <summary>Field number for the "siteId" field.</summary>
|
|
112
|
+
public const int SiteIdFieldNumber = 1;
|
|
113
|
+
private string siteId_ = "";
|
|
114
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
115
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
116
|
+
public string SiteId {
|
|
117
|
+
get { return siteId_; }
|
|
118
|
+
set {
|
|
119
|
+
siteId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/// <summary>Field number for the "installationId" field.</summary>
|
|
124
|
+
public const int InstallationIdFieldNumber = 2;
|
|
125
|
+
private string installationId_ = "";
|
|
126
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
127
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
128
|
+
public string InstallationId {
|
|
129
|
+
get { return installationId_; }
|
|
130
|
+
set {
|
|
131
|
+
installationId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/// <summary>Field number for the "diagramType" field.</summary>
|
|
136
|
+
public const int DiagramTypeFieldNumber = 3;
|
|
137
|
+
private global::Lansweeper.Diagrams.GRPC.DiagramType diagramType_;
|
|
138
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
139
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
140
|
+
public global::Lansweeper.Diagrams.GRPC.DiagramType DiagramType {
|
|
141
|
+
get { if ((_hasBits0 & 1) != 0) { return diagramType_; } else { return global::Lansweeper.Diagrams.GRPC.DiagramType.NetworkTopology; } }
|
|
142
|
+
set {
|
|
143
|
+
_hasBits0 |= 1;
|
|
144
|
+
diagramType_ = value;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
/// <summary>Gets whether the "diagramType" field is set</summary>
|
|
148
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
149
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
150
|
+
public bool HasDiagramType {
|
|
151
|
+
get { return (_hasBits0 & 1) != 0; }
|
|
152
|
+
}
|
|
153
|
+
/// <summary>Clears the value of the "diagramType" field</summary>
|
|
154
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
155
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
156
|
+
public void ClearDiagramType() {
|
|
157
|
+
_hasBits0 &= ~1;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
161
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
162
|
+
public override bool Equals(object other) {
|
|
163
|
+
return Equals(other as DiagramRequest);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
167
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
168
|
+
public bool Equals(DiagramRequest other) {
|
|
169
|
+
if (ReferenceEquals(other, null)) {
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
if (ReferenceEquals(other, this)) {
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
if (SiteId != other.SiteId) return false;
|
|
176
|
+
if (InstallationId != other.InstallationId) return false;
|
|
177
|
+
if (DiagramType != other.DiagramType) return false;
|
|
178
|
+
return Equals(_unknownFields, other._unknownFields);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
182
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
183
|
+
public override int GetHashCode() {
|
|
184
|
+
int hash = 1;
|
|
185
|
+
if (SiteId.Length != 0) hash ^= SiteId.GetHashCode();
|
|
186
|
+
if (InstallationId.Length != 0) hash ^= InstallationId.GetHashCode();
|
|
187
|
+
if (HasDiagramType) hash ^= DiagramType.GetHashCode();
|
|
188
|
+
if (_unknownFields != null) {
|
|
189
|
+
hash ^= _unknownFields.GetHashCode();
|
|
190
|
+
}
|
|
191
|
+
return hash;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
195
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
196
|
+
public override string ToString() {
|
|
197
|
+
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
201
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
202
|
+
public void WriteTo(pb::CodedOutputStream output) {
|
|
203
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
204
|
+
output.WriteRawMessage(this);
|
|
205
|
+
#else
|
|
206
|
+
if (SiteId.Length != 0) {
|
|
207
|
+
output.WriteRawTag(10);
|
|
208
|
+
output.WriteString(SiteId);
|
|
209
|
+
}
|
|
210
|
+
if (InstallationId.Length != 0) {
|
|
211
|
+
output.WriteRawTag(18);
|
|
212
|
+
output.WriteString(InstallationId);
|
|
213
|
+
}
|
|
214
|
+
if (HasDiagramType) {
|
|
215
|
+
output.WriteRawTag(24);
|
|
216
|
+
output.WriteEnum((int) DiagramType);
|
|
217
|
+
}
|
|
218
|
+
if (_unknownFields != null) {
|
|
219
|
+
_unknownFields.WriteTo(output);
|
|
220
|
+
}
|
|
221
|
+
#endif
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
225
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
226
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
227
|
+
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
228
|
+
if (SiteId.Length != 0) {
|
|
229
|
+
output.WriteRawTag(10);
|
|
230
|
+
output.WriteString(SiteId);
|
|
231
|
+
}
|
|
232
|
+
if (InstallationId.Length != 0) {
|
|
233
|
+
output.WriteRawTag(18);
|
|
234
|
+
output.WriteString(InstallationId);
|
|
235
|
+
}
|
|
236
|
+
if (HasDiagramType) {
|
|
237
|
+
output.WriteRawTag(24);
|
|
238
|
+
output.WriteEnum((int) DiagramType);
|
|
239
|
+
}
|
|
240
|
+
if (_unknownFields != null) {
|
|
241
|
+
_unknownFields.WriteTo(ref output);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
#endif
|
|
245
|
+
|
|
246
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
247
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
248
|
+
public int CalculateSize() {
|
|
249
|
+
int size = 0;
|
|
250
|
+
if (SiteId.Length != 0) {
|
|
251
|
+
size += 1 + pb::CodedOutputStream.ComputeStringSize(SiteId);
|
|
252
|
+
}
|
|
253
|
+
if (InstallationId.Length != 0) {
|
|
254
|
+
size += 1 + pb::CodedOutputStream.ComputeStringSize(InstallationId);
|
|
255
|
+
}
|
|
256
|
+
if (HasDiagramType) {
|
|
257
|
+
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DiagramType);
|
|
258
|
+
}
|
|
259
|
+
if (_unknownFields != null) {
|
|
260
|
+
size += _unknownFields.CalculateSize();
|
|
261
|
+
}
|
|
262
|
+
return size;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
266
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
267
|
+
public void MergeFrom(DiagramRequest other) {
|
|
268
|
+
if (other == null) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
if (other.SiteId.Length != 0) {
|
|
272
|
+
SiteId = other.SiteId;
|
|
273
|
+
}
|
|
274
|
+
if (other.InstallationId.Length != 0) {
|
|
275
|
+
InstallationId = other.InstallationId;
|
|
276
|
+
}
|
|
277
|
+
if (other.HasDiagramType) {
|
|
278
|
+
DiagramType = other.DiagramType;
|
|
279
|
+
}
|
|
280
|
+
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
284
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
285
|
+
public void MergeFrom(pb::CodedInputStream input) {
|
|
286
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
287
|
+
input.ReadRawMessage(this);
|
|
288
|
+
#else
|
|
289
|
+
uint tag;
|
|
290
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
291
|
+
switch(tag) {
|
|
292
|
+
default:
|
|
293
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
294
|
+
break;
|
|
295
|
+
case 10: {
|
|
296
|
+
SiteId = input.ReadString();
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
case 18: {
|
|
300
|
+
InstallationId = input.ReadString();
|
|
301
|
+
break;
|
|
302
|
+
}
|
|
303
|
+
case 24: {
|
|
304
|
+
DiagramType = (global::Lansweeper.Diagrams.GRPC.DiagramType) input.ReadEnum();
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
#endif
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
313
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
314
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
315
|
+
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
316
|
+
uint tag;
|
|
317
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
318
|
+
switch(tag) {
|
|
319
|
+
default:
|
|
320
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
321
|
+
break;
|
|
322
|
+
case 10: {
|
|
323
|
+
SiteId = input.ReadString();
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
case 18: {
|
|
327
|
+
InstallationId = input.ReadString();
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
case 24: {
|
|
331
|
+
DiagramType = (global::Lansweeper.Diagrams.GRPC.DiagramType) input.ReadEnum();
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
#endif
|
|
338
|
+
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
public sealed partial class Diagram : pb::IMessage<Diagram>
|
|
342
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
343
|
+
, pb::IBufferMessage
|
|
344
|
+
#endif
|
|
345
|
+
{
|
|
346
|
+
private static readonly pb::MessageParser<Diagram> _parser = new pb::MessageParser<Diagram>(() => new Diagram());
|
|
347
|
+
private pb::UnknownFieldSet _unknownFields;
|
|
348
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
349
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
350
|
+
public static pb::MessageParser<Diagram> Parser { get { return _parser; } }
|
|
351
|
+
|
|
352
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
353
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
354
|
+
public static pbr::MessageDescriptor Descriptor {
|
|
355
|
+
get { return global::Lansweeper.Diagrams.GRPC.DiagramsReflection.Descriptor.MessageTypes[1]; }
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
359
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
360
|
+
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
361
|
+
get { return Descriptor; }
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
365
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
366
|
+
public Diagram() {
|
|
367
|
+
OnConstruction();
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
partial void OnConstruction();
|
|
371
|
+
|
|
372
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
373
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
374
|
+
public Diagram(Diagram other) : this() {
|
|
375
|
+
id_ = other.id_;
|
|
376
|
+
diagramType_ = other.diagramType_;
|
|
377
|
+
assets_ = other.assets_.Clone();
|
|
378
|
+
relationships_ = other.relationships_.Clone();
|
|
379
|
+
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
383
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
384
|
+
public Diagram Clone() {
|
|
385
|
+
return new Diagram(this);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/// <summary>Field number for the "id" field.</summary>
|
|
389
|
+
public const int IdFieldNumber = 1;
|
|
390
|
+
private string id_ = "";
|
|
391
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
392
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
393
|
+
public string Id {
|
|
394
|
+
get { return id_; }
|
|
395
|
+
set {
|
|
396
|
+
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/// <summary>Field number for the "diagramType" field.</summary>
|
|
401
|
+
public const int DiagramTypeFieldNumber = 2;
|
|
402
|
+
private global::Lansweeper.Diagrams.GRPC.DiagramType diagramType_ = global::Lansweeper.Diagrams.GRPC.DiagramType.NetworkTopology;
|
|
403
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
404
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
405
|
+
public global::Lansweeper.Diagrams.GRPC.DiagramType DiagramType {
|
|
406
|
+
get { return diagramType_; }
|
|
407
|
+
set {
|
|
408
|
+
diagramType_ = value;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/// <summary>Field number for the "assets" field.</summary>
|
|
413
|
+
public const int AssetsFieldNumber = 3;
|
|
414
|
+
private static readonly pb::FieldCodec<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Asset> _repeated_assets_codec
|
|
415
|
+
= pb::FieldCodec.ForMessage(26, global::Lansweeper.Diagrams.GRPC.Diagram.Types.Asset.Parser);
|
|
416
|
+
private readonly pbc::RepeatedField<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Asset> assets_ = new pbc::RepeatedField<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Asset>();
|
|
417
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
418
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
419
|
+
public pbc::RepeatedField<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Asset> Assets {
|
|
420
|
+
get { return assets_; }
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/// <summary>Field number for the "Relationships" field.</summary>
|
|
424
|
+
public const int RelationshipsFieldNumber = 4;
|
|
425
|
+
private static readonly pb::FieldCodec<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Relationship> _repeated_relationships_codec
|
|
426
|
+
= pb::FieldCodec.ForMessage(34, global::Lansweeper.Diagrams.GRPC.Diagram.Types.Relationship.Parser);
|
|
427
|
+
private readonly pbc::RepeatedField<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Relationship> relationships_ = new pbc::RepeatedField<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Relationship>();
|
|
428
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
429
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
430
|
+
public pbc::RepeatedField<global::Lansweeper.Diagrams.GRPC.Diagram.Types.Relationship> Relationships {
|
|
431
|
+
get { return relationships_; }
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
435
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
436
|
+
public override bool Equals(object other) {
|
|
437
|
+
return Equals(other as Diagram);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
441
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
442
|
+
public bool Equals(Diagram other) {
|
|
443
|
+
if (ReferenceEquals(other, null)) {
|
|
444
|
+
return false;
|
|
445
|
+
}
|
|
446
|
+
if (ReferenceEquals(other, this)) {
|
|
447
|
+
return true;
|
|
448
|
+
}
|
|
449
|
+
if (Id != other.Id) return false;
|
|
450
|
+
if (DiagramType != other.DiagramType) return false;
|
|
451
|
+
if(!assets_.Equals(other.assets_)) return false;
|
|
452
|
+
if(!relationships_.Equals(other.relationships_)) return false;
|
|
453
|
+
return Equals(_unknownFields, other._unknownFields);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
457
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
458
|
+
public override int GetHashCode() {
|
|
459
|
+
int hash = 1;
|
|
460
|
+
if (Id.Length != 0) hash ^= Id.GetHashCode();
|
|
461
|
+
if (DiagramType != global::Lansweeper.Diagrams.GRPC.DiagramType.NetworkTopology) hash ^= DiagramType.GetHashCode();
|
|
462
|
+
hash ^= assets_.GetHashCode();
|
|
463
|
+
hash ^= relationships_.GetHashCode();
|
|
464
|
+
if (_unknownFields != null) {
|
|
465
|
+
hash ^= _unknownFields.GetHashCode();
|
|
466
|
+
}
|
|
467
|
+
return hash;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
471
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
472
|
+
public override string ToString() {
|
|
473
|
+
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
477
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
478
|
+
public void WriteTo(pb::CodedOutputStream output) {
|
|
479
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
480
|
+
output.WriteRawMessage(this);
|
|
481
|
+
#else
|
|
482
|
+
if (Id.Length != 0) {
|
|
483
|
+
output.WriteRawTag(10);
|
|
484
|
+
output.WriteString(Id);
|
|
485
|
+
}
|
|
486
|
+
if (DiagramType != global::Lansweeper.Diagrams.GRPC.DiagramType.NetworkTopology) {
|
|
487
|
+
output.WriteRawTag(16);
|
|
488
|
+
output.WriteEnum((int) DiagramType);
|
|
489
|
+
}
|
|
490
|
+
assets_.WriteTo(output, _repeated_assets_codec);
|
|
491
|
+
relationships_.WriteTo(output, _repeated_relationships_codec);
|
|
492
|
+
if (_unknownFields != null) {
|
|
493
|
+
_unknownFields.WriteTo(output);
|
|
494
|
+
}
|
|
495
|
+
#endif
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
499
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
500
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
501
|
+
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
502
|
+
if (Id.Length != 0) {
|
|
503
|
+
output.WriteRawTag(10);
|
|
504
|
+
output.WriteString(Id);
|
|
505
|
+
}
|
|
506
|
+
if (DiagramType != global::Lansweeper.Diagrams.GRPC.DiagramType.NetworkTopology) {
|
|
507
|
+
output.WriteRawTag(16);
|
|
508
|
+
output.WriteEnum((int) DiagramType);
|
|
509
|
+
}
|
|
510
|
+
assets_.WriteTo(ref output, _repeated_assets_codec);
|
|
511
|
+
relationships_.WriteTo(ref output, _repeated_relationships_codec);
|
|
512
|
+
if (_unknownFields != null) {
|
|
513
|
+
_unknownFields.WriteTo(ref output);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
#endif
|
|
517
|
+
|
|
518
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
519
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
520
|
+
public int CalculateSize() {
|
|
521
|
+
int size = 0;
|
|
522
|
+
if (Id.Length != 0) {
|
|
523
|
+
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
|
524
|
+
}
|
|
525
|
+
if (DiagramType != global::Lansweeper.Diagrams.GRPC.DiagramType.NetworkTopology) {
|
|
526
|
+
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) DiagramType);
|
|
527
|
+
}
|
|
528
|
+
size += assets_.CalculateSize(_repeated_assets_codec);
|
|
529
|
+
size += relationships_.CalculateSize(_repeated_relationships_codec);
|
|
530
|
+
if (_unknownFields != null) {
|
|
531
|
+
size += _unknownFields.CalculateSize();
|
|
532
|
+
}
|
|
533
|
+
return size;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
537
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
538
|
+
public void MergeFrom(Diagram other) {
|
|
539
|
+
if (other == null) {
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
if (other.Id.Length != 0) {
|
|
543
|
+
Id = other.Id;
|
|
544
|
+
}
|
|
545
|
+
if (other.DiagramType != global::Lansweeper.Diagrams.GRPC.DiagramType.NetworkTopology) {
|
|
546
|
+
DiagramType = other.DiagramType;
|
|
547
|
+
}
|
|
548
|
+
assets_.Add(other.assets_);
|
|
549
|
+
relationships_.Add(other.relationships_);
|
|
550
|
+
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
554
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
555
|
+
public void MergeFrom(pb::CodedInputStream input) {
|
|
556
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
557
|
+
input.ReadRawMessage(this);
|
|
558
|
+
#else
|
|
559
|
+
uint tag;
|
|
560
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
561
|
+
switch(tag) {
|
|
562
|
+
default:
|
|
563
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
564
|
+
break;
|
|
565
|
+
case 10: {
|
|
566
|
+
Id = input.ReadString();
|
|
567
|
+
break;
|
|
568
|
+
}
|
|
569
|
+
case 16: {
|
|
570
|
+
DiagramType = (global::Lansweeper.Diagrams.GRPC.DiagramType) input.ReadEnum();
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
case 26: {
|
|
574
|
+
assets_.AddEntriesFrom(input, _repeated_assets_codec);
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
case 34: {
|
|
578
|
+
relationships_.AddEntriesFrom(input, _repeated_relationships_codec);
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
#endif
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
587
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
588
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
589
|
+
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
590
|
+
uint tag;
|
|
591
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
592
|
+
switch(tag) {
|
|
593
|
+
default:
|
|
594
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
595
|
+
break;
|
|
596
|
+
case 10: {
|
|
597
|
+
Id = input.ReadString();
|
|
598
|
+
break;
|
|
599
|
+
}
|
|
600
|
+
case 16: {
|
|
601
|
+
DiagramType = (global::Lansweeper.Diagrams.GRPC.DiagramType) input.ReadEnum();
|
|
602
|
+
break;
|
|
603
|
+
}
|
|
604
|
+
case 26: {
|
|
605
|
+
assets_.AddEntriesFrom(ref input, _repeated_assets_codec);
|
|
606
|
+
break;
|
|
607
|
+
}
|
|
608
|
+
case 34: {
|
|
609
|
+
relationships_.AddEntriesFrom(ref input, _repeated_relationships_codec);
|
|
610
|
+
break;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
#endif
|
|
616
|
+
|
|
617
|
+
#region Nested types
|
|
618
|
+
/// <summary>Container for nested types declared in the Diagram message type.</summary>
|
|
619
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
620
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
621
|
+
public static partial class Types {
|
|
622
|
+
public sealed partial class Asset : pb::IMessage<Asset>
|
|
623
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
624
|
+
, pb::IBufferMessage
|
|
625
|
+
#endif
|
|
626
|
+
{
|
|
627
|
+
private static readonly pb::MessageParser<Asset> _parser = new pb::MessageParser<Asset>(() => new Asset());
|
|
628
|
+
private pb::UnknownFieldSet _unknownFields;
|
|
629
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
630
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
631
|
+
public static pb::MessageParser<Asset> Parser { get { return _parser; } }
|
|
632
|
+
|
|
633
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
634
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
635
|
+
public static pbr::MessageDescriptor Descriptor {
|
|
636
|
+
get { return global::Lansweeper.Diagrams.GRPC.Diagram.Descriptor.NestedTypes[0]; }
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
640
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
641
|
+
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
642
|
+
get { return Descriptor; }
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
646
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
647
|
+
public Asset() {
|
|
648
|
+
OnConstruction();
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
partial void OnConstruction();
|
|
652
|
+
|
|
653
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
654
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
655
|
+
public Asset(Asset other) : this() {
|
|
656
|
+
id_ = other.id_;
|
|
657
|
+
text_ = other.text_;
|
|
658
|
+
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
662
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
663
|
+
public Asset Clone() {
|
|
664
|
+
return new Asset(this);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
/// <summary>Field number for the "id" field.</summary>
|
|
668
|
+
public const int IdFieldNumber = 1;
|
|
669
|
+
private int id_;
|
|
670
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
671
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
672
|
+
public int Id {
|
|
673
|
+
get { return id_; }
|
|
674
|
+
set {
|
|
675
|
+
id_ = value;
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/// <summary>Field number for the "text" field.</summary>
|
|
680
|
+
public const int TextFieldNumber = 2;
|
|
681
|
+
private string text_ = "";
|
|
682
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
683
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
684
|
+
public string Text {
|
|
685
|
+
get { return text_; }
|
|
686
|
+
set {
|
|
687
|
+
text_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
692
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
693
|
+
public override bool Equals(object other) {
|
|
694
|
+
return Equals(other as Asset);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
698
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
699
|
+
public bool Equals(Asset other) {
|
|
700
|
+
if (ReferenceEquals(other, null)) {
|
|
701
|
+
return false;
|
|
702
|
+
}
|
|
703
|
+
if (ReferenceEquals(other, this)) {
|
|
704
|
+
return true;
|
|
705
|
+
}
|
|
706
|
+
if (Id != other.Id) return false;
|
|
707
|
+
if (Text != other.Text) return false;
|
|
708
|
+
return Equals(_unknownFields, other._unknownFields);
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
712
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
713
|
+
public override int GetHashCode() {
|
|
714
|
+
int hash = 1;
|
|
715
|
+
if (Id != 0) hash ^= Id.GetHashCode();
|
|
716
|
+
if (Text.Length != 0) hash ^= Text.GetHashCode();
|
|
717
|
+
if (_unknownFields != null) {
|
|
718
|
+
hash ^= _unknownFields.GetHashCode();
|
|
719
|
+
}
|
|
720
|
+
return hash;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
724
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
725
|
+
public override string ToString() {
|
|
726
|
+
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
730
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
731
|
+
public void WriteTo(pb::CodedOutputStream output) {
|
|
732
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
733
|
+
output.WriteRawMessage(this);
|
|
734
|
+
#else
|
|
735
|
+
if (Id != 0) {
|
|
736
|
+
output.WriteRawTag(8);
|
|
737
|
+
output.WriteInt32(Id);
|
|
738
|
+
}
|
|
739
|
+
if (Text.Length != 0) {
|
|
740
|
+
output.WriteRawTag(18);
|
|
741
|
+
output.WriteString(Text);
|
|
742
|
+
}
|
|
743
|
+
if (_unknownFields != null) {
|
|
744
|
+
_unknownFields.WriteTo(output);
|
|
745
|
+
}
|
|
746
|
+
#endif
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
750
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
751
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
752
|
+
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
753
|
+
if (Id != 0) {
|
|
754
|
+
output.WriteRawTag(8);
|
|
755
|
+
output.WriteInt32(Id);
|
|
756
|
+
}
|
|
757
|
+
if (Text.Length != 0) {
|
|
758
|
+
output.WriteRawTag(18);
|
|
759
|
+
output.WriteString(Text);
|
|
760
|
+
}
|
|
761
|
+
if (_unknownFields != null) {
|
|
762
|
+
_unknownFields.WriteTo(ref output);
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
#endif
|
|
766
|
+
|
|
767
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
768
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
769
|
+
public int CalculateSize() {
|
|
770
|
+
int size = 0;
|
|
771
|
+
if (Id != 0) {
|
|
772
|
+
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
|
|
773
|
+
}
|
|
774
|
+
if (Text.Length != 0) {
|
|
775
|
+
size += 1 + pb::CodedOutputStream.ComputeStringSize(Text);
|
|
776
|
+
}
|
|
777
|
+
if (_unknownFields != null) {
|
|
778
|
+
size += _unknownFields.CalculateSize();
|
|
779
|
+
}
|
|
780
|
+
return size;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
784
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
785
|
+
public void MergeFrom(Asset other) {
|
|
786
|
+
if (other == null) {
|
|
787
|
+
return;
|
|
788
|
+
}
|
|
789
|
+
if (other.Id != 0) {
|
|
790
|
+
Id = other.Id;
|
|
791
|
+
}
|
|
792
|
+
if (other.Text.Length != 0) {
|
|
793
|
+
Text = other.Text;
|
|
794
|
+
}
|
|
795
|
+
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
799
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
800
|
+
public void MergeFrom(pb::CodedInputStream input) {
|
|
801
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
802
|
+
input.ReadRawMessage(this);
|
|
803
|
+
#else
|
|
804
|
+
uint tag;
|
|
805
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
806
|
+
switch(tag) {
|
|
807
|
+
default:
|
|
808
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
809
|
+
break;
|
|
810
|
+
case 8: {
|
|
811
|
+
Id = input.ReadInt32();
|
|
812
|
+
break;
|
|
813
|
+
}
|
|
814
|
+
case 18: {
|
|
815
|
+
Text = input.ReadString();
|
|
816
|
+
break;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
#endif
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
824
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
825
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
826
|
+
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
827
|
+
uint tag;
|
|
828
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
829
|
+
switch(tag) {
|
|
830
|
+
default:
|
|
831
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
832
|
+
break;
|
|
833
|
+
case 8: {
|
|
834
|
+
Id = input.ReadInt32();
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
case 18: {
|
|
838
|
+
Text = input.ReadString();
|
|
839
|
+
break;
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
#endif
|
|
845
|
+
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
public sealed partial class Relationship : pb::IMessage<Relationship>
|
|
849
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
850
|
+
, pb::IBufferMessage
|
|
851
|
+
#endif
|
|
852
|
+
{
|
|
853
|
+
private static readonly pb::MessageParser<Relationship> _parser = new pb::MessageParser<Relationship>(() => new Relationship());
|
|
854
|
+
private pb::UnknownFieldSet _unknownFields;
|
|
855
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
856
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
857
|
+
public static pb::MessageParser<Relationship> Parser { get { return _parser; } }
|
|
858
|
+
|
|
859
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
860
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
861
|
+
public static pbr::MessageDescriptor Descriptor {
|
|
862
|
+
get { return global::Lansweeper.Diagrams.GRPC.Diagram.Descriptor.NestedTypes[1]; }
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
866
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
867
|
+
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
868
|
+
get { return Descriptor; }
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
872
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
873
|
+
public Relationship() {
|
|
874
|
+
OnConstruction();
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
partial void OnConstruction();
|
|
878
|
+
|
|
879
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
880
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
881
|
+
public Relationship(Relationship other) : this() {
|
|
882
|
+
fromAssetId_ = other.fromAssetId_;
|
|
883
|
+
toAssetId_ = other.toAssetId_;
|
|
884
|
+
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
888
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
889
|
+
public Relationship Clone() {
|
|
890
|
+
return new Relationship(this);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/// <summary>Field number for the "fromAssetId" field.</summary>
|
|
894
|
+
public const int FromAssetIdFieldNumber = 1;
|
|
895
|
+
private int fromAssetId_;
|
|
896
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
897
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
898
|
+
public int FromAssetId {
|
|
899
|
+
get { return fromAssetId_; }
|
|
900
|
+
set {
|
|
901
|
+
fromAssetId_ = value;
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/// <summary>Field number for the "toAssetId" field.</summary>
|
|
906
|
+
public const int ToAssetIdFieldNumber = 2;
|
|
907
|
+
private int toAssetId_;
|
|
908
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
909
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
910
|
+
public int ToAssetId {
|
|
911
|
+
get { return toAssetId_; }
|
|
912
|
+
set {
|
|
913
|
+
toAssetId_ = value;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
918
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
919
|
+
public override bool Equals(object other) {
|
|
920
|
+
return Equals(other as Relationship);
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
924
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
925
|
+
public bool Equals(Relationship other) {
|
|
926
|
+
if (ReferenceEquals(other, null)) {
|
|
927
|
+
return false;
|
|
928
|
+
}
|
|
929
|
+
if (ReferenceEquals(other, this)) {
|
|
930
|
+
return true;
|
|
931
|
+
}
|
|
932
|
+
if (FromAssetId != other.FromAssetId) return false;
|
|
933
|
+
if (ToAssetId != other.ToAssetId) return false;
|
|
934
|
+
return Equals(_unknownFields, other._unknownFields);
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
938
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
939
|
+
public override int GetHashCode() {
|
|
940
|
+
int hash = 1;
|
|
941
|
+
if (FromAssetId != 0) hash ^= FromAssetId.GetHashCode();
|
|
942
|
+
if (ToAssetId != 0) hash ^= ToAssetId.GetHashCode();
|
|
943
|
+
if (_unknownFields != null) {
|
|
944
|
+
hash ^= _unknownFields.GetHashCode();
|
|
945
|
+
}
|
|
946
|
+
return hash;
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
950
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
951
|
+
public override string ToString() {
|
|
952
|
+
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
956
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
957
|
+
public void WriteTo(pb::CodedOutputStream output) {
|
|
958
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
959
|
+
output.WriteRawMessage(this);
|
|
960
|
+
#else
|
|
961
|
+
if (FromAssetId != 0) {
|
|
962
|
+
output.WriteRawTag(8);
|
|
963
|
+
output.WriteInt32(FromAssetId);
|
|
964
|
+
}
|
|
965
|
+
if (ToAssetId != 0) {
|
|
966
|
+
output.WriteRawTag(16);
|
|
967
|
+
output.WriteInt32(ToAssetId);
|
|
968
|
+
}
|
|
969
|
+
if (_unknownFields != null) {
|
|
970
|
+
_unknownFields.WriteTo(output);
|
|
971
|
+
}
|
|
972
|
+
#endif
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
976
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
977
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
978
|
+
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
979
|
+
if (FromAssetId != 0) {
|
|
980
|
+
output.WriteRawTag(8);
|
|
981
|
+
output.WriteInt32(FromAssetId);
|
|
982
|
+
}
|
|
983
|
+
if (ToAssetId != 0) {
|
|
984
|
+
output.WriteRawTag(16);
|
|
985
|
+
output.WriteInt32(ToAssetId);
|
|
986
|
+
}
|
|
987
|
+
if (_unknownFields != null) {
|
|
988
|
+
_unknownFields.WriteTo(ref output);
|
|
989
|
+
}
|
|
990
|
+
}
|
|
991
|
+
#endif
|
|
992
|
+
|
|
993
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
994
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
995
|
+
public int CalculateSize() {
|
|
996
|
+
int size = 0;
|
|
997
|
+
if (FromAssetId != 0) {
|
|
998
|
+
size += 1 + pb::CodedOutputStream.ComputeInt32Size(FromAssetId);
|
|
999
|
+
}
|
|
1000
|
+
if (ToAssetId != 0) {
|
|
1001
|
+
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ToAssetId);
|
|
1002
|
+
}
|
|
1003
|
+
if (_unknownFields != null) {
|
|
1004
|
+
size += _unknownFields.CalculateSize();
|
|
1005
|
+
}
|
|
1006
|
+
return size;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
1010
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
1011
|
+
public void MergeFrom(Relationship other) {
|
|
1012
|
+
if (other == null) {
|
|
1013
|
+
return;
|
|
1014
|
+
}
|
|
1015
|
+
if (other.FromAssetId != 0) {
|
|
1016
|
+
FromAssetId = other.FromAssetId;
|
|
1017
|
+
}
|
|
1018
|
+
if (other.ToAssetId != 0) {
|
|
1019
|
+
ToAssetId = other.ToAssetId;
|
|
1020
|
+
}
|
|
1021
|
+
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
1025
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
1026
|
+
public void MergeFrom(pb::CodedInputStream input) {
|
|
1027
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
1028
|
+
input.ReadRawMessage(this);
|
|
1029
|
+
#else
|
|
1030
|
+
uint tag;
|
|
1031
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
1032
|
+
switch(tag) {
|
|
1033
|
+
default:
|
|
1034
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
1035
|
+
break;
|
|
1036
|
+
case 8: {
|
|
1037
|
+
FromAssetId = input.ReadInt32();
|
|
1038
|
+
break;
|
|
1039
|
+
}
|
|
1040
|
+
case 16: {
|
|
1041
|
+
ToAssetId = input.ReadInt32();
|
|
1042
|
+
break;
|
|
1043
|
+
}
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
#endif
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
1050
|
+
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
1051
|
+
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
1052
|
+
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
1053
|
+
uint tag;
|
|
1054
|
+
while ((tag = input.ReadTag()) != 0) {
|
|
1055
|
+
switch(tag) {
|
|
1056
|
+
default:
|
|
1057
|
+
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
1058
|
+
break;
|
|
1059
|
+
case 8: {
|
|
1060
|
+
FromAssetId = input.ReadInt32();
|
|
1061
|
+
break;
|
|
1062
|
+
}
|
|
1063
|
+
case 16: {
|
|
1064
|
+
ToAssetId = input.ReadInt32();
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
#endif
|
|
1071
|
+
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
}
|
|
1075
|
+
#endregion
|
|
1076
|
+
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
#endregion
|
|
1080
|
+
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
#endregion Designer generated code
|