@lansweeper/scanningconfig-grpc 0.0.1

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.
Files changed (37) hide show
  1. package/.useprotoc +0 -0
  2. package/CHANGELOG.md +11 -0
  3. package/Lansweeper.ScanningConfig.GRPC.csproj +21 -0
  4. package/Scanningconfig.cs +2230 -0
  5. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.deps.json +41 -0
  6. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  7. package/bin/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
  8. package/buf.yaml +22 -0
  9. package/gen-proto/image.json +1 -0
  10. package/gen-proto/index.d.ts +2 -0
  11. package/gen-proto/index.js +3 -0
  12. package/gen-proto/scanningconfig_grpc_pb.d.ts +41 -0
  13. package/gen-proto/scanningconfig_grpc_pb.js +44 -0
  14. package/gen-proto/scanningconfig_pb.d.ts +293 -0
  15. package/gen-proto/scanningconfig_pb.js +2125 -0
  16. package/generated-go/scanningconfig.pb.go +1107 -0
  17. package/generated-go/scanningconfig_grpc.pb.go +109 -0
  18. package/go.mod +3 -0
  19. package/obj/Debug/net6.0/.NETCoreApp,Version=v6.0.AssemblyAttributes.cs +4 -0
  20. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfo.cs +25 -0
  21. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.AssemblyInfoInputs.cache +1 -0
  22. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.GeneratedMSBuildEditorConfig.editorconfig +10 -0
  23. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.assets.cache +0 -0
  24. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.AssemblyReference.cache +0 -0
  25. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.CoreCompileInputs.cache +1 -0
  26. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.csproj.FileListAbsolute.txt +12 -0
  27. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  28. package/obj/Debug/net6.0/Lansweeper.ScanningConfig.GRPC.pdb +0 -0
  29. package/obj/Debug/net6.0/ref/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  30. package/obj/Debug/net6.0/refint/Lansweeper.ScanningConfig.GRPC.dll +0 -0
  31. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.dgspec.json +68 -0
  32. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.props +15 -0
  33. package/obj/Lansweeper.ScanningConfig.GRPC.csproj.nuget.g.targets +2 -0
  34. package/obj/project.assets.json +113 -0
  35. package/obj/project.nuget.cache +10 -0
  36. package/package.json +16 -0
  37. package/proto/scanningconfig.proto +83 -0
@@ -0,0 +1,2230 @@
1
+ // <auto-generated>
2
+ // Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ // source: scanningconfig.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.Scanningconfig.V1 {
13
+
14
+ /// <summary>Holder for reflection information generated from scanningconfig.proto</summary>
15
+ public static partial class ScanningconfigReflection {
16
+
17
+ #region Descriptor
18
+ /// <summary>File descriptor for scanningconfig.proto</summary>
19
+ public static pbr::FileDescriptor Descriptor {
20
+ get { return descriptor; }
21
+ }
22
+ private static pbr::FileDescriptor descriptor;
23
+
24
+ static ScanningconfigReflection() {
25
+ byte[] descriptorData = global::System.Convert.FromBase64String(
26
+ string.Concat(
27
+ "ChRzY2FubmluZ2NvbmZpZy5wcm90bxIcbGFuc3dlZXBlci5zY2FubmluZ2Nv",
28
+ "bmZpZy52MSJGCiBHZXRDb25maWd1cmF0aW9uc0J5U291cmNlUmVxdWVzdBIR",
29
+ "Cglzb3VyY2VfaWQYASABKAkSDwoHc2l0ZV9pZBgCIAEoCSJdCiFHZXRDb25m",
30
+ "aWd1cmF0aW9uc0J5U291cmNlUmVzcG9uc2USOAoHY29uZmlncxgBIAMoCzIn",
31
+ "LmxhbnN3ZWVwZXIuc2Nhbm5pbmdjb25maWcudjEuQ29tcG9uZW50IrICCglD",
32
+ "b21wb25lbnQSCgoCaWQYASABKAkSQwoEdHlwZRgCIAEoDjI1LmxhbnN3ZWVw",
33
+ "ZXIuc2Nhbm5pbmdjb25maWcudjEuQ29tcG9uZW50LkNvbXBvbmVudFR5cGUS",
34
+ "NQoHYWN0aW9ucxgDIAMoCzIkLmxhbnN3ZWVwZXIuc2Nhbm5pbmdjb25maWcu",
35
+ "djEuQWN0aW9uEkcKCW9wX2NvbmZpZxgEIAEoCzIvLmxhbnN3ZWVwZXIuc2Nh",
36
+ "bm5pbmdjb25maWcudjEuT3BlcmF0aW9uYWxDb25maWdIAIgBASJGCg1Db21w",
37
+ "b25lbnRUeXBlEg8KC1VOU1BFQ0lGSUVEEAASCQoFQUdFTlQQARINCglJVF9T",
38
+ "RU5TT1IQAhIKCgZJVF9IVUIQA0IMCgpfb3BfY29uZmlnIjoKCkFzc2V0UmFk",
39
+ "YXISDwoHZW5hYmxlZBgBIAEoCBIbChNleGNsdWRlZF9pbnRlcmZhY2VzGAIg",
40
+ "AygJIi8KCkF1dG9VcGRhdGUSDwoHZW5hYmxlZBgBIAEoCBIQCghzY2hlZHVs",
41
+ "ZRgCIAEoCSLXAQoRT3BlcmF0aW9uYWxDb25maWcSSQoSYXNzZXRfcmFkYXJf",
42
+ "Y29uZmlnGAEgASgLMigubGFuc3dlZXBlci5zY2FubmluZ2NvbmZpZy52MS5B",
43
+ "c3NldFJhZGFySACIAQESSQoSYXV0b191cGRhdGVfY29uZmlnGAIgASgLMigu",
44
+ "bGFuc3dlZXBlci5zY2FubmluZ2NvbmZpZy52MS5BdXRvVXBkYXRlSAGIAQFC",
45
+ "FQoTX2Fzc2V0X3JhZGFyX2NvbmZpZ0IVChNfYXV0b191cGRhdGVfY29uZmln",
46
+ "IhwKB1RyaWdnZXISEQoJY3Jvbl9leHByGAEgASgJIrQCCgZBY3Rpb24SNwoI",
47
+ "dHJpZ2dlcnMYASADKAsyJS5sYW5zd2VlcGVyLnNjYW5uaW5nY29uZmlnLnYx",
48
+ "LlRyaWdnZXISRAoLYWN0aW9uX3R5cGUYAiABKA4yLy5sYW5zd2VlcGVyLnNj",
49
+ "YW5uaW5nY29uZmlnLnYxLkFjdGlvbi5BY3Rpb25UeXBlEj0KC2NyZWRlbnRp",
50
+ "YWxzGAMgAygLMigubGFuc3dlZXBlci5zY2FubmluZ2NvbmZpZy52MS5DcmVk",
51
+ "ZW50aWFsEjQKBWFnZW50GAQgASgLMiMubGFuc3dlZXBlci5zY2FubmluZ2Nv",
52
+ "bmZpZy52MS5BZ2VudEgAIigKCkFjdGlvblR5cGUSDwoLVU5TUEVDSUZJRUQQ",
53
+ "ABIJCgVBR0VOVBABQgwKCmRlZmluaXRpb24iegoFQWdlbnQSQQoKc2Nhbl9m",
54
+ "b2N1cxgBIAEoDjItLmxhbnN3ZWVwZXIuc2Nhbm5pbmdjb25maWcudjEuQWdl",
55
+ "bnQuU2NhbkZvY3VzIi4KCVNjYW5Gb2N1cxIHCgNBTEwQABIJCgVVU0VSUxAB",
56
+ "Eg0KCUlOVkVOVE9SWRACInYKCkNyZWRlbnRpYWwSRQoEdHlwZRgBIAEoDjI3",
57
+ "LmxhbnN3ZWVwZXIuc2Nhbm5pbmdjb25maWcudjEuQ3JlZGVudGlhbC5DcmVk",
58
+ "ZW50aWFsVHlwZSIhCg5DcmVkZW50aWFsVHlwZRIPCgtVTlNQRUNJRklFRBAA",
59
+ "MrgBChVTY2FubmluZ0NvbmZpZ1NlcnZpY2USngEKGUdldENvbmZpZ3VyYXRp",
60
+ "b25zQnlTb3VyY2USPi5sYW5zd2VlcGVyLnNjYW5uaW5nY29uZmlnLnYxLkdl",
61
+ "dENvbmZpZ3VyYXRpb25zQnlTb3VyY2VSZXF1ZXN0Gj8ubGFuc3dlZXBlci5z",
62
+ "Y2FubmluZ2NvbmZpZy52MS5HZXRDb25maWd1cmF0aW9uc0J5U291cmNlUmVz",
63
+ "cG9uc2UiAEIQWg4uL2dlbmVyYXRlZC1nb2IGcHJvdG8z"));
64
+ descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
65
+ new pbr::FileDescriptor[] { },
66
+ new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
67
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.GetConfigurationsBySourceRequest), global::Lansweeper.Scanningconfig.V1.GetConfigurationsBySourceRequest.Parser, new[]{ "SourceId", "SiteId" }, null, null, null, null),
68
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.GetConfigurationsBySourceResponse), global::Lansweeper.Scanningconfig.V1.GetConfigurationsBySourceResponse.Parser, new[]{ "Configs" }, null, null, null, null),
69
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Component), global::Lansweeper.Scanningconfig.V1.Component.Parser, new[]{ "Id", "Type", "Actions", "OpConfig" }, new[]{ "OpConfig" }, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType) }, null, null),
70
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.AssetRadar), global::Lansweeper.Scanningconfig.V1.AssetRadar.Parser, new[]{ "Enabled", "ExcludedInterfaces" }, null, null, null, null),
71
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.AutoUpdate), global::Lansweeper.Scanningconfig.V1.AutoUpdate.Parser, new[]{ "Enabled", "Schedule" }, null, null, null, null),
72
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.OperationalConfig), global::Lansweeper.Scanningconfig.V1.OperationalConfig.Parser, new[]{ "AssetRadarConfig", "AutoUpdateConfig" }, new[]{ "AssetRadarConfig", "AutoUpdateConfig" }, null, null, null),
73
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Trigger), global::Lansweeper.Scanningconfig.V1.Trigger.Parser, new[]{ "CronExpr" }, null, null, null, null),
74
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Action), global::Lansweeper.Scanningconfig.V1.Action.Parser, new[]{ "Triggers", "ActionType", "Credentials", "Agent" }, new[]{ "Definition" }, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType) }, null, null),
75
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Agent), global::Lansweeper.Scanningconfig.V1.Agent.Parser, new[]{ "ScanFocus" }, null, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus) }, null, null),
76
+ new pbr::GeneratedClrTypeInfo(typeof(global::Lansweeper.Scanningconfig.V1.Credential), global::Lansweeper.Scanningconfig.V1.Credential.Parser, new[]{ "Type" }, null, new[]{ typeof(global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType) }, null, null)
77
+ }));
78
+ }
79
+ #endregion
80
+
81
+ }
82
+ #region Messages
83
+ public sealed partial class GetConfigurationsBySourceRequest : pb::IMessage<GetConfigurationsBySourceRequest>
84
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
85
+ , pb::IBufferMessage
86
+ #endif
87
+ {
88
+ private static readonly pb::MessageParser<GetConfigurationsBySourceRequest> _parser = new pb::MessageParser<GetConfigurationsBySourceRequest>(() => new GetConfigurationsBySourceRequest());
89
+ private pb::UnknownFieldSet _unknownFields;
90
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
91
+ public static pb::MessageParser<GetConfigurationsBySourceRequest> Parser { get { return _parser; } }
92
+
93
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
94
+ public static pbr::MessageDescriptor Descriptor {
95
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[0]; }
96
+ }
97
+
98
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
99
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
100
+ get { return Descriptor; }
101
+ }
102
+
103
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
104
+ public GetConfigurationsBySourceRequest() {
105
+ OnConstruction();
106
+ }
107
+
108
+ partial void OnConstruction();
109
+
110
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
111
+ public GetConfigurationsBySourceRequest(GetConfigurationsBySourceRequest other) : this() {
112
+ sourceId_ = other.sourceId_;
113
+ siteId_ = other.siteId_;
114
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
115
+ }
116
+
117
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
118
+ public GetConfigurationsBySourceRequest Clone() {
119
+ return new GetConfigurationsBySourceRequest(this);
120
+ }
121
+
122
+ /// <summary>Field number for the "source_id" field.</summary>
123
+ public const int SourceIdFieldNumber = 1;
124
+ private string sourceId_ = "";
125
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
126
+ public string SourceId {
127
+ get { return sourceId_; }
128
+ set {
129
+ sourceId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
130
+ }
131
+ }
132
+
133
+ /// <summary>Field number for the "site_id" field.</summary>
134
+ public const int SiteIdFieldNumber = 2;
135
+ private string siteId_ = "";
136
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
137
+ public string SiteId {
138
+ get { return siteId_; }
139
+ set {
140
+ siteId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
141
+ }
142
+ }
143
+
144
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
145
+ public override bool Equals(object other) {
146
+ return Equals(other as GetConfigurationsBySourceRequest);
147
+ }
148
+
149
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
150
+ public bool Equals(GetConfigurationsBySourceRequest other) {
151
+ if (ReferenceEquals(other, null)) {
152
+ return false;
153
+ }
154
+ if (ReferenceEquals(other, this)) {
155
+ return true;
156
+ }
157
+ if (SourceId != other.SourceId) return false;
158
+ if (SiteId != other.SiteId) return false;
159
+ return Equals(_unknownFields, other._unknownFields);
160
+ }
161
+
162
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
163
+ public override int GetHashCode() {
164
+ int hash = 1;
165
+ if (SourceId.Length != 0) hash ^= SourceId.GetHashCode();
166
+ if (SiteId.Length != 0) hash ^= SiteId.GetHashCode();
167
+ if (_unknownFields != null) {
168
+ hash ^= _unknownFields.GetHashCode();
169
+ }
170
+ return hash;
171
+ }
172
+
173
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
174
+ public override string ToString() {
175
+ return pb::JsonFormatter.ToDiagnosticString(this);
176
+ }
177
+
178
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
179
+ public void WriteTo(pb::CodedOutputStream output) {
180
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
181
+ output.WriteRawMessage(this);
182
+ #else
183
+ if (SourceId.Length != 0) {
184
+ output.WriteRawTag(10);
185
+ output.WriteString(SourceId);
186
+ }
187
+ if (SiteId.Length != 0) {
188
+ output.WriteRawTag(18);
189
+ output.WriteString(SiteId);
190
+ }
191
+ if (_unknownFields != null) {
192
+ _unknownFields.WriteTo(output);
193
+ }
194
+ #endif
195
+ }
196
+
197
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
198
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
199
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
200
+ if (SourceId.Length != 0) {
201
+ output.WriteRawTag(10);
202
+ output.WriteString(SourceId);
203
+ }
204
+ if (SiteId.Length != 0) {
205
+ output.WriteRawTag(18);
206
+ output.WriteString(SiteId);
207
+ }
208
+ if (_unknownFields != null) {
209
+ _unknownFields.WriteTo(ref output);
210
+ }
211
+ }
212
+ #endif
213
+
214
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
215
+ public int CalculateSize() {
216
+ int size = 0;
217
+ if (SourceId.Length != 0) {
218
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceId);
219
+ }
220
+ if (SiteId.Length != 0) {
221
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(SiteId);
222
+ }
223
+ if (_unknownFields != null) {
224
+ size += _unknownFields.CalculateSize();
225
+ }
226
+ return size;
227
+ }
228
+
229
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
230
+ public void MergeFrom(GetConfigurationsBySourceRequest other) {
231
+ if (other == null) {
232
+ return;
233
+ }
234
+ if (other.SourceId.Length != 0) {
235
+ SourceId = other.SourceId;
236
+ }
237
+ if (other.SiteId.Length != 0) {
238
+ SiteId = other.SiteId;
239
+ }
240
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
241
+ }
242
+
243
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
244
+ public void MergeFrom(pb::CodedInputStream input) {
245
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
246
+ input.ReadRawMessage(this);
247
+ #else
248
+ uint tag;
249
+ while ((tag = input.ReadTag()) != 0) {
250
+ switch(tag) {
251
+ default:
252
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
253
+ break;
254
+ case 10: {
255
+ SourceId = input.ReadString();
256
+ break;
257
+ }
258
+ case 18: {
259
+ SiteId = input.ReadString();
260
+ break;
261
+ }
262
+ }
263
+ }
264
+ #endif
265
+ }
266
+
267
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
268
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
269
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
270
+ uint tag;
271
+ while ((tag = input.ReadTag()) != 0) {
272
+ switch(tag) {
273
+ default:
274
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
275
+ break;
276
+ case 10: {
277
+ SourceId = input.ReadString();
278
+ break;
279
+ }
280
+ case 18: {
281
+ SiteId = input.ReadString();
282
+ break;
283
+ }
284
+ }
285
+ }
286
+ }
287
+ #endif
288
+
289
+ }
290
+
291
+ public sealed partial class GetConfigurationsBySourceResponse : pb::IMessage<GetConfigurationsBySourceResponse>
292
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
293
+ , pb::IBufferMessage
294
+ #endif
295
+ {
296
+ private static readonly pb::MessageParser<GetConfigurationsBySourceResponse> _parser = new pb::MessageParser<GetConfigurationsBySourceResponse>(() => new GetConfigurationsBySourceResponse());
297
+ private pb::UnknownFieldSet _unknownFields;
298
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
299
+ public static pb::MessageParser<GetConfigurationsBySourceResponse> Parser { get { return _parser; } }
300
+
301
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
302
+ public static pbr::MessageDescriptor Descriptor {
303
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[1]; }
304
+ }
305
+
306
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
307
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
308
+ get { return Descriptor; }
309
+ }
310
+
311
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
312
+ public GetConfigurationsBySourceResponse() {
313
+ OnConstruction();
314
+ }
315
+
316
+ partial void OnConstruction();
317
+
318
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
319
+ public GetConfigurationsBySourceResponse(GetConfigurationsBySourceResponse other) : this() {
320
+ configs_ = other.configs_.Clone();
321
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
322
+ }
323
+
324
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
325
+ public GetConfigurationsBySourceResponse Clone() {
326
+ return new GetConfigurationsBySourceResponse(this);
327
+ }
328
+
329
+ /// <summary>Field number for the "configs" field.</summary>
330
+ public const int ConfigsFieldNumber = 1;
331
+ private static readonly pb::FieldCodec<global::Lansweeper.Scanningconfig.V1.Component> _repeated_configs_codec
332
+ = pb::FieldCodec.ForMessage(10, global::Lansweeper.Scanningconfig.V1.Component.Parser);
333
+ private readonly pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Component> configs_ = new pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Component>();
334
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
335
+ public pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Component> Configs {
336
+ get { return configs_; }
337
+ }
338
+
339
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
340
+ public override bool Equals(object other) {
341
+ return Equals(other as GetConfigurationsBySourceResponse);
342
+ }
343
+
344
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
345
+ public bool Equals(GetConfigurationsBySourceResponse other) {
346
+ if (ReferenceEquals(other, null)) {
347
+ return false;
348
+ }
349
+ if (ReferenceEquals(other, this)) {
350
+ return true;
351
+ }
352
+ if(!configs_.Equals(other.configs_)) return false;
353
+ return Equals(_unknownFields, other._unknownFields);
354
+ }
355
+
356
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
357
+ public override int GetHashCode() {
358
+ int hash = 1;
359
+ hash ^= configs_.GetHashCode();
360
+ if (_unknownFields != null) {
361
+ hash ^= _unknownFields.GetHashCode();
362
+ }
363
+ return hash;
364
+ }
365
+
366
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
367
+ public override string ToString() {
368
+ return pb::JsonFormatter.ToDiagnosticString(this);
369
+ }
370
+
371
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
372
+ public void WriteTo(pb::CodedOutputStream output) {
373
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
374
+ output.WriteRawMessage(this);
375
+ #else
376
+ configs_.WriteTo(output, _repeated_configs_codec);
377
+ if (_unknownFields != null) {
378
+ _unknownFields.WriteTo(output);
379
+ }
380
+ #endif
381
+ }
382
+
383
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
384
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
385
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
386
+ configs_.WriteTo(ref output, _repeated_configs_codec);
387
+ if (_unknownFields != null) {
388
+ _unknownFields.WriteTo(ref output);
389
+ }
390
+ }
391
+ #endif
392
+
393
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
394
+ public int CalculateSize() {
395
+ int size = 0;
396
+ size += configs_.CalculateSize(_repeated_configs_codec);
397
+ if (_unknownFields != null) {
398
+ size += _unknownFields.CalculateSize();
399
+ }
400
+ return size;
401
+ }
402
+
403
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
404
+ public void MergeFrom(GetConfigurationsBySourceResponse other) {
405
+ if (other == null) {
406
+ return;
407
+ }
408
+ configs_.Add(other.configs_);
409
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
410
+ }
411
+
412
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
413
+ public void MergeFrom(pb::CodedInputStream input) {
414
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
415
+ input.ReadRawMessage(this);
416
+ #else
417
+ uint tag;
418
+ while ((tag = input.ReadTag()) != 0) {
419
+ switch(tag) {
420
+ default:
421
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
422
+ break;
423
+ case 10: {
424
+ configs_.AddEntriesFrom(input, _repeated_configs_codec);
425
+ break;
426
+ }
427
+ }
428
+ }
429
+ #endif
430
+ }
431
+
432
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
433
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
434
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
435
+ uint tag;
436
+ while ((tag = input.ReadTag()) != 0) {
437
+ switch(tag) {
438
+ default:
439
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
440
+ break;
441
+ case 10: {
442
+ configs_.AddEntriesFrom(ref input, _repeated_configs_codec);
443
+ break;
444
+ }
445
+ }
446
+ }
447
+ }
448
+ #endif
449
+
450
+ }
451
+
452
+ public sealed partial class Component : pb::IMessage<Component>
453
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
454
+ , pb::IBufferMessage
455
+ #endif
456
+ {
457
+ private static readonly pb::MessageParser<Component> _parser = new pb::MessageParser<Component>(() => new Component());
458
+ private pb::UnknownFieldSet _unknownFields;
459
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
460
+ public static pb::MessageParser<Component> Parser { get { return _parser; } }
461
+
462
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
463
+ public static pbr::MessageDescriptor Descriptor {
464
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[2]; }
465
+ }
466
+
467
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
468
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
469
+ get { return Descriptor; }
470
+ }
471
+
472
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
473
+ public Component() {
474
+ OnConstruction();
475
+ }
476
+
477
+ partial void OnConstruction();
478
+
479
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
480
+ public Component(Component other) : this() {
481
+ id_ = other.id_;
482
+ type_ = other.type_;
483
+ actions_ = other.actions_.Clone();
484
+ opConfig_ = other.opConfig_ != null ? other.opConfig_.Clone() : null;
485
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
486
+ }
487
+
488
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
489
+ public Component Clone() {
490
+ return new Component(this);
491
+ }
492
+
493
+ /// <summary>Field number for the "id" field.</summary>
494
+ public const int IdFieldNumber = 1;
495
+ private string id_ = "";
496
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
497
+ public string Id {
498
+ get { return id_; }
499
+ set {
500
+ id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
501
+ }
502
+ }
503
+
504
+ /// <summary>Field number for the "type" field.</summary>
505
+ public const int TypeFieldNumber = 2;
506
+ private global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType type_ = global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType.Unspecified;
507
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
508
+ public global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType Type {
509
+ get { return type_; }
510
+ set {
511
+ type_ = value;
512
+ }
513
+ }
514
+
515
+ /// <summary>Field number for the "actions" field.</summary>
516
+ public const int ActionsFieldNumber = 3;
517
+ private static readonly pb::FieldCodec<global::Lansweeper.Scanningconfig.V1.Action> _repeated_actions_codec
518
+ = pb::FieldCodec.ForMessage(26, global::Lansweeper.Scanningconfig.V1.Action.Parser);
519
+ private readonly pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Action> actions_ = new pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Action>();
520
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
521
+ public pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Action> Actions {
522
+ get { return actions_; }
523
+ }
524
+
525
+ /// <summary>Field number for the "op_config" field.</summary>
526
+ public const int OpConfigFieldNumber = 4;
527
+ private global::Lansweeper.Scanningconfig.V1.OperationalConfig opConfig_;
528
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
529
+ public global::Lansweeper.Scanningconfig.V1.OperationalConfig OpConfig {
530
+ get { return opConfig_; }
531
+ set {
532
+ opConfig_ = value;
533
+ }
534
+ }
535
+
536
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
537
+ public override bool Equals(object other) {
538
+ return Equals(other as Component);
539
+ }
540
+
541
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
542
+ public bool Equals(Component other) {
543
+ if (ReferenceEquals(other, null)) {
544
+ return false;
545
+ }
546
+ if (ReferenceEquals(other, this)) {
547
+ return true;
548
+ }
549
+ if (Id != other.Id) return false;
550
+ if (Type != other.Type) return false;
551
+ if(!actions_.Equals(other.actions_)) return false;
552
+ if (!object.Equals(OpConfig, other.OpConfig)) return false;
553
+ return Equals(_unknownFields, other._unknownFields);
554
+ }
555
+
556
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
557
+ public override int GetHashCode() {
558
+ int hash = 1;
559
+ if (Id.Length != 0) hash ^= Id.GetHashCode();
560
+ if (Type != global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType.Unspecified) hash ^= Type.GetHashCode();
561
+ hash ^= actions_.GetHashCode();
562
+ if (opConfig_ != null) hash ^= OpConfig.GetHashCode();
563
+ if (_unknownFields != null) {
564
+ hash ^= _unknownFields.GetHashCode();
565
+ }
566
+ return hash;
567
+ }
568
+
569
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
570
+ public override string ToString() {
571
+ return pb::JsonFormatter.ToDiagnosticString(this);
572
+ }
573
+
574
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
575
+ public void WriteTo(pb::CodedOutputStream output) {
576
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
577
+ output.WriteRawMessage(this);
578
+ #else
579
+ if (Id.Length != 0) {
580
+ output.WriteRawTag(10);
581
+ output.WriteString(Id);
582
+ }
583
+ if (Type != global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType.Unspecified) {
584
+ output.WriteRawTag(16);
585
+ output.WriteEnum((int) Type);
586
+ }
587
+ actions_.WriteTo(output, _repeated_actions_codec);
588
+ if (opConfig_ != null) {
589
+ output.WriteRawTag(34);
590
+ output.WriteMessage(OpConfig);
591
+ }
592
+ if (_unknownFields != null) {
593
+ _unknownFields.WriteTo(output);
594
+ }
595
+ #endif
596
+ }
597
+
598
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
599
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
600
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
601
+ if (Id.Length != 0) {
602
+ output.WriteRawTag(10);
603
+ output.WriteString(Id);
604
+ }
605
+ if (Type != global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType.Unspecified) {
606
+ output.WriteRawTag(16);
607
+ output.WriteEnum((int) Type);
608
+ }
609
+ actions_.WriteTo(ref output, _repeated_actions_codec);
610
+ if (opConfig_ != null) {
611
+ output.WriteRawTag(34);
612
+ output.WriteMessage(OpConfig);
613
+ }
614
+ if (_unknownFields != null) {
615
+ _unknownFields.WriteTo(ref output);
616
+ }
617
+ }
618
+ #endif
619
+
620
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
621
+ public int CalculateSize() {
622
+ int size = 0;
623
+ if (Id.Length != 0) {
624
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
625
+ }
626
+ if (Type != global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType.Unspecified) {
627
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
628
+ }
629
+ size += actions_.CalculateSize(_repeated_actions_codec);
630
+ if (opConfig_ != null) {
631
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(OpConfig);
632
+ }
633
+ if (_unknownFields != null) {
634
+ size += _unknownFields.CalculateSize();
635
+ }
636
+ return size;
637
+ }
638
+
639
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
640
+ public void MergeFrom(Component other) {
641
+ if (other == null) {
642
+ return;
643
+ }
644
+ if (other.Id.Length != 0) {
645
+ Id = other.Id;
646
+ }
647
+ if (other.Type != global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType.Unspecified) {
648
+ Type = other.Type;
649
+ }
650
+ actions_.Add(other.actions_);
651
+ if (other.opConfig_ != null) {
652
+ if (opConfig_ == null) {
653
+ OpConfig = new global::Lansweeper.Scanningconfig.V1.OperationalConfig();
654
+ }
655
+ OpConfig.MergeFrom(other.OpConfig);
656
+ }
657
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
658
+ }
659
+
660
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
661
+ public void MergeFrom(pb::CodedInputStream input) {
662
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
663
+ input.ReadRawMessage(this);
664
+ #else
665
+ uint tag;
666
+ while ((tag = input.ReadTag()) != 0) {
667
+ switch(tag) {
668
+ default:
669
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
670
+ break;
671
+ case 10: {
672
+ Id = input.ReadString();
673
+ break;
674
+ }
675
+ case 16: {
676
+ Type = (global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType) input.ReadEnum();
677
+ break;
678
+ }
679
+ case 26: {
680
+ actions_.AddEntriesFrom(input, _repeated_actions_codec);
681
+ break;
682
+ }
683
+ case 34: {
684
+ if (opConfig_ == null) {
685
+ OpConfig = new global::Lansweeper.Scanningconfig.V1.OperationalConfig();
686
+ }
687
+ input.ReadMessage(OpConfig);
688
+ break;
689
+ }
690
+ }
691
+ }
692
+ #endif
693
+ }
694
+
695
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
696
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
697
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
698
+ uint tag;
699
+ while ((tag = input.ReadTag()) != 0) {
700
+ switch(tag) {
701
+ default:
702
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
703
+ break;
704
+ case 10: {
705
+ Id = input.ReadString();
706
+ break;
707
+ }
708
+ case 16: {
709
+ Type = (global::Lansweeper.Scanningconfig.V1.Component.Types.ComponentType) input.ReadEnum();
710
+ break;
711
+ }
712
+ case 26: {
713
+ actions_.AddEntriesFrom(ref input, _repeated_actions_codec);
714
+ break;
715
+ }
716
+ case 34: {
717
+ if (opConfig_ == null) {
718
+ OpConfig = new global::Lansweeper.Scanningconfig.V1.OperationalConfig();
719
+ }
720
+ input.ReadMessage(OpConfig);
721
+ break;
722
+ }
723
+ }
724
+ }
725
+ }
726
+ #endif
727
+
728
+ #region Nested types
729
+ /// <summary>Container for nested types declared in the Component message type.</summary>
730
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
731
+ public static partial class Types {
732
+ public enum ComponentType {
733
+ [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
734
+ [pbr::OriginalName("AGENT")] Agent = 1,
735
+ [pbr::OriginalName("IT_SENSOR")] ItSensor = 2,
736
+ [pbr::OriginalName("IT_HUB")] ItHub = 3,
737
+ }
738
+
739
+ }
740
+ #endregion
741
+
742
+ }
743
+
744
+ public sealed partial class AssetRadar : pb::IMessage<AssetRadar>
745
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
746
+ , pb::IBufferMessage
747
+ #endif
748
+ {
749
+ private static readonly pb::MessageParser<AssetRadar> _parser = new pb::MessageParser<AssetRadar>(() => new AssetRadar());
750
+ private pb::UnknownFieldSet _unknownFields;
751
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
752
+ public static pb::MessageParser<AssetRadar> Parser { get { return _parser; } }
753
+
754
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
755
+ public static pbr::MessageDescriptor Descriptor {
756
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[3]; }
757
+ }
758
+
759
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
760
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
761
+ get { return Descriptor; }
762
+ }
763
+
764
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
765
+ public AssetRadar() {
766
+ OnConstruction();
767
+ }
768
+
769
+ partial void OnConstruction();
770
+
771
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
772
+ public AssetRadar(AssetRadar other) : this() {
773
+ enabled_ = other.enabled_;
774
+ excludedInterfaces_ = other.excludedInterfaces_.Clone();
775
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
776
+ }
777
+
778
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
779
+ public AssetRadar Clone() {
780
+ return new AssetRadar(this);
781
+ }
782
+
783
+ /// <summary>Field number for the "enabled" field.</summary>
784
+ public const int EnabledFieldNumber = 1;
785
+ private bool enabled_;
786
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
787
+ public bool Enabled {
788
+ get { return enabled_; }
789
+ set {
790
+ enabled_ = value;
791
+ }
792
+ }
793
+
794
+ /// <summary>Field number for the "excluded_interfaces" field.</summary>
795
+ public const int ExcludedInterfacesFieldNumber = 2;
796
+ private static readonly pb::FieldCodec<string> _repeated_excludedInterfaces_codec
797
+ = pb::FieldCodec.ForString(18);
798
+ private readonly pbc::RepeatedField<string> excludedInterfaces_ = new pbc::RepeatedField<string>();
799
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
800
+ public pbc::RepeatedField<string> ExcludedInterfaces {
801
+ get { return excludedInterfaces_; }
802
+ }
803
+
804
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
805
+ public override bool Equals(object other) {
806
+ return Equals(other as AssetRadar);
807
+ }
808
+
809
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
810
+ public bool Equals(AssetRadar other) {
811
+ if (ReferenceEquals(other, null)) {
812
+ return false;
813
+ }
814
+ if (ReferenceEquals(other, this)) {
815
+ return true;
816
+ }
817
+ if (Enabled != other.Enabled) return false;
818
+ if(!excludedInterfaces_.Equals(other.excludedInterfaces_)) return false;
819
+ return Equals(_unknownFields, other._unknownFields);
820
+ }
821
+
822
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
823
+ public override int GetHashCode() {
824
+ int hash = 1;
825
+ if (Enabled != false) hash ^= Enabled.GetHashCode();
826
+ hash ^= excludedInterfaces_.GetHashCode();
827
+ if (_unknownFields != null) {
828
+ hash ^= _unknownFields.GetHashCode();
829
+ }
830
+ return hash;
831
+ }
832
+
833
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
834
+ public override string ToString() {
835
+ return pb::JsonFormatter.ToDiagnosticString(this);
836
+ }
837
+
838
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
839
+ public void WriteTo(pb::CodedOutputStream output) {
840
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
841
+ output.WriteRawMessage(this);
842
+ #else
843
+ if (Enabled != false) {
844
+ output.WriteRawTag(8);
845
+ output.WriteBool(Enabled);
846
+ }
847
+ excludedInterfaces_.WriteTo(output, _repeated_excludedInterfaces_codec);
848
+ if (_unknownFields != null) {
849
+ _unknownFields.WriteTo(output);
850
+ }
851
+ #endif
852
+ }
853
+
854
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
855
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
856
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
857
+ if (Enabled != false) {
858
+ output.WriteRawTag(8);
859
+ output.WriteBool(Enabled);
860
+ }
861
+ excludedInterfaces_.WriteTo(ref output, _repeated_excludedInterfaces_codec);
862
+ if (_unknownFields != null) {
863
+ _unknownFields.WriteTo(ref output);
864
+ }
865
+ }
866
+ #endif
867
+
868
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
869
+ public int CalculateSize() {
870
+ int size = 0;
871
+ if (Enabled != false) {
872
+ size += 1 + 1;
873
+ }
874
+ size += excludedInterfaces_.CalculateSize(_repeated_excludedInterfaces_codec);
875
+ if (_unknownFields != null) {
876
+ size += _unknownFields.CalculateSize();
877
+ }
878
+ return size;
879
+ }
880
+
881
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
882
+ public void MergeFrom(AssetRadar other) {
883
+ if (other == null) {
884
+ return;
885
+ }
886
+ if (other.Enabled != false) {
887
+ Enabled = other.Enabled;
888
+ }
889
+ excludedInterfaces_.Add(other.excludedInterfaces_);
890
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
891
+ }
892
+
893
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
894
+ public void MergeFrom(pb::CodedInputStream input) {
895
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
896
+ input.ReadRawMessage(this);
897
+ #else
898
+ uint tag;
899
+ while ((tag = input.ReadTag()) != 0) {
900
+ switch(tag) {
901
+ default:
902
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
903
+ break;
904
+ case 8: {
905
+ Enabled = input.ReadBool();
906
+ break;
907
+ }
908
+ case 18: {
909
+ excludedInterfaces_.AddEntriesFrom(input, _repeated_excludedInterfaces_codec);
910
+ break;
911
+ }
912
+ }
913
+ }
914
+ #endif
915
+ }
916
+
917
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
918
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
919
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
920
+ uint tag;
921
+ while ((tag = input.ReadTag()) != 0) {
922
+ switch(tag) {
923
+ default:
924
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
925
+ break;
926
+ case 8: {
927
+ Enabled = input.ReadBool();
928
+ break;
929
+ }
930
+ case 18: {
931
+ excludedInterfaces_.AddEntriesFrom(ref input, _repeated_excludedInterfaces_codec);
932
+ break;
933
+ }
934
+ }
935
+ }
936
+ }
937
+ #endif
938
+
939
+ }
940
+
941
+ public sealed partial class AutoUpdate : pb::IMessage<AutoUpdate>
942
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
943
+ , pb::IBufferMessage
944
+ #endif
945
+ {
946
+ private static readonly pb::MessageParser<AutoUpdate> _parser = new pb::MessageParser<AutoUpdate>(() => new AutoUpdate());
947
+ private pb::UnknownFieldSet _unknownFields;
948
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
949
+ public static pb::MessageParser<AutoUpdate> Parser { get { return _parser; } }
950
+
951
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
952
+ public static pbr::MessageDescriptor Descriptor {
953
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[4]; }
954
+ }
955
+
956
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
957
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
958
+ get { return Descriptor; }
959
+ }
960
+
961
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
962
+ public AutoUpdate() {
963
+ OnConstruction();
964
+ }
965
+
966
+ partial void OnConstruction();
967
+
968
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
969
+ public AutoUpdate(AutoUpdate other) : this() {
970
+ enabled_ = other.enabled_;
971
+ schedule_ = other.schedule_;
972
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
973
+ }
974
+
975
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
976
+ public AutoUpdate Clone() {
977
+ return new AutoUpdate(this);
978
+ }
979
+
980
+ /// <summary>Field number for the "enabled" field.</summary>
981
+ public const int EnabledFieldNumber = 1;
982
+ private bool enabled_;
983
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
984
+ public bool Enabled {
985
+ get { return enabled_; }
986
+ set {
987
+ enabled_ = value;
988
+ }
989
+ }
990
+
991
+ /// <summary>Field number for the "schedule" field.</summary>
992
+ public const int ScheduleFieldNumber = 2;
993
+ private string schedule_ = "";
994
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
995
+ public string Schedule {
996
+ get { return schedule_; }
997
+ set {
998
+ schedule_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
999
+ }
1000
+ }
1001
+
1002
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1003
+ public override bool Equals(object other) {
1004
+ return Equals(other as AutoUpdate);
1005
+ }
1006
+
1007
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1008
+ public bool Equals(AutoUpdate other) {
1009
+ if (ReferenceEquals(other, null)) {
1010
+ return false;
1011
+ }
1012
+ if (ReferenceEquals(other, this)) {
1013
+ return true;
1014
+ }
1015
+ if (Enabled != other.Enabled) return false;
1016
+ if (Schedule != other.Schedule) return false;
1017
+ return Equals(_unknownFields, other._unknownFields);
1018
+ }
1019
+
1020
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1021
+ public override int GetHashCode() {
1022
+ int hash = 1;
1023
+ if (Enabled != false) hash ^= Enabled.GetHashCode();
1024
+ if (Schedule.Length != 0) hash ^= Schedule.GetHashCode();
1025
+ if (_unknownFields != null) {
1026
+ hash ^= _unknownFields.GetHashCode();
1027
+ }
1028
+ return hash;
1029
+ }
1030
+
1031
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1032
+ public override string ToString() {
1033
+ return pb::JsonFormatter.ToDiagnosticString(this);
1034
+ }
1035
+
1036
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1037
+ public void WriteTo(pb::CodedOutputStream output) {
1038
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1039
+ output.WriteRawMessage(this);
1040
+ #else
1041
+ if (Enabled != false) {
1042
+ output.WriteRawTag(8);
1043
+ output.WriteBool(Enabled);
1044
+ }
1045
+ if (Schedule.Length != 0) {
1046
+ output.WriteRawTag(18);
1047
+ output.WriteString(Schedule);
1048
+ }
1049
+ if (_unknownFields != null) {
1050
+ _unknownFields.WriteTo(output);
1051
+ }
1052
+ #endif
1053
+ }
1054
+
1055
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1056
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1057
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1058
+ if (Enabled != false) {
1059
+ output.WriteRawTag(8);
1060
+ output.WriteBool(Enabled);
1061
+ }
1062
+ if (Schedule.Length != 0) {
1063
+ output.WriteRawTag(18);
1064
+ output.WriteString(Schedule);
1065
+ }
1066
+ if (_unknownFields != null) {
1067
+ _unknownFields.WriteTo(ref output);
1068
+ }
1069
+ }
1070
+ #endif
1071
+
1072
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1073
+ public int CalculateSize() {
1074
+ int size = 0;
1075
+ if (Enabled != false) {
1076
+ size += 1 + 1;
1077
+ }
1078
+ if (Schedule.Length != 0) {
1079
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(Schedule);
1080
+ }
1081
+ if (_unknownFields != null) {
1082
+ size += _unknownFields.CalculateSize();
1083
+ }
1084
+ return size;
1085
+ }
1086
+
1087
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1088
+ public void MergeFrom(AutoUpdate other) {
1089
+ if (other == null) {
1090
+ return;
1091
+ }
1092
+ if (other.Enabled != false) {
1093
+ Enabled = other.Enabled;
1094
+ }
1095
+ if (other.Schedule.Length != 0) {
1096
+ Schedule = other.Schedule;
1097
+ }
1098
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1099
+ }
1100
+
1101
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1102
+ public void MergeFrom(pb::CodedInputStream input) {
1103
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1104
+ input.ReadRawMessage(this);
1105
+ #else
1106
+ uint tag;
1107
+ while ((tag = input.ReadTag()) != 0) {
1108
+ switch(tag) {
1109
+ default:
1110
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1111
+ break;
1112
+ case 8: {
1113
+ Enabled = input.ReadBool();
1114
+ break;
1115
+ }
1116
+ case 18: {
1117
+ Schedule = input.ReadString();
1118
+ break;
1119
+ }
1120
+ }
1121
+ }
1122
+ #endif
1123
+ }
1124
+
1125
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1126
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1127
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1128
+ uint tag;
1129
+ while ((tag = input.ReadTag()) != 0) {
1130
+ switch(tag) {
1131
+ default:
1132
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1133
+ break;
1134
+ case 8: {
1135
+ Enabled = input.ReadBool();
1136
+ break;
1137
+ }
1138
+ case 18: {
1139
+ Schedule = input.ReadString();
1140
+ break;
1141
+ }
1142
+ }
1143
+ }
1144
+ }
1145
+ #endif
1146
+
1147
+ }
1148
+
1149
+ public sealed partial class OperationalConfig : pb::IMessage<OperationalConfig>
1150
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1151
+ , pb::IBufferMessage
1152
+ #endif
1153
+ {
1154
+ private static readonly pb::MessageParser<OperationalConfig> _parser = new pb::MessageParser<OperationalConfig>(() => new OperationalConfig());
1155
+ private pb::UnknownFieldSet _unknownFields;
1156
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1157
+ public static pb::MessageParser<OperationalConfig> Parser { get { return _parser; } }
1158
+
1159
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1160
+ public static pbr::MessageDescriptor Descriptor {
1161
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[5]; }
1162
+ }
1163
+
1164
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1165
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
1166
+ get { return Descriptor; }
1167
+ }
1168
+
1169
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1170
+ public OperationalConfig() {
1171
+ OnConstruction();
1172
+ }
1173
+
1174
+ partial void OnConstruction();
1175
+
1176
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1177
+ public OperationalConfig(OperationalConfig other) : this() {
1178
+ assetRadarConfig_ = other.assetRadarConfig_ != null ? other.assetRadarConfig_.Clone() : null;
1179
+ autoUpdateConfig_ = other.autoUpdateConfig_ != null ? other.autoUpdateConfig_.Clone() : null;
1180
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1181
+ }
1182
+
1183
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1184
+ public OperationalConfig Clone() {
1185
+ return new OperationalConfig(this);
1186
+ }
1187
+
1188
+ /// <summary>Field number for the "asset_radar_config" field.</summary>
1189
+ public const int AssetRadarConfigFieldNumber = 1;
1190
+ private global::Lansweeper.Scanningconfig.V1.AssetRadar assetRadarConfig_;
1191
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1192
+ public global::Lansweeper.Scanningconfig.V1.AssetRadar AssetRadarConfig {
1193
+ get { return assetRadarConfig_; }
1194
+ set {
1195
+ assetRadarConfig_ = value;
1196
+ }
1197
+ }
1198
+
1199
+ /// <summary>Field number for the "auto_update_config" field.</summary>
1200
+ public const int AutoUpdateConfigFieldNumber = 2;
1201
+ private global::Lansweeper.Scanningconfig.V1.AutoUpdate autoUpdateConfig_;
1202
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1203
+ public global::Lansweeper.Scanningconfig.V1.AutoUpdate AutoUpdateConfig {
1204
+ get { return autoUpdateConfig_; }
1205
+ set {
1206
+ autoUpdateConfig_ = value;
1207
+ }
1208
+ }
1209
+
1210
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1211
+ public override bool Equals(object other) {
1212
+ return Equals(other as OperationalConfig);
1213
+ }
1214
+
1215
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1216
+ public bool Equals(OperationalConfig other) {
1217
+ if (ReferenceEquals(other, null)) {
1218
+ return false;
1219
+ }
1220
+ if (ReferenceEquals(other, this)) {
1221
+ return true;
1222
+ }
1223
+ if (!object.Equals(AssetRadarConfig, other.AssetRadarConfig)) return false;
1224
+ if (!object.Equals(AutoUpdateConfig, other.AutoUpdateConfig)) return false;
1225
+ return Equals(_unknownFields, other._unknownFields);
1226
+ }
1227
+
1228
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1229
+ public override int GetHashCode() {
1230
+ int hash = 1;
1231
+ if (assetRadarConfig_ != null) hash ^= AssetRadarConfig.GetHashCode();
1232
+ if (autoUpdateConfig_ != null) hash ^= AutoUpdateConfig.GetHashCode();
1233
+ if (_unknownFields != null) {
1234
+ hash ^= _unknownFields.GetHashCode();
1235
+ }
1236
+ return hash;
1237
+ }
1238
+
1239
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1240
+ public override string ToString() {
1241
+ return pb::JsonFormatter.ToDiagnosticString(this);
1242
+ }
1243
+
1244
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1245
+ public void WriteTo(pb::CodedOutputStream output) {
1246
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1247
+ output.WriteRawMessage(this);
1248
+ #else
1249
+ if (assetRadarConfig_ != null) {
1250
+ output.WriteRawTag(10);
1251
+ output.WriteMessage(AssetRadarConfig);
1252
+ }
1253
+ if (autoUpdateConfig_ != null) {
1254
+ output.WriteRawTag(18);
1255
+ output.WriteMessage(AutoUpdateConfig);
1256
+ }
1257
+ if (_unknownFields != null) {
1258
+ _unknownFields.WriteTo(output);
1259
+ }
1260
+ #endif
1261
+ }
1262
+
1263
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1264
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1265
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1266
+ if (assetRadarConfig_ != null) {
1267
+ output.WriteRawTag(10);
1268
+ output.WriteMessage(AssetRadarConfig);
1269
+ }
1270
+ if (autoUpdateConfig_ != null) {
1271
+ output.WriteRawTag(18);
1272
+ output.WriteMessage(AutoUpdateConfig);
1273
+ }
1274
+ if (_unknownFields != null) {
1275
+ _unknownFields.WriteTo(ref output);
1276
+ }
1277
+ }
1278
+ #endif
1279
+
1280
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1281
+ public int CalculateSize() {
1282
+ int size = 0;
1283
+ if (assetRadarConfig_ != null) {
1284
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AssetRadarConfig);
1285
+ }
1286
+ if (autoUpdateConfig_ != null) {
1287
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(AutoUpdateConfig);
1288
+ }
1289
+ if (_unknownFields != null) {
1290
+ size += _unknownFields.CalculateSize();
1291
+ }
1292
+ return size;
1293
+ }
1294
+
1295
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1296
+ public void MergeFrom(OperationalConfig other) {
1297
+ if (other == null) {
1298
+ return;
1299
+ }
1300
+ if (other.assetRadarConfig_ != null) {
1301
+ if (assetRadarConfig_ == null) {
1302
+ AssetRadarConfig = new global::Lansweeper.Scanningconfig.V1.AssetRadar();
1303
+ }
1304
+ AssetRadarConfig.MergeFrom(other.AssetRadarConfig);
1305
+ }
1306
+ if (other.autoUpdateConfig_ != null) {
1307
+ if (autoUpdateConfig_ == null) {
1308
+ AutoUpdateConfig = new global::Lansweeper.Scanningconfig.V1.AutoUpdate();
1309
+ }
1310
+ AutoUpdateConfig.MergeFrom(other.AutoUpdateConfig);
1311
+ }
1312
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1313
+ }
1314
+
1315
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1316
+ public void MergeFrom(pb::CodedInputStream input) {
1317
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1318
+ input.ReadRawMessage(this);
1319
+ #else
1320
+ uint tag;
1321
+ while ((tag = input.ReadTag()) != 0) {
1322
+ switch(tag) {
1323
+ default:
1324
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1325
+ break;
1326
+ case 10: {
1327
+ if (assetRadarConfig_ == null) {
1328
+ AssetRadarConfig = new global::Lansweeper.Scanningconfig.V1.AssetRadar();
1329
+ }
1330
+ input.ReadMessage(AssetRadarConfig);
1331
+ break;
1332
+ }
1333
+ case 18: {
1334
+ if (autoUpdateConfig_ == null) {
1335
+ AutoUpdateConfig = new global::Lansweeper.Scanningconfig.V1.AutoUpdate();
1336
+ }
1337
+ input.ReadMessage(AutoUpdateConfig);
1338
+ break;
1339
+ }
1340
+ }
1341
+ }
1342
+ #endif
1343
+ }
1344
+
1345
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1346
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1347
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1348
+ uint tag;
1349
+ while ((tag = input.ReadTag()) != 0) {
1350
+ switch(tag) {
1351
+ default:
1352
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1353
+ break;
1354
+ case 10: {
1355
+ if (assetRadarConfig_ == null) {
1356
+ AssetRadarConfig = new global::Lansweeper.Scanningconfig.V1.AssetRadar();
1357
+ }
1358
+ input.ReadMessage(AssetRadarConfig);
1359
+ break;
1360
+ }
1361
+ case 18: {
1362
+ if (autoUpdateConfig_ == null) {
1363
+ AutoUpdateConfig = new global::Lansweeper.Scanningconfig.V1.AutoUpdate();
1364
+ }
1365
+ input.ReadMessage(AutoUpdateConfig);
1366
+ break;
1367
+ }
1368
+ }
1369
+ }
1370
+ }
1371
+ #endif
1372
+
1373
+ }
1374
+
1375
+ public sealed partial class Trigger : pb::IMessage<Trigger>
1376
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1377
+ , pb::IBufferMessage
1378
+ #endif
1379
+ {
1380
+ private static readonly pb::MessageParser<Trigger> _parser = new pb::MessageParser<Trigger>(() => new Trigger());
1381
+ private pb::UnknownFieldSet _unknownFields;
1382
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1383
+ public static pb::MessageParser<Trigger> Parser { get { return _parser; } }
1384
+
1385
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1386
+ public static pbr::MessageDescriptor Descriptor {
1387
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[6]; }
1388
+ }
1389
+
1390
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1391
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
1392
+ get { return Descriptor; }
1393
+ }
1394
+
1395
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1396
+ public Trigger() {
1397
+ OnConstruction();
1398
+ }
1399
+
1400
+ partial void OnConstruction();
1401
+
1402
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1403
+ public Trigger(Trigger other) : this() {
1404
+ cronExpr_ = other.cronExpr_;
1405
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1406
+ }
1407
+
1408
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1409
+ public Trigger Clone() {
1410
+ return new Trigger(this);
1411
+ }
1412
+
1413
+ /// <summary>Field number for the "cron_expr" field.</summary>
1414
+ public const int CronExprFieldNumber = 1;
1415
+ private string cronExpr_ = "";
1416
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1417
+ public string CronExpr {
1418
+ get { return cronExpr_; }
1419
+ set {
1420
+ cronExpr_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1421
+ }
1422
+ }
1423
+
1424
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1425
+ public override bool Equals(object other) {
1426
+ return Equals(other as Trigger);
1427
+ }
1428
+
1429
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1430
+ public bool Equals(Trigger other) {
1431
+ if (ReferenceEquals(other, null)) {
1432
+ return false;
1433
+ }
1434
+ if (ReferenceEquals(other, this)) {
1435
+ return true;
1436
+ }
1437
+ if (CronExpr != other.CronExpr) return false;
1438
+ return Equals(_unknownFields, other._unknownFields);
1439
+ }
1440
+
1441
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1442
+ public override int GetHashCode() {
1443
+ int hash = 1;
1444
+ if (CronExpr.Length != 0) hash ^= CronExpr.GetHashCode();
1445
+ if (_unknownFields != null) {
1446
+ hash ^= _unknownFields.GetHashCode();
1447
+ }
1448
+ return hash;
1449
+ }
1450
+
1451
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1452
+ public override string ToString() {
1453
+ return pb::JsonFormatter.ToDiagnosticString(this);
1454
+ }
1455
+
1456
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1457
+ public void WriteTo(pb::CodedOutputStream output) {
1458
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1459
+ output.WriteRawMessage(this);
1460
+ #else
1461
+ if (CronExpr.Length != 0) {
1462
+ output.WriteRawTag(10);
1463
+ output.WriteString(CronExpr);
1464
+ }
1465
+ if (_unknownFields != null) {
1466
+ _unknownFields.WriteTo(output);
1467
+ }
1468
+ #endif
1469
+ }
1470
+
1471
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1472
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1473
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1474
+ if (CronExpr.Length != 0) {
1475
+ output.WriteRawTag(10);
1476
+ output.WriteString(CronExpr);
1477
+ }
1478
+ if (_unknownFields != null) {
1479
+ _unknownFields.WriteTo(ref output);
1480
+ }
1481
+ }
1482
+ #endif
1483
+
1484
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1485
+ public int CalculateSize() {
1486
+ int size = 0;
1487
+ if (CronExpr.Length != 0) {
1488
+ size += 1 + pb::CodedOutputStream.ComputeStringSize(CronExpr);
1489
+ }
1490
+ if (_unknownFields != null) {
1491
+ size += _unknownFields.CalculateSize();
1492
+ }
1493
+ return size;
1494
+ }
1495
+
1496
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1497
+ public void MergeFrom(Trigger other) {
1498
+ if (other == null) {
1499
+ return;
1500
+ }
1501
+ if (other.CronExpr.Length != 0) {
1502
+ CronExpr = other.CronExpr;
1503
+ }
1504
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1505
+ }
1506
+
1507
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1508
+ public void MergeFrom(pb::CodedInputStream input) {
1509
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1510
+ input.ReadRawMessage(this);
1511
+ #else
1512
+ uint tag;
1513
+ while ((tag = input.ReadTag()) != 0) {
1514
+ switch(tag) {
1515
+ default:
1516
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1517
+ break;
1518
+ case 10: {
1519
+ CronExpr = input.ReadString();
1520
+ break;
1521
+ }
1522
+ }
1523
+ }
1524
+ #endif
1525
+ }
1526
+
1527
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1528
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1529
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1530
+ uint tag;
1531
+ while ((tag = input.ReadTag()) != 0) {
1532
+ switch(tag) {
1533
+ default:
1534
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1535
+ break;
1536
+ case 10: {
1537
+ CronExpr = input.ReadString();
1538
+ break;
1539
+ }
1540
+ }
1541
+ }
1542
+ }
1543
+ #endif
1544
+
1545
+ }
1546
+
1547
+ public sealed partial class Action : pb::IMessage<Action>
1548
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1549
+ , pb::IBufferMessage
1550
+ #endif
1551
+ {
1552
+ private static readonly pb::MessageParser<Action> _parser = new pb::MessageParser<Action>(() => new Action());
1553
+ private pb::UnknownFieldSet _unknownFields;
1554
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1555
+ public static pb::MessageParser<Action> Parser { get { return _parser; } }
1556
+
1557
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1558
+ public static pbr::MessageDescriptor Descriptor {
1559
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[7]; }
1560
+ }
1561
+
1562
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1563
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
1564
+ get { return Descriptor; }
1565
+ }
1566
+
1567
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1568
+ public Action() {
1569
+ OnConstruction();
1570
+ }
1571
+
1572
+ partial void OnConstruction();
1573
+
1574
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1575
+ public Action(Action other) : this() {
1576
+ triggers_ = other.triggers_.Clone();
1577
+ actionType_ = other.actionType_;
1578
+ credentials_ = other.credentials_.Clone();
1579
+ switch (other.DefinitionCase) {
1580
+ case DefinitionOneofCase.Agent:
1581
+ Agent = other.Agent.Clone();
1582
+ break;
1583
+ }
1584
+
1585
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1586
+ }
1587
+
1588
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1589
+ public Action Clone() {
1590
+ return new Action(this);
1591
+ }
1592
+
1593
+ /// <summary>Field number for the "triggers" field.</summary>
1594
+ public const int TriggersFieldNumber = 1;
1595
+ private static readonly pb::FieldCodec<global::Lansweeper.Scanningconfig.V1.Trigger> _repeated_triggers_codec
1596
+ = pb::FieldCodec.ForMessage(10, global::Lansweeper.Scanningconfig.V1.Trigger.Parser);
1597
+ private readonly pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Trigger> triggers_ = new pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Trigger>();
1598
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1599
+ public pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Trigger> Triggers {
1600
+ get { return triggers_; }
1601
+ }
1602
+
1603
+ /// <summary>Field number for the "action_type" field.</summary>
1604
+ public const int ActionTypeFieldNumber = 2;
1605
+ private global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType actionType_ = global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType.Unspecified;
1606
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1607
+ public global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType ActionType {
1608
+ get { return actionType_; }
1609
+ set {
1610
+ actionType_ = value;
1611
+ }
1612
+ }
1613
+
1614
+ /// <summary>Field number for the "credentials" field.</summary>
1615
+ public const int CredentialsFieldNumber = 3;
1616
+ private static readonly pb::FieldCodec<global::Lansweeper.Scanningconfig.V1.Credential> _repeated_credentials_codec
1617
+ = pb::FieldCodec.ForMessage(26, global::Lansweeper.Scanningconfig.V1.Credential.Parser);
1618
+ private readonly pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Credential> credentials_ = new pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Credential>();
1619
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1620
+ public pbc::RepeatedField<global::Lansweeper.Scanningconfig.V1.Credential> Credentials {
1621
+ get { return credentials_; }
1622
+ }
1623
+
1624
+ /// <summary>Field number for the "agent" field.</summary>
1625
+ public const int AgentFieldNumber = 4;
1626
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1627
+ public global::Lansweeper.Scanningconfig.V1.Agent Agent {
1628
+ get { return definitionCase_ == DefinitionOneofCase.Agent ? (global::Lansweeper.Scanningconfig.V1.Agent) definition_ : null; }
1629
+ set {
1630
+ definition_ = value;
1631
+ definitionCase_ = value == null ? DefinitionOneofCase.None : DefinitionOneofCase.Agent;
1632
+ }
1633
+ }
1634
+
1635
+ private object definition_;
1636
+ /// <summary>Enum of possible cases for the "definition" oneof.</summary>
1637
+ public enum DefinitionOneofCase {
1638
+ None = 0,
1639
+ Agent = 4,
1640
+ }
1641
+ private DefinitionOneofCase definitionCase_ = DefinitionOneofCase.None;
1642
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1643
+ public DefinitionOneofCase DefinitionCase {
1644
+ get { return definitionCase_; }
1645
+ }
1646
+
1647
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1648
+ public void ClearDefinition() {
1649
+ definitionCase_ = DefinitionOneofCase.None;
1650
+ definition_ = null;
1651
+ }
1652
+
1653
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1654
+ public override bool Equals(object other) {
1655
+ return Equals(other as Action);
1656
+ }
1657
+
1658
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1659
+ public bool Equals(Action other) {
1660
+ if (ReferenceEquals(other, null)) {
1661
+ return false;
1662
+ }
1663
+ if (ReferenceEquals(other, this)) {
1664
+ return true;
1665
+ }
1666
+ if(!triggers_.Equals(other.triggers_)) return false;
1667
+ if (ActionType != other.ActionType) return false;
1668
+ if(!credentials_.Equals(other.credentials_)) return false;
1669
+ if (!object.Equals(Agent, other.Agent)) return false;
1670
+ if (DefinitionCase != other.DefinitionCase) return false;
1671
+ return Equals(_unknownFields, other._unknownFields);
1672
+ }
1673
+
1674
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1675
+ public override int GetHashCode() {
1676
+ int hash = 1;
1677
+ hash ^= triggers_.GetHashCode();
1678
+ if (ActionType != global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType.Unspecified) hash ^= ActionType.GetHashCode();
1679
+ hash ^= credentials_.GetHashCode();
1680
+ if (definitionCase_ == DefinitionOneofCase.Agent) hash ^= Agent.GetHashCode();
1681
+ hash ^= (int) definitionCase_;
1682
+ if (_unknownFields != null) {
1683
+ hash ^= _unknownFields.GetHashCode();
1684
+ }
1685
+ return hash;
1686
+ }
1687
+
1688
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1689
+ public override string ToString() {
1690
+ return pb::JsonFormatter.ToDiagnosticString(this);
1691
+ }
1692
+
1693
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1694
+ public void WriteTo(pb::CodedOutputStream output) {
1695
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1696
+ output.WriteRawMessage(this);
1697
+ #else
1698
+ triggers_.WriteTo(output, _repeated_triggers_codec);
1699
+ if (ActionType != global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType.Unspecified) {
1700
+ output.WriteRawTag(16);
1701
+ output.WriteEnum((int) ActionType);
1702
+ }
1703
+ credentials_.WriteTo(output, _repeated_credentials_codec);
1704
+ if (definitionCase_ == DefinitionOneofCase.Agent) {
1705
+ output.WriteRawTag(34);
1706
+ output.WriteMessage(Agent);
1707
+ }
1708
+ if (_unknownFields != null) {
1709
+ _unknownFields.WriteTo(output);
1710
+ }
1711
+ #endif
1712
+ }
1713
+
1714
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1715
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1716
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1717
+ triggers_.WriteTo(ref output, _repeated_triggers_codec);
1718
+ if (ActionType != global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType.Unspecified) {
1719
+ output.WriteRawTag(16);
1720
+ output.WriteEnum((int) ActionType);
1721
+ }
1722
+ credentials_.WriteTo(ref output, _repeated_credentials_codec);
1723
+ if (definitionCase_ == DefinitionOneofCase.Agent) {
1724
+ output.WriteRawTag(34);
1725
+ output.WriteMessage(Agent);
1726
+ }
1727
+ if (_unknownFields != null) {
1728
+ _unknownFields.WriteTo(ref output);
1729
+ }
1730
+ }
1731
+ #endif
1732
+
1733
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1734
+ public int CalculateSize() {
1735
+ int size = 0;
1736
+ size += triggers_.CalculateSize(_repeated_triggers_codec);
1737
+ if (ActionType != global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType.Unspecified) {
1738
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ActionType);
1739
+ }
1740
+ size += credentials_.CalculateSize(_repeated_credentials_codec);
1741
+ if (definitionCase_ == DefinitionOneofCase.Agent) {
1742
+ size += 1 + pb::CodedOutputStream.ComputeMessageSize(Agent);
1743
+ }
1744
+ if (_unknownFields != null) {
1745
+ size += _unknownFields.CalculateSize();
1746
+ }
1747
+ return size;
1748
+ }
1749
+
1750
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1751
+ public void MergeFrom(Action other) {
1752
+ if (other == null) {
1753
+ return;
1754
+ }
1755
+ triggers_.Add(other.triggers_);
1756
+ if (other.ActionType != global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType.Unspecified) {
1757
+ ActionType = other.ActionType;
1758
+ }
1759
+ credentials_.Add(other.credentials_);
1760
+ switch (other.DefinitionCase) {
1761
+ case DefinitionOneofCase.Agent:
1762
+ if (Agent == null) {
1763
+ Agent = new global::Lansweeper.Scanningconfig.V1.Agent();
1764
+ }
1765
+ Agent.MergeFrom(other.Agent);
1766
+ break;
1767
+ }
1768
+
1769
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1770
+ }
1771
+
1772
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1773
+ public void MergeFrom(pb::CodedInputStream input) {
1774
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1775
+ input.ReadRawMessage(this);
1776
+ #else
1777
+ uint tag;
1778
+ while ((tag = input.ReadTag()) != 0) {
1779
+ switch(tag) {
1780
+ default:
1781
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1782
+ break;
1783
+ case 10: {
1784
+ triggers_.AddEntriesFrom(input, _repeated_triggers_codec);
1785
+ break;
1786
+ }
1787
+ case 16: {
1788
+ ActionType = (global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType) input.ReadEnum();
1789
+ break;
1790
+ }
1791
+ case 26: {
1792
+ credentials_.AddEntriesFrom(input, _repeated_credentials_codec);
1793
+ break;
1794
+ }
1795
+ case 34: {
1796
+ global::Lansweeper.Scanningconfig.V1.Agent subBuilder = new global::Lansweeper.Scanningconfig.V1.Agent();
1797
+ if (definitionCase_ == DefinitionOneofCase.Agent) {
1798
+ subBuilder.MergeFrom(Agent);
1799
+ }
1800
+ input.ReadMessage(subBuilder);
1801
+ Agent = subBuilder;
1802
+ break;
1803
+ }
1804
+ }
1805
+ }
1806
+ #endif
1807
+ }
1808
+
1809
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1810
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1811
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1812
+ uint tag;
1813
+ while ((tag = input.ReadTag()) != 0) {
1814
+ switch(tag) {
1815
+ default:
1816
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1817
+ break;
1818
+ case 10: {
1819
+ triggers_.AddEntriesFrom(ref input, _repeated_triggers_codec);
1820
+ break;
1821
+ }
1822
+ case 16: {
1823
+ ActionType = (global::Lansweeper.Scanningconfig.V1.Action.Types.ActionType) input.ReadEnum();
1824
+ break;
1825
+ }
1826
+ case 26: {
1827
+ credentials_.AddEntriesFrom(ref input, _repeated_credentials_codec);
1828
+ break;
1829
+ }
1830
+ case 34: {
1831
+ global::Lansweeper.Scanningconfig.V1.Agent subBuilder = new global::Lansweeper.Scanningconfig.V1.Agent();
1832
+ if (definitionCase_ == DefinitionOneofCase.Agent) {
1833
+ subBuilder.MergeFrom(Agent);
1834
+ }
1835
+ input.ReadMessage(subBuilder);
1836
+ Agent = subBuilder;
1837
+ break;
1838
+ }
1839
+ }
1840
+ }
1841
+ }
1842
+ #endif
1843
+
1844
+ #region Nested types
1845
+ /// <summary>Container for nested types declared in the Action message type.</summary>
1846
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1847
+ public static partial class Types {
1848
+ public enum ActionType {
1849
+ [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
1850
+ [pbr::OriginalName("AGENT")] Agent = 1,
1851
+ }
1852
+
1853
+ }
1854
+ #endregion
1855
+
1856
+ }
1857
+
1858
+ public sealed partial class Agent : pb::IMessage<Agent>
1859
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1860
+ , pb::IBufferMessage
1861
+ #endif
1862
+ {
1863
+ private static readonly pb::MessageParser<Agent> _parser = new pb::MessageParser<Agent>(() => new Agent());
1864
+ private pb::UnknownFieldSet _unknownFields;
1865
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1866
+ public static pb::MessageParser<Agent> Parser { get { return _parser; } }
1867
+
1868
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1869
+ public static pbr::MessageDescriptor Descriptor {
1870
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[8]; }
1871
+ }
1872
+
1873
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1874
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
1875
+ get { return Descriptor; }
1876
+ }
1877
+
1878
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1879
+ public Agent() {
1880
+ OnConstruction();
1881
+ }
1882
+
1883
+ partial void OnConstruction();
1884
+
1885
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1886
+ public Agent(Agent other) : this() {
1887
+ scanFocus_ = other.scanFocus_;
1888
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1889
+ }
1890
+
1891
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1892
+ public Agent Clone() {
1893
+ return new Agent(this);
1894
+ }
1895
+
1896
+ /// <summary>Field number for the "scan_focus" field.</summary>
1897
+ public const int ScanFocusFieldNumber = 1;
1898
+ private global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus scanFocus_ = global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus.All;
1899
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1900
+ public global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus ScanFocus {
1901
+ get { return scanFocus_; }
1902
+ set {
1903
+ scanFocus_ = value;
1904
+ }
1905
+ }
1906
+
1907
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1908
+ public override bool Equals(object other) {
1909
+ return Equals(other as Agent);
1910
+ }
1911
+
1912
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1913
+ public bool Equals(Agent other) {
1914
+ if (ReferenceEquals(other, null)) {
1915
+ return false;
1916
+ }
1917
+ if (ReferenceEquals(other, this)) {
1918
+ return true;
1919
+ }
1920
+ if (ScanFocus != other.ScanFocus) return false;
1921
+ return Equals(_unknownFields, other._unknownFields);
1922
+ }
1923
+
1924
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1925
+ public override int GetHashCode() {
1926
+ int hash = 1;
1927
+ if (ScanFocus != global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus.All) hash ^= ScanFocus.GetHashCode();
1928
+ if (_unknownFields != null) {
1929
+ hash ^= _unknownFields.GetHashCode();
1930
+ }
1931
+ return hash;
1932
+ }
1933
+
1934
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1935
+ public override string ToString() {
1936
+ return pb::JsonFormatter.ToDiagnosticString(this);
1937
+ }
1938
+
1939
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1940
+ public void WriteTo(pb::CodedOutputStream output) {
1941
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1942
+ output.WriteRawMessage(this);
1943
+ #else
1944
+ if (ScanFocus != global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus.All) {
1945
+ output.WriteRawTag(8);
1946
+ output.WriteEnum((int) ScanFocus);
1947
+ }
1948
+ if (_unknownFields != null) {
1949
+ _unknownFields.WriteTo(output);
1950
+ }
1951
+ #endif
1952
+ }
1953
+
1954
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1955
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1956
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1957
+ if (ScanFocus != global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus.All) {
1958
+ output.WriteRawTag(8);
1959
+ output.WriteEnum((int) ScanFocus);
1960
+ }
1961
+ if (_unknownFields != null) {
1962
+ _unknownFields.WriteTo(ref output);
1963
+ }
1964
+ }
1965
+ #endif
1966
+
1967
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1968
+ public int CalculateSize() {
1969
+ int size = 0;
1970
+ if (ScanFocus != global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus.All) {
1971
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScanFocus);
1972
+ }
1973
+ if (_unknownFields != null) {
1974
+ size += _unknownFields.CalculateSize();
1975
+ }
1976
+ return size;
1977
+ }
1978
+
1979
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1980
+ public void MergeFrom(Agent other) {
1981
+ if (other == null) {
1982
+ return;
1983
+ }
1984
+ if (other.ScanFocus != global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus.All) {
1985
+ ScanFocus = other.ScanFocus;
1986
+ }
1987
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1988
+ }
1989
+
1990
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1991
+ public void MergeFrom(pb::CodedInputStream input) {
1992
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1993
+ input.ReadRawMessage(this);
1994
+ #else
1995
+ uint tag;
1996
+ while ((tag = input.ReadTag()) != 0) {
1997
+ switch(tag) {
1998
+ default:
1999
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2000
+ break;
2001
+ case 8: {
2002
+ ScanFocus = (global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus) input.ReadEnum();
2003
+ break;
2004
+ }
2005
+ }
2006
+ }
2007
+ #endif
2008
+ }
2009
+
2010
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2011
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2012
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2013
+ uint tag;
2014
+ while ((tag = input.ReadTag()) != 0) {
2015
+ switch(tag) {
2016
+ default:
2017
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2018
+ break;
2019
+ case 8: {
2020
+ ScanFocus = (global::Lansweeper.Scanningconfig.V1.Agent.Types.ScanFocus) input.ReadEnum();
2021
+ break;
2022
+ }
2023
+ }
2024
+ }
2025
+ }
2026
+ #endif
2027
+
2028
+ #region Nested types
2029
+ /// <summary>Container for nested types declared in the Agent message type.</summary>
2030
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2031
+ public static partial class Types {
2032
+ public enum ScanFocus {
2033
+ [pbr::OriginalName("ALL")] All = 0,
2034
+ [pbr::OriginalName("USERS")] Users = 1,
2035
+ [pbr::OriginalName("INVENTORY")] Inventory = 2,
2036
+ }
2037
+
2038
+ }
2039
+ #endregion
2040
+
2041
+ }
2042
+
2043
+ public sealed partial class Credential : pb::IMessage<Credential>
2044
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2045
+ , pb::IBufferMessage
2046
+ #endif
2047
+ {
2048
+ private static readonly pb::MessageParser<Credential> _parser = new pb::MessageParser<Credential>(() => new Credential());
2049
+ private pb::UnknownFieldSet _unknownFields;
2050
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2051
+ public static pb::MessageParser<Credential> Parser { get { return _parser; } }
2052
+
2053
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2054
+ public static pbr::MessageDescriptor Descriptor {
2055
+ get { return global::Lansweeper.Scanningconfig.V1.ScanningconfigReflection.Descriptor.MessageTypes[9]; }
2056
+ }
2057
+
2058
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2059
+ pbr::MessageDescriptor pb::IMessage.Descriptor {
2060
+ get { return Descriptor; }
2061
+ }
2062
+
2063
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2064
+ public Credential() {
2065
+ OnConstruction();
2066
+ }
2067
+
2068
+ partial void OnConstruction();
2069
+
2070
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2071
+ public Credential(Credential other) : this() {
2072
+ type_ = other.type_;
2073
+ _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2074
+ }
2075
+
2076
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2077
+ public Credential Clone() {
2078
+ return new Credential(this);
2079
+ }
2080
+
2081
+ /// <summary>Field number for the "type" field.</summary>
2082
+ public const int TypeFieldNumber = 1;
2083
+ private global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType type_ = global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType.Unspecified;
2084
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2085
+ public global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType Type {
2086
+ get { return type_; }
2087
+ set {
2088
+ type_ = value;
2089
+ }
2090
+ }
2091
+
2092
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2093
+ public override bool Equals(object other) {
2094
+ return Equals(other as Credential);
2095
+ }
2096
+
2097
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2098
+ public bool Equals(Credential other) {
2099
+ if (ReferenceEquals(other, null)) {
2100
+ return false;
2101
+ }
2102
+ if (ReferenceEquals(other, this)) {
2103
+ return true;
2104
+ }
2105
+ if (Type != other.Type) return false;
2106
+ return Equals(_unknownFields, other._unknownFields);
2107
+ }
2108
+
2109
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2110
+ public override int GetHashCode() {
2111
+ int hash = 1;
2112
+ if (Type != global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType.Unspecified) hash ^= Type.GetHashCode();
2113
+ if (_unknownFields != null) {
2114
+ hash ^= _unknownFields.GetHashCode();
2115
+ }
2116
+ return hash;
2117
+ }
2118
+
2119
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2120
+ public override string ToString() {
2121
+ return pb::JsonFormatter.ToDiagnosticString(this);
2122
+ }
2123
+
2124
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2125
+ public void WriteTo(pb::CodedOutputStream output) {
2126
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2127
+ output.WriteRawMessage(this);
2128
+ #else
2129
+ if (Type != global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType.Unspecified) {
2130
+ output.WriteRawTag(8);
2131
+ output.WriteEnum((int) Type);
2132
+ }
2133
+ if (_unknownFields != null) {
2134
+ _unknownFields.WriteTo(output);
2135
+ }
2136
+ #endif
2137
+ }
2138
+
2139
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2140
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2141
+ void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2142
+ if (Type != global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType.Unspecified) {
2143
+ output.WriteRawTag(8);
2144
+ output.WriteEnum((int) Type);
2145
+ }
2146
+ if (_unknownFields != null) {
2147
+ _unknownFields.WriteTo(ref output);
2148
+ }
2149
+ }
2150
+ #endif
2151
+
2152
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2153
+ public int CalculateSize() {
2154
+ int size = 0;
2155
+ if (Type != global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType.Unspecified) {
2156
+ size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type);
2157
+ }
2158
+ if (_unknownFields != null) {
2159
+ size += _unknownFields.CalculateSize();
2160
+ }
2161
+ return size;
2162
+ }
2163
+
2164
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2165
+ public void MergeFrom(Credential other) {
2166
+ if (other == null) {
2167
+ return;
2168
+ }
2169
+ if (other.Type != global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType.Unspecified) {
2170
+ Type = other.Type;
2171
+ }
2172
+ _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2173
+ }
2174
+
2175
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2176
+ public void MergeFrom(pb::CodedInputStream input) {
2177
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2178
+ input.ReadRawMessage(this);
2179
+ #else
2180
+ uint tag;
2181
+ while ((tag = input.ReadTag()) != 0) {
2182
+ switch(tag) {
2183
+ default:
2184
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2185
+ break;
2186
+ case 8: {
2187
+ Type = (global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType) input.ReadEnum();
2188
+ break;
2189
+ }
2190
+ }
2191
+ }
2192
+ #endif
2193
+ }
2194
+
2195
+ #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2196
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2197
+ void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2198
+ uint tag;
2199
+ while ((tag = input.ReadTag()) != 0) {
2200
+ switch(tag) {
2201
+ default:
2202
+ _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2203
+ break;
2204
+ case 8: {
2205
+ Type = (global::Lansweeper.Scanningconfig.V1.Credential.Types.CredentialType) input.ReadEnum();
2206
+ break;
2207
+ }
2208
+ }
2209
+ }
2210
+ }
2211
+ #endif
2212
+
2213
+ #region Nested types
2214
+ /// <summary>Container for nested types declared in the Credential message type.</summary>
2215
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2216
+ public static partial class Types {
2217
+ public enum CredentialType {
2218
+ [pbr::OriginalName("UNSPECIFIED")] Unspecified = 0,
2219
+ }
2220
+
2221
+ }
2222
+ #endregion
2223
+
2224
+ }
2225
+
2226
+ #endregion
2227
+
2228
+ }
2229
+
2230
+ #endregion Designer generated code