1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: google/protobuf/unittest_well_known_types.proto
3 #pragma warning disable 1591, 0612, 3021
4 #region Designer generated code
5 
6 using pb = global::Google.Protobuf;
7 using pbc = global::Google.Protobuf.Collections;
8 using pbr = global::Google.Protobuf.Reflection;
9 using scg = global::System.Collections.Generic;
10 namespace Google.Protobuf.TestProtos {
11 
12   /// <summary>Holder for reflection information generated from google/protobuf/unittest_well_known_types.proto</summary>
13   public static partial class UnittestWellKnownTypesReflection {
14 
15     #region Descriptor
16     /// <summary>File descriptor for google/protobuf/unittest_well_known_types.proto</summary>
17     public static pbr::FileDescriptor Descriptor {
18       get { return descriptor; }
19     }
20     private static pbr::FileDescriptor descriptor;
21 
UnittestWellKnownTypesReflection()22     static UnittestWellKnownTypesReflection() {
23       byte[] descriptorData = global::System.Convert.FromBase64String(
24           string.Concat(
25             "Ci9nb29nbGUvcHJvdG9idWYvdW5pdHRlc3Rfd2VsbF9rbm93bl90eXBlcy5w",
26             "cm90bxIRcHJvdG9idWZfdW5pdHRlc3QaGWdvb2dsZS9wcm90b2J1Zi9hbnku",
27             "cHJvdG8aGWdvb2dsZS9wcm90b2J1Zi9hcGkucHJvdG8aHmdvb2dsZS9wcm90",
28             "b2J1Zi9kdXJhdGlvbi5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnBy",
29             "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxokZ29vZ2xl",
30             "L3Byb3RvYnVmL3NvdXJjZV9jb250ZXh0LnByb3RvGhxnb29nbGUvcHJvdG9i",
31             "dWYvc3RydWN0LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnBy",
32             "b3RvGhpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxoeZ29vZ2xlL3Byb3Rv",
33             "YnVmL3dyYXBwZXJzLnByb3RvIr4HChJUZXN0V2VsbEtub3duVHlwZXMSJwoJ",
34             "YW55X2ZpZWxkGAEgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRInCglhcGlf",
35             "ZmllbGQYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpEjEKDmR1cmF0aW9u",
36             "X2ZpZWxkGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEisKC2Vt",
37             "cHR5X2ZpZWxkGAQgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EjQKEGZp",
38             "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
39             "YXNrEjwKFHNvdXJjZV9jb250ZXh0X2ZpZWxkGAYgASgLMh4uZ29vZ2xlLnBy",
40             "b3RvYnVmLlNvdXJjZUNvbnRleHQSLQoMc3RydWN0X2ZpZWxkGAcgASgLMhcu",
41             "Z29vZ2xlLnByb3RvYnVmLlN0cnVjdBIzCg90aW1lc3RhbXBfZmllbGQYCCAB",
42             "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEikKCnR5cGVfZmllbGQY",
43             "CSABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZRIyCgxkb3VibGVfZmllbGQY",
44             "CiABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWUSMAoLZmxvYXRf",
45             "ZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxvYXRWYWx1ZRIwCgtp",
46             "bnQ2NF9maWVsZBgMIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
47             "EjIKDHVpbnQ2NF9maWVsZBgNIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50",
48             "NjRWYWx1ZRIwCgtpbnQzMl9maWVsZBgOIAEoCzIbLmdvb2dsZS5wcm90b2J1",
49             "Zi5JbnQzMlZhbHVlEjIKDHVpbnQzMl9maWVsZBgPIAEoCzIcLmdvb2dsZS5w",
50             "cm90b2J1Zi5VSW50MzJWYWx1ZRIuCgpib29sX2ZpZWxkGBAgASgLMhouZ29v",
51             "Z2xlLnByb3RvYnVmLkJvb2xWYWx1ZRIyCgxzdHJpbmdfZmllbGQYESABKAsy",
52             "HC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMAoLYnl0ZXNfZmllbGQY",
53             "EiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZRIrCgt2YWx1ZV9m",
54             "aWVsZBgTIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSKVBwoWUmVwZWF0",
55             "ZWRXZWxsS25vd25UeXBlcxInCglhbnlfZmllbGQYASADKAsyFC5nb29nbGUu",
56             "cHJvdG9idWYuQW55EicKCWFwaV9maWVsZBgCIAMoCzIULmdvb2dsZS5wcm90",
57             "b2J1Zi5BcGkSMQoOZHVyYXRpb25fZmllbGQYAyADKAsyGS5nb29nbGUucHJv",
58             "dG9idWYuRHVyYXRpb24SKwoLZW1wdHlfZmllbGQYBCADKAsyFi5nb29nbGUu",
59             "cHJvdG9idWYuRW1wdHkSNAoQZmllbGRfbWFza19maWVsZBgFIAMoCzIaLmdv",
60             "b2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSPAoUc291cmNlX2NvbnRleHRfZmll",
61             "bGQYBiADKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBItCgxz",
62             "dHJ1Y3RfZmllbGQYByADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EjMK",
63             "D3RpbWVzdGFtcF9maWVsZBgIIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l",
64             "c3RhbXASKQoKdHlwZV9maWVsZBgJIAMoCzIVLmdvb2dsZS5wcm90b2J1Zi5U",
65             "eXBlEjIKDGRvdWJsZV9maWVsZBgKIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5E",
66             "b3VibGVWYWx1ZRIwCgtmbG9hdF9maWVsZBgLIAMoCzIbLmdvb2dsZS5wcm90",
67             "b2J1Zi5GbG9hdFZhbHVlEjAKC2ludDY0X2ZpZWxkGAwgAygLMhsuZ29vZ2xl",
68             "LnByb3RvYnVmLkludDY0VmFsdWUSMgoMdWludDY0X2ZpZWxkGA0gAygLMhwu",
69             "Z29vZ2xlLnByb3RvYnVmLlVJbnQ2NFZhbHVlEjAKC2ludDMyX2ZpZWxkGA4g",
70             "AygLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSMgoMdWludDMyX2Zp",
71             "ZWxkGA8gAygLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlEi4KCmJv",
72             "b2xfZmllbGQYECADKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlEjIK",
73             "DHN0cmluZ19maWVsZBgRIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW",
74             "YWx1ZRIwCgtieXRlc19maWVsZBgSIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5C",
75             "eXRlc1ZhbHVlIsUHChNPbmVvZldlbGxLbm93blR5cGVzEikKCWFueV9maWVs",
76             "ZBgBIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlIABIpCglhcGlfZmllbGQY",
77             "AiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpSAASMwoOZHVyYXRpb25fZmll",
78             "bGQYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25IABItCgtlbXB0",
79             "eV9maWVsZBgEIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAEjYKEGZp",
80             "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
81             "YXNrSAASPgoUc291cmNlX2NvbnRleHRfZmllbGQYBiABKAsyHi5nb29nbGUu",
82             "cHJvdG9idWYuU291cmNlQ29udGV4dEgAEi8KDHN0cnVjdF9maWVsZBgHIAEo",
83             "CzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABI1Cg90aW1lc3RhbXBfZmll",
84             "bGQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAASKwoKdHlw",
85             "ZV9maWVsZBgJIAEoCzIVLmdvb2dsZS5wcm90b2J1Zi5UeXBlSAASNAoMZG91",
86             "YmxlX2ZpZWxkGAogASgLMhwuZ29vZ2xlLnByb3RvYnVmLkRvdWJsZVZhbHVl",
87             "SAASMgoLZmxvYXRfZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxv",
88             "YXRWYWx1ZUgAEjIKC2ludDY0X2ZpZWxkGAwgASgLMhsuZ29vZ2xlLnByb3Rv",
89             "YnVmLkludDY0VmFsdWVIABI0Cgx1aW50NjRfZmllbGQYDSABKAsyHC5nb29n",
90             "bGUucHJvdG9idWYuVUludDY0VmFsdWVIABIyCgtpbnQzMl9maWVsZBgOIAEo",
91             "CzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlSAASNAoMdWludDMyX2Zp",
92             "ZWxkGA8gASgLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlSAASMAoK",
93             "Ym9vbF9maWVsZBgQIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWVI",
94             "ABI0CgxzdHJpbmdfZmllbGQYESABKAsyHC5nb29nbGUucHJvdG9idWYuU3Ry",
95             "aW5nVmFsdWVIABIyCgtieXRlc19maWVsZBgSIAEoCzIbLmdvb2dsZS5wcm90",
96             "b2J1Zi5CeXRlc1ZhbHVlSABCDQoLb25lb2ZfZmllbGQilhYKEU1hcFdlbGxL",
97             "bm93blR5cGVzEkUKCWFueV9maWVsZBgBIAMoCzIyLnByb3RvYnVmX3VuaXR0",
98             "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkFueUZpZWxkRW50cnkSRQoJYXBpX2Zp",
99             "ZWxkGAIgAygLMjIucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlw",
100             "ZXMuQXBpRmllbGRFbnRyeRJPCg5kdXJhdGlvbl9maWVsZBgDIAMoCzI3LnBy",
101             "b3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkR1cmF0aW9uRmll",
102             "bGRFbnRyeRJJCgtlbXB0eV9maWVsZBgEIAMoCzI0LnByb3RvYnVmX3VuaXR0",
103             "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkVtcHR5RmllbGRFbnRyeRJSChBmaWVs",
104             "ZF9tYXNrX2ZpZWxkGAUgAygLMjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
105             "bEtub3duVHlwZXMuRmllbGRNYXNrRmllbGRFbnRyeRJaChRzb3VyY2VfY29u",
106             "dGV4dF9maWVsZBgGIAMoCzI8LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxL",
107             "bm93blR5cGVzLlNvdXJjZUNvbnRleHRGaWVsZEVudHJ5EksKDHN0cnVjdF9m",
108             "aWVsZBgHIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5",
109             "cGVzLlN0cnVjdEZpZWxkRW50cnkSUQoPdGltZXN0YW1wX2ZpZWxkGAggAygL",
110             "MjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVGltZXN0",
111             "YW1wRmllbGRFbnRyeRJHCgp0eXBlX2ZpZWxkGAkgAygLMjMucHJvdG9idWZf",
112             "dW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVHlwZUZpZWxkRW50cnkSSwoM",
113             "ZG91YmxlX2ZpZWxkGAogAygLMjUucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
114             "bEtub3duVHlwZXMuRG91YmxlRmllbGRFbnRyeRJJCgtmbG9hdF9maWVsZBgL",
115             "IAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkZs",
116             "b2F0RmllbGRFbnRyeRJJCgtpbnQ2NF9maWVsZBgMIAMoCzI0LnByb3RvYnVm",
117             "X3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkludDY0RmllbGRFbnRyeRJL",
118             "Cgx1aW50NjRfZmllbGQYDSADKAsyNS5wcm90b2J1Zl91bml0dGVzdC5NYXBX",
119             "ZWxsS25vd25UeXBlcy5VaW50NjRGaWVsZEVudHJ5EkkKC2ludDMyX2ZpZWxk",
120             "GA4gAygLMjQucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMu",
121             "SW50MzJGaWVsZEVudHJ5EksKDHVpbnQzMl9maWVsZBgPIAMoCzI1LnByb3Rv",
122             "YnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLlVpbnQzMkZpZWxkRW50",
123             "cnkSRwoKYm9vbF9maWVsZBgQIAMoCzIzLnByb3RvYnVmX3VuaXR0ZXN0Lk1h",
124             "cFdlbGxLbm93blR5cGVzLkJvb2xGaWVsZEVudHJ5EksKDHN0cmluZ19maWVs",
125             "ZBgRIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVz",
126             "LlN0cmluZ0ZpZWxkRW50cnkSSQoLYnl0ZXNfZmllbGQYEiADKAsyNC5wcm90",
127             "b2J1Zl91bml0dGVzdC5NYXBXZWxsS25vd25UeXBlcy5CeXRlc0ZpZWxkRW50",
128             "cnkaRQoNQW55RmllbGRFbnRyeRILCgNrZXkYASABKAUSIwoFdmFsdWUYAiAB",
129             "KAsyFC5nb29nbGUucHJvdG9idWYuQW55OgI4ARpFCg1BcGlGaWVsZEVudHJ5",
130             "EgsKA2tleRgBIAEoBRIjCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1",
131             "Zi5BcGk6AjgBGk8KEkR1cmF0aW9uRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
132             "KAoFdmFsdWUYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb246AjgB",
133             "GkkKD0VtcHR5RmllbGRFbnRyeRILCgNrZXkYASABKAUSJQoFdmFsdWUYAiAB",
134             "KAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHk6AjgBGlEKE0ZpZWxkTWFza0Zp",
135             "ZWxkRW50cnkSCwoDa2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xl",
136             "LnByb3RvYnVmLkZpZWxkTWFzazoCOAEaWQoXU291cmNlQ29udGV4dEZpZWxk",
137             "RW50cnkSCwoDa2V5GAEgASgFEi0KBXZhbHVlGAIgASgLMh4uZ29vZ2xlLnBy",
138             "b3RvYnVmLlNvdXJjZUNvbnRleHQ6AjgBGksKEFN0cnVjdEZpZWxkRW50cnkS",
139             "CwoDa2V5GAEgASgFEiYKBXZhbHVlGAIgASgLMhcuZ29vZ2xlLnByb3RvYnVm",
140             "LlN0cnVjdDoCOAEaUQoTVGltZXN0YW1wRmllbGRFbnRyeRILCgNrZXkYASAB",
141             "KAUSKQoFdmFsdWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w",
142             "OgI4ARpHCg5UeXBlRmllbGRFbnRyeRILCgNrZXkYASABKAUSJAoFdmFsdWUY",
143             "AiABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZToCOAEaUAoQRG91YmxlRmll",
144             "bGRFbnRyeRILCgNrZXkYASABKAUSKwoFdmFsdWUYAiABKAsyHC5nb29nbGUu",
145             "cHJvdG9idWYuRG91YmxlVmFsdWU6AjgBGk4KD0Zsb2F0RmllbGRFbnRyeRIL",
146             "CgNrZXkYASABKAUSKgoFdmFsdWUYAiABKAsyGy5nb29nbGUucHJvdG9idWYu",
147             "RmxvYXRWYWx1ZToCOAEaTgoPSW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEo",
148             "BRIqCgV2YWx1ZRgCIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
149             "OgI4ARpQChBVaW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1",
150             "ZRgCIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50NjRWYWx1ZToCOAEaTgoP",
151             "SW50MzJGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIqCgV2YWx1ZRgCIAEoCzIb",
152             "Lmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlOgI4ARpQChBVaW50MzJGaWVs",
153             "ZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1ZRgCIAEoCzIcLmdvb2dsZS5w",
154             "cm90b2J1Zi5VSW50MzJWYWx1ZToCOAEaTAoOQm9vbEZpZWxkRW50cnkSCwoD",
155             "a2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJv",
156             "b2xWYWx1ZToCOAEaUAoQU3RyaW5nRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
157             "KwoFdmFsdWUYAiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWU6",
158             "AjgBGk4KD0J5dGVzRmllbGRFbnRyeRILCgNrZXkYASABKAUSKgoFdmFsdWUY",
159             "AiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZToCOAFCOQoYY29t",
160             "Lmdvb2dsZS5wcm90b2J1Zi50ZXN0UAGqAhpHb29nbGUuUHJvdG9idWYuVGVz",
161             "dFByb3Rvc2IGcHJvdG8z"));
162       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
163           new pbr::FileDescriptor[] { global::Google.Protobuf.WellKnownTypes.AnyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.ApiReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.DurationReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.FieldMaskReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.SourceContextReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TimestampReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.TypeReflection.Descriptor, global::Google.Protobuf.WellKnownTypes.WrappersReflection.Descriptor, },
164           new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
165             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.TestWellKnownTypes), global::Google.Protobuf.TestProtos.TestWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField", "ValueField" }, null, null, null),
166             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.RepeatedWellKnownTypes), global::Google.Protobuf.TestProtos.RepeatedWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, null),
167             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.OneofWellKnownTypes), global::Google.Protobuf.TestProtos.OneofWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, new[]{ "OneofField" }, null, null),
168             new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.MapWellKnownTypes), global::Google.Protobuf.TestProtos.MapWellKnownTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, })
169           }));
170     }
171     #endregion
172 
173   }
174   #region Messages
175   /// <summary>
176   ///  Test that we can include all well-known types.
177   ///  Each wrapper type is included separately, as languages
178   ///  map handle different wrappers in different ways.
179   /// </summary>
180   public sealed partial class TestWellKnownTypes : pb::IMessage<TestWellKnownTypes> {
181     private static readonly pb::MessageParser<TestWellKnownTypes> _parser = new pb::MessageParser<TestWellKnownTypes>(() => new TestWellKnownTypes());
182     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183     public static pb::MessageParser<TestWellKnownTypes> Parser { get { return _parser; } }
184 
185     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186     public static pbr::MessageDescriptor Descriptor {
187       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[0]; }
188     }
189 
190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
191     pbr::MessageDescriptor pb::IMessage.Descriptor {
192       get { return Descriptor; }
193     }
194 
195     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
TestWellKnownTypes()196     public TestWellKnownTypes() {
197       OnConstruction();
198     }
199 
OnConstruction()200     partial void OnConstruction();
201 
202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
TestWellKnownTypes(TestWellKnownTypes other)203     public TestWellKnownTypes(TestWellKnownTypes other) : this() {
204       AnyField = other.anyField_ != null ? other.AnyField.Clone() : null;
205       ApiField = other.apiField_ != null ? other.ApiField.Clone() : null;
206       DurationField = other.durationField_ != null ? other.DurationField.Clone() : null;
207       EmptyField = other.emptyField_ != null ? other.EmptyField.Clone() : null;
208       FieldMaskField = other.fieldMaskField_ != null ? other.FieldMaskField.Clone() : null;
209       SourceContextField = other.sourceContextField_ != null ? other.SourceContextField.Clone() : null;
210       StructField = other.structField_ != null ? other.StructField.Clone() : null;
211       TimestampField = other.timestampField_ != null ? other.TimestampField.Clone() : null;
212       TypeField = other.typeField_ != null ? other.TypeField.Clone() : null;
213       DoubleField = other.DoubleField;
214       FloatField = other.FloatField;
215       Int64Field = other.Int64Field;
216       Uint64Field = other.Uint64Field;
217       Int32Field = other.Int32Field;
218       Uint32Field = other.Uint32Field;
219       BoolField = other.BoolField;
220       StringField = other.StringField;
221       BytesField = other.BytesField;
222       ValueField = other.valueField_ != null ? other.ValueField.Clone() : null;
223     }
224 
225     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()226     public TestWellKnownTypes Clone() {
227       return new TestWellKnownTypes(this);
228     }
229 
230     /// <summary>Field number for the "any_field" field.</summary>
231     public const int AnyFieldFieldNumber = 1;
232     private global::Google.Protobuf.WellKnownTypes.Any anyField_;
233     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
234     public global::Google.Protobuf.WellKnownTypes.Any AnyField {
235       get { return anyField_; }
236       set {
237         anyField_ = value;
238       }
239     }
240 
241     /// <summary>Field number for the "api_field" field.</summary>
242     public const int ApiFieldFieldNumber = 2;
243     private global::Google.Protobuf.WellKnownTypes.Api apiField_;
244     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
245     public global::Google.Protobuf.WellKnownTypes.Api ApiField {
246       get { return apiField_; }
247       set {
248         apiField_ = value;
249       }
250     }
251 
252     /// <summary>Field number for the "duration_field" field.</summary>
253     public const int DurationFieldFieldNumber = 3;
254     private global::Google.Protobuf.WellKnownTypes.Duration durationField_;
255     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
256     public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
257       get { return durationField_; }
258       set {
259         durationField_ = value;
260       }
261     }
262 
263     /// <summary>Field number for the "empty_field" field.</summary>
264     public const int EmptyFieldFieldNumber = 4;
265     private global::Google.Protobuf.WellKnownTypes.Empty emptyField_;
266     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
267     public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
268       get { return emptyField_; }
269       set {
270         emptyField_ = value;
271       }
272     }
273 
274     /// <summary>Field number for the "field_mask_field" field.</summary>
275     public const int FieldMaskFieldFieldNumber = 5;
276     private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMaskField_;
277     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
278     public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
279       get { return fieldMaskField_; }
280       set {
281         fieldMaskField_ = value;
282       }
283     }
284 
285     /// <summary>Field number for the "source_context_field" field.</summary>
286     public const int SourceContextFieldFieldNumber = 6;
287     private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContextField_;
288     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289     public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
290       get { return sourceContextField_; }
291       set {
292         sourceContextField_ = value;
293       }
294     }
295 
296     /// <summary>Field number for the "struct_field" field.</summary>
297     public const int StructFieldFieldNumber = 7;
298     private global::Google.Protobuf.WellKnownTypes.Struct structField_;
299     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
300     public global::Google.Protobuf.WellKnownTypes.Struct StructField {
301       get { return structField_; }
302       set {
303         structField_ = value;
304       }
305     }
306 
307     /// <summary>Field number for the "timestamp_field" field.</summary>
308     public const int TimestampFieldFieldNumber = 8;
309     private global::Google.Protobuf.WellKnownTypes.Timestamp timestampField_;
310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
311     public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
312       get { return timestampField_; }
313       set {
314         timestampField_ = value;
315       }
316     }
317 
318     /// <summary>Field number for the "type_field" field.</summary>
319     public const int TypeFieldFieldNumber = 9;
320     private global::Google.Protobuf.WellKnownTypes.Type typeField_;
321     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
322     public global::Google.Protobuf.WellKnownTypes.Type TypeField {
323       get { return typeField_; }
324       set {
325         typeField_ = value;
326       }
327     }
328 
329     /// <summary>Field number for the "double_field" field.</summary>
330     public const int DoubleFieldFieldNumber = 10;
331     private static readonly pb::FieldCodec<double?> _single_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
332     private double? doubleField_;
333     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
334     public double? DoubleField {
335       get { return doubleField_; }
336       set {
337         doubleField_ = value;
338       }
339     }
340 
341     /// <summary>Field number for the "float_field" field.</summary>
342     public const int FloatFieldFieldNumber = 11;
343     private static readonly pb::FieldCodec<float?> _single_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
344     private float? floatField_;
345     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
346     public float? FloatField {
347       get { return floatField_; }
348       set {
349         floatField_ = value;
350       }
351     }
352 
353     /// <summary>Field number for the "int64_field" field.</summary>
354     public const int Int64FieldFieldNumber = 12;
355     private static readonly pb::FieldCodec<long?> _single_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
356     private long? int64Field_;
357     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
358     public long? Int64Field {
359       get { return int64Field_; }
360       set {
361         int64Field_ = value;
362       }
363     }
364 
365     /// <summary>Field number for the "uint64_field" field.</summary>
366     public const int Uint64FieldFieldNumber = 13;
367     private static readonly pb::FieldCodec<ulong?> _single_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
368     private ulong? uint64Field_;
369     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
370     public ulong? Uint64Field {
371       get { return uint64Field_; }
372       set {
373         uint64Field_ = value;
374       }
375     }
376 
377     /// <summary>Field number for the "int32_field" field.</summary>
378     public const int Int32FieldFieldNumber = 14;
379     private static readonly pb::FieldCodec<int?> _single_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
380     private int? int32Field_;
381     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
382     public int? Int32Field {
383       get { return int32Field_; }
384       set {
385         int32Field_ = value;
386       }
387     }
388 
389     /// <summary>Field number for the "uint32_field" field.</summary>
390     public const int Uint32FieldFieldNumber = 15;
391     private static readonly pb::FieldCodec<uint?> _single_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
392     private uint? uint32Field_;
393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
394     public uint? Uint32Field {
395       get { return uint32Field_; }
396       set {
397         uint32Field_ = value;
398       }
399     }
400 
401     /// <summary>Field number for the "bool_field" field.</summary>
402     public const int BoolFieldFieldNumber = 16;
403     private static readonly pb::FieldCodec<bool?> _single_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
404     private bool? boolField_;
405     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
406     public bool? BoolField {
407       get { return boolField_; }
408       set {
409         boolField_ = value;
410       }
411     }
412 
413     /// <summary>Field number for the "string_field" field.</summary>
414     public const int StringFieldFieldNumber = 17;
415     private static readonly pb::FieldCodec<string> _single_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
416     private string stringField_;
417     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
418     public string StringField {
419       get { return stringField_; }
420       set {
421         stringField_ = value;
422       }
423     }
424 
425     /// <summary>Field number for the "bytes_field" field.</summary>
426     public const int BytesFieldFieldNumber = 18;
427     private static readonly pb::FieldCodec<pb::ByteString> _single_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
428     private pb::ByteString bytesField_;
429     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430     public pb::ByteString BytesField {
431       get { return bytesField_; }
432       set {
433         bytesField_ = value;
434       }
435     }
436 
437     /// <summary>Field number for the "value_field" field.</summary>
438     public const int ValueFieldFieldNumber = 19;
439     private global::Google.Protobuf.WellKnownTypes.Value valueField_;
440     /// <summary>
441     ///  Part of struct, but useful to be able to test separately
442     /// </summary>
443     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
444     public global::Google.Protobuf.WellKnownTypes.Value ValueField {
445       get { return valueField_; }
446       set {
447         valueField_ = value;
448       }
449     }
450 
451     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)452     public override bool Equals(object other) {
453       return Equals(other as TestWellKnownTypes);
454     }
455 
456     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(TestWellKnownTypes other)457     public bool Equals(TestWellKnownTypes other) {
458       if (ReferenceEquals(other, null)) {
459         return false;
460       }
461       if (ReferenceEquals(other, this)) {
462         return true;
463       }
464       if (!object.Equals(AnyField, other.AnyField)) return false;
465       if (!object.Equals(ApiField, other.ApiField)) return false;
466       if (!object.Equals(DurationField, other.DurationField)) return false;
467       if (!object.Equals(EmptyField, other.EmptyField)) return false;
468       if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
469       if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
470       if (!object.Equals(StructField, other.StructField)) return false;
471       if (!object.Equals(TimestampField, other.TimestampField)) return false;
472       if (!object.Equals(TypeField, other.TypeField)) return false;
473       if (DoubleField != other.DoubleField) return false;
474       if (FloatField != other.FloatField) return false;
475       if (Int64Field != other.Int64Field) return false;
476       if (Uint64Field != other.Uint64Field) return false;
477       if (Int32Field != other.Int32Field) return false;
478       if (Uint32Field != other.Uint32Field) return false;
479       if (BoolField != other.BoolField) return false;
480       if (StringField != other.StringField) return false;
481       if (BytesField != other.BytesField) return false;
482       if (!object.Equals(ValueField, other.ValueField)) return false;
483       return true;
484     }
485 
486     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()487     public override int GetHashCode() {
488       int hash = 1;
489       if (anyField_ != null) hash ^= AnyField.GetHashCode();
490       if (apiField_ != null) hash ^= ApiField.GetHashCode();
491       if (durationField_ != null) hash ^= DurationField.GetHashCode();
492       if (emptyField_ != null) hash ^= EmptyField.GetHashCode();
493       if (fieldMaskField_ != null) hash ^= FieldMaskField.GetHashCode();
494       if (sourceContextField_ != null) hash ^= SourceContextField.GetHashCode();
495       if (structField_ != null) hash ^= StructField.GetHashCode();
496       if (timestampField_ != null) hash ^= TimestampField.GetHashCode();
497       if (typeField_ != null) hash ^= TypeField.GetHashCode();
498       if (doubleField_ != null) hash ^= DoubleField.GetHashCode();
499       if (floatField_ != null) hash ^= FloatField.GetHashCode();
500       if (int64Field_ != null) hash ^= Int64Field.GetHashCode();
501       if (uint64Field_ != null) hash ^= Uint64Field.GetHashCode();
502       if (int32Field_ != null) hash ^= Int32Field.GetHashCode();
503       if (uint32Field_ != null) hash ^= Uint32Field.GetHashCode();
504       if (boolField_ != null) hash ^= BoolField.GetHashCode();
505       if (stringField_ != null) hash ^= StringField.GetHashCode();
506       if (bytesField_ != null) hash ^= BytesField.GetHashCode();
507       if (valueField_ != null) hash ^= ValueField.GetHashCode();
508       return hash;
509     }
510 
511     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()512     public override string ToString() {
513       return pb::JsonFormatter.ToDiagnosticString(this);
514     }
515 
516     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)517     public void WriteTo(pb::CodedOutputStream output) {
518       if (anyField_ != null) {
519         output.WriteRawTag(10);
520         output.WriteMessage(AnyField);
521       }
522       if (apiField_ != null) {
523         output.WriteRawTag(18);
524         output.WriteMessage(ApiField);
525       }
526       if (durationField_ != null) {
527         output.WriteRawTag(26);
528         output.WriteMessage(DurationField);
529       }
530       if (emptyField_ != null) {
531         output.WriteRawTag(34);
532         output.WriteMessage(EmptyField);
533       }
534       if (fieldMaskField_ != null) {
535         output.WriteRawTag(42);
536         output.WriteMessage(FieldMaskField);
537       }
538       if (sourceContextField_ != null) {
539         output.WriteRawTag(50);
540         output.WriteMessage(SourceContextField);
541       }
542       if (structField_ != null) {
543         output.WriteRawTag(58);
544         output.WriteMessage(StructField);
545       }
546       if (timestampField_ != null) {
547         output.WriteRawTag(66);
548         output.WriteMessage(TimestampField);
549       }
550       if (typeField_ != null) {
551         output.WriteRawTag(74);
552         output.WriteMessage(TypeField);
553       }
554       if (doubleField_ != null) {
555         _single_doubleField_codec.WriteTagAndValue(output, DoubleField);
556       }
557       if (floatField_ != null) {
558         _single_floatField_codec.WriteTagAndValue(output, FloatField);
559       }
560       if (int64Field_ != null) {
561         _single_int64Field_codec.WriteTagAndValue(output, Int64Field);
562       }
563       if (uint64Field_ != null) {
564         _single_uint64Field_codec.WriteTagAndValue(output, Uint64Field);
565       }
566       if (int32Field_ != null) {
567         _single_int32Field_codec.WriteTagAndValue(output, Int32Field);
568       }
569       if (uint32Field_ != null) {
570         _single_uint32Field_codec.WriteTagAndValue(output, Uint32Field);
571       }
572       if (boolField_ != null) {
573         _single_boolField_codec.WriteTagAndValue(output, BoolField);
574       }
575       if (stringField_ != null) {
576         _single_stringField_codec.WriteTagAndValue(output, StringField);
577       }
578       if (bytesField_ != null) {
579         _single_bytesField_codec.WriteTagAndValue(output, BytesField);
580       }
581       if (valueField_ != null) {
582         output.WriteRawTag(154, 1);
583         output.WriteMessage(ValueField);
584       }
585     }
586 
587     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()588     public int CalculateSize() {
589       int size = 0;
590       if (anyField_ != null) {
591         size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
592       }
593       if (apiField_ != null) {
594         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
595       }
596       if (durationField_ != null) {
597         size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
598       }
599       if (emptyField_ != null) {
600         size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
601       }
602       if (fieldMaskField_ != null) {
603         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
604       }
605       if (sourceContextField_ != null) {
606         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
607       }
608       if (structField_ != null) {
609         size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
610       }
611       if (timestampField_ != null) {
612         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
613       }
614       if (typeField_ != null) {
615         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
616       }
617       if (doubleField_ != null) {
618         size += _single_doubleField_codec.CalculateSizeWithTag(DoubleField);
619       }
620       if (floatField_ != null) {
621         size += _single_floatField_codec.CalculateSizeWithTag(FloatField);
622       }
623       if (int64Field_ != null) {
624         size += _single_int64Field_codec.CalculateSizeWithTag(Int64Field);
625       }
626       if (uint64Field_ != null) {
627         size += _single_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
628       }
629       if (int32Field_ != null) {
630         size += _single_int32Field_codec.CalculateSizeWithTag(Int32Field);
631       }
632       if (uint32Field_ != null) {
633         size += _single_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
634       }
635       if (boolField_ != null) {
636         size += _single_boolField_codec.CalculateSizeWithTag(BoolField);
637       }
638       if (stringField_ != null) {
639         size += _single_stringField_codec.CalculateSizeWithTag(StringField);
640       }
641       if (bytesField_ != null) {
642         size += _single_bytesField_codec.CalculateSizeWithTag(BytesField);
643       }
644       if (valueField_ != null) {
645         size += 2 + pb::CodedOutputStream.ComputeMessageSize(ValueField);
646       }
647       return size;
648     }
649 
650     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(TestWellKnownTypes other)651     public void MergeFrom(TestWellKnownTypes other) {
652       if (other == null) {
653         return;
654       }
655       if (other.anyField_ != null) {
656         if (anyField_ == null) {
657           anyField_ = new global::Google.Protobuf.WellKnownTypes.Any();
658         }
659         AnyField.MergeFrom(other.AnyField);
660       }
661       if (other.apiField_ != null) {
662         if (apiField_ == null) {
663           apiField_ = new global::Google.Protobuf.WellKnownTypes.Api();
664         }
665         ApiField.MergeFrom(other.ApiField);
666       }
667       if (other.durationField_ != null) {
668         if (durationField_ == null) {
669           durationField_ = new global::Google.Protobuf.WellKnownTypes.Duration();
670         }
671         DurationField.MergeFrom(other.DurationField);
672       }
673       if (other.emptyField_ != null) {
674         if (emptyField_ == null) {
675           emptyField_ = new global::Google.Protobuf.WellKnownTypes.Empty();
676         }
677         EmptyField.MergeFrom(other.EmptyField);
678       }
679       if (other.fieldMaskField_ != null) {
680         if (fieldMaskField_ == null) {
681           fieldMaskField_ = new global::Google.Protobuf.WellKnownTypes.FieldMask();
682         }
683         FieldMaskField.MergeFrom(other.FieldMaskField);
684       }
685       if (other.sourceContextField_ != null) {
686         if (sourceContextField_ == null) {
687           sourceContextField_ = new global::Google.Protobuf.WellKnownTypes.SourceContext();
688         }
689         SourceContextField.MergeFrom(other.SourceContextField);
690       }
691       if (other.structField_ != null) {
692         if (structField_ == null) {
693           structField_ = new global::Google.Protobuf.WellKnownTypes.Struct();
694         }
695         StructField.MergeFrom(other.StructField);
696       }
697       if (other.timestampField_ != null) {
698         if (timestampField_ == null) {
699           timestampField_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
700         }
701         TimestampField.MergeFrom(other.TimestampField);
702       }
703       if (other.typeField_ != null) {
704         if (typeField_ == null) {
705           typeField_ = new global::Google.Protobuf.WellKnownTypes.Type();
706         }
707         TypeField.MergeFrom(other.TypeField);
708       }
709       if (other.doubleField_ != null) {
710         if (doubleField_ == null || other.DoubleField != 0D) {
711           DoubleField = other.DoubleField;
712         }
713       }
714       if (other.floatField_ != null) {
715         if (floatField_ == null || other.FloatField != 0F) {
716           FloatField = other.FloatField;
717         }
718       }
719       if (other.int64Field_ != null) {
720         if (int64Field_ == null || other.Int64Field != 0L) {
721           Int64Field = other.Int64Field;
722         }
723       }
724       if (other.uint64Field_ != null) {
725         if (uint64Field_ == null || other.Uint64Field != 0UL) {
726           Uint64Field = other.Uint64Field;
727         }
728       }
729       if (other.int32Field_ != null) {
730         if (int32Field_ == null || other.Int32Field != 0) {
731           Int32Field = other.Int32Field;
732         }
733       }
734       if (other.uint32Field_ != null) {
735         if (uint32Field_ == null || other.Uint32Field != 0) {
736           Uint32Field = other.Uint32Field;
737         }
738       }
739       if (other.boolField_ != null) {
740         if (boolField_ == null || other.BoolField != false) {
741           BoolField = other.BoolField;
742         }
743       }
744       if (other.stringField_ != null) {
745         if (stringField_ == null || other.StringField != "") {
746           StringField = other.StringField;
747         }
748       }
749       if (other.bytesField_ != null) {
750         if (bytesField_ == null || other.BytesField != pb::ByteString.Empty) {
751           BytesField = other.BytesField;
752         }
753       }
754       if (other.valueField_ != null) {
755         if (valueField_ == null) {
756           valueField_ = new global::Google.Protobuf.WellKnownTypes.Value();
757         }
758         ValueField.MergeFrom(other.ValueField);
759       }
760     }
761 
762     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)763     public void MergeFrom(pb::CodedInputStream input) {
764       uint tag;
765       while ((tag = input.ReadTag()) != 0) {
766         switch(tag) {
767           default:
768             input.SkipLastField();
769             break;
770           case 10: {
771             if (anyField_ == null) {
772               anyField_ = new global::Google.Protobuf.WellKnownTypes.Any();
773             }
774             input.ReadMessage(anyField_);
775             break;
776           }
777           case 18: {
778             if (apiField_ == null) {
779               apiField_ = new global::Google.Protobuf.WellKnownTypes.Api();
780             }
781             input.ReadMessage(apiField_);
782             break;
783           }
784           case 26: {
785             if (durationField_ == null) {
786               durationField_ = new global::Google.Protobuf.WellKnownTypes.Duration();
787             }
788             input.ReadMessage(durationField_);
789             break;
790           }
791           case 34: {
792             if (emptyField_ == null) {
793               emptyField_ = new global::Google.Protobuf.WellKnownTypes.Empty();
794             }
795             input.ReadMessage(emptyField_);
796             break;
797           }
798           case 42: {
799             if (fieldMaskField_ == null) {
800               fieldMaskField_ = new global::Google.Protobuf.WellKnownTypes.FieldMask();
801             }
802             input.ReadMessage(fieldMaskField_);
803             break;
804           }
805           case 50: {
806             if (sourceContextField_ == null) {
807               sourceContextField_ = new global::Google.Protobuf.WellKnownTypes.SourceContext();
808             }
809             input.ReadMessage(sourceContextField_);
810             break;
811           }
812           case 58: {
813             if (structField_ == null) {
814               structField_ = new global::Google.Protobuf.WellKnownTypes.Struct();
815             }
816             input.ReadMessage(structField_);
817             break;
818           }
819           case 66: {
820             if (timestampField_ == null) {
821               timestampField_ = new global::Google.Protobuf.WellKnownTypes.Timestamp();
822             }
823             input.ReadMessage(timestampField_);
824             break;
825           }
826           case 74: {
827             if (typeField_ == null) {
828               typeField_ = new global::Google.Protobuf.WellKnownTypes.Type();
829             }
830             input.ReadMessage(typeField_);
831             break;
832           }
833           case 82: {
834             double? value = _single_doubleField_codec.Read(input);
835             if (doubleField_ == null || value != 0D) {
836               DoubleField = value;
837             }
838             break;
839           }
840           case 90: {
841             float? value = _single_floatField_codec.Read(input);
842             if (floatField_ == null || value != 0F) {
843               FloatField = value;
844             }
845             break;
846           }
847           case 98: {
848             long? value = _single_int64Field_codec.Read(input);
849             if (int64Field_ == null || value != 0L) {
850               Int64Field = value;
851             }
852             break;
853           }
854           case 106: {
855             ulong? value = _single_uint64Field_codec.Read(input);
856             if (uint64Field_ == null || value != 0UL) {
857               Uint64Field = value;
858             }
859             break;
860           }
861           case 114: {
862             int? value = _single_int32Field_codec.Read(input);
863             if (int32Field_ == null || value != 0) {
864               Int32Field = value;
865             }
866             break;
867           }
868           case 122: {
869             uint? value = _single_uint32Field_codec.Read(input);
870             if (uint32Field_ == null || value != 0) {
871               Uint32Field = value;
872             }
873             break;
874           }
875           case 130: {
876             bool? value = _single_boolField_codec.Read(input);
877             if (boolField_ == null || value != false) {
878               BoolField = value;
879             }
880             break;
881           }
882           case 138: {
883             string value = _single_stringField_codec.Read(input);
884             if (stringField_ == null || value != "") {
885               StringField = value;
886             }
887             break;
888           }
889           case 146: {
890             pb::ByteString value = _single_bytesField_codec.Read(input);
891             if (bytesField_ == null || value != pb::ByteString.Empty) {
892               BytesField = value;
893             }
894             break;
895           }
896           case 154: {
897             if (valueField_ == null) {
898               valueField_ = new global::Google.Protobuf.WellKnownTypes.Value();
899             }
900             input.ReadMessage(valueField_);
901             break;
902           }
903         }
904       }
905     }
906 
907   }
908 
909   /// <summary>
910   ///  A repeated field for each well-known type.
911   /// </summary>
912   public sealed partial class RepeatedWellKnownTypes : pb::IMessage<RepeatedWellKnownTypes> {
913     private static readonly pb::MessageParser<RepeatedWellKnownTypes> _parser = new pb::MessageParser<RepeatedWellKnownTypes>(() => new RepeatedWellKnownTypes());
914     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
915     public static pb::MessageParser<RepeatedWellKnownTypes> Parser { get { return _parser; } }
916 
917     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
918     public static pbr::MessageDescriptor Descriptor {
919       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[1]; }
920     }
921 
922     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
923     pbr::MessageDescriptor pb::IMessage.Descriptor {
924       get { return Descriptor; }
925     }
926 
927     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RepeatedWellKnownTypes()928     public RepeatedWellKnownTypes() {
929       OnConstruction();
930     }
931 
OnConstruction()932     partial void OnConstruction();
933 
934     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RepeatedWellKnownTypes(RepeatedWellKnownTypes other)935     public RepeatedWellKnownTypes(RepeatedWellKnownTypes other) : this() {
936       anyField_ = other.anyField_.Clone();
937       apiField_ = other.apiField_.Clone();
938       durationField_ = other.durationField_.Clone();
939       emptyField_ = other.emptyField_.Clone();
940       fieldMaskField_ = other.fieldMaskField_.Clone();
941       sourceContextField_ = other.sourceContextField_.Clone();
942       structField_ = other.structField_.Clone();
943       timestampField_ = other.timestampField_.Clone();
944       typeField_ = other.typeField_.Clone();
945       doubleField_ = other.doubleField_.Clone();
946       floatField_ = other.floatField_.Clone();
947       int64Field_ = other.int64Field_.Clone();
948       uint64Field_ = other.uint64Field_.Clone();
949       int32Field_ = other.int32Field_.Clone();
950       uint32Field_ = other.uint32Field_.Clone();
951       boolField_ = other.boolField_.Clone();
952       stringField_ = other.stringField_.Clone();
953       bytesField_ = other.bytesField_.Clone();
954     }
955 
956     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()957     public RepeatedWellKnownTypes Clone() {
958       return new RepeatedWellKnownTypes(this);
959     }
960 
961     /// <summary>Field number for the "any_field" field.</summary>
962     public const int AnyFieldFieldNumber = 1;
963     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Any> _repeated_anyField_codec
964         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Any.Parser);
965     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any>();
966     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
967     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> AnyField {
968       get { return anyField_; }
969     }
970 
971     /// <summary>Field number for the "api_field" field.</summary>
972     public const int ApiFieldFieldNumber = 2;
973     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Api> _repeated_apiField_codec
974         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser);
975     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api>();
976     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
977     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> ApiField {
978       get { return apiField_; }
979     }
980 
981     /// <summary>Field number for the "duration_field" field.</summary>
982     public const int DurationFieldFieldNumber = 3;
983     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Duration> _repeated_durationField_codec
984         = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Duration.Parser);
985     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration>();
986     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
987     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
988       get { return durationField_; }
989     }
990 
991     /// <summary>Field number for the "empty_field" field.</summary>
992     public const int EmptyFieldFieldNumber = 4;
993     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Empty> _repeated_emptyField_codec
994         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.WellKnownTypes.Empty.Parser);
995     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty>();
996     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
997     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
998       get { return emptyField_; }
999     }
1000 
1001     /// <summary>Field number for the "field_mask_field" field.</summary>
1002     public const int FieldMaskFieldFieldNumber = 5;
1003     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.FieldMask> _repeated_fieldMaskField_codec
1004         = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser);
1005     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask>();
1006     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1007     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
1008       get { return fieldMaskField_; }
1009     }
1010 
1011     /// <summary>Field number for the "source_context_field" field.</summary>
1012     public const int SourceContextFieldFieldNumber = 6;
1013     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.SourceContext> _repeated_sourceContextField_codec
1014         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser);
1015     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext>();
1016     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1017     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
1018       get { return sourceContextField_; }
1019     }
1020 
1021     /// <summary>Field number for the "struct_field" field.</summary>
1022     public const int StructFieldFieldNumber = 7;
1023     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Struct> _repeated_structField_codec
1024         = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.WellKnownTypes.Struct.Parser);
1025     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct>();
1026     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1027     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> StructField {
1028       get { return structField_; }
1029     }
1030 
1031     /// <summary>Field number for the "timestamp_field" field.</summary>
1032     public const int TimestampFieldFieldNumber = 8;
1033     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Timestamp> _repeated_timestampField_codec
1034         = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser);
1035     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp>();
1036     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1037     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
1038       get { return timestampField_; }
1039     }
1040 
1041     /// <summary>Field number for the "type_field" field.</summary>
1042     public const int TypeFieldFieldNumber = 9;
1043     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Type> _repeated_typeField_codec
1044         = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.WellKnownTypes.Type.Parser);
1045     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type>();
1046     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1047     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> TypeField {
1048       get { return typeField_; }
1049     }
1050 
1051     /// <summary>Field number for the "double_field" field.</summary>
1052     public const int DoubleFieldFieldNumber = 10;
1053     private static readonly pb::FieldCodec<double?> _repeated_doubleField_codec
1054         = pb::FieldCodec.ForStructWrapper<double>(82);
1055     private readonly pbc::RepeatedField<double?> doubleField_ = new pbc::RepeatedField<double?>();
1056     /// <summary>
1057     ///  These don't actually make a lot of sense, but they're not prohibited...
1058     /// </summary>
1059     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1060     public pbc::RepeatedField<double?> DoubleField {
1061       get { return doubleField_; }
1062     }
1063 
1064     /// <summary>Field number for the "float_field" field.</summary>
1065     public const int FloatFieldFieldNumber = 11;
1066     private static readonly pb::FieldCodec<float?> _repeated_floatField_codec
1067         = pb::FieldCodec.ForStructWrapper<float>(90);
1068     private readonly pbc::RepeatedField<float?> floatField_ = new pbc::RepeatedField<float?>();
1069     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1070     public pbc::RepeatedField<float?> FloatField {
1071       get { return floatField_; }
1072     }
1073 
1074     /// <summary>Field number for the "int64_field" field.</summary>
1075     public const int Int64FieldFieldNumber = 12;
1076     private static readonly pb::FieldCodec<long?> _repeated_int64Field_codec
1077         = pb::FieldCodec.ForStructWrapper<long>(98);
1078     private readonly pbc::RepeatedField<long?> int64Field_ = new pbc::RepeatedField<long?>();
1079     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1080     public pbc::RepeatedField<long?> Int64Field {
1081       get { return int64Field_; }
1082     }
1083 
1084     /// <summary>Field number for the "uint64_field" field.</summary>
1085     public const int Uint64FieldFieldNumber = 13;
1086     private static readonly pb::FieldCodec<ulong?> _repeated_uint64Field_codec
1087         = pb::FieldCodec.ForStructWrapper<ulong>(106);
1088     private readonly pbc::RepeatedField<ulong?> uint64Field_ = new pbc::RepeatedField<ulong?>();
1089     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1090     public pbc::RepeatedField<ulong?> Uint64Field {
1091       get { return uint64Field_; }
1092     }
1093 
1094     /// <summary>Field number for the "int32_field" field.</summary>
1095     public const int Int32FieldFieldNumber = 14;
1096     private static readonly pb::FieldCodec<int?> _repeated_int32Field_codec
1097         = pb::FieldCodec.ForStructWrapper<int>(114);
1098     private readonly pbc::RepeatedField<int?> int32Field_ = new pbc::RepeatedField<int?>();
1099     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1100     public pbc::RepeatedField<int?> Int32Field {
1101       get { return int32Field_; }
1102     }
1103 
1104     /// <summary>Field number for the "uint32_field" field.</summary>
1105     public const int Uint32FieldFieldNumber = 15;
1106     private static readonly pb::FieldCodec<uint?> _repeated_uint32Field_codec
1107         = pb::FieldCodec.ForStructWrapper<uint>(122);
1108     private readonly pbc::RepeatedField<uint?> uint32Field_ = new pbc::RepeatedField<uint?>();
1109     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1110     public pbc::RepeatedField<uint?> Uint32Field {
1111       get { return uint32Field_; }
1112     }
1113 
1114     /// <summary>Field number for the "bool_field" field.</summary>
1115     public const int BoolFieldFieldNumber = 16;
1116     private static readonly pb::FieldCodec<bool?> _repeated_boolField_codec
1117         = pb::FieldCodec.ForStructWrapper<bool>(130);
1118     private readonly pbc::RepeatedField<bool?> boolField_ = new pbc::RepeatedField<bool?>();
1119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1120     public pbc::RepeatedField<bool?> BoolField {
1121       get { return boolField_; }
1122     }
1123 
1124     /// <summary>Field number for the "string_field" field.</summary>
1125     public const int StringFieldFieldNumber = 17;
1126     private static readonly pb::FieldCodec<string> _repeated_stringField_codec
1127         = pb::FieldCodec.ForClassWrapper<string>(138);
1128     private readonly pbc::RepeatedField<string> stringField_ = new pbc::RepeatedField<string>();
1129     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1130     public pbc::RepeatedField<string> StringField {
1131       get { return stringField_; }
1132     }
1133 
1134     /// <summary>Field number for the "bytes_field" field.</summary>
1135     public const int BytesFieldFieldNumber = 18;
1136     private static readonly pb::FieldCodec<pb::ByteString> _repeated_bytesField_codec
1137         = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
1138     private readonly pbc::RepeatedField<pb::ByteString> bytesField_ = new pbc::RepeatedField<pb::ByteString>();
1139     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1140     public pbc::RepeatedField<pb::ByteString> BytesField {
1141       get { return bytesField_; }
1142     }
1143 
1144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1145     public override bool Equals(object other) {
1146       return Equals(other as RepeatedWellKnownTypes);
1147     }
1148 
1149     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(RepeatedWellKnownTypes other)1150     public bool Equals(RepeatedWellKnownTypes other) {
1151       if (ReferenceEquals(other, null)) {
1152         return false;
1153       }
1154       if (ReferenceEquals(other, this)) {
1155         return true;
1156       }
1157       if(!anyField_.Equals(other.anyField_)) return false;
1158       if(!apiField_.Equals(other.apiField_)) return false;
1159       if(!durationField_.Equals(other.durationField_)) return false;
1160       if(!emptyField_.Equals(other.emptyField_)) return false;
1161       if(!fieldMaskField_.Equals(other.fieldMaskField_)) return false;
1162       if(!sourceContextField_.Equals(other.sourceContextField_)) return false;
1163       if(!structField_.Equals(other.structField_)) return false;
1164       if(!timestampField_.Equals(other.timestampField_)) return false;
1165       if(!typeField_.Equals(other.typeField_)) return false;
1166       if(!doubleField_.Equals(other.doubleField_)) return false;
1167       if(!floatField_.Equals(other.floatField_)) return false;
1168       if(!int64Field_.Equals(other.int64Field_)) return false;
1169       if(!uint64Field_.Equals(other.uint64Field_)) return false;
1170       if(!int32Field_.Equals(other.int32Field_)) return false;
1171       if(!uint32Field_.Equals(other.uint32Field_)) return false;
1172       if(!boolField_.Equals(other.boolField_)) return false;
1173       if(!stringField_.Equals(other.stringField_)) return false;
1174       if(!bytesField_.Equals(other.bytesField_)) return false;
1175       return true;
1176     }
1177 
1178     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1179     public override int GetHashCode() {
1180       int hash = 1;
1181       hash ^= anyField_.GetHashCode();
1182       hash ^= apiField_.GetHashCode();
1183       hash ^= durationField_.GetHashCode();
1184       hash ^= emptyField_.GetHashCode();
1185       hash ^= fieldMaskField_.GetHashCode();
1186       hash ^= sourceContextField_.GetHashCode();
1187       hash ^= structField_.GetHashCode();
1188       hash ^= timestampField_.GetHashCode();
1189       hash ^= typeField_.GetHashCode();
1190       hash ^= doubleField_.GetHashCode();
1191       hash ^= floatField_.GetHashCode();
1192       hash ^= int64Field_.GetHashCode();
1193       hash ^= uint64Field_.GetHashCode();
1194       hash ^= int32Field_.GetHashCode();
1195       hash ^= uint32Field_.GetHashCode();
1196       hash ^= boolField_.GetHashCode();
1197       hash ^= stringField_.GetHashCode();
1198       hash ^= bytesField_.GetHashCode();
1199       return hash;
1200     }
1201 
1202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1203     public override string ToString() {
1204       return pb::JsonFormatter.ToDiagnosticString(this);
1205     }
1206 
1207     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1208     public void WriteTo(pb::CodedOutputStream output) {
1209       anyField_.WriteTo(output, _repeated_anyField_codec);
1210       apiField_.WriteTo(output, _repeated_apiField_codec);
1211       durationField_.WriteTo(output, _repeated_durationField_codec);
1212       emptyField_.WriteTo(output, _repeated_emptyField_codec);
1213       fieldMaskField_.WriteTo(output, _repeated_fieldMaskField_codec);
1214       sourceContextField_.WriteTo(output, _repeated_sourceContextField_codec);
1215       structField_.WriteTo(output, _repeated_structField_codec);
1216       timestampField_.WriteTo(output, _repeated_timestampField_codec);
1217       typeField_.WriteTo(output, _repeated_typeField_codec);
1218       doubleField_.WriteTo(output, _repeated_doubleField_codec);
1219       floatField_.WriteTo(output, _repeated_floatField_codec);
1220       int64Field_.WriteTo(output, _repeated_int64Field_codec);
1221       uint64Field_.WriteTo(output, _repeated_uint64Field_codec);
1222       int32Field_.WriteTo(output, _repeated_int32Field_codec);
1223       uint32Field_.WriteTo(output, _repeated_uint32Field_codec);
1224       boolField_.WriteTo(output, _repeated_boolField_codec);
1225       stringField_.WriteTo(output, _repeated_stringField_codec);
1226       bytesField_.WriteTo(output, _repeated_bytesField_codec);
1227     }
1228 
1229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1230     public int CalculateSize() {
1231       int size = 0;
1232       size += anyField_.CalculateSize(_repeated_anyField_codec);
1233       size += apiField_.CalculateSize(_repeated_apiField_codec);
1234       size += durationField_.CalculateSize(_repeated_durationField_codec);
1235       size += emptyField_.CalculateSize(_repeated_emptyField_codec);
1236       size += fieldMaskField_.CalculateSize(_repeated_fieldMaskField_codec);
1237       size += sourceContextField_.CalculateSize(_repeated_sourceContextField_codec);
1238       size += structField_.CalculateSize(_repeated_structField_codec);
1239       size += timestampField_.CalculateSize(_repeated_timestampField_codec);
1240       size += typeField_.CalculateSize(_repeated_typeField_codec);
1241       size += doubleField_.CalculateSize(_repeated_doubleField_codec);
1242       size += floatField_.CalculateSize(_repeated_floatField_codec);
1243       size += int64Field_.CalculateSize(_repeated_int64Field_codec);
1244       size += uint64Field_.CalculateSize(_repeated_uint64Field_codec);
1245       size += int32Field_.CalculateSize(_repeated_int32Field_codec);
1246       size += uint32Field_.CalculateSize(_repeated_uint32Field_codec);
1247       size += boolField_.CalculateSize(_repeated_boolField_codec);
1248       size += stringField_.CalculateSize(_repeated_stringField_codec);
1249       size += bytesField_.CalculateSize(_repeated_bytesField_codec);
1250       return size;
1251     }
1252 
1253     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(RepeatedWellKnownTypes other)1254     public void MergeFrom(RepeatedWellKnownTypes other) {
1255       if (other == null) {
1256         return;
1257       }
1258       anyField_.Add(other.anyField_);
1259       apiField_.Add(other.apiField_);
1260       durationField_.Add(other.durationField_);
1261       emptyField_.Add(other.emptyField_);
1262       fieldMaskField_.Add(other.fieldMaskField_);
1263       sourceContextField_.Add(other.sourceContextField_);
1264       structField_.Add(other.structField_);
1265       timestampField_.Add(other.timestampField_);
1266       typeField_.Add(other.typeField_);
1267       doubleField_.Add(other.doubleField_);
1268       floatField_.Add(other.floatField_);
1269       int64Field_.Add(other.int64Field_);
1270       uint64Field_.Add(other.uint64Field_);
1271       int32Field_.Add(other.int32Field_);
1272       uint32Field_.Add(other.uint32Field_);
1273       boolField_.Add(other.boolField_);
1274       stringField_.Add(other.stringField_);
1275       bytesField_.Add(other.bytesField_);
1276     }
1277 
1278     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1279     public void MergeFrom(pb::CodedInputStream input) {
1280       uint tag;
1281       while ((tag = input.ReadTag()) != 0) {
1282         switch(tag) {
1283           default:
1284             input.SkipLastField();
1285             break;
1286           case 10: {
1287             anyField_.AddEntriesFrom(input, _repeated_anyField_codec);
1288             break;
1289           }
1290           case 18: {
1291             apiField_.AddEntriesFrom(input, _repeated_apiField_codec);
1292             break;
1293           }
1294           case 26: {
1295             durationField_.AddEntriesFrom(input, _repeated_durationField_codec);
1296             break;
1297           }
1298           case 34: {
1299             emptyField_.AddEntriesFrom(input, _repeated_emptyField_codec);
1300             break;
1301           }
1302           case 42: {
1303             fieldMaskField_.AddEntriesFrom(input, _repeated_fieldMaskField_codec);
1304             break;
1305           }
1306           case 50: {
1307             sourceContextField_.AddEntriesFrom(input, _repeated_sourceContextField_codec);
1308             break;
1309           }
1310           case 58: {
1311             structField_.AddEntriesFrom(input, _repeated_structField_codec);
1312             break;
1313           }
1314           case 66: {
1315             timestampField_.AddEntriesFrom(input, _repeated_timestampField_codec);
1316             break;
1317           }
1318           case 74: {
1319             typeField_.AddEntriesFrom(input, _repeated_typeField_codec);
1320             break;
1321           }
1322           case 82: {
1323             doubleField_.AddEntriesFrom(input, _repeated_doubleField_codec);
1324             break;
1325           }
1326           case 90: {
1327             floatField_.AddEntriesFrom(input, _repeated_floatField_codec);
1328             break;
1329           }
1330           case 98: {
1331             int64Field_.AddEntriesFrom(input, _repeated_int64Field_codec);
1332             break;
1333           }
1334           case 106: {
1335             uint64Field_.AddEntriesFrom(input, _repeated_uint64Field_codec);
1336             break;
1337           }
1338           case 114: {
1339             int32Field_.AddEntriesFrom(input, _repeated_int32Field_codec);
1340             break;
1341           }
1342           case 122: {
1343             uint32Field_.AddEntriesFrom(input, _repeated_uint32Field_codec);
1344             break;
1345           }
1346           case 130: {
1347             boolField_.AddEntriesFrom(input, _repeated_boolField_codec);
1348             break;
1349           }
1350           case 138: {
1351             stringField_.AddEntriesFrom(input, _repeated_stringField_codec);
1352             break;
1353           }
1354           case 146: {
1355             bytesField_.AddEntriesFrom(input, _repeated_bytesField_codec);
1356             break;
1357           }
1358         }
1359       }
1360     }
1361 
1362   }
1363 
1364   public sealed partial class OneofWellKnownTypes : pb::IMessage<OneofWellKnownTypes> {
1365     private static readonly pb::MessageParser<OneofWellKnownTypes> _parser = new pb::MessageParser<OneofWellKnownTypes>(() => new OneofWellKnownTypes());
1366     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1367     public static pb::MessageParser<OneofWellKnownTypes> Parser { get { return _parser; } }
1368 
1369     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1370     public static pbr::MessageDescriptor Descriptor {
1371       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[2]; }
1372     }
1373 
1374     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1375     pbr::MessageDescriptor pb::IMessage.Descriptor {
1376       get { return Descriptor; }
1377     }
1378 
1379     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofWellKnownTypes()1380     public OneofWellKnownTypes() {
1381       OnConstruction();
1382     }
1383 
OnConstruction()1384     partial void OnConstruction();
1385 
1386     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofWellKnownTypes(OneofWellKnownTypes other)1387     public OneofWellKnownTypes(OneofWellKnownTypes other) : this() {
1388       switch (other.OneofFieldCase) {
1389         case OneofFieldOneofCase.AnyField:
1390           AnyField = other.AnyField.Clone();
1391           break;
1392         case OneofFieldOneofCase.ApiField:
1393           ApiField = other.ApiField.Clone();
1394           break;
1395         case OneofFieldOneofCase.DurationField:
1396           DurationField = other.DurationField.Clone();
1397           break;
1398         case OneofFieldOneofCase.EmptyField:
1399           EmptyField = other.EmptyField.Clone();
1400           break;
1401         case OneofFieldOneofCase.FieldMaskField:
1402           FieldMaskField = other.FieldMaskField.Clone();
1403           break;
1404         case OneofFieldOneofCase.SourceContextField:
1405           SourceContextField = other.SourceContextField.Clone();
1406           break;
1407         case OneofFieldOneofCase.StructField:
1408           StructField = other.StructField.Clone();
1409           break;
1410         case OneofFieldOneofCase.TimestampField:
1411           TimestampField = other.TimestampField.Clone();
1412           break;
1413         case OneofFieldOneofCase.TypeField:
1414           TypeField = other.TypeField.Clone();
1415           break;
1416         case OneofFieldOneofCase.DoubleField:
1417           DoubleField = other.DoubleField;
1418           break;
1419         case OneofFieldOneofCase.FloatField:
1420           FloatField = other.FloatField;
1421           break;
1422         case OneofFieldOneofCase.Int64Field:
1423           Int64Field = other.Int64Field;
1424           break;
1425         case OneofFieldOneofCase.Uint64Field:
1426           Uint64Field = other.Uint64Field;
1427           break;
1428         case OneofFieldOneofCase.Int32Field:
1429           Int32Field = other.Int32Field;
1430           break;
1431         case OneofFieldOneofCase.Uint32Field:
1432           Uint32Field = other.Uint32Field;
1433           break;
1434         case OneofFieldOneofCase.BoolField:
1435           BoolField = other.BoolField;
1436           break;
1437         case OneofFieldOneofCase.StringField:
1438           StringField = other.StringField;
1439           break;
1440         case OneofFieldOneofCase.BytesField:
1441           BytesField = other.BytesField;
1442           break;
1443       }
1444 
1445     }
1446 
1447     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1448     public OneofWellKnownTypes Clone() {
1449       return new OneofWellKnownTypes(this);
1450     }
1451 
1452     /// <summary>Field number for the "any_field" field.</summary>
1453     public const int AnyFieldFieldNumber = 1;
1454     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1455     public global::Google.Protobuf.WellKnownTypes.Any AnyField {
1456       get { return oneofFieldCase_ == OneofFieldOneofCase.AnyField ? (global::Google.Protobuf.WellKnownTypes.Any) oneofField_ : null; }
1457       set {
1458         oneofField_ = value;
1459         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.AnyField;
1460       }
1461     }
1462 
1463     /// <summary>Field number for the "api_field" field.</summary>
1464     public const int ApiFieldFieldNumber = 2;
1465     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1466     public global::Google.Protobuf.WellKnownTypes.Api ApiField {
1467       get { return oneofFieldCase_ == OneofFieldOneofCase.ApiField ? (global::Google.Protobuf.WellKnownTypes.Api) oneofField_ : null; }
1468       set {
1469         oneofField_ = value;
1470         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.ApiField;
1471       }
1472     }
1473 
1474     /// <summary>Field number for the "duration_field" field.</summary>
1475     public const int DurationFieldFieldNumber = 3;
1476     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1477     public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
1478       get { return oneofFieldCase_ == OneofFieldOneofCase.DurationField ? (global::Google.Protobuf.WellKnownTypes.Duration) oneofField_ : null; }
1479       set {
1480         oneofField_ = value;
1481         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DurationField;
1482       }
1483     }
1484 
1485     /// <summary>Field number for the "empty_field" field.</summary>
1486     public const int EmptyFieldFieldNumber = 4;
1487     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1488     public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
1489       get { return oneofFieldCase_ == OneofFieldOneofCase.EmptyField ? (global::Google.Protobuf.WellKnownTypes.Empty) oneofField_ : null; }
1490       set {
1491         oneofField_ = value;
1492         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.EmptyField;
1493       }
1494     }
1495 
1496     /// <summary>Field number for the "field_mask_field" field.</summary>
1497     public const int FieldMaskFieldFieldNumber = 5;
1498     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1499     public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
1500       get { return oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField ? (global::Google.Protobuf.WellKnownTypes.FieldMask) oneofField_ : null; }
1501       set {
1502         oneofField_ = value;
1503         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FieldMaskField;
1504       }
1505     }
1506 
1507     /// <summary>Field number for the "source_context_field" field.</summary>
1508     public const int SourceContextFieldFieldNumber = 6;
1509     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1510     public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
1511       get { return oneofFieldCase_ == OneofFieldOneofCase.SourceContextField ? (global::Google.Protobuf.WellKnownTypes.SourceContext) oneofField_ : null; }
1512       set {
1513         oneofField_ = value;
1514         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.SourceContextField;
1515       }
1516     }
1517 
1518     /// <summary>Field number for the "struct_field" field.</summary>
1519     public const int StructFieldFieldNumber = 7;
1520     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1521     public global::Google.Protobuf.WellKnownTypes.Struct StructField {
1522       get { return oneofFieldCase_ == OneofFieldOneofCase.StructField ? (global::Google.Protobuf.WellKnownTypes.Struct) oneofField_ : null; }
1523       set {
1524         oneofField_ = value;
1525         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StructField;
1526       }
1527     }
1528 
1529     /// <summary>Field number for the "timestamp_field" field.</summary>
1530     public const int TimestampFieldFieldNumber = 8;
1531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1532     public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
1533       get { return oneofFieldCase_ == OneofFieldOneofCase.TimestampField ? (global::Google.Protobuf.WellKnownTypes.Timestamp) oneofField_ : null; }
1534       set {
1535         oneofField_ = value;
1536         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TimestampField;
1537       }
1538     }
1539 
1540     /// <summary>Field number for the "type_field" field.</summary>
1541     public const int TypeFieldFieldNumber = 9;
1542     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1543     public global::Google.Protobuf.WellKnownTypes.Type TypeField {
1544       get { return oneofFieldCase_ == OneofFieldOneofCase.TypeField ? (global::Google.Protobuf.WellKnownTypes.Type) oneofField_ : null; }
1545       set {
1546         oneofField_ = value;
1547         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TypeField;
1548       }
1549     }
1550 
1551     /// <summary>Field number for the "double_field" field.</summary>
1552     public const int DoubleFieldFieldNumber = 10;
1553     private static readonly pb::FieldCodec<double?> _oneof_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
1554     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1555     public double? DoubleField {
1556       get { return oneofFieldCase_ == OneofFieldOneofCase.DoubleField ? (double?) oneofField_ : (double?) null; }
1557       set {
1558         oneofField_ = value;
1559         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DoubleField;
1560       }
1561     }
1562 
1563     /// <summary>Field number for the "float_field" field.</summary>
1564     public const int FloatFieldFieldNumber = 11;
1565     private static readonly pb::FieldCodec<float?> _oneof_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
1566     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1567     public float? FloatField {
1568       get { return oneofFieldCase_ == OneofFieldOneofCase.FloatField ? (float?) oneofField_ : (float?) null; }
1569       set {
1570         oneofField_ = value;
1571         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FloatField;
1572       }
1573     }
1574 
1575     /// <summary>Field number for the "int64_field" field.</summary>
1576     public const int Int64FieldFieldNumber = 12;
1577     private static readonly pb::FieldCodec<long?> _oneof_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
1578     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1579     public long? Int64Field {
1580       get { return oneofFieldCase_ == OneofFieldOneofCase.Int64Field ? (long?) oneofField_ : (long?) null; }
1581       set {
1582         oneofField_ = value;
1583         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int64Field;
1584       }
1585     }
1586 
1587     /// <summary>Field number for the "uint64_field" field.</summary>
1588     public const int Uint64FieldFieldNumber = 13;
1589     private static readonly pb::FieldCodec<ulong?> _oneof_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
1590     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1591     public ulong? Uint64Field {
1592       get { return oneofFieldCase_ == OneofFieldOneofCase.Uint64Field ? (ulong?) oneofField_ : (ulong?) null; }
1593       set {
1594         oneofField_ = value;
1595         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint64Field;
1596       }
1597     }
1598 
1599     /// <summary>Field number for the "int32_field" field.</summary>
1600     public const int Int32FieldFieldNumber = 14;
1601     private static readonly pb::FieldCodec<int?> _oneof_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
1602     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1603     public int? Int32Field {
1604       get { return oneofFieldCase_ == OneofFieldOneofCase.Int32Field ? (int?) oneofField_ : (int?) null; }
1605       set {
1606         oneofField_ = value;
1607         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int32Field;
1608       }
1609     }
1610 
1611     /// <summary>Field number for the "uint32_field" field.</summary>
1612     public const int Uint32FieldFieldNumber = 15;
1613     private static readonly pb::FieldCodec<uint?> _oneof_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
1614     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1615     public uint? Uint32Field {
1616       get { return oneofFieldCase_ == OneofFieldOneofCase.Uint32Field ? (uint?) oneofField_ : (uint?) null; }
1617       set {
1618         oneofField_ = value;
1619         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint32Field;
1620       }
1621     }
1622 
1623     /// <summary>Field number for the "bool_field" field.</summary>
1624     public const int BoolFieldFieldNumber = 16;
1625     private static readonly pb::FieldCodec<bool?> _oneof_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
1626     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1627     public bool? BoolField {
1628       get { return oneofFieldCase_ == OneofFieldOneofCase.BoolField ? (bool?) oneofField_ : (bool?) null; }
1629       set {
1630         oneofField_ = value;
1631         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BoolField;
1632       }
1633     }
1634 
1635     /// <summary>Field number for the "string_field" field.</summary>
1636     public const int StringFieldFieldNumber = 17;
1637     private static readonly pb::FieldCodec<string> _oneof_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
1638     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1639     public string StringField {
1640       get { return oneofFieldCase_ == OneofFieldOneofCase.StringField ? (string) oneofField_ : (string) null; }
1641       set {
1642         oneofField_ = value;
1643         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StringField;
1644       }
1645     }
1646 
1647     /// <summary>Field number for the "bytes_field" field.</summary>
1648     public const int BytesFieldFieldNumber = 18;
1649     private static readonly pb::FieldCodec<pb::ByteString> _oneof_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
1650     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1651     public pb::ByteString BytesField {
1652       get { return oneofFieldCase_ == OneofFieldOneofCase.BytesField ? (pb::ByteString) oneofField_ : (pb::ByteString) null; }
1653       set {
1654         oneofField_ = value;
1655         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BytesField;
1656       }
1657     }
1658 
1659     private object oneofField_;
1660     /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
1661     public enum OneofFieldOneofCase {
1662       None = 0,
1663       AnyField = 1,
1664       ApiField = 2,
1665       DurationField = 3,
1666       EmptyField = 4,
1667       FieldMaskField = 5,
1668       SourceContextField = 6,
1669       StructField = 7,
1670       TimestampField = 8,
1671       TypeField = 9,
1672       DoubleField = 10,
1673       FloatField = 11,
1674       Int64Field = 12,
1675       Uint64Field = 13,
1676       Int32Field = 14,
1677       Uint32Field = 15,
1678       BoolField = 16,
1679       StringField = 17,
1680       BytesField = 18,
1681     }
1682     private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
1683     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1684     public OneofFieldOneofCase OneofFieldCase {
1685       get { return oneofFieldCase_; }
1686     }
1687 
1688     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOneofField()1689     public void ClearOneofField() {
1690       oneofFieldCase_ = OneofFieldOneofCase.None;
1691       oneofField_ = null;
1692     }
1693 
1694     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1695     public override bool Equals(object other) {
1696       return Equals(other as OneofWellKnownTypes);
1697     }
1698 
1699     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(OneofWellKnownTypes other)1700     public bool Equals(OneofWellKnownTypes other) {
1701       if (ReferenceEquals(other, null)) {
1702         return false;
1703       }
1704       if (ReferenceEquals(other, this)) {
1705         return true;
1706       }
1707       if (!object.Equals(AnyField, other.AnyField)) return false;
1708       if (!object.Equals(ApiField, other.ApiField)) return false;
1709       if (!object.Equals(DurationField, other.DurationField)) return false;
1710       if (!object.Equals(EmptyField, other.EmptyField)) return false;
1711       if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
1712       if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
1713       if (!object.Equals(StructField, other.StructField)) return false;
1714       if (!object.Equals(TimestampField, other.TimestampField)) return false;
1715       if (!object.Equals(TypeField, other.TypeField)) return false;
1716       if (DoubleField != other.DoubleField) return false;
1717       if (FloatField != other.FloatField) return false;
1718       if (Int64Field != other.Int64Field) return false;
1719       if (Uint64Field != other.Uint64Field) return false;
1720       if (Int32Field != other.Int32Field) return false;
1721       if (Uint32Field != other.Uint32Field) return false;
1722       if (BoolField != other.BoolField) return false;
1723       if (StringField != other.StringField) return false;
1724       if (BytesField != other.BytesField) return false;
1725       if (OneofFieldCase != other.OneofFieldCase) return false;
1726       return true;
1727     }
1728 
1729     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1730     public override int GetHashCode() {
1731       int hash = 1;
1732       if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) hash ^= AnyField.GetHashCode();
1733       if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) hash ^= ApiField.GetHashCode();
1734       if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) hash ^= DurationField.GetHashCode();
1735       if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) hash ^= EmptyField.GetHashCode();
1736       if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) hash ^= FieldMaskField.GetHashCode();
1737       if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) hash ^= SourceContextField.GetHashCode();
1738       if (oneofFieldCase_ == OneofFieldOneofCase.StructField) hash ^= StructField.GetHashCode();
1739       if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) hash ^= TimestampField.GetHashCode();
1740       if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) hash ^= TypeField.GetHashCode();
1741       if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) hash ^= DoubleField.GetHashCode();
1742       if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) hash ^= FloatField.GetHashCode();
1743       if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) hash ^= Int64Field.GetHashCode();
1744       if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) hash ^= Uint64Field.GetHashCode();
1745       if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) hash ^= Int32Field.GetHashCode();
1746       if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) hash ^= Uint32Field.GetHashCode();
1747       if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) hash ^= BoolField.GetHashCode();
1748       if (oneofFieldCase_ == OneofFieldOneofCase.StringField) hash ^= StringField.GetHashCode();
1749       if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) hash ^= BytesField.GetHashCode();
1750       hash ^= (int) oneofFieldCase_;
1751       return hash;
1752     }
1753 
1754     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1755     public override string ToString() {
1756       return pb::JsonFormatter.ToDiagnosticString(this);
1757     }
1758 
1759     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1760     public void WriteTo(pb::CodedOutputStream output) {
1761       if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
1762         output.WriteRawTag(10);
1763         output.WriteMessage(AnyField);
1764       }
1765       if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
1766         output.WriteRawTag(18);
1767         output.WriteMessage(ApiField);
1768       }
1769       if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
1770         output.WriteRawTag(26);
1771         output.WriteMessage(DurationField);
1772       }
1773       if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
1774         output.WriteRawTag(34);
1775         output.WriteMessage(EmptyField);
1776       }
1777       if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
1778         output.WriteRawTag(42);
1779         output.WriteMessage(FieldMaskField);
1780       }
1781       if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
1782         output.WriteRawTag(50);
1783         output.WriteMessage(SourceContextField);
1784       }
1785       if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
1786         output.WriteRawTag(58);
1787         output.WriteMessage(StructField);
1788       }
1789       if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
1790         output.WriteRawTag(66);
1791         output.WriteMessage(TimestampField);
1792       }
1793       if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
1794         output.WriteRawTag(74);
1795         output.WriteMessage(TypeField);
1796       }
1797       if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
1798         _oneof_doubleField_codec.WriteTagAndValue(output, (double?) oneofField_);
1799       }
1800       if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
1801         _oneof_floatField_codec.WriteTagAndValue(output, (float?) oneofField_);
1802       }
1803       if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
1804         _oneof_int64Field_codec.WriteTagAndValue(output, (long?) oneofField_);
1805       }
1806       if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
1807         _oneof_uint64Field_codec.WriteTagAndValue(output, (ulong?) oneofField_);
1808       }
1809       if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
1810         _oneof_int32Field_codec.WriteTagAndValue(output, (int?) oneofField_);
1811       }
1812       if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
1813         _oneof_uint32Field_codec.WriteTagAndValue(output, (uint?) oneofField_);
1814       }
1815       if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
1816         _oneof_boolField_codec.WriteTagAndValue(output, (bool?) oneofField_);
1817       }
1818       if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
1819         _oneof_stringField_codec.WriteTagAndValue(output, (string) oneofField_);
1820       }
1821       if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
1822         _oneof_bytesField_codec.WriteTagAndValue(output, (pb::ByteString) oneofField_);
1823       }
1824     }
1825 
1826     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1827     public int CalculateSize() {
1828       int size = 0;
1829       if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
1830         size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
1831       }
1832       if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
1833         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
1834       }
1835       if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
1836         size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
1837       }
1838       if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
1839         size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
1840       }
1841       if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
1842         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
1843       }
1844       if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
1845         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
1846       }
1847       if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
1848         size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
1849       }
1850       if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
1851         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
1852       }
1853       if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
1854         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
1855       }
1856       if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
1857         size += _oneof_doubleField_codec.CalculateSizeWithTag(DoubleField);
1858       }
1859       if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
1860         size += _oneof_floatField_codec.CalculateSizeWithTag(FloatField);
1861       }
1862       if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
1863         size += _oneof_int64Field_codec.CalculateSizeWithTag(Int64Field);
1864       }
1865       if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
1866         size += _oneof_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
1867       }
1868       if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
1869         size += _oneof_int32Field_codec.CalculateSizeWithTag(Int32Field);
1870       }
1871       if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
1872         size += _oneof_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
1873       }
1874       if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
1875         size += _oneof_boolField_codec.CalculateSizeWithTag(BoolField);
1876       }
1877       if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
1878         size += _oneof_stringField_codec.CalculateSizeWithTag(StringField);
1879       }
1880       if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
1881         size += _oneof_bytesField_codec.CalculateSizeWithTag(BytesField);
1882       }
1883       return size;
1884     }
1885 
1886     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(OneofWellKnownTypes other)1887     public void MergeFrom(OneofWellKnownTypes other) {
1888       if (other == null) {
1889         return;
1890       }
1891       switch (other.OneofFieldCase) {
1892         case OneofFieldOneofCase.AnyField:
1893           AnyField = other.AnyField;
1894           break;
1895         case OneofFieldOneofCase.ApiField:
1896           ApiField = other.ApiField;
1897           break;
1898         case OneofFieldOneofCase.DurationField:
1899           DurationField = other.DurationField;
1900           break;
1901         case OneofFieldOneofCase.EmptyField:
1902           EmptyField = other.EmptyField;
1903           break;
1904         case OneofFieldOneofCase.FieldMaskField:
1905           FieldMaskField = other.FieldMaskField;
1906           break;
1907         case OneofFieldOneofCase.SourceContextField:
1908           SourceContextField = other.SourceContextField;
1909           break;
1910         case OneofFieldOneofCase.StructField:
1911           StructField = other.StructField;
1912           break;
1913         case OneofFieldOneofCase.TimestampField:
1914           TimestampField = other.TimestampField;
1915           break;
1916         case OneofFieldOneofCase.TypeField:
1917           TypeField = other.TypeField;
1918           break;
1919         case OneofFieldOneofCase.DoubleField:
1920           DoubleField = other.DoubleField;
1921           break;
1922         case OneofFieldOneofCase.FloatField:
1923           FloatField = other.FloatField;
1924           break;
1925         case OneofFieldOneofCase.Int64Field:
1926           Int64Field = other.Int64Field;
1927           break;
1928         case OneofFieldOneofCase.Uint64Field:
1929           Uint64Field = other.Uint64Field;
1930           break;
1931         case OneofFieldOneofCase.Int32Field:
1932           Int32Field = other.Int32Field;
1933           break;
1934         case OneofFieldOneofCase.Uint32Field:
1935           Uint32Field = other.Uint32Field;
1936           break;
1937         case OneofFieldOneofCase.BoolField:
1938           BoolField = other.BoolField;
1939           break;
1940         case OneofFieldOneofCase.StringField:
1941           StringField = other.StringField;
1942           break;
1943         case OneofFieldOneofCase.BytesField:
1944           BytesField = other.BytesField;
1945           break;
1946       }
1947 
1948     }
1949 
1950     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1951     public void MergeFrom(pb::CodedInputStream input) {
1952       uint tag;
1953       while ((tag = input.ReadTag()) != 0) {
1954         switch(tag) {
1955           default:
1956             input.SkipLastField();
1957             break;
1958           case 10: {
1959             global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global::Google.Protobuf.WellKnownTypes.Any();
1960             if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
1961               subBuilder.MergeFrom(AnyField);
1962             }
1963             input.ReadMessage(subBuilder);
1964             AnyField = subBuilder;
1965             break;
1966           }
1967           case 18: {
1968             global::Google.Protobuf.WellKnownTypes.Api subBuilder = new global::Google.Protobuf.WellKnownTypes.Api();
1969             if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
1970               subBuilder.MergeFrom(ApiField);
1971             }
1972             input.ReadMessage(subBuilder);
1973             ApiField = subBuilder;
1974             break;
1975           }
1976           case 26: {
1977             global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
1978             if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
1979               subBuilder.MergeFrom(DurationField);
1980             }
1981             input.ReadMessage(subBuilder);
1982             DurationField = subBuilder;
1983             break;
1984           }
1985           case 34: {
1986             global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
1987             if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
1988               subBuilder.MergeFrom(EmptyField);
1989             }
1990             input.ReadMessage(subBuilder);
1991             EmptyField = subBuilder;
1992             break;
1993           }
1994           case 42: {
1995             global::Google.Protobuf.WellKnownTypes.FieldMask subBuilder = new global::Google.Protobuf.WellKnownTypes.FieldMask();
1996             if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
1997               subBuilder.MergeFrom(FieldMaskField);
1998             }
1999             input.ReadMessage(subBuilder);
2000             FieldMaskField = subBuilder;
2001             break;
2002           }
2003           case 50: {
2004             global::Google.Protobuf.WellKnownTypes.SourceContext subBuilder = new global::Google.Protobuf.WellKnownTypes.SourceContext();
2005             if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
2006               subBuilder.MergeFrom(SourceContextField);
2007             }
2008             input.ReadMessage(subBuilder);
2009             SourceContextField = subBuilder;
2010             break;
2011           }
2012           case 58: {
2013             global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
2014             if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
2015               subBuilder.MergeFrom(StructField);
2016             }
2017             input.ReadMessage(subBuilder);
2018             StructField = subBuilder;
2019             break;
2020           }
2021           case 66: {
2022             global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
2023             if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
2024               subBuilder.MergeFrom(TimestampField);
2025             }
2026             input.ReadMessage(subBuilder);
2027             TimestampField = subBuilder;
2028             break;
2029           }
2030           case 74: {
2031             global::Google.Protobuf.WellKnownTypes.Type subBuilder = new global::Google.Protobuf.WellKnownTypes.Type();
2032             if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
2033               subBuilder.MergeFrom(TypeField);
2034             }
2035             input.ReadMessage(subBuilder);
2036             TypeField = subBuilder;
2037             break;
2038           }
2039           case 82: {
2040             DoubleField = _oneof_doubleField_codec.Read(input);
2041             break;
2042           }
2043           case 90: {
2044             FloatField = _oneof_floatField_codec.Read(input);
2045             break;
2046           }
2047           case 98: {
2048             Int64Field = _oneof_int64Field_codec.Read(input);
2049             break;
2050           }
2051           case 106: {
2052             Uint64Field = _oneof_uint64Field_codec.Read(input);
2053             break;
2054           }
2055           case 114: {
2056             Int32Field = _oneof_int32Field_codec.Read(input);
2057             break;
2058           }
2059           case 122: {
2060             Uint32Field = _oneof_uint32Field_codec.Read(input);
2061             break;
2062           }
2063           case 130: {
2064             BoolField = _oneof_boolField_codec.Read(input);
2065             break;
2066           }
2067           case 138: {
2068             StringField = _oneof_stringField_codec.Read(input);
2069             break;
2070           }
2071           case 146: {
2072             BytesField = _oneof_bytesField_codec.Read(input);
2073             break;
2074           }
2075         }
2076       }
2077     }
2078 
2079   }
2080 
2081   /// <summary>
2082   ///  A map field for each well-known type. We only
2083   ///  need to worry about the value part of the map being the
2084   ///  well-known types, as messages can't be map keys.
2085   /// </summary>
2086   public sealed partial class MapWellKnownTypes : pb::IMessage<MapWellKnownTypes> {
2087     private static readonly pb::MessageParser<MapWellKnownTypes> _parser = new pb::MessageParser<MapWellKnownTypes>(() => new MapWellKnownTypes());
2088     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2089     public static pb::MessageParser<MapWellKnownTypes> Parser { get { return _parser; } }
2090 
2091     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2092     public static pbr::MessageDescriptor Descriptor {
2093       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[3]; }
2094     }
2095 
2096     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2097     pbr::MessageDescriptor pb::IMessage.Descriptor {
2098       get { return Descriptor; }
2099     }
2100 
2101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MapWellKnownTypes()2102     public MapWellKnownTypes() {
2103       OnConstruction();
2104     }
2105 
OnConstruction()2106     partial void OnConstruction();
2107 
2108     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MapWellKnownTypes(MapWellKnownTypes other)2109     public MapWellKnownTypes(MapWellKnownTypes other) : this() {
2110       anyField_ = other.anyField_.Clone();
2111       apiField_ = other.apiField_.Clone();
2112       durationField_ = other.durationField_.Clone();
2113       emptyField_ = other.emptyField_.Clone();
2114       fieldMaskField_ = other.fieldMaskField_.Clone();
2115       sourceContextField_ = other.sourceContextField_.Clone();
2116       structField_ = other.structField_.Clone();
2117       timestampField_ = other.timestampField_.Clone();
2118       typeField_ = other.typeField_.Clone();
2119       doubleField_ = other.doubleField_.Clone();
2120       floatField_ = other.floatField_.Clone();
2121       int64Field_ = other.int64Field_.Clone();
2122       uint64Field_ = other.uint64Field_.Clone();
2123       int32Field_ = other.int32Field_.Clone();
2124       uint32Field_ = other.uint32Field_.Clone();
2125       boolField_ = other.boolField_.Clone();
2126       stringField_ = other.stringField_.Clone();
2127       bytesField_ = other.bytesField_.Clone();
2128     }
2129 
2130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()2131     public MapWellKnownTypes Clone() {
2132       return new MapWellKnownTypes(this);
2133     }
2134 
2135     /// <summary>Field number for the "any_field" field.</summary>
2136     public const int AnyFieldFieldNumber = 1;
2137     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec _map_anyField_codec
2138         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Any.Parser), 10);
2139     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>();
2140     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2141     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> AnyField {
2142       get { return anyField_; }
2143     }
2144 
2145     /// <summary>Field number for the "api_field" field.</summary>
2146     public const int ApiFieldFieldNumber = 2;
2147     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec _map_apiField_codec
2148         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser), 18);
2149     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>();
2150     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2151     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> ApiField {
2152       get { return apiField_; }
2153     }
2154 
2155     /// <summary>Field number for the "duration_field" field.</summary>
2156     public const int DurationFieldFieldNumber = 3;
2157     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec _map_durationField_codec
2158         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Duration.Parser), 26);
2159     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>();
2160     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2161     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
2162       get { return durationField_; }
2163     }
2164 
2165     /// <summary>Field number for the "empty_field" field.</summary>
2166     public const int EmptyFieldFieldNumber = 4;
2167     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec _map_emptyField_codec
2168         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Empty.Parser), 34);
2169     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>();
2170     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2171     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
2172       get { return emptyField_; }
2173     }
2174 
2175     /// <summary>Field number for the "field_mask_field" field.</summary>
2176     public const int FieldMaskFieldFieldNumber = 5;
2177     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec _map_fieldMaskField_codec
2178         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser), 42);
2179     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>();
2180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2181     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
2182       get { return fieldMaskField_; }
2183     }
2184 
2185     /// <summary>Field number for the "source_context_field" field.</summary>
2186     public const int SourceContextFieldFieldNumber = 6;
2187     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec _map_sourceContextField_codec
2188         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser), 50);
2189     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>();
2190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2191     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
2192       get { return sourceContextField_; }
2193     }
2194 
2195     /// <summary>Field number for the "struct_field" field.</summary>
2196     public const int StructFieldFieldNumber = 7;
2197     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec _map_structField_codec
2198         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Struct.Parser), 58);
2199     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>();
2200     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2201     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> StructField {
2202       get { return structField_; }
2203     }
2204 
2205     /// <summary>Field number for the "timestamp_field" field.</summary>
2206     public const int TimestampFieldFieldNumber = 8;
2207     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec _map_timestampField_codec
2208         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser), 66);
2209     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>();
2210     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2211     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
2212       get { return timestampField_; }
2213     }
2214 
2215     /// <summary>Field number for the "type_field" field.</summary>
2216     public const int TypeFieldFieldNumber = 9;
2217     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec _map_typeField_codec
2218         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Type.Parser), 74);
2219     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>();
2220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2221     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> TypeField {
2222       get { return typeField_; }
2223     }
2224 
2225     /// <summary>Field number for the "double_field" field.</summary>
2226     public const int DoubleFieldFieldNumber = 10;
2227     private static readonly pbc::MapField<int, double?>.Codec _map_doubleField_codec
2228         = new pbc::MapField<int, double?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<double>(18), 82);
2229     private readonly pbc::MapField<int, double?> doubleField_ = new pbc::MapField<int, double?>();
2230     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2231     public pbc::MapField<int, double?> DoubleField {
2232       get { return doubleField_; }
2233     }
2234 
2235     /// <summary>Field number for the "float_field" field.</summary>
2236     public const int FloatFieldFieldNumber = 11;
2237     private static readonly pbc::MapField<int, float?>.Codec _map_floatField_codec
2238         = new pbc::MapField<int, float?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<float>(18), 90);
2239     private readonly pbc::MapField<int, float?> floatField_ = new pbc::MapField<int, float?>();
2240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2241     public pbc::MapField<int, float?> FloatField {
2242       get { return floatField_; }
2243     }
2244 
2245     /// <summary>Field number for the "int64_field" field.</summary>
2246     public const int Int64FieldFieldNumber = 12;
2247     private static readonly pbc::MapField<int, long?>.Codec _map_int64Field_codec
2248         = new pbc::MapField<int, long?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<long>(18), 98);
2249     private readonly pbc::MapField<int, long?> int64Field_ = new pbc::MapField<int, long?>();
2250     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2251     public pbc::MapField<int, long?> Int64Field {
2252       get { return int64Field_; }
2253     }
2254 
2255     /// <summary>Field number for the "uint64_field" field.</summary>
2256     public const int Uint64FieldFieldNumber = 13;
2257     private static readonly pbc::MapField<int, ulong?>.Codec _map_uint64Field_codec
2258         = new pbc::MapField<int, ulong?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<ulong>(18), 106);
2259     private readonly pbc::MapField<int, ulong?> uint64Field_ = new pbc::MapField<int, ulong?>();
2260     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2261     public pbc::MapField<int, ulong?> Uint64Field {
2262       get { return uint64Field_; }
2263     }
2264 
2265     /// <summary>Field number for the "int32_field" field.</summary>
2266     public const int Int32FieldFieldNumber = 14;
2267     private static readonly pbc::MapField<int, int?>.Codec _map_int32Field_codec
2268         = new pbc::MapField<int, int?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<int>(18), 114);
2269     private readonly pbc::MapField<int, int?> int32Field_ = new pbc::MapField<int, int?>();
2270     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2271     public pbc::MapField<int, int?> Int32Field {
2272       get { return int32Field_; }
2273     }
2274 
2275     /// <summary>Field number for the "uint32_field" field.</summary>
2276     public const int Uint32FieldFieldNumber = 15;
2277     private static readonly pbc::MapField<int, uint?>.Codec _map_uint32Field_codec
2278         = new pbc::MapField<int, uint?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<uint>(18), 122);
2279     private readonly pbc::MapField<int, uint?> uint32Field_ = new pbc::MapField<int, uint?>();
2280     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2281     public pbc::MapField<int, uint?> Uint32Field {
2282       get { return uint32Field_; }
2283     }
2284 
2285     /// <summary>Field number for the "bool_field" field.</summary>
2286     public const int BoolFieldFieldNumber = 16;
2287     private static readonly pbc::MapField<int, bool?>.Codec _map_boolField_codec
2288         = new pbc::MapField<int, bool?>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForStructWrapper<bool>(18), 130);
2289     private readonly pbc::MapField<int, bool?> boolField_ = new pbc::MapField<int, bool?>();
2290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2291     public pbc::MapField<int, bool?> BoolField {
2292       get { return boolField_; }
2293     }
2294 
2295     /// <summary>Field number for the "string_field" field.</summary>
2296     public const int StringFieldFieldNumber = 17;
2297     private static readonly pbc::MapField<int, string>.Codec _map_stringField_codec
2298         = new pbc::MapField<int, string>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForClassWrapper<string>(18), 138);
2299     private readonly pbc::MapField<int, string> stringField_ = new pbc::MapField<int, string>();
2300     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2301     public pbc::MapField<int, string> StringField {
2302       get { return stringField_; }
2303     }
2304 
2305     /// <summary>Field number for the "bytes_field" field.</summary>
2306     public const int BytesFieldFieldNumber = 18;
2307     private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_bytesField_codec
2308         = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForClassWrapper<pb::ByteString>(18), 146);
2309     private readonly pbc::MapField<int, pb::ByteString> bytesField_ = new pbc::MapField<int, pb::ByteString>();
2310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2311     public pbc::MapField<int, pb::ByteString> BytesField {
2312       get { return bytesField_; }
2313     }
2314 
2315     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2316     public override bool Equals(object other) {
2317       return Equals(other as MapWellKnownTypes);
2318     }
2319 
2320     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(MapWellKnownTypes other)2321     public bool Equals(MapWellKnownTypes other) {
2322       if (ReferenceEquals(other, null)) {
2323         return false;
2324       }
2325       if (ReferenceEquals(other, this)) {
2326         return true;
2327       }
2328       if (!AnyField.Equals(other.AnyField)) return false;
2329       if (!ApiField.Equals(other.ApiField)) return false;
2330       if (!DurationField.Equals(other.DurationField)) return false;
2331       if (!EmptyField.Equals(other.EmptyField)) return false;
2332       if (!FieldMaskField.Equals(other.FieldMaskField)) return false;
2333       if (!SourceContextField.Equals(other.SourceContextField)) return false;
2334       if (!StructField.Equals(other.StructField)) return false;
2335       if (!TimestampField.Equals(other.TimestampField)) return false;
2336       if (!TypeField.Equals(other.TypeField)) return false;
2337       if (!DoubleField.Equals(other.DoubleField)) return false;
2338       if (!FloatField.Equals(other.FloatField)) return false;
2339       if (!Int64Field.Equals(other.Int64Field)) return false;
2340       if (!Uint64Field.Equals(other.Uint64Field)) return false;
2341       if (!Int32Field.Equals(other.Int32Field)) return false;
2342       if (!Uint32Field.Equals(other.Uint32Field)) return false;
2343       if (!BoolField.Equals(other.BoolField)) return false;
2344       if (!StringField.Equals(other.StringField)) return false;
2345       if (!BytesField.Equals(other.BytesField)) return false;
2346       return true;
2347     }
2348 
2349     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2350     public override int GetHashCode() {
2351       int hash = 1;
2352       hash ^= AnyField.GetHashCode();
2353       hash ^= ApiField.GetHashCode();
2354       hash ^= DurationField.GetHashCode();
2355       hash ^= EmptyField.GetHashCode();
2356       hash ^= FieldMaskField.GetHashCode();
2357       hash ^= SourceContextField.GetHashCode();
2358       hash ^= StructField.GetHashCode();
2359       hash ^= TimestampField.GetHashCode();
2360       hash ^= TypeField.GetHashCode();
2361       hash ^= DoubleField.GetHashCode();
2362       hash ^= FloatField.GetHashCode();
2363       hash ^= Int64Field.GetHashCode();
2364       hash ^= Uint64Field.GetHashCode();
2365       hash ^= Int32Field.GetHashCode();
2366       hash ^= Uint32Field.GetHashCode();
2367       hash ^= BoolField.GetHashCode();
2368       hash ^= StringField.GetHashCode();
2369       hash ^= BytesField.GetHashCode();
2370       return hash;
2371     }
2372 
2373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2374     public override string ToString() {
2375       return pb::JsonFormatter.ToDiagnosticString(this);
2376     }
2377 
2378     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2379     public void WriteTo(pb::CodedOutputStream output) {
2380       anyField_.WriteTo(output, _map_anyField_codec);
2381       apiField_.WriteTo(output, _map_apiField_codec);
2382       durationField_.WriteTo(output, _map_durationField_codec);
2383       emptyField_.WriteTo(output, _map_emptyField_codec);
2384       fieldMaskField_.WriteTo(output, _map_fieldMaskField_codec);
2385       sourceContextField_.WriteTo(output, _map_sourceContextField_codec);
2386       structField_.WriteTo(output, _map_structField_codec);
2387       timestampField_.WriteTo(output, _map_timestampField_codec);
2388       typeField_.WriteTo(output, _map_typeField_codec);
2389       doubleField_.WriteTo(output, _map_doubleField_codec);
2390       floatField_.WriteTo(output, _map_floatField_codec);
2391       int64Field_.WriteTo(output, _map_int64Field_codec);
2392       uint64Field_.WriteTo(output, _map_uint64Field_codec);
2393       int32Field_.WriteTo(output, _map_int32Field_codec);
2394       uint32Field_.WriteTo(output, _map_uint32Field_codec);
2395       boolField_.WriteTo(output, _map_boolField_codec);
2396       stringField_.WriteTo(output, _map_stringField_codec);
2397       bytesField_.WriteTo(output, _map_bytesField_codec);
2398     }
2399 
2400     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2401     public int CalculateSize() {
2402       int size = 0;
2403       size += anyField_.CalculateSize(_map_anyField_codec);
2404       size += apiField_.CalculateSize(_map_apiField_codec);
2405       size += durationField_.CalculateSize(_map_durationField_codec);
2406       size += emptyField_.CalculateSize(_map_emptyField_codec);
2407       size += fieldMaskField_.CalculateSize(_map_fieldMaskField_codec);
2408       size += sourceContextField_.CalculateSize(_map_sourceContextField_codec);
2409       size += structField_.CalculateSize(_map_structField_codec);
2410       size += timestampField_.CalculateSize(_map_timestampField_codec);
2411       size += typeField_.CalculateSize(_map_typeField_codec);
2412       size += doubleField_.CalculateSize(_map_doubleField_codec);
2413       size += floatField_.CalculateSize(_map_floatField_codec);
2414       size += int64Field_.CalculateSize(_map_int64Field_codec);
2415       size += uint64Field_.CalculateSize(_map_uint64Field_codec);
2416       size += int32Field_.CalculateSize(_map_int32Field_codec);
2417       size += uint32Field_.CalculateSize(_map_uint32Field_codec);
2418       size += boolField_.CalculateSize(_map_boolField_codec);
2419       size += stringField_.CalculateSize(_map_stringField_codec);
2420       size += bytesField_.CalculateSize(_map_bytesField_codec);
2421       return size;
2422     }
2423 
2424     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(MapWellKnownTypes other)2425     public void MergeFrom(MapWellKnownTypes other) {
2426       if (other == null) {
2427         return;
2428       }
2429       anyField_.Add(other.anyField_);
2430       apiField_.Add(other.apiField_);
2431       durationField_.Add(other.durationField_);
2432       emptyField_.Add(other.emptyField_);
2433       fieldMaskField_.Add(other.fieldMaskField_);
2434       sourceContextField_.Add(other.sourceContextField_);
2435       structField_.Add(other.structField_);
2436       timestampField_.Add(other.timestampField_);
2437       typeField_.Add(other.typeField_);
2438       doubleField_.Add(other.doubleField_);
2439       floatField_.Add(other.floatField_);
2440       int64Field_.Add(other.int64Field_);
2441       uint64Field_.Add(other.uint64Field_);
2442       int32Field_.Add(other.int32Field_);
2443       uint32Field_.Add(other.uint32Field_);
2444       boolField_.Add(other.boolField_);
2445       stringField_.Add(other.stringField_);
2446       bytesField_.Add(other.bytesField_);
2447     }
2448 
2449     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2450     public void MergeFrom(pb::CodedInputStream input) {
2451       uint tag;
2452       while ((tag = input.ReadTag()) != 0) {
2453         switch(tag) {
2454           default:
2455             input.SkipLastField();
2456             break;
2457           case 10: {
2458             anyField_.AddEntriesFrom(input, _map_anyField_codec);
2459             break;
2460           }
2461           case 18: {
2462             apiField_.AddEntriesFrom(input, _map_apiField_codec);
2463             break;
2464           }
2465           case 26: {
2466             durationField_.AddEntriesFrom(input, _map_durationField_codec);
2467             break;
2468           }
2469           case 34: {
2470             emptyField_.AddEntriesFrom(input, _map_emptyField_codec);
2471             break;
2472           }
2473           case 42: {
2474             fieldMaskField_.AddEntriesFrom(input, _map_fieldMaskField_codec);
2475             break;
2476           }
2477           case 50: {
2478             sourceContextField_.AddEntriesFrom(input, _map_sourceContextField_codec);
2479             break;
2480           }
2481           case 58: {
2482             structField_.AddEntriesFrom(input, _map_structField_codec);
2483             break;
2484           }
2485           case 66: {
2486             timestampField_.AddEntriesFrom(input, _map_timestampField_codec);
2487             break;
2488           }
2489           case 74: {
2490             typeField_.AddEntriesFrom(input, _map_typeField_codec);
2491             break;
2492           }
2493           case 82: {
2494             doubleField_.AddEntriesFrom(input, _map_doubleField_codec);
2495             break;
2496           }
2497           case 90: {
2498             floatField_.AddEntriesFrom(input, _map_floatField_codec);
2499             break;
2500           }
2501           case 98: {
2502             int64Field_.AddEntriesFrom(input, _map_int64Field_codec);
2503             break;
2504           }
2505           case 106: {
2506             uint64Field_.AddEntriesFrom(input, _map_uint64Field_codec);
2507             break;
2508           }
2509           case 114: {
2510             int32Field_.AddEntriesFrom(input, _map_int32Field_codec);
2511             break;
2512           }
2513           case 122: {
2514             uint32Field_.AddEntriesFrom(input, _map_uint32Field_codec);
2515             break;
2516           }
2517           case 130: {
2518             boolField_.AddEntriesFrom(input, _map_boolField_codec);
2519             break;
2520           }
2521           case 138: {
2522             stringField_.AddEntriesFrom(input, _map_stringField_codec);
2523             break;
2524           }
2525           case 146: {
2526             bytesField_.AddEntriesFrom(input, _map_bytesField_codec);
2527             break;
2528           }
2529         }
2530       }
2531     }
2532 
2533   }
2534 
2535   #endregion
2536 
2537 }
2538 
2539 #endregion Designer generated code
2540