-
Notifications
You must be signed in to change notification settings - Fork 360
/
ConnectivityTest.g.cs
1686 lines (1597 loc) · 65 KB
/
ConnectivityTest.g.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/networkmanagement/v1/connectivity_test.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Google.Cloud.NetworkManagement.V1 {
/// <summary>Holder for reflection information generated from google/cloud/networkmanagement/v1/connectivity_test.proto</summary>
public static partial class ConnectivityTestReflection {
#region Descriptor
/// <summary>File descriptor for google/cloud/networkmanagement/v1/connectivity_test.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ConnectivityTestReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cjlnb29nbGUvY2xvdWQvbmV0d29ya21hbmFnZW1lbnQvdjEvY29ubmVjdGl2",
"aXR5X3Rlc3QucHJvdG8SIWdvb2dsZS5jbG91ZC5uZXR3b3JrbWFuYWdlbWVu",
"dC52MRofZ29vZ2xlL2FwaS9maWVsZF9iZWhhdmlvci5wcm90bxoZZ29vZ2xl",
"L2FwaS9yZXNvdXJjZS5wcm90bxotZ29vZ2xlL2Nsb3VkL25ldHdvcmttYW5h",
"Z2VtZW50L3YxL3RyYWNlLnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0",
"YW1wLnByb3RvGhdnb29nbGUvcnBjL3N0YXR1cy5wcm90byLHBQoQQ29ubmVj",
"dGl2aXR5VGVzdBIRCgRuYW1lGAEgASgJQgPgQQISEwoLZGVzY3JpcHRpb24Y",
"AiABKAkSQAoGc291cmNlGAMgASgLMisuZ29vZ2xlLmNsb3VkLm5ldHdvcmtt",
"YW5hZ2VtZW50LnYxLkVuZHBvaW50QgPgQQISRQoLZGVzdGluYXRpb24YBCAB",
"KAsyKy5nb29nbGUuY2xvdWQubmV0d29ya21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
new pbr::FileDescriptor[] { global::Google.Api.FieldBehaviorReflection.Descriptor, global::Google.Api.ResourceReflection.Descriptor, global::Google.Cloud.NetworkManagement.V1.TraceReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Rpc.StatusReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.NetworkManagement.V1.ConnectivityTest), global::Google.Cloud.NetworkManagement.V1.ConnectivityTest.Parser, new[]{ "Name", "Description", "Source", "Destination", "Protocol", "RelatedProjects", "DisplayName", "Labels", "CreateTime", "UpdateTime", "ReachabilityDetails" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.NetworkManagement.V1.Endpoint), global::Google.Cloud.NetworkManagement.V1.Endpoint.Parser, new[]{ "IpAddress", "Port", "Instance", "ForwardingRule", "GkeMasterCluster", "CloudSqlInstance", "Network", "NetworkType", "ProjectId" }, null, new[]{ typeof(global::Google.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType) }, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails), global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails.Parser, new[]{ "Result", "VerifyTime", "Error", "Traces" }, null, new[]{ typeof(global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails.Types.Result) }, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// A Connectivity Test for a network reachability analysis.
/// </summary>
public sealed partial class ConnectivityTest : pb::IMessage<ConnectivityTest>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ConnectivityTest> _parser = new pb::MessageParser<ConnectivityTest>(() => new ConnectivityTest());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ConnectivityTest> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Cloud.NetworkManagement.V1.ConnectivityTestReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ConnectivityTest() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ConnectivityTest(ConnectivityTest other) : this() {
name_ = other.name_;
description_ = other.description_;
source_ = other.source_ != null ? other.source_.Clone() : null;
destination_ = other.destination_ != null ? other.destination_.Clone() : null;
protocol_ = other.protocol_;
relatedProjects_ = other.relatedProjects_.Clone();
displayName_ = other.displayName_;
labels_ = other.labels_.Clone();
createTime_ = other.createTime_ != null ? other.createTime_.Clone() : null;
updateTime_ = other.updateTime_ != null ? other.updateTime_.Clone() : null;
reachabilityDetails_ = other.reachabilityDetails_ != null ? other.reachabilityDetails_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ConnectivityTest Clone() {
return new ConnectivityTest(this);
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 1;
private string name_ = "";
/// <summary>
/// Required. Unique name of the resource using the form:
/// `projects/{project_id}/locations/global/connectivityTests/{test_id}`
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "description" field.</summary>
public const int DescriptionFieldNumber = 2;
private string description_ = "";
/// <summary>
/// The user-supplied description of the Connectivity Test.
/// Maximum of 512 characters.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Description {
get { return description_; }
set {
description_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "source" field.</summary>
public const int SourceFieldNumber = 3;
private global::Google.Cloud.NetworkManagement.V1.Endpoint source_;
/// <summary>
/// Required. Source specification of the Connectivity Test.
///
/// You can use a combination of source IP address, virtual machine
/// (VM) instance, or Compute Engine network to uniquely identify
/// the source location.
///
/// Examples:
/// If the source IP address is an internal IP address within a Google Cloud
/// Virtual Private Cloud (VPC) network, then you must also specify the VPC
/// network. Otherwise, specify the VM instance, which already contains its
/// internal IP address and VPC network information.
///
/// If the source of the test is within an on-premises network, then you must
/// provide the destination VPC network.
///
/// If the source endpoint is a Compute Engine VM instance with multiple
/// network interfaces, the instance itself is not sufficient to identify the
/// endpoint. So, you must also specify the source IP address or VPC network.
///
/// A reachability analysis proceeds even if the source location is
/// ambiguous. However, the test result may include endpoints that you don't
/// intend to test.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Cloud.NetworkManagement.V1.Endpoint Source {
get { return source_; }
set {
source_ = value;
}
}
/// <summary>Field number for the "destination" field.</summary>
public const int DestinationFieldNumber = 4;
private global::Google.Cloud.NetworkManagement.V1.Endpoint destination_;
/// <summary>
/// Required. Destination specification of the Connectivity Test.
///
/// You can use a combination of destination IP address, Compute Engine
/// VM instance, or VPC network to uniquely identify the destination
/// location.
///
/// Even if the destination IP address is not unique, the source IP
/// location is unique. Usually, the analysis can infer the destination
/// endpoint from route information.
///
/// If the destination you specify is a VM instance and the instance has
/// multiple network interfaces, then you must also specify either
/// a destination IP address or VPC network to identify the destination
/// interface.
///
/// A reachability analysis proceeds even if the destination location is
/// ambiguous. However, the result can include endpoints that you don't
/// intend to test.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Cloud.NetworkManagement.V1.Endpoint Destination {
get { return destination_; }
set {
destination_ = value;
}
}
/// <summary>Field number for the "protocol" field.</summary>
public const int ProtocolFieldNumber = 5;
private string protocol_ = "";
/// <summary>
/// IP Protocol of the test. When not provided, "TCP" is assumed.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Protocol {
get { return protocol_; }
set {
protocol_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "related_projects" field.</summary>
public const int RelatedProjectsFieldNumber = 6;
private static readonly pb::FieldCodec<string> _repeated_relatedProjects_codec
= pb::FieldCodec.ForString(50);
private readonly pbc::RepeatedField<string> relatedProjects_ = new pbc::RepeatedField<string>();
/// <summary>
/// Other projects that may be relevant for reachability analysis.
/// This is applicable to scenarios where a test can cross project boundaries.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> RelatedProjects {
get { return relatedProjects_; }
}
/// <summary>Field number for the "display_name" field.</summary>
public const int DisplayNameFieldNumber = 7;
private string displayName_ = "";
/// <summary>
/// Output only. The display name of a Connectivity Test.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DisplayName {
get { return displayName_; }
set {
displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "labels" field.</summary>
public const int LabelsFieldNumber = 8;
private static readonly pbc::MapField<string, string>.Codec _map_labels_codec
= new pbc::MapField<string, string>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForString(18, ""), 66);
private readonly pbc::MapField<string, string> labels_ = new pbc::MapField<string, string>();
/// <summary>
/// Resource labels to represent user-provided metadata.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField<string, string> Labels {
get { return labels_; }
}
/// <summary>Field number for the "create_time" field.</summary>
public const int CreateTimeFieldNumber = 10;
private global::Google.Protobuf.WellKnownTypes.Timestamp createTime_;
/// <summary>
/// Output only. The time the test was created.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp CreateTime {
get { return createTime_; }
set {
createTime_ = value;
}
}
/// <summary>Field number for the "update_time" field.</summary>
public const int UpdateTimeFieldNumber = 11;
private global::Google.Protobuf.WellKnownTypes.Timestamp updateTime_;
/// <summary>
/// Output only. The time the test's configuration was updated.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Protobuf.WellKnownTypes.Timestamp UpdateTime {
get { return updateTime_; }
set {
updateTime_ = value;
}
}
/// <summary>Field number for the "reachability_details" field.</summary>
public const int ReachabilityDetailsFieldNumber = 12;
private global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails reachabilityDetails_;
/// <summary>
/// Output only. The reachability details of this test from the latest run.
/// The details are updated when creating a new test, updating an
/// existing test, or triggering a one-time rerun of an existing test.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails ReachabilityDetails {
get { return reachabilityDetails_; }
set {
reachabilityDetails_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ConnectivityTest);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ConnectivityTest other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (Description != other.Description) return false;
if (!object.Equals(Source, other.Source)) return false;
if (!object.Equals(Destination, other.Destination)) return false;
if (Protocol != other.Protocol) return false;
if(!relatedProjects_.Equals(other.relatedProjects_)) return false;
if (DisplayName != other.DisplayName) return false;
if (!Labels.Equals(other.Labels)) return false;
if (!object.Equals(CreateTime, other.CreateTime)) return false;
if (!object.Equals(UpdateTime, other.UpdateTime)) return false;
if (!object.Equals(ReachabilityDetails, other.ReachabilityDetails)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (Name.Length != 0) hash ^= Name.GetHashCode();
if (Description.Length != 0) hash ^= Description.GetHashCode();
if (source_ != null) hash ^= Source.GetHashCode();
if (destination_ != null) hash ^= Destination.GetHashCode();
if (Protocol.Length != 0) hash ^= Protocol.GetHashCode();
hash ^= relatedProjects_.GetHashCode();
if (DisplayName.Length != 0) hash ^= DisplayName.GetHashCode();
hash ^= Labels.GetHashCode();
if (createTime_ != null) hash ^= CreateTime.GetHashCode();
if (updateTime_ != null) hash ^= UpdateTime.GetHashCode();
if (reachabilityDetails_ != null) hash ^= ReachabilityDetails.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (Name.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (Description.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Description);
}
if (source_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Source);
}
if (destination_ != null) {
output.WriteRawTag(34);
output.WriteMessage(Destination);
}
if (Protocol.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Protocol);
}
relatedProjects_.WriteTo(output, _repeated_relatedProjects_codec);
if (DisplayName.Length != 0) {
output.WriteRawTag(58);
output.WriteString(DisplayName);
}
labels_.WriteTo(output, _map_labels_codec);
if (createTime_ != null) {
output.WriteRawTag(82);
output.WriteMessage(CreateTime);
}
if (updateTime_ != null) {
output.WriteRawTag(90);
output.WriteMessage(UpdateTime);
}
if (reachabilityDetails_ != null) {
output.WriteRawTag(98);
output.WriteMessage(ReachabilityDetails);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (Name.Length != 0) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (Description.Length != 0) {
output.WriteRawTag(18);
output.WriteString(Description);
}
if (source_ != null) {
output.WriteRawTag(26);
output.WriteMessage(Source);
}
if (destination_ != null) {
output.WriteRawTag(34);
output.WriteMessage(Destination);
}
if (Protocol.Length != 0) {
output.WriteRawTag(42);
output.WriteString(Protocol);
}
relatedProjects_.WriteTo(ref output, _repeated_relatedProjects_codec);
if (DisplayName.Length != 0) {
output.WriteRawTag(58);
output.WriteString(DisplayName);
}
labels_.WriteTo(ref output, _map_labels_codec);
if (createTime_ != null) {
output.WriteRawTag(82);
output.WriteMessage(CreateTime);
}
if (updateTime_ != null) {
output.WriteRawTag(90);
output.WriteMessage(UpdateTime);
}
if (reachabilityDetails_ != null) {
output.WriteRawTag(98);
output.WriteMessage(ReachabilityDetails);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (Name.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (Description.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Description);
}
if (source_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Source);
}
if (destination_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Destination);
}
if (Protocol.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Protocol);
}
size += relatedProjects_.CalculateSize(_repeated_relatedProjects_codec);
if (DisplayName.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
}
size += labels_.CalculateSize(_map_labels_codec);
if (createTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(CreateTime);
}
if (updateTime_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(UpdateTime);
}
if (reachabilityDetails_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ReachabilityDetails);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ConnectivityTest other) {
if (other == null) {
return;
}
if (other.Name.Length != 0) {
Name = other.Name;
}
if (other.Description.Length != 0) {
Description = other.Description;
}
if (other.source_ != null) {
if (source_ == null) {
Source = new global::Google.Cloud.NetworkManagement.V1.Endpoint();
}
Source.MergeFrom(other.Source);
}
if (other.destination_ != null) {
if (destination_ == null) {
Destination = new global::Google.Cloud.NetworkManagement.V1.Endpoint();
}
Destination.MergeFrom(other.Destination);
}
if (other.Protocol.Length != 0) {
Protocol = other.Protocol;
}
relatedProjects_.Add(other.relatedProjects_);
if (other.DisplayName.Length != 0) {
DisplayName = other.DisplayName;
}
labels_.MergeFrom(other.labels_);
if (other.createTime_ != null) {
if (createTime_ == null) {
CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
CreateTime.MergeFrom(other.CreateTime);
}
if (other.updateTime_ != null) {
if (updateTime_ == null) {
UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
UpdateTime.MergeFrom(other.UpdateTime);
}
if (other.reachabilityDetails_ != null) {
if (reachabilityDetails_ == null) {
ReachabilityDetails = new global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails();
}
ReachabilityDetails.MergeFrom(other.ReachabilityDetails);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Name = input.ReadString();
break;
}
case 18: {
Description = input.ReadString();
break;
}
case 26: {
if (source_ == null) {
Source = new global::Google.Cloud.NetworkManagement.V1.Endpoint();
}
input.ReadMessage(Source);
break;
}
case 34: {
if (destination_ == null) {
Destination = new global::Google.Cloud.NetworkManagement.V1.Endpoint();
}
input.ReadMessage(Destination);
break;
}
case 42: {
Protocol = input.ReadString();
break;
}
case 50: {
relatedProjects_.AddEntriesFrom(input, _repeated_relatedProjects_codec);
break;
}
case 58: {
DisplayName = input.ReadString();
break;
}
case 66: {
labels_.AddEntriesFrom(input, _map_labels_codec);
break;
}
case 82: {
if (createTime_ == null) {
CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreateTime);
break;
}
case 90: {
if (updateTime_ == null) {
UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(UpdateTime);
break;
}
case 98: {
if (reachabilityDetails_ == null) {
ReachabilityDetails = new global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails();
}
input.ReadMessage(ReachabilityDetails);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Name = input.ReadString();
break;
}
case 18: {
Description = input.ReadString();
break;
}
case 26: {
if (source_ == null) {
Source = new global::Google.Cloud.NetworkManagement.V1.Endpoint();
}
input.ReadMessage(Source);
break;
}
case 34: {
if (destination_ == null) {
Destination = new global::Google.Cloud.NetworkManagement.V1.Endpoint();
}
input.ReadMessage(Destination);
break;
}
case 42: {
Protocol = input.ReadString();
break;
}
case 50: {
relatedProjects_.AddEntriesFrom(ref input, _repeated_relatedProjects_codec);
break;
}
case 58: {
DisplayName = input.ReadString();
break;
}
case 66: {
labels_.AddEntriesFrom(ref input, _map_labels_codec);
break;
}
case 82: {
if (createTime_ == null) {
CreateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(CreateTime);
break;
}
case 90: {
if (updateTime_ == null) {
UpdateTime = new global::Google.Protobuf.WellKnownTypes.Timestamp();
}
input.ReadMessage(UpdateTime);
break;
}
case 98: {
if (reachabilityDetails_ == null) {
ReachabilityDetails = new global::Google.Cloud.NetworkManagement.V1.ReachabilityDetails();
}
input.ReadMessage(ReachabilityDetails);
break;
}
}
}
}
#endif
}
/// <summary>
/// Source or destination of the Connectivity Test.
/// </summary>
public sealed partial class Endpoint : pb::IMessage<Endpoint>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Endpoint> _parser = new pb::MessageParser<Endpoint>(() => new Endpoint());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Endpoint> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Google.Cloud.NetworkManagement.V1.ConnectivityTestReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Endpoint() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Endpoint(Endpoint other) : this() {
ipAddress_ = other.ipAddress_;
port_ = other.port_;
instance_ = other.instance_;
forwardingRule_ = other.forwardingRule_;
gkeMasterCluster_ = other.gkeMasterCluster_;
cloudSqlInstance_ = other.cloudSqlInstance_;
network_ = other.network_;
networkType_ = other.networkType_;
projectId_ = other.projectId_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Endpoint Clone() {
return new Endpoint(this);
}
/// <summary>Field number for the "ip_address" field.</summary>
public const int IpAddressFieldNumber = 1;
private string ipAddress_ = "";
/// <summary>
/// The IP address of the endpoint, which can be an external or internal IP.
/// An IPv6 address is only allowed when the test's destination is a
/// [global load balancer VIP](/load-balancing/docs/load-balancing-overview).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string IpAddress {
get { return ipAddress_; }
set {
ipAddress_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "port" field.</summary>
public const int PortFieldNumber = 2;
private int port_;
/// <summary>
/// The IP protocol port of the endpoint.
/// Only applicable when protocol is TCP or UDP.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Port {
get { return port_; }
set {
port_ = value;
}
}
/// <summary>Field number for the "instance" field.</summary>
public const int InstanceFieldNumber = 3;
private string instance_ = "";
/// <summary>
/// A Compute Engine instance URI.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Instance {
get { return instance_; }
set {
instance_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "forwarding_rule" field.</summary>
public const int ForwardingRuleFieldNumber = 13;
private string forwardingRule_ = "";
/// <summary>
/// A forwarding rule and its corresponding IP address represent the frontend
/// configuration of a Google Cloud load balancer. Forwarding rules are also
/// used for protocol forwarding, Private Service Connect and other network
/// services to provide forwarding information in the control plane. Format:
/// projects/{project}/global/forwardingRules/{id} or
/// projects/{project}/regions/{region}/forwardingRules/{id}
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ForwardingRule {
get { return forwardingRule_; }
set {
forwardingRule_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "gke_master_cluster" field.</summary>
public const int GkeMasterClusterFieldNumber = 7;
private string gkeMasterCluster_ = "";
/// <summary>
/// A cluster URI for [Google Kubernetes Engine
/// master](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string GkeMasterCluster {
get { return gkeMasterCluster_; }
set {
gkeMasterCluster_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "cloud_sql_instance" field.</summary>
public const int CloudSqlInstanceFieldNumber = 8;
private string cloudSqlInstance_ = "";
/// <summary>
/// A [Cloud SQL](https://cloud.google.com/sql) instance URI.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CloudSqlInstance {
get { return cloudSqlInstance_; }
set {
cloudSqlInstance_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "network" field.</summary>
public const int NetworkFieldNumber = 4;
private string network_ = "";
/// <summary>
/// A Compute Engine network URI.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Network {
get { return network_; }
set {
network_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Field number for the "network_type" field.</summary>
public const int NetworkTypeFieldNumber = 5;
private global::Google.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType networkType_ = global::Google.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified;
/// <summary>
/// Type of the network where the endpoint is located.
/// Applicable only to source endpoint, as destination network type can be
/// inferred from the source.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Google.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType NetworkType {
get { return networkType_; }
set {
networkType_ = value;
}
}
/// <summary>Field number for the "project_id" field.</summary>
public const int ProjectIdFieldNumber = 6;
private string projectId_ = "";
/// <summary>
/// Project ID where the endpoint is located.
/// The Project ID can be derived from the URI if you provide a VM instance or
/// network URI.
/// The following are two cases where you must provide the project ID:
/// 1. Only the IP address is specified, and the IP address is within a Google
/// Cloud project.
/// 2. When you are using Shared VPC and the IP address that you provide is
/// from the service project. In this case, the network that the IP address
/// resides in is defined in the host project.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ProjectId {
get { return projectId_; }
set {
projectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Endpoint);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Endpoint other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (IpAddress != other.IpAddress) return false;
if (Port != other.Port) return false;
if (Instance != other.Instance) return false;
if (ForwardingRule != other.ForwardingRule) return false;
if (GkeMasterCluster != other.GkeMasterCluster) return false;
if (CloudSqlInstance != other.CloudSqlInstance) return false;
if (Network != other.Network) return false;
if (NetworkType != other.NetworkType) return false;
if (ProjectId != other.ProjectId) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (IpAddress.Length != 0) hash ^= IpAddress.GetHashCode();
if (Port != 0) hash ^= Port.GetHashCode();
if (Instance.Length != 0) hash ^= Instance.GetHashCode();
if (ForwardingRule.Length != 0) hash ^= ForwardingRule.GetHashCode();
if (GkeMasterCluster.Length != 0) hash ^= GkeMasterCluster.GetHashCode();
if (CloudSqlInstance.Length != 0) hash ^= CloudSqlInstance.GetHashCode();
if (Network.Length != 0) hash ^= Network.GetHashCode();
if (NetworkType != global::Google.Cloud.NetworkManagement.V1.Endpoint.Types.NetworkType.Unspecified) hash ^= NetworkType.GetHashCode();
if (ProjectId.Length != 0) hash ^= ProjectId.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {