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