• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: google/protobuf/unittest_well_known_types.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Google.Protobuf.TestProtos {
13 
14   /// <summary>Holder for reflection information generated from google/protobuf/unittest_well_known_types.proto</summary>
15   public static partial class UnittestWellKnownTypesReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for google/protobuf/unittest_well_known_types.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
UnittestWellKnownTypesReflection()24     static UnittestWellKnownTypesReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "Ci9nb29nbGUvcHJvdG9idWYvdW5pdHRlc3Rfd2VsbF9rbm93bl90eXBlcy5w",
28             "cm90bxIRcHJvdG9idWZfdW5pdHRlc3QaGWdvb2dsZS9wcm90b2J1Zi9hbnku",
29             "cHJvdG8aGWdvb2dsZS9wcm90b2J1Zi9hcGkucHJvdG8aHmdvb2dsZS9wcm90",
30             "b2J1Zi9kdXJhdGlvbi5wcm90bxobZ29vZ2xlL3Byb3RvYnVmL2VtcHR5LnBy",
31             "b3RvGiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxokZ29vZ2xl",
32             "L3Byb3RvYnVmL3NvdXJjZV9jb250ZXh0LnByb3RvGhxnb29nbGUvcHJvdG9i",
33             "dWYvc3RydWN0LnByb3RvGh9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnBy",
34             "b3RvGhpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxoeZ29vZ2xlL3Byb3Rv",
35             "YnVmL3dyYXBwZXJzLnByb3RvIr4HChJUZXN0V2VsbEtub3duVHlwZXMSJwoJ",
36             "YW55X2ZpZWxkGAEgASgLMhQuZ29vZ2xlLnByb3RvYnVmLkFueRInCglhcGlf",
37             "ZmllbGQYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpEjEKDmR1cmF0aW9u",
38             "X2ZpZWxkGAMgASgLMhkuZ29vZ2xlLnByb3RvYnVmLkR1cmF0aW9uEisKC2Vt",
39             "cHR5X2ZpZWxkGAQgASgLMhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5EjQKEGZp",
40             "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
41             "YXNrEjwKFHNvdXJjZV9jb250ZXh0X2ZpZWxkGAYgASgLMh4uZ29vZ2xlLnBy",
42             "b3RvYnVmLlNvdXJjZUNvbnRleHQSLQoMc3RydWN0X2ZpZWxkGAcgASgLMhcu",
43             "Z29vZ2xlLnByb3RvYnVmLlN0cnVjdBIzCg90aW1lc3RhbXBfZmllbGQYCCAB",
44             "KAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEikKCnR5cGVfZmllbGQY",
45             "CSABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZRIyCgxkb3VibGVfZmllbGQY",
46             "CiABKAsyHC5nb29nbGUucHJvdG9idWYuRG91YmxlVmFsdWUSMAoLZmxvYXRf",
47             "ZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxvYXRWYWx1ZRIwCgtp",
48             "bnQ2NF9maWVsZBgMIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
49             "EjIKDHVpbnQ2NF9maWVsZBgNIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50",
50             "NjRWYWx1ZRIwCgtpbnQzMl9maWVsZBgOIAEoCzIbLmdvb2dsZS5wcm90b2J1",
51             "Zi5JbnQzMlZhbHVlEjIKDHVpbnQzMl9maWVsZBgPIAEoCzIcLmdvb2dsZS5w",
52             "cm90b2J1Zi5VSW50MzJWYWx1ZRIuCgpib29sX2ZpZWxkGBAgASgLMhouZ29v",
53             "Z2xlLnByb3RvYnVmLkJvb2xWYWx1ZRIyCgxzdHJpbmdfZmllbGQYESABKAsy",
54             "HC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWUSMAoLYnl0ZXNfZmllbGQY",
55             "EiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZRIrCgt2YWx1ZV9m",
56             "aWVsZBgTIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSKVBwoWUmVwZWF0",
57             "ZWRXZWxsS25vd25UeXBlcxInCglhbnlfZmllbGQYASADKAsyFC5nb29nbGUu",
58             "cHJvdG9idWYuQW55EicKCWFwaV9maWVsZBgCIAMoCzIULmdvb2dsZS5wcm90",
59             "b2J1Zi5BcGkSMQoOZHVyYXRpb25fZmllbGQYAyADKAsyGS5nb29nbGUucHJv",
60             "dG9idWYuRHVyYXRpb24SKwoLZW1wdHlfZmllbGQYBCADKAsyFi5nb29nbGUu",
61             "cHJvdG9idWYuRW1wdHkSNAoQZmllbGRfbWFza19maWVsZBgFIAMoCzIaLmdv",
62             "b2dsZS5wcm90b2J1Zi5GaWVsZE1hc2sSPAoUc291cmNlX2NvbnRleHRfZmll",
63             "bGQYBiADKAsyHi5nb29nbGUucHJvdG9idWYuU291cmNlQ29udGV4dBItCgxz",
64             "dHJ1Y3RfZmllbGQYByADKAsyFy5nb29nbGUucHJvdG9idWYuU3RydWN0EjMK",
65             "D3RpbWVzdGFtcF9maWVsZBgIIAMoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1l",
66             "c3RhbXASKQoKdHlwZV9maWVsZBgJIAMoCzIVLmdvb2dsZS5wcm90b2J1Zi5U",
67             "eXBlEjIKDGRvdWJsZV9maWVsZBgKIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5E",
68             "b3VibGVWYWx1ZRIwCgtmbG9hdF9maWVsZBgLIAMoCzIbLmdvb2dsZS5wcm90",
69             "b2J1Zi5GbG9hdFZhbHVlEjAKC2ludDY0X2ZpZWxkGAwgAygLMhsuZ29vZ2xl",
70             "LnByb3RvYnVmLkludDY0VmFsdWUSMgoMdWludDY0X2ZpZWxkGA0gAygLMhwu",
71             "Z29vZ2xlLnByb3RvYnVmLlVJbnQ2NFZhbHVlEjAKC2ludDMyX2ZpZWxkGA4g",
72             "AygLMhsuZ29vZ2xlLnByb3RvYnVmLkludDMyVmFsdWUSMgoMdWludDMyX2Zp",
73             "ZWxkGA8gAygLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlEi4KCmJv",
74             "b2xfZmllbGQYECADKAsyGi5nb29nbGUucHJvdG9idWYuQm9vbFZhbHVlEjIK",
75             "DHN0cmluZ19maWVsZBgRIAMoCzIcLmdvb2dsZS5wcm90b2J1Zi5TdHJpbmdW",
76             "YWx1ZRIwCgtieXRlc19maWVsZBgSIAMoCzIbLmdvb2dsZS5wcm90b2J1Zi5C",
77             "eXRlc1ZhbHVlIsUHChNPbmVvZldlbGxLbm93blR5cGVzEikKCWFueV9maWVs",
78             "ZBgBIAEoCzIULmdvb2dsZS5wcm90b2J1Zi5BbnlIABIpCglhcGlfZmllbGQY",
79             "AiABKAsyFC5nb29nbGUucHJvdG9idWYuQXBpSAASMwoOZHVyYXRpb25fZmll",
80             "bGQYAyABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb25IABItCgtlbXB0",
81             "eV9maWVsZBgEIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5FbXB0eUgAEjYKEGZp",
82             "ZWxkX21hc2tfZmllbGQYBSABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRN",
83             "YXNrSAASPgoUc291cmNlX2NvbnRleHRfZmllbGQYBiABKAsyHi5nb29nbGUu",
84             "cHJvdG9idWYuU291cmNlQ29udGV4dEgAEi8KDHN0cnVjdF9maWVsZBgHIAEo",
85             "CzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABI1Cg90aW1lc3RhbXBfZmll",
86             "bGQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wSAASKwoKdHlw",
87             "ZV9maWVsZBgJIAEoCzIVLmdvb2dsZS5wcm90b2J1Zi5UeXBlSAASNAoMZG91",
88             "YmxlX2ZpZWxkGAogASgLMhwuZ29vZ2xlLnByb3RvYnVmLkRvdWJsZVZhbHVl",
89             "SAASMgoLZmxvYXRfZmllbGQYCyABKAsyGy5nb29nbGUucHJvdG9idWYuRmxv",
90             "YXRWYWx1ZUgAEjIKC2ludDY0X2ZpZWxkGAwgASgLMhsuZ29vZ2xlLnByb3Rv",
91             "YnVmLkludDY0VmFsdWVIABI0Cgx1aW50NjRfZmllbGQYDSABKAsyHC5nb29n",
92             "bGUucHJvdG9idWYuVUludDY0VmFsdWVIABIyCgtpbnQzMl9maWVsZBgOIAEo",
93             "CzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlSAASNAoMdWludDMyX2Zp",
94             "ZWxkGA8gASgLMhwuZ29vZ2xlLnByb3RvYnVmLlVJbnQzMlZhbHVlSAASMAoK",
95             "Ym9vbF9maWVsZBgQIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5Cb29sVmFsdWVI",
96             "ABI0CgxzdHJpbmdfZmllbGQYESABKAsyHC5nb29nbGUucHJvdG9idWYuU3Ry",
97             "aW5nVmFsdWVIABIyCgtieXRlc19maWVsZBgSIAEoCzIbLmdvb2dsZS5wcm90",
98             "b2J1Zi5CeXRlc1ZhbHVlSABCDQoLb25lb2ZfZmllbGQilhYKEU1hcFdlbGxL",
99             "bm93blR5cGVzEkUKCWFueV9maWVsZBgBIAMoCzIyLnByb3RvYnVmX3VuaXR0",
100             "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkFueUZpZWxkRW50cnkSRQoJYXBpX2Zp",
101             "ZWxkGAIgAygLMjIucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlw",
102             "ZXMuQXBpRmllbGRFbnRyeRJPCg5kdXJhdGlvbl9maWVsZBgDIAMoCzI3LnBy",
103             "b3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkR1cmF0aW9uRmll",
104             "bGRFbnRyeRJJCgtlbXB0eV9maWVsZBgEIAMoCzI0LnByb3RvYnVmX3VuaXR0",
105             "ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkVtcHR5RmllbGRFbnRyeRJSChBmaWVs",
106             "ZF9tYXNrX2ZpZWxkGAUgAygLMjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
107             "bEtub3duVHlwZXMuRmllbGRNYXNrRmllbGRFbnRyeRJaChRzb3VyY2VfY29u",
108             "dGV4dF9maWVsZBgGIAMoCzI8LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxL",
109             "bm93blR5cGVzLlNvdXJjZUNvbnRleHRGaWVsZEVudHJ5EksKDHN0cnVjdF9m",
110             "aWVsZBgHIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5",
111             "cGVzLlN0cnVjdEZpZWxkRW50cnkSUQoPdGltZXN0YW1wX2ZpZWxkGAggAygL",
112             "MjgucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVGltZXN0",
113             "YW1wRmllbGRFbnRyeRJHCgp0eXBlX2ZpZWxkGAkgAygLMjMucHJvdG9idWZf",
114             "dW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMuVHlwZUZpZWxkRW50cnkSSwoM",
115             "ZG91YmxlX2ZpZWxkGAogAygLMjUucHJvdG9idWZfdW5pdHRlc3QuTWFwV2Vs",
116             "bEtub3duVHlwZXMuRG91YmxlRmllbGRFbnRyeRJJCgtmbG9hdF9maWVsZBgL",
117             "IAMoCzI0LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkZs",
118             "b2F0RmllbGRFbnRyeRJJCgtpbnQ2NF9maWVsZBgMIAMoCzI0LnByb3RvYnVm",
119             "X3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLkludDY0RmllbGRFbnRyeRJL",
120             "Cgx1aW50NjRfZmllbGQYDSADKAsyNS5wcm90b2J1Zl91bml0dGVzdC5NYXBX",
121             "ZWxsS25vd25UeXBlcy5VaW50NjRGaWVsZEVudHJ5EkkKC2ludDMyX2ZpZWxk",
122             "GA4gAygLMjQucHJvdG9idWZfdW5pdHRlc3QuTWFwV2VsbEtub3duVHlwZXMu",
123             "SW50MzJGaWVsZEVudHJ5EksKDHVpbnQzMl9maWVsZBgPIAMoCzI1LnByb3Rv",
124             "YnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVzLlVpbnQzMkZpZWxkRW50",
125             "cnkSRwoKYm9vbF9maWVsZBgQIAMoCzIzLnByb3RvYnVmX3VuaXR0ZXN0Lk1h",
126             "cFdlbGxLbm93blR5cGVzLkJvb2xGaWVsZEVudHJ5EksKDHN0cmluZ19maWVs",
127             "ZBgRIAMoCzI1LnByb3RvYnVmX3VuaXR0ZXN0Lk1hcFdlbGxLbm93blR5cGVz",
128             "LlN0cmluZ0ZpZWxkRW50cnkSSQoLYnl0ZXNfZmllbGQYEiADKAsyNC5wcm90",
129             "b2J1Zl91bml0dGVzdC5NYXBXZWxsS25vd25UeXBlcy5CeXRlc0ZpZWxkRW50",
130             "cnkaRQoNQW55RmllbGRFbnRyeRILCgNrZXkYASABKAUSIwoFdmFsdWUYAiAB",
131             "KAsyFC5nb29nbGUucHJvdG9idWYuQW55OgI4ARpFCg1BcGlGaWVsZEVudHJ5",
132             "EgsKA2tleRgBIAEoBRIjCgV2YWx1ZRgCIAEoCzIULmdvb2dsZS5wcm90b2J1",
133             "Zi5BcGk6AjgBGk8KEkR1cmF0aW9uRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
134             "KAoFdmFsdWUYAiABKAsyGS5nb29nbGUucHJvdG9idWYuRHVyYXRpb246AjgB",
135             "GkkKD0VtcHR5RmllbGRFbnRyeRILCgNrZXkYASABKAUSJQoFdmFsdWUYAiAB",
136             "KAsyFi5nb29nbGUucHJvdG9idWYuRW1wdHk6AjgBGlEKE0ZpZWxkTWFza0Zp",
137             "ZWxkRW50cnkSCwoDa2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xl",
138             "LnByb3RvYnVmLkZpZWxkTWFzazoCOAEaWQoXU291cmNlQ29udGV4dEZpZWxk",
139             "RW50cnkSCwoDa2V5GAEgASgFEi0KBXZhbHVlGAIgASgLMh4uZ29vZ2xlLnBy",
140             "b3RvYnVmLlNvdXJjZUNvbnRleHQ6AjgBGksKEFN0cnVjdEZpZWxkRW50cnkS",
141             "CwoDa2V5GAEgASgFEiYKBXZhbHVlGAIgASgLMhcuZ29vZ2xlLnByb3RvYnVm",
142             "LlN0cnVjdDoCOAEaUQoTVGltZXN0YW1wRmllbGRFbnRyeRILCgNrZXkYASAB",
143             "KAUSKQoFdmFsdWUYAiABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1w",
144             "OgI4ARpHCg5UeXBlRmllbGRFbnRyeRILCgNrZXkYASABKAUSJAoFdmFsdWUY",
145             "AiABKAsyFS5nb29nbGUucHJvdG9idWYuVHlwZToCOAEaUAoQRG91YmxlRmll",
146             "bGRFbnRyeRILCgNrZXkYASABKAUSKwoFdmFsdWUYAiABKAsyHC5nb29nbGUu",
147             "cHJvdG9idWYuRG91YmxlVmFsdWU6AjgBGk4KD0Zsb2F0RmllbGRFbnRyeRIL",
148             "CgNrZXkYASABKAUSKgoFdmFsdWUYAiABKAsyGy5nb29nbGUucHJvdG9idWYu",
149             "RmxvYXRWYWx1ZToCOAEaTgoPSW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEo",
150             "BRIqCgV2YWx1ZRgCIAEoCzIbLmdvb2dsZS5wcm90b2J1Zi5JbnQ2NFZhbHVl",
151             "OgI4ARpQChBVaW50NjRGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1",
152             "ZRgCIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5VSW50NjRWYWx1ZToCOAEaTgoP",
153             "SW50MzJGaWVsZEVudHJ5EgsKA2tleRgBIAEoBRIqCgV2YWx1ZRgCIAEoCzIb",
154             "Lmdvb2dsZS5wcm90b2J1Zi5JbnQzMlZhbHVlOgI4ARpQChBVaW50MzJGaWVs",
155             "ZEVudHJ5EgsKA2tleRgBIAEoBRIrCgV2YWx1ZRgCIAEoCzIcLmdvb2dsZS5w",
156             "cm90b2J1Zi5VSW50MzJWYWx1ZToCOAEaTAoOQm9vbEZpZWxkRW50cnkSCwoD",
157             "a2V5GAEgASgFEikKBXZhbHVlGAIgASgLMhouZ29vZ2xlLnByb3RvYnVmLkJv",
158             "b2xWYWx1ZToCOAEaUAoQU3RyaW5nRmllbGRFbnRyeRILCgNrZXkYASABKAUS",
159             "KwoFdmFsdWUYAiABKAsyHC5nb29nbGUucHJvdG9idWYuU3RyaW5nVmFsdWU6",
160             "AjgBGk4KD0J5dGVzRmllbGRFbnRyeRILCgNrZXkYASABKAUSKgoFdmFsdWUY",
161             "AiABKAsyGy5nb29nbGUucHJvdG9idWYuQnl0ZXNWYWx1ZToCOAFCOQoYY29t",
162             "Lmdvb2dsZS5wcm90b2J1Zi50ZXN0UAGqAhpHb29nbGUuUHJvdG9idWYuVGVz",
163             "dFByb3Rvc2IGcHJvdG8z"));
164       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
165           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, },
166           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
167             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, null),
168             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, null),
169             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, null),
170             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, null, new pbr::GeneratedClrTypeInfo[] { null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, })
171           }));
172     }
173     #endregion
174 
175   }
176   #region Messages
177   /// <summary>
178   /// Test that we can include all well-known types.
179   /// Each wrapper type is included separately, as languages
180   /// map handle different wrappers in different ways.
181   /// </summary>
182   public sealed partial class TestWellKnownTypes : pb::IMessage<TestWellKnownTypes>
183   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
184       , pb::IBufferMessage
185   #endif
186   {
187     private static readonly pb::MessageParser<TestWellKnownTypes> _parser = new pb::MessageParser<TestWellKnownTypes>(() => new TestWellKnownTypes());
188     private pb::UnknownFieldSet _unknownFields;
189     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
190     public static pb::MessageParser<TestWellKnownTypes> Parser { get { return _parser; } }
191 
192     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
193     public static pbr::MessageDescriptor Descriptor {
194       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[0]; }
195     }
196 
197     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
198     pbr::MessageDescriptor pb::IMessage.Descriptor {
199       get { return Descriptor; }
200     }
201 
202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
TestWellKnownTypes()203     public TestWellKnownTypes() {
204       OnConstruction();
205     }
206 
OnConstruction()207     partial void OnConstruction();
208 
209     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
TestWellKnownTypes(TestWellKnownTypes other)210     public TestWellKnownTypes(TestWellKnownTypes other) : this() {
211       anyField_ = other.anyField_ != null ? other.anyField_.Clone() : null;
212       apiField_ = other.apiField_ != null ? other.apiField_.Clone() : null;
213       durationField_ = other.durationField_ != null ? other.durationField_.Clone() : null;
214       emptyField_ = other.emptyField_ != null ? other.emptyField_.Clone() : null;
215       fieldMaskField_ = other.fieldMaskField_ != null ? other.fieldMaskField_.Clone() : null;
216       sourceContextField_ = other.sourceContextField_ != null ? other.sourceContextField_.Clone() : null;
217       structField_ = other.structField_ != null ? other.structField_.Clone() : null;
218       timestampField_ = other.timestampField_ != null ? other.timestampField_.Clone() : null;
219       typeField_ = other.typeField_ != null ? other.typeField_.Clone() : null;
220       DoubleField = other.DoubleField;
221       FloatField = other.FloatField;
222       Int64Field = other.Int64Field;
223       Uint64Field = other.Uint64Field;
224       Int32Field = other.Int32Field;
225       Uint32Field = other.Uint32Field;
226       BoolField = other.BoolField;
227       StringField = other.StringField;
228       BytesField = other.BytesField;
229       valueField_ = other.valueField_ != null ? other.valueField_.Clone() : null;
230       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
231     }
232 
233     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()234     public TestWellKnownTypes Clone() {
235       return new TestWellKnownTypes(this);
236     }
237 
238     /// <summary>Field number for the "any_field" field.</summary>
239     public const int AnyFieldFieldNumber = 1;
240     private global::Google.Protobuf.WellKnownTypes.Any anyField_;
241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
242     public global::Google.Protobuf.WellKnownTypes.Any AnyField {
243       get { return anyField_; }
244       set {
245         anyField_ = value;
246       }
247     }
248 
249     /// <summary>Field number for the "api_field" field.</summary>
250     public const int ApiFieldFieldNumber = 2;
251     private global::Google.Protobuf.WellKnownTypes.Api apiField_;
252     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
253     public global::Google.Protobuf.WellKnownTypes.Api ApiField {
254       get { return apiField_; }
255       set {
256         apiField_ = value;
257       }
258     }
259 
260     /// <summary>Field number for the "duration_field" field.</summary>
261     public const int DurationFieldFieldNumber = 3;
262     private global::Google.Protobuf.WellKnownTypes.Duration durationField_;
263     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
264     public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
265       get { return durationField_; }
266       set {
267         durationField_ = value;
268       }
269     }
270 
271     /// <summary>Field number for the "empty_field" field.</summary>
272     public const int EmptyFieldFieldNumber = 4;
273     private global::Google.Protobuf.WellKnownTypes.Empty emptyField_;
274     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
275     public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
276       get { return emptyField_; }
277       set {
278         emptyField_ = value;
279       }
280     }
281 
282     /// <summary>Field number for the "field_mask_field" field.</summary>
283     public const int FieldMaskFieldFieldNumber = 5;
284     private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMaskField_;
285     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
286     public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
287       get { return fieldMaskField_; }
288       set {
289         fieldMaskField_ = value;
290       }
291     }
292 
293     /// <summary>Field number for the "source_context_field" field.</summary>
294     public const int SourceContextFieldFieldNumber = 6;
295     private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContextField_;
296     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
297     public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
298       get { return sourceContextField_; }
299       set {
300         sourceContextField_ = value;
301       }
302     }
303 
304     /// <summary>Field number for the "struct_field" field.</summary>
305     public const int StructFieldFieldNumber = 7;
306     private global::Google.Protobuf.WellKnownTypes.Struct structField_;
307     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
308     public global::Google.Protobuf.WellKnownTypes.Struct StructField {
309       get { return structField_; }
310       set {
311         structField_ = value;
312       }
313     }
314 
315     /// <summary>Field number for the "timestamp_field" field.</summary>
316     public const int TimestampFieldFieldNumber = 8;
317     private global::Google.Protobuf.WellKnownTypes.Timestamp timestampField_;
318     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
319     public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
320       get { return timestampField_; }
321       set {
322         timestampField_ = value;
323       }
324     }
325 
326     /// <summary>Field number for the "type_field" field.</summary>
327     public const int TypeFieldFieldNumber = 9;
328     private global::Google.Protobuf.WellKnownTypes.Type typeField_;
329     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
330     public global::Google.Protobuf.WellKnownTypes.Type TypeField {
331       get { return typeField_; }
332       set {
333         typeField_ = value;
334       }
335     }
336 
337     /// <summary>Field number for the "double_field" field.</summary>
338     public const int DoubleFieldFieldNumber = 10;
339     private static readonly pb::FieldCodec<double?> _single_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
340     private double? doubleField_;
341     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
342     public double? DoubleField {
343       get { return doubleField_; }
344       set {
345         doubleField_ = value;
346       }
347     }
348 
349 
350     /// <summary>Field number for the "float_field" field.</summary>
351     public const int FloatFieldFieldNumber = 11;
352     private static readonly pb::FieldCodec<float?> _single_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
353     private float? floatField_;
354     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
355     public float? FloatField {
356       get { return floatField_; }
357       set {
358         floatField_ = value;
359       }
360     }
361 
362 
363     /// <summary>Field number for the "int64_field" field.</summary>
364     public const int Int64FieldFieldNumber = 12;
365     private static readonly pb::FieldCodec<long?> _single_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
366     private long? int64Field_;
367     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
368     public long? Int64Field {
369       get { return int64Field_; }
370       set {
371         int64Field_ = value;
372       }
373     }
374 
375 
376     /// <summary>Field number for the "uint64_field" field.</summary>
377     public const int Uint64FieldFieldNumber = 13;
378     private static readonly pb::FieldCodec<ulong?> _single_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
379     private ulong? uint64Field_;
380     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
381     public ulong? Uint64Field {
382       get { return uint64Field_; }
383       set {
384         uint64Field_ = value;
385       }
386     }
387 
388 
389     /// <summary>Field number for the "int32_field" field.</summary>
390     public const int Int32FieldFieldNumber = 14;
391     private static readonly pb::FieldCodec<int?> _single_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
392     private int? int32Field_;
393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
394     public int? Int32Field {
395       get { return int32Field_; }
396       set {
397         int32Field_ = value;
398       }
399     }
400 
401 
402     /// <summary>Field number for the "uint32_field" field.</summary>
403     public const int Uint32FieldFieldNumber = 15;
404     private static readonly pb::FieldCodec<uint?> _single_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
405     private uint? uint32Field_;
406     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
407     public uint? Uint32Field {
408       get { return uint32Field_; }
409       set {
410         uint32Field_ = value;
411       }
412     }
413 
414 
415     /// <summary>Field number for the "bool_field" field.</summary>
416     public const int BoolFieldFieldNumber = 16;
417     private static readonly pb::FieldCodec<bool?> _single_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
418     private bool? boolField_;
419     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
420     public bool? BoolField {
421       get { return boolField_; }
422       set {
423         boolField_ = value;
424       }
425     }
426 
427 
428     /// <summary>Field number for the "string_field" field.</summary>
429     public const int StringFieldFieldNumber = 17;
430     private static readonly pb::FieldCodec<string> _single_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
431     private string stringField_;
432     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
433     public string StringField {
434       get { return stringField_; }
435       set {
436         stringField_ = value;
437       }
438     }
439 
440 
441     /// <summary>Field number for the "bytes_field" field.</summary>
442     public const int BytesFieldFieldNumber = 18;
443     private static readonly pb::FieldCodec<pb::ByteString> _single_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
444     private pb::ByteString bytesField_;
445     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
446     public pb::ByteString BytesField {
447       get { return bytesField_; }
448       set {
449         bytesField_ = value;
450       }
451     }
452 
453 
454     /// <summary>Field number for the "value_field" field.</summary>
455     public const int ValueFieldFieldNumber = 19;
456     private global::Google.Protobuf.WellKnownTypes.Value valueField_;
457     /// <summary>
458     /// Part of struct, but useful to be able to test separately
459     /// </summary>
460     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
461     public global::Google.Protobuf.WellKnownTypes.Value ValueField {
462       get { return valueField_; }
463       set {
464         valueField_ = value;
465       }
466     }
467 
468     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)469     public override bool Equals(object other) {
470       return Equals(other as TestWellKnownTypes);
471     }
472 
473     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(TestWellKnownTypes other)474     public bool Equals(TestWellKnownTypes other) {
475       if (ReferenceEquals(other, null)) {
476         return false;
477       }
478       if (ReferenceEquals(other, this)) {
479         return true;
480       }
481       if (!object.Equals(AnyField, other.AnyField)) return false;
482       if (!object.Equals(ApiField, other.ApiField)) return false;
483       if (!object.Equals(DurationField, other.DurationField)) return false;
484       if (!object.Equals(EmptyField, other.EmptyField)) return false;
485       if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
486       if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
487       if (!object.Equals(StructField, other.StructField)) return false;
488       if (!object.Equals(TimestampField, other.TimestampField)) return false;
489       if (!object.Equals(TypeField, other.TypeField)) return false;
490       if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(DoubleField, other.DoubleField)) return false;
491       if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(FloatField, other.FloatField)) return false;
492       if (Int64Field != other.Int64Field) return false;
493       if (Uint64Field != other.Uint64Field) return false;
494       if (Int32Field != other.Int32Field) return false;
495       if (Uint32Field != other.Uint32Field) return false;
496       if (BoolField != other.BoolField) return false;
497       if (StringField != other.StringField) return false;
498       if (BytesField != other.BytesField) return false;
499       if (!object.Equals(ValueField, other.ValueField)) return false;
500       return Equals(_unknownFields, other._unknownFields);
501     }
502 
503     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()504     public override int GetHashCode() {
505       int hash = 1;
506       if (anyField_ != null) hash ^= AnyField.GetHashCode();
507       if (apiField_ != null) hash ^= ApiField.GetHashCode();
508       if (durationField_ != null) hash ^= DurationField.GetHashCode();
509       if (emptyField_ != null) hash ^= EmptyField.GetHashCode();
510       if (fieldMaskField_ != null) hash ^= FieldMaskField.GetHashCode();
511       if (sourceContextField_ != null) hash ^= SourceContextField.GetHashCode();
512       if (structField_ != null) hash ^= StructField.GetHashCode();
513       if (timestampField_ != null) hash ^= TimestampField.GetHashCode();
514       if (typeField_ != null) hash ^= TypeField.GetHashCode();
515       if (doubleField_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField);
516       if (floatField_ != null) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(FloatField);
517       if (int64Field_ != null) hash ^= Int64Field.GetHashCode();
518       if (uint64Field_ != null) hash ^= Uint64Field.GetHashCode();
519       if (int32Field_ != null) hash ^= Int32Field.GetHashCode();
520       if (uint32Field_ != null) hash ^= Uint32Field.GetHashCode();
521       if (boolField_ != null) hash ^= BoolField.GetHashCode();
522       if (stringField_ != null) hash ^= StringField.GetHashCode();
523       if (bytesField_ != null) hash ^= BytesField.GetHashCode();
524       if (valueField_ != null) hash ^= ValueField.GetHashCode();
525       if (_unknownFields != null) {
526         hash ^= _unknownFields.GetHashCode();
527       }
528       return hash;
529     }
530 
531     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()532     public override string ToString() {
533       return pb::JsonFormatter.ToDiagnosticString(this);
534     }
535 
536     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)537     public void WriteTo(pb::CodedOutputStream output) {
538     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
539       output.WriteRawMessage(this);
540     #else
541       if (anyField_ != null) {
542         output.WriteRawTag(10);
543         output.WriteMessage(AnyField);
544       }
545       if (apiField_ != null) {
546         output.WriteRawTag(18);
547         output.WriteMessage(ApiField);
548       }
549       if (durationField_ != null) {
550         output.WriteRawTag(26);
551         output.WriteMessage(DurationField);
552       }
553       if (emptyField_ != null) {
554         output.WriteRawTag(34);
555         output.WriteMessage(EmptyField);
556       }
557       if (fieldMaskField_ != null) {
558         output.WriteRawTag(42);
559         output.WriteMessage(FieldMaskField);
560       }
561       if (sourceContextField_ != null) {
562         output.WriteRawTag(50);
563         output.WriteMessage(SourceContextField);
564       }
565       if (structField_ != null) {
566         output.WriteRawTag(58);
567         output.WriteMessage(StructField);
568       }
569       if (timestampField_ != null) {
570         output.WriteRawTag(66);
571         output.WriteMessage(TimestampField);
572       }
573       if (typeField_ != null) {
574         output.WriteRawTag(74);
575         output.WriteMessage(TypeField);
576       }
577       if (doubleField_ != null) {
578         _single_doubleField_codec.WriteTagAndValue(output, DoubleField);
579       }
580       if (floatField_ != null) {
581         _single_floatField_codec.WriteTagAndValue(output, FloatField);
582       }
583       if (int64Field_ != null) {
584         _single_int64Field_codec.WriteTagAndValue(output, Int64Field);
585       }
586       if (uint64Field_ != null) {
587         _single_uint64Field_codec.WriteTagAndValue(output, Uint64Field);
588       }
589       if (int32Field_ != null) {
590         _single_int32Field_codec.WriteTagAndValue(output, Int32Field);
591       }
592       if (uint32Field_ != null) {
593         _single_uint32Field_codec.WriteTagAndValue(output, Uint32Field);
594       }
595       if (boolField_ != null) {
596         _single_boolField_codec.WriteTagAndValue(output, BoolField);
597       }
598       if (stringField_ != null) {
599         _single_stringField_codec.WriteTagAndValue(output, StringField);
600       }
601       if (bytesField_ != null) {
602         _single_bytesField_codec.WriteTagAndValue(output, BytesField);
603       }
604       if (valueField_ != null) {
605         output.WriteRawTag(154, 1);
606         output.WriteMessage(ValueField);
607       }
608       if (_unknownFields != null) {
609         _unknownFields.WriteTo(output);
610       }
611     #endif
612     }
613 
614     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
615     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)616     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
617       if (anyField_ != null) {
618         output.WriteRawTag(10);
619         output.WriteMessage(AnyField);
620       }
621       if (apiField_ != null) {
622         output.WriteRawTag(18);
623         output.WriteMessage(ApiField);
624       }
625       if (durationField_ != null) {
626         output.WriteRawTag(26);
627         output.WriteMessage(DurationField);
628       }
629       if (emptyField_ != null) {
630         output.WriteRawTag(34);
631         output.WriteMessage(EmptyField);
632       }
633       if (fieldMaskField_ != null) {
634         output.WriteRawTag(42);
635         output.WriteMessage(FieldMaskField);
636       }
637       if (sourceContextField_ != null) {
638         output.WriteRawTag(50);
639         output.WriteMessage(SourceContextField);
640       }
641       if (structField_ != null) {
642         output.WriteRawTag(58);
643         output.WriteMessage(StructField);
644       }
645       if (timestampField_ != null) {
646         output.WriteRawTag(66);
647         output.WriteMessage(TimestampField);
648       }
649       if (typeField_ != null) {
650         output.WriteRawTag(74);
651         output.WriteMessage(TypeField);
652       }
653       if (doubleField_ != null) {
654         _single_doubleField_codec.WriteTagAndValue(ref output, DoubleField);
655       }
656       if (floatField_ != null) {
657         _single_floatField_codec.WriteTagAndValue(ref output, FloatField);
658       }
659       if (int64Field_ != null) {
660         _single_int64Field_codec.WriteTagAndValue(ref output, Int64Field);
661       }
662       if (uint64Field_ != null) {
663         _single_uint64Field_codec.WriteTagAndValue(ref output, Uint64Field);
664       }
665       if (int32Field_ != null) {
666         _single_int32Field_codec.WriteTagAndValue(ref output, Int32Field);
667       }
668       if (uint32Field_ != null) {
669         _single_uint32Field_codec.WriteTagAndValue(ref output, Uint32Field);
670       }
671       if (boolField_ != null) {
672         _single_boolField_codec.WriteTagAndValue(ref output, BoolField);
673       }
674       if (stringField_ != null) {
675         _single_stringField_codec.WriteTagAndValue(ref output, StringField);
676       }
677       if (bytesField_ != null) {
678         _single_bytesField_codec.WriteTagAndValue(ref output, BytesField);
679       }
680       if (valueField_ != null) {
681         output.WriteRawTag(154, 1);
682         output.WriteMessage(ValueField);
683       }
684       if (_unknownFields != null) {
685         _unknownFields.WriteTo(ref output);
686       }
687     }
688     #endif
689 
690     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()691     public int CalculateSize() {
692       int size = 0;
693       if (anyField_ != null) {
694         size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
695       }
696       if (apiField_ != null) {
697         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
698       }
699       if (durationField_ != null) {
700         size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
701       }
702       if (emptyField_ != null) {
703         size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
704       }
705       if (fieldMaskField_ != null) {
706         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
707       }
708       if (sourceContextField_ != null) {
709         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
710       }
711       if (structField_ != null) {
712         size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
713       }
714       if (timestampField_ != null) {
715         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
716       }
717       if (typeField_ != null) {
718         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
719       }
720       if (doubleField_ != null) {
721         size += _single_doubleField_codec.CalculateSizeWithTag(DoubleField);
722       }
723       if (floatField_ != null) {
724         size += _single_floatField_codec.CalculateSizeWithTag(FloatField);
725       }
726       if (int64Field_ != null) {
727         size += _single_int64Field_codec.CalculateSizeWithTag(Int64Field);
728       }
729       if (uint64Field_ != null) {
730         size += _single_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
731       }
732       if (int32Field_ != null) {
733         size += _single_int32Field_codec.CalculateSizeWithTag(Int32Field);
734       }
735       if (uint32Field_ != null) {
736         size += _single_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
737       }
738       if (boolField_ != null) {
739         size += _single_boolField_codec.CalculateSizeWithTag(BoolField);
740       }
741       if (stringField_ != null) {
742         size += _single_stringField_codec.CalculateSizeWithTag(StringField);
743       }
744       if (bytesField_ != null) {
745         size += _single_bytesField_codec.CalculateSizeWithTag(BytesField);
746       }
747       if (valueField_ != null) {
748         size += 2 + pb::CodedOutputStream.ComputeMessageSize(ValueField);
749       }
750       if (_unknownFields != null) {
751         size += _unknownFields.CalculateSize();
752       }
753       return size;
754     }
755 
756     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(TestWellKnownTypes other)757     public void MergeFrom(TestWellKnownTypes other) {
758       if (other == null) {
759         return;
760       }
761       if (other.anyField_ != null) {
762         if (anyField_ == null) {
763           AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
764         }
765         AnyField.MergeFrom(other.AnyField);
766       }
767       if (other.apiField_ != null) {
768         if (apiField_ == null) {
769           ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
770         }
771         ApiField.MergeFrom(other.ApiField);
772       }
773       if (other.durationField_ != null) {
774         if (durationField_ == null) {
775           DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
776         }
777         DurationField.MergeFrom(other.DurationField);
778       }
779       if (other.emptyField_ != null) {
780         if (emptyField_ == null) {
781           EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
782         }
783         EmptyField.MergeFrom(other.EmptyField);
784       }
785       if (other.fieldMaskField_ != null) {
786         if (fieldMaskField_ == null) {
787           FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
788         }
789         FieldMaskField.MergeFrom(other.FieldMaskField);
790       }
791       if (other.sourceContextField_ != null) {
792         if (sourceContextField_ == null) {
793           SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
794         }
795         SourceContextField.MergeFrom(other.SourceContextField);
796       }
797       if (other.structField_ != null) {
798         if (structField_ == null) {
799           StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
800         }
801         StructField.MergeFrom(other.StructField);
802       }
803       if (other.timestampField_ != null) {
804         if (timestampField_ == null) {
805           TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
806         }
807         TimestampField.MergeFrom(other.TimestampField);
808       }
809       if (other.typeField_ != null) {
810         if (typeField_ == null) {
811           TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
812         }
813         TypeField.MergeFrom(other.TypeField);
814       }
815       if (other.doubleField_ != null) {
816         if (doubleField_ == null || other.DoubleField != 0D) {
817           DoubleField = other.DoubleField;
818         }
819       }
820       if (other.floatField_ != null) {
821         if (floatField_ == null || other.FloatField != 0F) {
822           FloatField = other.FloatField;
823         }
824       }
825       if (other.int64Field_ != null) {
826         if (int64Field_ == null || other.Int64Field != 0L) {
827           Int64Field = other.Int64Field;
828         }
829       }
830       if (other.uint64Field_ != null) {
831         if (uint64Field_ == null || other.Uint64Field != 0UL) {
832           Uint64Field = other.Uint64Field;
833         }
834       }
835       if (other.int32Field_ != null) {
836         if (int32Field_ == null || other.Int32Field != 0) {
837           Int32Field = other.Int32Field;
838         }
839       }
840       if (other.uint32Field_ != null) {
841         if (uint32Field_ == null || other.Uint32Field != 0) {
842           Uint32Field = other.Uint32Field;
843         }
844       }
845       if (other.boolField_ != null) {
846         if (boolField_ == null || other.BoolField != false) {
847           BoolField = other.BoolField;
848         }
849       }
850       if (other.stringField_ != null) {
851         if (stringField_ == null || other.StringField != "") {
852           StringField = other.StringField;
853         }
854       }
855       if (other.bytesField_ != null) {
856         if (bytesField_ == null || other.BytesField != pb::ByteString.Empty) {
857           BytesField = other.BytesField;
858         }
859       }
860       if (other.valueField_ != null) {
861         if (valueField_ == null) {
862           ValueField = new global::Google.Protobuf.WellKnownTypes.Value();
863         }
864         ValueField.MergeFrom(other.ValueField);
865       }
866       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
867     }
868 
869     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)870     public void MergeFrom(pb::CodedInputStream input) {
871     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
872       input.ReadRawMessage(this);
873     #else
874       uint tag;
875       while ((tag = input.ReadTag()) != 0) {
876         switch(tag) {
877           default:
878             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
879             break;
880           case 10: {
881             if (anyField_ == null) {
882               AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
883             }
884             input.ReadMessage(AnyField);
885             break;
886           }
887           case 18: {
888             if (apiField_ == null) {
889               ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
890             }
891             input.ReadMessage(ApiField);
892             break;
893           }
894           case 26: {
895             if (durationField_ == null) {
896               DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
897             }
898             input.ReadMessage(DurationField);
899             break;
900           }
901           case 34: {
902             if (emptyField_ == null) {
903               EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
904             }
905             input.ReadMessage(EmptyField);
906             break;
907           }
908           case 42: {
909             if (fieldMaskField_ == null) {
910               FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
911             }
912             input.ReadMessage(FieldMaskField);
913             break;
914           }
915           case 50: {
916             if (sourceContextField_ == null) {
917               SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
918             }
919             input.ReadMessage(SourceContextField);
920             break;
921           }
922           case 58: {
923             if (structField_ == null) {
924               StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
925             }
926             input.ReadMessage(StructField);
927             break;
928           }
929           case 66: {
930             if (timestampField_ == null) {
931               TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
932             }
933             input.ReadMessage(TimestampField);
934             break;
935           }
936           case 74: {
937             if (typeField_ == null) {
938               TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
939             }
940             input.ReadMessage(TypeField);
941             break;
942           }
943           case 82: {
944             double? value = _single_doubleField_codec.Read(input);
945             if (doubleField_ == null || value != 0D) {
946               DoubleField = value;
947             }
948             break;
949           }
950           case 90: {
951             float? value = _single_floatField_codec.Read(input);
952             if (floatField_ == null || value != 0F) {
953               FloatField = value;
954             }
955             break;
956           }
957           case 98: {
958             long? value = _single_int64Field_codec.Read(input);
959             if (int64Field_ == null || value != 0L) {
960               Int64Field = value;
961             }
962             break;
963           }
964           case 106: {
965             ulong? value = _single_uint64Field_codec.Read(input);
966             if (uint64Field_ == null || value != 0UL) {
967               Uint64Field = value;
968             }
969             break;
970           }
971           case 114: {
972             int? value = _single_int32Field_codec.Read(input);
973             if (int32Field_ == null || value != 0) {
974               Int32Field = value;
975             }
976             break;
977           }
978           case 122: {
979             uint? value = _single_uint32Field_codec.Read(input);
980             if (uint32Field_ == null || value != 0) {
981               Uint32Field = value;
982             }
983             break;
984           }
985           case 130: {
986             bool? value = _single_boolField_codec.Read(input);
987             if (boolField_ == null || value != false) {
988               BoolField = value;
989             }
990             break;
991           }
992           case 138: {
993             string value = _single_stringField_codec.Read(input);
994             if (stringField_ == null || value != "") {
995               StringField = value;
996             }
997             break;
998           }
999           case 146: {
1000             pb::ByteString value = _single_bytesField_codec.Read(input);
1001             if (bytesField_ == null || value != pb::ByteString.Empty) {
1002               BytesField = value;
1003             }
1004             break;
1005           }
1006           case 154: {
1007             if (valueField_ == null) {
1008               ValueField = new global::Google.Protobuf.WellKnownTypes.Value();
1009             }
1010             input.ReadMessage(ValueField);
1011             break;
1012           }
1013         }
1014       }
1015     #endif
1016     }
1017 
1018     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1019     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1020     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1021       uint tag;
1022       while ((tag = input.ReadTag()) != 0) {
1023         switch(tag) {
1024           default:
1025             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1026             break;
1027           case 10: {
1028             if (anyField_ == null) {
1029               AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
1030             }
1031             input.ReadMessage(AnyField);
1032             break;
1033           }
1034           case 18: {
1035             if (apiField_ == null) {
1036               ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
1037             }
1038             input.ReadMessage(ApiField);
1039             break;
1040           }
1041           case 26: {
1042             if (durationField_ == null) {
1043               DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
1044             }
1045             input.ReadMessage(DurationField);
1046             break;
1047           }
1048           case 34: {
1049             if (emptyField_ == null) {
1050               EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
1051             }
1052             input.ReadMessage(EmptyField);
1053             break;
1054           }
1055           case 42: {
1056             if (fieldMaskField_ == null) {
1057               FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
1058             }
1059             input.ReadMessage(FieldMaskField);
1060             break;
1061           }
1062           case 50: {
1063             if (sourceContextField_ == null) {
1064               SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
1065             }
1066             input.ReadMessage(SourceContextField);
1067             break;
1068           }
1069           case 58: {
1070             if (structField_ == null) {
1071               StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
1072             }
1073             input.ReadMessage(StructField);
1074             break;
1075           }
1076           case 66: {
1077             if (timestampField_ == null) {
1078               TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
1079             }
1080             input.ReadMessage(TimestampField);
1081             break;
1082           }
1083           case 74: {
1084             if (typeField_ == null) {
1085               TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
1086             }
1087             input.ReadMessage(TypeField);
1088             break;
1089           }
1090           case 82: {
1091             double? value = _single_doubleField_codec.Read(ref input);
1092             if (doubleField_ == null || value != 0D) {
1093               DoubleField = value;
1094             }
1095             break;
1096           }
1097           case 90: {
1098             float? value = _single_floatField_codec.Read(ref input);
1099             if (floatField_ == null || value != 0F) {
1100               FloatField = value;
1101             }
1102             break;
1103           }
1104           case 98: {
1105             long? value = _single_int64Field_codec.Read(ref input);
1106             if (int64Field_ == null || value != 0L) {
1107               Int64Field = value;
1108             }
1109             break;
1110           }
1111           case 106: {
1112             ulong? value = _single_uint64Field_codec.Read(ref input);
1113             if (uint64Field_ == null || value != 0UL) {
1114               Uint64Field = value;
1115             }
1116             break;
1117           }
1118           case 114: {
1119             int? value = _single_int32Field_codec.Read(ref input);
1120             if (int32Field_ == null || value != 0) {
1121               Int32Field = value;
1122             }
1123             break;
1124           }
1125           case 122: {
1126             uint? value = _single_uint32Field_codec.Read(ref input);
1127             if (uint32Field_ == null || value != 0) {
1128               Uint32Field = value;
1129             }
1130             break;
1131           }
1132           case 130: {
1133             bool? value = _single_boolField_codec.Read(ref input);
1134             if (boolField_ == null || value != false) {
1135               BoolField = value;
1136             }
1137             break;
1138           }
1139           case 138: {
1140             string value = _single_stringField_codec.Read(ref input);
1141             if (stringField_ == null || value != "") {
1142               StringField = value;
1143             }
1144             break;
1145           }
1146           case 146: {
1147             pb::ByteString value = _single_bytesField_codec.Read(ref input);
1148             if (bytesField_ == null || value != pb::ByteString.Empty) {
1149               BytesField = value;
1150             }
1151             break;
1152           }
1153           case 154: {
1154             if (valueField_ == null) {
1155               ValueField = new global::Google.Protobuf.WellKnownTypes.Value();
1156             }
1157             input.ReadMessage(ValueField);
1158             break;
1159           }
1160         }
1161       }
1162     }
1163     #endif
1164 
1165   }
1166 
1167   /// <summary>
1168   /// A repeated field for each well-known type.
1169   /// </summary>
1170   public sealed partial class RepeatedWellKnownTypes : pb::IMessage<RepeatedWellKnownTypes>
1171   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1172       , pb::IBufferMessage
1173   #endif
1174   {
1175     private static readonly pb::MessageParser<RepeatedWellKnownTypes> _parser = new pb::MessageParser<RepeatedWellKnownTypes>(() => new RepeatedWellKnownTypes());
1176     private pb::UnknownFieldSet _unknownFields;
1177     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1178     public static pb::MessageParser<RepeatedWellKnownTypes> Parser { get { return _parser; } }
1179 
1180     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1181     public static pbr::MessageDescriptor Descriptor {
1182       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[1]; }
1183     }
1184 
1185     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1186     pbr::MessageDescriptor pb::IMessage.Descriptor {
1187       get { return Descriptor; }
1188     }
1189 
1190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RepeatedWellKnownTypes()1191     public RepeatedWellKnownTypes() {
1192       OnConstruction();
1193     }
1194 
OnConstruction()1195     partial void OnConstruction();
1196 
1197     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
RepeatedWellKnownTypes(RepeatedWellKnownTypes other)1198     public RepeatedWellKnownTypes(RepeatedWellKnownTypes other) : this() {
1199       anyField_ = other.anyField_.Clone();
1200       apiField_ = other.apiField_.Clone();
1201       durationField_ = other.durationField_.Clone();
1202       emptyField_ = other.emptyField_.Clone();
1203       fieldMaskField_ = other.fieldMaskField_.Clone();
1204       sourceContextField_ = other.sourceContextField_.Clone();
1205       structField_ = other.structField_.Clone();
1206       timestampField_ = other.timestampField_.Clone();
1207       typeField_ = other.typeField_.Clone();
1208       doubleField_ = other.doubleField_.Clone();
1209       floatField_ = other.floatField_.Clone();
1210       int64Field_ = other.int64Field_.Clone();
1211       uint64Field_ = other.uint64Field_.Clone();
1212       int32Field_ = other.int32Field_.Clone();
1213       uint32Field_ = other.uint32Field_.Clone();
1214       boolField_ = other.boolField_.Clone();
1215       stringField_ = other.stringField_.Clone();
1216       bytesField_ = other.bytesField_.Clone();
1217       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1218     }
1219 
1220     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1221     public RepeatedWellKnownTypes Clone() {
1222       return new RepeatedWellKnownTypes(this);
1223     }
1224 
1225     /// <summary>Field number for the "any_field" field.</summary>
1226     public const int AnyFieldFieldNumber = 1;
1227     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Any> _repeated_anyField_codec
1228         = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Any.Parser);
1229     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any>();
1230     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1231     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> AnyField {
1232       get { return anyField_; }
1233     }
1234 
1235     /// <summary>Field number for the "api_field" field.</summary>
1236     public const int ApiFieldFieldNumber = 2;
1237     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Api> _repeated_apiField_codec
1238         = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser);
1239     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api>();
1240     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1241     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> ApiField {
1242       get { return apiField_; }
1243     }
1244 
1245     /// <summary>Field number for the "duration_field" field.</summary>
1246     public const int DurationFieldFieldNumber = 3;
1247     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Duration> _repeated_durationField_codec
1248         = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.Duration.Parser);
1249     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration>();
1250     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1251     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
1252       get { return durationField_; }
1253     }
1254 
1255     /// <summary>Field number for the "empty_field" field.</summary>
1256     public const int EmptyFieldFieldNumber = 4;
1257     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Empty> _repeated_emptyField_codec
1258         = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.WellKnownTypes.Empty.Parser);
1259     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty>();
1260     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1261     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
1262       get { return emptyField_; }
1263     }
1264 
1265     /// <summary>Field number for the "field_mask_field" field.</summary>
1266     public const int FieldMaskFieldFieldNumber = 5;
1267     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.FieldMask> _repeated_fieldMaskField_codec
1268         = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser);
1269     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask>();
1270     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1271     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
1272       get { return fieldMaskField_; }
1273     }
1274 
1275     /// <summary>Field number for the "source_context_field" field.</summary>
1276     public const int SourceContextFieldFieldNumber = 6;
1277     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.SourceContext> _repeated_sourceContextField_codec
1278         = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser);
1279     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext>();
1280     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1281     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
1282       get { return sourceContextField_; }
1283     }
1284 
1285     /// <summary>Field number for the "struct_field" field.</summary>
1286     public const int StructFieldFieldNumber = 7;
1287     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Struct> _repeated_structField_codec
1288         = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.WellKnownTypes.Struct.Parser);
1289     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct>();
1290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1291     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> StructField {
1292       get { return structField_; }
1293     }
1294 
1295     /// <summary>Field number for the "timestamp_field" field.</summary>
1296     public const int TimestampFieldFieldNumber = 8;
1297     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Timestamp> _repeated_timestampField_codec
1298         = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser);
1299     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp>();
1300     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1301     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
1302       get { return timestampField_; }
1303     }
1304 
1305     /// <summary>Field number for the "type_field" field.</summary>
1306     public const int TypeFieldFieldNumber = 9;
1307     private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Type> _repeated_typeField_codec
1308         = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.WellKnownTypes.Type.Parser);
1309     private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type>();
1310     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1311     public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> TypeField {
1312       get { return typeField_; }
1313     }
1314 
1315     /// <summary>Field number for the "double_field" field.</summary>
1316     public const int DoubleFieldFieldNumber = 10;
1317     private static readonly pb::FieldCodec<double?> _repeated_doubleField_codec
1318         = pb::FieldCodec.ForStructWrapper<double>(82);
1319     private readonly pbc::RepeatedField<double?> doubleField_ = new pbc::RepeatedField<double?>();
1320     /// <summary>
1321     /// These don't actually make a lot of sense, but they're not prohibited...
1322     /// </summary>
1323     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1324     public pbc::RepeatedField<double?> DoubleField {
1325       get { return doubleField_; }
1326     }
1327 
1328     /// <summary>Field number for the "float_field" field.</summary>
1329     public const int FloatFieldFieldNumber = 11;
1330     private static readonly pb::FieldCodec<float?> _repeated_floatField_codec
1331         = pb::FieldCodec.ForStructWrapper<float>(90);
1332     private readonly pbc::RepeatedField<float?> floatField_ = new pbc::RepeatedField<float?>();
1333     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1334     public pbc::RepeatedField<float?> FloatField {
1335       get { return floatField_; }
1336     }
1337 
1338     /// <summary>Field number for the "int64_field" field.</summary>
1339     public const int Int64FieldFieldNumber = 12;
1340     private static readonly pb::FieldCodec<long?> _repeated_int64Field_codec
1341         = pb::FieldCodec.ForStructWrapper<long>(98);
1342     private readonly pbc::RepeatedField<long?> int64Field_ = new pbc::RepeatedField<long?>();
1343     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1344     public pbc::RepeatedField<long?> Int64Field {
1345       get { return int64Field_; }
1346     }
1347 
1348     /// <summary>Field number for the "uint64_field" field.</summary>
1349     public const int Uint64FieldFieldNumber = 13;
1350     private static readonly pb::FieldCodec<ulong?> _repeated_uint64Field_codec
1351         = pb::FieldCodec.ForStructWrapper<ulong>(106);
1352     private readonly pbc::RepeatedField<ulong?> uint64Field_ = new pbc::RepeatedField<ulong?>();
1353     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1354     public pbc::RepeatedField<ulong?> Uint64Field {
1355       get { return uint64Field_; }
1356     }
1357 
1358     /// <summary>Field number for the "int32_field" field.</summary>
1359     public const int Int32FieldFieldNumber = 14;
1360     private static readonly pb::FieldCodec<int?> _repeated_int32Field_codec
1361         = pb::FieldCodec.ForStructWrapper<int>(114);
1362     private readonly pbc::RepeatedField<int?> int32Field_ = new pbc::RepeatedField<int?>();
1363     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1364     public pbc::RepeatedField<int?> Int32Field {
1365       get { return int32Field_; }
1366     }
1367 
1368     /// <summary>Field number for the "uint32_field" field.</summary>
1369     public const int Uint32FieldFieldNumber = 15;
1370     private static readonly pb::FieldCodec<uint?> _repeated_uint32Field_codec
1371         = pb::FieldCodec.ForStructWrapper<uint>(122);
1372     private readonly pbc::RepeatedField<uint?> uint32Field_ = new pbc::RepeatedField<uint?>();
1373     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1374     public pbc::RepeatedField<uint?> Uint32Field {
1375       get { return uint32Field_; }
1376     }
1377 
1378     /// <summary>Field number for the "bool_field" field.</summary>
1379     public const int BoolFieldFieldNumber = 16;
1380     private static readonly pb::FieldCodec<bool?> _repeated_boolField_codec
1381         = pb::FieldCodec.ForStructWrapper<bool>(130);
1382     private readonly pbc::RepeatedField<bool?> boolField_ = new pbc::RepeatedField<bool?>();
1383     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1384     public pbc::RepeatedField<bool?> BoolField {
1385       get { return boolField_; }
1386     }
1387 
1388     /// <summary>Field number for the "string_field" field.</summary>
1389     public const int StringFieldFieldNumber = 17;
1390     private static readonly pb::FieldCodec<string> _repeated_stringField_codec
1391         = pb::FieldCodec.ForClassWrapper<string>(138);
1392     private readonly pbc::RepeatedField<string> stringField_ = new pbc::RepeatedField<string>();
1393     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1394     public pbc::RepeatedField<string> StringField {
1395       get { return stringField_; }
1396     }
1397 
1398     /// <summary>Field number for the "bytes_field" field.</summary>
1399     public const int BytesFieldFieldNumber = 18;
1400     private static readonly pb::FieldCodec<pb::ByteString> _repeated_bytesField_codec
1401         = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
1402     private readonly pbc::RepeatedField<pb::ByteString> bytesField_ = new pbc::RepeatedField<pb::ByteString>();
1403     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1404     public pbc::RepeatedField<pb::ByteString> BytesField {
1405       get { return bytesField_; }
1406     }
1407 
1408     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)1409     public override bool Equals(object other) {
1410       return Equals(other as RepeatedWellKnownTypes);
1411     }
1412 
1413     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(RepeatedWellKnownTypes other)1414     public bool Equals(RepeatedWellKnownTypes other) {
1415       if (ReferenceEquals(other, null)) {
1416         return false;
1417       }
1418       if (ReferenceEquals(other, this)) {
1419         return true;
1420       }
1421       if(!anyField_.Equals(other.anyField_)) return false;
1422       if(!apiField_.Equals(other.apiField_)) return false;
1423       if(!durationField_.Equals(other.durationField_)) return false;
1424       if(!emptyField_.Equals(other.emptyField_)) return false;
1425       if(!fieldMaskField_.Equals(other.fieldMaskField_)) return false;
1426       if(!sourceContextField_.Equals(other.sourceContextField_)) return false;
1427       if(!structField_.Equals(other.structField_)) return false;
1428       if(!timestampField_.Equals(other.timestampField_)) return false;
1429       if(!typeField_.Equals(other.typeField_)) return false;
1430       if(!doubleField_.Equals(other.doubleField_)) return false;
1431       if(!floatField_.Equals(other.floatField_)) return false;
1432       if(!int64Field_.Equals(other.int64Field_)) return false;
1433       if(!uint64Field_.Equals(other.uint64Field_)) return false;
1434       if(!int32Field_.Equals(other.int32Field_)) return false;
1435       if(!uint32Field_.Equals(other.uint32Field_)) return false;
1436       if(!boolField_.Equals(other.boolField_)) return false;
1437       if(!stringField_.Equals(other.stringField_)) return false;
1438       if(!bytesField_.Equals(other.bytesField_)) return false;
1439       return Equals(_unknownFields, other._unknownFields);
1440     }
1441 
1442     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()1443     public override int GetHashCode() {
1444       int hash = 1;
1445       hash ^= anyField_.GetHashCode();
1446       hash ^= apiField_.GetHashCode();
1447       hash ^= durationField_.GetHashCode();
1448       hash ^= emptyField_.GetHashCode();
1449       hash ^= fieldMaskField_.GetHashCode();
1450       hash ^= sourceContextField_.GetHashCode();
1451       hash ^= structField_.GetHashCode();
1452       hash ^= timestampField_.GetHashCode();
1453       hash ^= typeField_.GetHashCode();
1454       hash ^= doubleField_.GetHashCode();
1455       hash ^= floatField_.GetHashCode();
1456       hash ^= int64Field_.GetHashCode();
1457       hash ^= uint64Field_.GetHashCode();
1458       hash ^= int32Field_.GetHashCode();
1459       hash ^= uint32Field_.GetHashCode();
1460       hash ^= boolField_.GetHashCode();
1461       hash ^= stringField_.GetHashCode();
1462       hash ^= bytesField_.GetHashCode();
1463       if (_unknownFields != null) {
1464         hash ^= _unknownFields.GetHashCode();
1465       }
1466       return hash;
1467     }
1468 
1469     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()1470     public override string ToString() {
1471       return pb::JsonFormatter.ToDiagnosticString(this);
1472     }
1473 
1474     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)1475     public void WriteTo(pb::CodedOutputStream output) {
1476     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1477       output.WriteRawMessage(this);
1478     #else
1479       anyField_.WriteTo(output, _repeated_anyField_codec);
1480       apiField_.WriteTo(output, _repeated_apiField_codec);
1481       durationField_.WriteTo(output, _repeated_durationField_codec);
1482       emptyField_.WriteTo(output, _repeated_emptyField_codec);
1483       fieldMaskField_.WriteTo(output, _repeated_fieldMaskField_codec);
1484       sourceContextField_.WriteTo(output, _repeated_sourceContextField_codec);
1485       structField_.WriteTo(output, _repeated_structField_codec);
1486       timestampField_.WriteTo(output, _repeated_timestampField_codec);
1487       typeField_.WriteTo(output, _repeated_typeField_codec);
1488       doubleField_.WriteTo(output, _repeated_doubleField_codec);
1489       floatField_.WriteTo(output, _repeated_floatField_codec);
1490       int64Field_.WriteTo(output, _repeated_int64Field_codec);
1491       uint64Field_.WriteTo(output, _repeated_uint64Field_codec);
1492       int32Field_.WriteTo(output, _repeated_int32Field_codec);
1493       uint32Field_.WriteTo(output, _repeated_uint32Field_codec);
1494       boolField_.WriteTo(output, _repeated_boolField_codec);
1495       stringField_.WriteTo(output, _repeated_stringField_codec);
1496       bytesField_.WriteTo(output, _repeated_bytesField_codec);
1497       if (_unknownFields != null) {
1498         _unknownFields.WriteTo(output);
1499       }
1500     #endif
1501     }
1502 
1503     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1504     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1505     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
1506       anyField_.WriteTo(ref output, _repeated_anyField_codec);
1507       apiField_.WriteTo(ref output, _repeated_apiField_codec);
1508       durationField_.WriteTo(ref output, _repeated_durationField_codec);
1509       emptyField_.WriteTo(ref output, _repeated_emptyField_codec);
1510       fieldMaskField_.WriteTo(ref output, _repeated_fieldMaskField_codec);
1511       sourceContextField_.WriteTo(ref output, _repeated_sourceContextField_codec);
1512       structField_.WriteTo(ref output, _repeated_structField_codec);
1513       timestampField_.WriteTo(ref output, _repeated_timestampField_codec);
1514       typeField_.WriteTo(ref output, _repeated_typeField_codec);
1515       doubleField_.WriteTo(ref output, _repeated_doubleField_codec);
1516       floatField_.WriteTo(ref output, _repeated_floatField_codec);
1517       int64Field_.WriteTo(ref output, _repeated_int64Field_codec);
1518       uint64Field_.WriteTo(ref output, _repeated_uint64Field_codec);
1519       int32Field_.WriteTo(ref output, _repeated_int32Field_codec);
1520       uint32Field_.WriteTo(ref output, _repeated_uint32Field_codec);
1521       boolField_.WriteTo(ref output, _repeated_boolField_codec);
1522       stringField_.WriteTo(ref output, _repeated_stringField_codec);
1523       bytesField_.WriteTo(ref output, _repeated_bytesField_codec);
1524       if (_unknownFields != null) {
1525         _unknownFields.WriteTo(ref output);
1526       }
1527     }
1528     #endif
1529 
1530     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()1531     public int CalculateSize() {
1532       int size = 0;
1533       size += anyField_.CalculateSize(_repeated_anyField_codec);
1534       size += apiField_.CalculateSize(_repeated_apiField_codec);
1535       size += durationField_.CalculateSize(_repeated_durationField_codec);
1536       size += emptyField_.CalculateSize(_repeated_emptyField_codec);
1537       size += fieldMaskField_.CalculateSize(_repeated_fieldMaskField_codec);
1538       size += sourceContextField_.CalculateSize(_repeated_sourceContextField_codec);
1539       size += structField_.CalculateSize(_repeated_structField_codec);
1540       size += timestampField_.CalculateSize(_repeated_timestampField_codec);
1541       size += typeField_.CalculateSize(_repeated_typeField_codec);
1542       size += doubleField_.CalculateSize(_repeated_doubleField_codec);
1543       size += floatField_.CalculateSize(_repeated_floatField_codec);
1544       size += int64Field_.CalculateSize(_repeated_int64Field_codec);
1545       size += uint64Field_.CalculateSize(_repeated_uint64Field_codec);
1546       size += int32Field_.CalculateSize(_repeated_int32Field_codec);
1547       size += uint32Field_.CalculateSize(_repeated_uint32Field_codec);
1548       size += boolField_.CalculateSize(_repeated_boolField_codec);
1549       size += stringField_.CalculateSize(_repeated_stringField_codec);
1550       size += bytesField_.CalculateSize(_repeated_bytesField_codec);
1551       if (_unknownFields != null) {
1552         size += _unknownFields.CalculateSize();
1553       }
1554       return size;
1555     }
1556 
1557     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(RepeatedWellKnownTypes other)1558     public void MergeFrom(RepeatedWellKnownTypes other) {
1559       if (other == null) {
1560         return;
1561       }
1562       anyField_.Add(other.anyField_);
1563       apiField_.Add(other.apiField_);
1564       durationField_.Add(other.durationField_);
1565       emptyField_.Add(other.emptyField_);
1566       fieldMaskField_.Add(other.fieldMaskField_);
1567       sourceContextField_.Add(other.sourceContextField_);
1568       structField_.Add(other.structField_);
1569       timestampField_.Add(other.timestampField_);
1570       typeField_.Add(other.typeField_);
1571       doubleField_.Add(other.doubleField_);
1572       floatField_.Add(other.floatField_);
1573       int64Field_.Add(other.int64Field_);
1574       uint64Field_.Add(other.uint64Field_);
1575       int32Field_.Add(other.int32Field_);
1576       uint32Field_.Add(other.uint32Field_);
1577       boolField_.Add(other.boolField_);
1578       stringField_.Add(other.stringField_);
1579       bytesField_.Add(other.bytesField_);
1580       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
1581     }
1582 
1583     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)1584     public void MergeFrom(pb::CodedInputStream input) {
1585     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1586       input.ReadRawMessage(this);
1587     #else
1588       uint tag;
1589       while ((tag = input.ReadTag()) != 0) {
1590         switch(tag) {
1591           default:
1592             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
1593             break;
1594           case 10: {
1595             anyField_.AddEntriesFrom(input, _repeated_anyField_codec);
1596             break;
1597           }
1598           case 18: {
1599             apiField_.AddEntriesFrom(input, _repeated_apiField_codec);
1600             break;
1601           }
1602           case 26: {
1603             durationField_.AddEntriesFrom(input, _repeated_durationField_codec);
1604             break;
1605           }
1606           case 34: {
1607             emptyField_.AddEntriesFrom(input, _repeated_emptyField_codec);
1608             break;
1609           }
1610           case 42: {
1611             fieldMaskField_.AddEntriesFrom(input, _repeated_fieldMaskField_codec);
1612             break;
1613           }
1614           case 50: {
1615             sourceContextField_.AddEntriesFrom(input, _repeated_sourceContextField_codec);
1616             break;
1617           }
1618           case 58: {
1619             structField_.AddEntriesFrom(input, _repeated_structField_codec);
1620             break;
1621           }
1622           case 66: {
1623             timestampField_.AddEntriesFrom(input, _repeated_timestampField_codec);
1624             break;
1625           }
1626           case 74: {
1627             typeField_.AddEntriesFrom(input, _repeated_typeField_codec);
1628             break;
1629           }
1630           case 82: {
1631             doubleField_.AddEntriesFrom(input, _repeated_doubleField_codec);
1632             break;
1633           }
1634           case 90: {
1635             floatField_.AddEntriesFrom(input, _repeated_floatField_codec);
1636             break;
1637           }
1638           case 98: {
1639             int64Field_.AddEntriesFrom(input, _repeated_int64Field_codec);
1640             break;
1641           }
1642           case 106: {
1643             uint64Field_.AddEntriesFrom(input, _repeated_uint64Field_codec);
1644             break;
1645           }
1646           case 114: {
1647             int32Field_.AddEntriesFrom(input, _repeated_int32Field_codec);
1648             break;
1649           }
1650           case 122: {
1651             uint32Field_.AddEntriesFrom(input, _repeated_uint32Field_codec);
1652             break;
1653           }
1654           case 130: {
1655             boolField_.AddEntriesFrom(input, _repeated_boolField_codec);
1656             break;
1657           }
1658           case 138: {
1659             stringField_.AddEntriesFrom(input, _repeated_stringField_codec);
1660             break;
1661           }
1662           case 146: {
1663             bytesField_.AddEntriesFrom(input, _repeated_bytesField_codec);
1664             break;
1665           }
1666         }
1667       }
1668     #endif
1669     }
1670 
1671     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1672     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1673     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
1674       uint tag;
1675       while ((tag = input.ReadTag()) != 0) {
1676         switch(tag) {
1677           default:
1678             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
1679             break;
1680           case 10: {
1681             anyField_.AddEntriesFrom(ref input, _repeated_anyField_codec);
1682             break;
1683           }
1684           case 18: {
1685             apiField_.AddEntriesFrom(ref input, _repeated_apiField_codec);
1686             break;
1687           }
1688           case 26: {
1689             durationField_.AddEntriesFrom(ref input, _repeated_durationField_codec);
1690             break;
1691           }
1692           case 34: {
1693             emptyField_.AddEntriesFrom(ref input, _repeated_emptyField_codec);
1694             break;
1695           }
1696           case 42: {
1697             fieldMaskField_.AddEntriesFrom(ref input, _repeated_fieldMaskField_codec);
1698             break;
1699           }
1700           case 50: {
1701             sourceContextField_.AddEntriesFrom(ref input, _repeated_sourceContextField_codec);
1702             break;
1703           }
1704           case 58: {
1705             structField_.AddEntriesFrom(ref input, _repeated_structField_codec);
1706             break;
1707           }
1708           case 66: {
1709             timestampField_.AddEntriesFrom(ref input, _repeated_timestampField_codec);
1710             break;
1711           }
1712           case 74: {
1713             typeField_.AddEntriesFrom(ref input, _repeated_typeField_codec);
1714             break;
1715           }
1716           case 82: {
1717             doubleField_.AddEntriesFrom(ref input, _repeated_doubleField_codec);
1718             break;
1719           }
1720           case 90: {
1721             floatField_.AddEntriesFrom(ref input, _repeated_floatField_codec);
1722             break;
1723           }
1724           case 98: {
1725             int64Field_.AddEntriesFrom(ref input, _repeated_int64Field_codec);
1726             break;
1727           }
1728           case 106: {
1729             uint64Field_.AddEntriesFrom(ref input, _repeated_uint64Field_codec);
1730             break;
1731           }
1732           case 114: {
1733             int32Field_.AddEntriesFrom(ref input, _repeated_int32Field_codec);
1734             break;
1735           }
1736           case 122: {
1737             uint32Field_.AddEntriesFrom(ref input, _repeated_uint32Field_codec);
1738             break;
1739           }
1740           case 130: {
1741             boolField_.AddEntriesFrom(ref input, _repeated_boolField_codec);
1742             break;
1743           }
1744           case 138: {
1745             stringField_.AddEntriesFrom(ref input, _repeated_stringField_codec);
1746             break;
1747           }
1748           case 146: {
1749             bytesField_.AddEntriesFrom(ref input, _repeated_bytesField_codec);
1750             break;
1751           }
1752         }
1753       }
1754     }
1755     #endif
1756 
1757   }
1758 
1759   public sealed partial class OneofWellKnownTypes : pb::IMessage<OneofWellKnownTypes>
1760   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
1761       , pb::IBufferMessage
1762   #endif
1763   {
1764     private static readonly pb::MessageParser<OneofWellKnownTypes> _parser = new pb::MessageParser<OneofWellKnownTypes>(() => new OneofWellKnownTypes());
1765     private pb::UnknownFieldSet _unknownFields;
1766     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1767     public static pb::MessageParser<OneofWellKnownTypes> Parser { get { return _parser; } }
1768 
1769     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1770     public static pbr::MessageDescriptor Descriptor {
1771       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[2]; }
1772     }
1773 
1774     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1775     pbr::MessageDescriptor pb::IMessage.Descriptor {
1776       get { return Descriptor; }
1777     }
1778 
1779     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofWellKnownTypes()1780     public OneofWellKnownTypes() {
1781       OnConstruction();
1782     }
1783 
OnConstruction()1784     partial void OnConstruction();
1785 
1786     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
OneofWellKnownTypes(OneofWellKnownTypes other)1787     public OneofWellKnownTypes(OneofWellKnownTypes other) : this() {
1788       switch (other.OneofFieldCase) {
1789         case OneofFieldOneofCase.AnyField:
1790           AnyField = other.AnyField.Clone();
1791           break;
1792         case OneofFieldOneofCase.ApiField:
1793           ApiField = other.ApiField.Clone();
1794           break;
1795         case OneofFieldOneofCase.DurationField:
1796           DurationField = other.DurationField.Clone();
1797           break;
1798         case OneofFieldOneofCase.EmptyField:
1799           EmptyField = other.EmptyField.Clone();
1800           break;
1801         case OneofFieldOneofCase.FieldMaskField:
1802           FieldMaskField = other.FieldMaskField.Clone();
1803           break;
1804         case OneofFieldOneofCase.SourceContextField:
1805           SourceContextField = other.SourceContextField.Clone();
1806           break;
1807         case OneofFieldOneofCase.StructField:
1808           StructField = other.StructField.Clone();
1809           break;
1810         case OneofFieldOneofCase.TimestampField:
1811           TimestampField = other.TimestampField.Clone();
1812           break;
1813         case OneofFieldOneofCase.TypeField:
1814           TypeField = other.TypeField.Clone();
1815           break;
1816         case OneofFieldOneofCase.DoubleField:
1817           DoubleField = other.DoubleField;
1818           break;
1819         case OneofFieldOneofCase.FloatField:
1820           FloatField = other.FloatField;
1821           break;
1822         case OneofFieldOneofCase.Int64Field:
1823           Int64Field = other.Int64Field;
1824           break;
1825         case OneofFieldOneofCase.Uint64Field:
1826           Uint64Field = other.Uint64Field;
1827           break;
1828         case OneofFieldOneofCase.Int32Field:
1829           Int32Field = other.Int32Field;
1830           break;
1831         case OneofFieldOneofCase.Uint32Field:
1832           Uint32Field = other.Uint32Field;
1833           break;
1834         case OneofFieldOneofCase.BoolField:
1835           BoolField = other.BoolField;
1836           break;
1837         case OneofFieldOneofCase.StringField:
1838           StringField = other.StringField;
1839           break;
1840         case OneofFieldOneofCase.BytesField:
1841           BytesField = other.BytesField;
1842           break;
1843       }
1844 
1845       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
1846     }
1847 
1848     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()1849     public OneofWellKnownTypes Clone() {
1850       return new OneofWellKnownTypes(this);
1851     }
1852 
1853     /// <summary>Field number for the "any_field" field.</summary>
1854     public const int AnyFieldFieldNumber = 1;
1855     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1856     public global::Google.Protobuf.WellKnownTypes.Any AnyField {
1857       get { return oneofFieldCase_ == OneofFieldOneofCase.AnyField ? (global::Google.Protobuf.WellKnownTypes.Any) oneofField_ : null; }
1858       set {
1859         oneofField_ = value;
1860         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.AnyField;
1861       }
1862     }
1863 
1864     /// <summary>Field number for the "api_field" field.</summary>
1865     public const int ApiFieldFieldNumber = 2;
1866     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1867     public global::Google.Protobuf.WellKnownTypes.Api ApiField {
1868       get { return oneofFieldCase_ == OneofFieldOneofCase.ApiField ? (global::Google.Protobuf.WellKnownTypes.Api) oneofField_ : null; }
1869       set {
1870         oneofField_ = value;
1871         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.ApiField;
1872       }
1873     }
1874 
1875     /// <summary>Field number for the "duration_field" field.</summary>
1876     public const int DurationFieldFieldNumber = 3;
1877     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1878     public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
1879       get { return oneofFieldCase_ == OneofFieldOneofCase.DurationField ? (global::Google.Protobuf.WellKnownTypes.Duration) oneofField_ : null; }
1880       set {
1881         oneofField_ = value;
1882         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DurationField;
1883       }
1884     }
1885 
1886     /// <summary>Field number for the "empty_field" field.</summary>
1887     public const int EmptyFieldFieldNumber = 4;
1888     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1889     public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
1890       get { return oneofFieldCase_ == OneofFieldOneofCase.EmptyField ? (global::Google.Protobuf.WellKnownTypes.Empty) oneofField_ : null; }
1891       set {
1892         oneofField_ = value;
1893         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.EmptyField;
1894       }
1895     }
1896 
1897     /// <summary>Field number for the "field_mask_field" field.</summary>
1898     public const int FieldMaskFieldFieldNumber = 5;
1899     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1900     public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
1901       get { return oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField ? (global::Google.Protobuf.WellKnownTypes.FieldMask) oneofField_ : null; }
1902       set {
1903         oneofField_ = value;
1904         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FieldMaskField;
1905       }
1906     }
1907 
1908     /// <summary>Field number for the "source_context_field" field.</summary>
1909     public const int SourceContextFieldFieldNumber = 6;
1910     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1911     public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextField {
1912       get { return oneofFieldCase_ == OneofFieldOneofCase.SourceContextField ? (global::Google.Protobuf.WellKnownTypes.SourceContext) oneofField_ : null; }
1913       set {
1914         oneofField_ = value;
1915         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.SourceContextField;
1916       }
1917     }
1918 
1919     /// <summary>Field number for the "struct_field" field.</summary>
1920     public const int StructFieldFieldNumber = 7;
1921     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1922     public global::Google.Protobuf.WellKnownTypes.Struct StructField {
1923       get { return oneofFieldCase_ == OneofFieldOneofCase.StructField ? (global::Google.Protobuf.WellKnownTypes.Struct) oneofField_ : null; }
1924       set {
1925         oneofField_ = value;
1926         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StructField;
1927       }
1928     }
1929 
1930     /// <summary>Field number for the "timestamp_field" field.</summary>
1931     public const int TimestampFieldFieldNumber = 8;
1932     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1933     public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
1934       get { return oneofFieldCase_ == OneofFieldOneofCase.TimestampField ? (global::Google.Protobuf.WellKnownTypes.Timestamp) oneofField_ : null; }
1935       set {
1936         oneofField_ = value;
1937         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TimestampField;
1938       }
1939     }
1940 
1941     /// <summary>Field number for the "type_field" field.</summary>
1942     public const int TypeFieldFieldNumber = 9;
1943     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1944     public global::Google.Protobuf.WellKnownTypes.Type TypeField {
1945       get { return oneofFieldCase_ == OneofFieldOneofCase.TypeField ? (global::Google.Protobuf.WellKnownTypes.Type) oneofField_ : null; }
1946       set {
1947         oneofField_ = value;
1948         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.TypeField;
1949       }
1950     }
1951 
1952     /// <summary>Field number for the "double_field" field.</summary>
1953     public const int DoubleFieldFieldNumber = 10;
1954     private static readonly pb::FieldCodec<double?> _oneof_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
1955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1956     public double? DoubleField {
1957       get { return oneofFieldCase_ == OneofFieldOneofCase.DoubleField ? (double?) oneofField_ : (double?) null; }
1958       set {
1959         oneofField_ = value;
1960         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.DoubleField;
1961       }
1962     }
1963 
1964     /// <summary>Field number for the "float_field" field.</summary>
1965     public const int FloatFieldFieldNumber = 11;
1966     private static readonly pb::FieldCodec<float?> _oneof_floatField_codec = pb::FieldCodec.ForStructWrapper<float>(90);
1967     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1968     public float? FloatField {
1969       get { return oneofFieldCase_ == OneofFieldOneofCase.FloatField ? (float?) oneofField_ : (float?) null; }
1970       set {
1971         oneofField_ = value;
1972         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.FloatField;
1973       }
1974     }
1975 
1976     /// <summary>Field number for the "int64_field" field.</summary>
1977     public const int Int64FieldFieldNumber = 12;
1978     private static readonly pb::FieldCodec<long?> _oneof_int64Field_codec = pb::FieldCodec.ForStructWrapper<long>(98);
1979     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1980     public long? Int64Field {
1981       get { return oneofFieldCase_ == OneofFieldOneofCase.Int64Field ? (long?) oneofField_ : (long?) null; }
1982       set {
1983         oneofField_ = value;
1984         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int64Field;
1985       }
1986     }
1987 
1988     /// <summary>Field number for the "uint64_field" field.</summary>
1989     public const int Uint64FieldFieldNumber = 13;
1990     private static readonly pb::FieldCodec<ulong?> _oneof_uint64Field_codec = pb::FieldCodec.ForStructWrapper<ulong>(106);
1991     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1992     public ulong? Uint64Field {
1993       get { return oneofFieldCase_ == OneofFieldOneofCase.Uint64Field ? (ulong?) oneofField_ : (ulong?) null; }
1994       set {
1995         oneofField_ = value;
1996         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint64Field;
1997       }
1998     }
1999 
2000     /// <summary>Field number for the "int32_field" field.</summary>
2001     public const int Int32FieldFieldNumber = 14;
2002     private static readonly pb::FieldCodec<int?> _oneof_int32Field_codec = pb::FieldCodec.ForStructWrapper<int>(114);
2003     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2004     public int? Int32Field {
2005       get { return oneofFieldCase_ == OneofFieldOneofCase.Int32Field ? (int?) oneofField_ : (int?) null; }
2006       set {
2007         oneofField_ = value;
2008         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Int32Field;
2009       }
2010     }
2011 
2012     /// <summary>Field number for the "uint32_field" field.</summary>
2013     public const int Uint32FieldFieldNumber = 15;
2014     private static readonly pb::FieldCodec<uint?> _oneof_uint32Field_codec = pb::FieldCodec.ForStructWrapper<uint>(122);
2015     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2016     public uint? Uint32Field {
2017       get { return oneofFieldCase_ == OneofFieldOneofCase.Uint32Field ? (uint?) oneofField_ : (uint?) null; }
2018       set {
2019         oneofField_ = value;
2020         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.Uint32Field;
2021       }
2022     }
2023 
2024     /// <summary>Field number for the "bool_field" field.</summary>
2025     public const int BoolFieldFieldNumber = 16;
2026     private static readonly pb::FieldCodec<bool?> _oneof_boolField_codec = pb::FieldCodec.ForStructWrapper<bool>(130);
2027     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2028     public bool? BoolField {
2029       get { return oneofFieldCase_ == OneofFieldOneofCase.BoolField ? (bool?) oneofField_ : (bool?) null; }
2030       set {
2031         oneofField_ = value;
2032         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BoolField;
2033       }
2034     }
2035 
2036     /// <summary>Field number for the "string_field" field.</summary>
2037     public const int StringFieldFieldNumber = 17;
2038     private static readonly pb::FieldCodec<string> _oneof_stringField_codec = pb::FieldCodec.ForClassWrapper<string>(138);
2039     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2040     public string StringField {
2041       get { return oneofFieldCase_ == OneofFieldOneofCase.StringField ? (string) oneofField_ : (string) null; }
2042       set {
2043         oneofField_ = value;
2044         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.StringField;
2045       }
2046     }
2047 
2048     /// <summary>Field number for the "bytes_field" field.</summary>
2049     public const int BytesFieldFieldNumber = 18;
2050     private static readonly pb::FieldCodec<pb::ByteString> _oneof_bytesField_codec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
2051     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2052     public pb::ByteString BytesField {
2053       get { return oneofFieldCase_ == OneofFieldOneofCase.BytesField ? (pb::ByteString) oneofField_ : (pb::ByteString) null; }
2054       set {
2055         oneofField_ = value;
2056         oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldOneofCase.BytesField;
2057       }
2058     }
2059 
2060     private object oneofField_;
2061     /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
2062     public enum OneofFieldOneofCase {
2063       None = 0,
2064       AnyField = 1,
2065       ApiField = 2,
2066       DurationField = 3,
2067       EmptyField = 4,
2068       FieldMaskField = 5,
2069       SourceContextField = 6,
2070       StructField = 7,
2071       TimestampField = 8,
2072       TypeField = 9,
2073       DoubleField = 10,
2074       FloatField = 11,
2075       Int64Field = 12,
2076       Uint64Field = 13,
2077       Int32Field = 14,
2078       Uint32Field = 15,
2079       BoolField = 16,
2080       StringField = 17,
2081       BytesField = 18,
2082     }
2083     private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
2084     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2085     public OneofFieldOneofCase OneofFieldCase {
2086       get { return oneofFieldCase_; }
2087     }
2088 
2089     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ClearOneofField()2090     public void ClearOneofField() {
2091       oneofFieldCase_ = OneofFieldOneofCase.None;
2092       oneofField_ = null;
2093     }
2094 
2095     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2096     public override bool Equals(object other) {
2097       return Equals(other as OneofWellKnownTypes);
2098     }
2099 
2100     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(OneofWellKnownTypes other)2101     public bool Equals(OneofWellKnownTypes other) {
2102       if (ReferenceEquals(other, null)) {
2103         return false;
2104       }
2105       if (ReferenceEquals(other, this)) {
2106         return true;
2107       }
2108       if (!object.Equals(AnyField, other.AnyField)) return false;
2109       if (!object.Equals(ApiField, other.ApiField)) return false;
2110       if (!object.Equals(DurationField, other.DurationField)) return false;
2111       if (!object.Equals(EmptyField, other.EmptyField)) return false;
2112       if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
2113       if (!object.Equals(SourceContextField, other.SourceContextField)) return false;
2114       if (!object.Equals(StructField, other.StructField)) return false;
2115       if (!object.Equals(TimestampField, other.TimestampField)) return false;
2116       if (!object.Equals(TypeField, other.TypeField)) return false;
2117       if (!pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.Equals(DoubleField, other.DoubleField)) return false;
2118       if (!pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.Equals(FloatField, other.FloatField)) return false;
2119       if (Int64Field != other.Int64Field) return false;
2120       if (Uint64Field != other.Uint64Field) return false;
2121       if (Int32Field != other.Int32Field) return false;
2122       if (Uint32Field != other.Uint32Field) return false;
2123       if (BoolField != other.BoolField) return false;
2124       if (StringField != other.StringField) return false;
2125       if (BytesField != other.BytesField) return false;
2126       if (OneofFieldCase != other.OneofFieldCase) return false;
2127       return Equals(_unknownFields, other._unknownFields);
2128     }
2129 
2130     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()2131     public override int GetHashCode() {
2132       int hash = 1;
2133       if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) hash ^= AnyField.GetHashCode();
2134       if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) hash ^= ApiField.GetHashCode();
2135       if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) hash ^= DurationField.GetHashCode();
2136       if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) hash ^= EmptyField.GetHashCode();
2137       if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) hash ^= FieldMaskField.GetHashCode();
2138       if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) hash ^= SourceContextField.GetHashCode();
2139       if (oneofFieldCase_ == OneofFieldOneofCase.StructField) hash ^= StructField.GetHashCode();
2140       if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) hash ^= TimestampField.GetHashCode();
2141       if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) hash ^= TypeField.GetHashCode();
2142       if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableDoubleEqualityComparer.GetHashCode(DoubleField);
2143       if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) hash ^= pbc::ProtobufEqualityComparers.BitwiseNullableSingleEqualityComparer.GetHashCode(FloatField);
2144       if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) hash ^= Int64Field.GetHashCode();
2145       if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) hash ^= Uint64Field.GetHashCode();
2146       if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) hash ^= Int32Field.GetHashCode();
2147       if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) hash ^= Uint32Field.GetHashCode();
2148       if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) hash ^= BoolField.GetHashCode();
2149       if (oneofFieldCase_ == OneofFieldOneofCase.StringField) hash ^= StringField.GetHashCode();
2150       if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) hash ^= BytesField.GetHashCode();
2151       hash ^= (int) oneofFieldCase_;
2152       if (_unknownFields != null) {
2153         hash ^= _unknownFields.GetHashCode();
2154       }
2155       return hash;
2156     }
2157 
2158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()2159     public override string ToString() {
2160       return pb::JsonFormatter.ToDiagnosticString(this);
2161     }
2162 
2163     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)2164     public void WriteTo(pb::CodedOutputStream output) {
2165     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2166       output.WriteRawMessage(this);
2167     #else
2168       if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
2169         output.WriteRawTag(10);
2170         output.WriteMessage(AnyField);
2171       }
2172       if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
2173         output.WriteRawTag(18);
2174         output.WriteMessage(ApiField);
2175       }
2176       if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
2177         output.WriteRawTag(26);
2178         output.WriteMessage(DurationField);
2179       }
2180       if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
2181         output.WriteRawTag(34);
2182         output.WriteMessage(EmptyField);
2183       }
2184       if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
2185         output.WriteRawTag(42);
2186         output.WriteMessage(FieldMaskField);
2187       }
2188       if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
2189         output.WriteRawTag(50);
2190         output.WriteMessage(SourceContextField);
2191       }
2192       if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
2193         output.WriteRawTag(58);
2194         output.WriteMessage(StructField);
2195       }
2196       if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
2197         output.WriteRawTag(66);
2198         output.WriteMessage(TimestampField);
2199       }
2200       if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
2201         output.WriteRawTag(74);
2202         output.WriteMessage(TypeField);
2203       }
2204       if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
2205         _oneof_doubleField_codec.WriteTagAndValue(output, (double?) oneofField_);
2206       }
2207       if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
2208         _oneof_floatField_codec.WriteTagAndValue(output, (float?) oneofField_);
2209       }
2210       if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
2211         _oneof_int64Field_codec.WriteTagAndValue(output, (long?) oneofField_);
2212       }
2213       if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
2214         _oneof_uint64Field_codec.WriteTagAndValue(output, (ulong?) oneofField_);
2215       }
2216       if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
2217         _oneof_int32Field_codec.WriteTagAndValue(output, (int?) oneofField_);
2218       }
2219       if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
2220         _oneof_uint32Field_codec.WriteTagAndValue(output, (uint?) oneofField_);
2221       }
2222       if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
2223         _oneof_boolField_codec.WriteTagAndValue(output, (bool?) oneofField_);
2224       }
2225       if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
2226         _oneof_stringField_codec.WriteTagAndValue(output, (string) oneofField_);
2227       }
2228       if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
2229         _oneof_bytesField_codec.WriteTagAndValue(output, (pb::ByteString) oneofField_);
2230       }
2231       if (_unknownFields != null) {
2232         _unknownFields.WriteTo(output);
2233       }
2234     #endif
2235     }
2236 
2237     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2238     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)2239     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
2240       if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
2241         output.WriteRawTag(10);
2242         output.WriteMessage(AnyField);
2243       }
2244       if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
2245         output.WriteRawTag(18);
2246         output.WriteMessage(ApiField);
2247       }
2248       if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
2249         output.WriteRawTag(26);
2250         output.WriteMessage(DurationField);
2251       }
2252       if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
2253         output.WriteRawTag(34);
2254         output.WriteMessage(EmptyField);
2255       }
2256       if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
2257         output.WriteRawTag(42);
2258         output.WriteMessage(FieldMaskField);
2259       }
2260       if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
2261         output.WriteRawTag(50);
2262         output.WriteMessage(SourceContextField);
2263       }
2264       if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
2265         output.WriteRawTag(58);
2266         output.WriteMessage(StructField);
2267       }
2268       if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
2269         output.WriteRawTag(66);
2270         output.WriteMessage(TimestampField);
2271       }
2272       if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
2273         output.WriteRawTag(74);
2274         output.WriteMessage(TypeField);
2275       }
2276       if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
2277         _oneof_doubleField_codec.WriteTagAndValue(ref output, (double?) oneofField_);
2278       }
2279       if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
2280         _oneof_floatField_codec.WriteTagAndValue(ref output, (float?) oneofField_);
2281       }
2282       if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
2283         _oneof_int64Field_codec.WriteTagAndValue(ref output, (long?) oneofField_);
2284       }
2285       if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
2286         _oneof_uint64Field_codec.WriteTagAndValue(ref output, (ulong?) oneofField_);
2287       }
2288       if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
2289         _oneof_int32Field_codec.WriteTagAndValue(ref output, (int?) oneofField_);
2290       }
2291       if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
2292         _oneof_uint32Field_codec.WriteTagAndValue(ref output, (uint?) oneofField_);
2293       }
2294       if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
2295         _oneof_boolField_codec.WriteTagAndValue(ref output, (bool?) oneofField_);
2296       }
2297       if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
2298         _oneof_stringField_codec.WriteTagAndValue(ref output, (string) oneofField_);
2299       }
2300       if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
2301         _oneof_bytesField_codec.WriteTagAndValue(ref output, (pb::ByteString) oneofField_);
2302       }
2303       if (_unknownFields != null) {
2304         _unknownFields.WriteTo(ref output);
2305       }
2306     }
2307     #endif
2308 
2309     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()2310     public int CalculateSize() {
2311       int size = 0;
2312       if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
2313         size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
2314       }
2315       if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
2316         size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
2317       }
2318       if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
2319         size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
2320       }
2321       if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
2322         size += 1 + pb::CodedOutputStream.ComputeMessageSize(EmptyField);
2323       }
2324       if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
2325         size += 1 + pb::CodedOutputStream.ComputeMessageSize(FieldMaskField);
2326       }
2327       if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
2328         size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceContextField);
2329       }
2330       if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
2331         size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructField);
2332       }
2333       if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
2334         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimestampField);
2335       }
2336       if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
2337         size += 1 + pb::CodedOutputStream.ComputeMessageSize(TypeField);
2338       }
2339       if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) {
2340         size += _oneof_doubleField_codec.CalculateSizeWithTag(DoubleField);
2341       }
2342       if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) {
2343         size += _oneof_floatField_codec.CalculateSizeWithTag(FloatField);
2344       }
2345       if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) {
2346         size += _oneof_int64Field_codec.CalculateSizeWithTag(Int64Field);
2347       }
2348       if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) {
2349         size += _oneof_uint64Field_codec.CalculateSizeWithTag(Uint64Field);
2350       }
2351       if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) {
2352         size += _oneof_int32Field_codec.CalculateSizeWithTag(Int32Field);
2353       }
2354       if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) {
2355         size += _oneof_uint32Field_codec.CalculateSizeWithTag(Uint32Field);
2356       }
2357       if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) {
2358         size += _oneof_boolField_codec.CalculateSizeWithTag(BoolField);
2359       }
2360       if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
2361         size += _oneof_stringField_codec.CalculateSizeWithTag(StringField);
2362       }
2363       if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
2364         size += _oneof_bytesField_codec.CalculateSizeWithTag(BytesField);
2365       }
2366       if (_unknownFields != null) {
2367         size += _unknownFields.CalculateSize();
2368       }
2369       return size;
2370     }
2371 
2372     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(OneofWellKnownTypes other)2373     public void MergeFrom(OneofWellKnownTypes other) {
2374       if (other == null) {
2375         return;
2376       }
2377       switch (other.OneofFieldCase) {
2378         case OneofFieldOneofCase.AnyField:
2379           if (AnyField == null) {
2380             AnyField = new global::Google.Protobuf.WellKnownTypes.Any();
2381           }
2382           AnyField.MergeFrom(other.AnyField);
2383           break;
2384         case OneofFieldOneofCase.ApiField:
2385           if (ApiField == null) {
2386             ApiField = new global::Google.Protobuf.WellKnownTypes.Api();
2387           }
2388           ApiField.MergeFrom(other.ApiField);
2389           break;
2390         case OneofFieldOneofCase.DurationField:
2391           if (DurationField == null) {
2392             DurationField = new global::Google.Protobuf.WellKnownTypes.Duration();
2393           }
2394           DurationField.MergeFrom(other.DurationField);
2395           break;
2396         case OneofFieldOneofCase.EmptyField:
2397           if (EmptyField == null) {
2398             EmptyField = new global::Google.Protobuf.WellKnownTypes.Empty();
2399           }
2400           EmptyField.MergeFrom(other.EmptyField);
2401           break;
2402         case OneofFieldOneofCase.FieldMaskField:
2403           if (FieldMaskField == null) {
2404             FieldMaskField = new global::Google.Protobuf.WellKnownTypes.FieldMask();
2405           }
2406           FieldMaskField.MergeFrom(other.FieldMaskField);
2407           break;
2408         case OneofFieldOneofCase.SourceContextField:
2409           if (SourceContextField == null) {
2410             SourceContextField = new global::Google.Protobuf.WellKnownTypes.SourceContext();
2411           }
2412           SourceContextField.MergeFrom(other.SourceContextField);
2413           break;
2414         case OneofFieldOneofCase.StructField:
2415           if (StructField == null) {
2416             StructField = new global::Google.Protobuf.WellKnownTypes.Struct();
2417           }
2418           StructField.MergeFrom(other.StructField);
2419           break;
2420         case OneofFieldOneofCase.TimestampField:
2421           if (TimestampField == null) {
2422             TimestampField = new global::Google.Protobuf.WellKnownTypes.Timestamp();
2423           }
2424           TimestampField.MergeFrom(other.TimestampField);
2425           break;
2426         case OneofFieldOneofCase.TypeField:
2427           if (TypeField == null) {
2428             TypeField = new global::Google.Protobuf.WellKnownTypes.Type();
2429           }
2430           TypeField.MergeFrom(other.TypeField);
2431           break;
2432         case OneofFieldOneofCase.DoubleField:
2433           DoubleField = other.DoubleField;
2434           break;
2435         case OneofFieldOneofCase.FloatField:
2436           FloatField = other.FloatField;
2437           break;
2438         case OneofFieldOneofCase.Int64Field:
2439           Int64Field = other.Int64Field;
2440           break;
2441         case OneofFieldOneofCase.Uint64Field:
2442           Uint64Field = other.Uint64Field;
2443           break;
2444         case OneofFieldOneofCase.Int32Field:
2445           Int32Field = other.Int32Field;
2446           break;
2447         case OneofFieldOneofCase.Uint32Field:
2448           Uint32Field = other.Uint32Field;
2449           break;
2450         case OneofFieldOneofCase.BoolField:
2451           BoolField = other.BoolField;
2452           break;
2453         case OneofFieldOneofCase.StringField:
2454           StringField = other.StringField;
2455           break;
2456         case OneofFieldOneofCase.BytesField:
2457           BytesField = other.BytesField;
2458           break;
2459       }
2460 
2461       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
2462     }
2463 
2464     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)2465     public void MergeFrom(pb::CodedInputStream input) {
2466     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2467       input.ReadRawMessage(this);
2468     #else
2469       uint tag;
2470       while ((tag = input.ReadTag()) != 0) {
2471         switch(tag) {
2472           default:
2473             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
2474             break;
2475           case 10: {
2476             global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global::Google.Protobuf.WellKnownTypes.Any();
2477             if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
2478               subBuilder.MergeFrom(AnyField);
2479             }
2480             input.ReadMessage(subBuilder);
2481             AnyField = subBuilder;
2482             break;
2483           }
2484           case 18: {
2485             global::Google.Protobuf.WellKnownTypes.Api subBuilder = new global::Google.Protobuf.WellKnownTypes.Api();
2486             if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
2487               subBuilder.MergeFrom(ApiField);
2488             }
2489             input.ReadMessage(subBuilder);
2490             ApiField = subBuilder;
2491             break;
2492           }
2493           case 26: {
2494             global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
2495             if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
2496               subBuilder.MergeFrom(DurationField);
2497             }
2498             input.ReadMessage(subBuilder);
2499             DurationField = subBuilder;
2500             break;
2501           }
2502           case 34: {
2503             global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
2504             if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
2505               subBuilder.MergeFrom(EmptyField);
2506             }
2507             input.ReadMessage(subBuilder);
2508             EmptyField = subBuilder;
2509             break;
2510           }
2511           case 42: {
2512             global::Google.Protobuf.WellKnownTypes.FieldMask subBuilder = new global::Google.Protobuf.WellKnownTypes.FieldMask();
2513             if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
2514               subBuilder.MergeFrom(FieldMaskField);
2515             }
2516             input.ReadMessage(subBuilder);
2517             FieldMaskField = subBuilder;
2518             break;
2519           }
2520           case 50: {
2521             global::Google.Protobuf.WellKnownTypes.SourceContext subBuilder = new global::Google.Protobuf.WellKnownTypes.SourceContext();
2522             if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
2523               subBuilder.MergeFrom(SourceContextField);
2524             }
2525             input.ReadMessage(subBuilder);
2526             SourceContextField = subBuilder;
2527             break;
2528           }
2529           case 58: {
2530             global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
2531             if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
2532               subBuilder.MergeFrom(StructField);
2533             }
2534             input.ReadMessage(subBuilder);
2535             StructField = subBuilder;
2536             break;
2537           }
2538           case 66: {
2539             global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
2540             if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
2541               subBuilder.MergeFrom(TimestampField);
2542             }
2543             input.ReadMessage(subBuilder);
2544             TimestampField = subBuilder;
2545             break;
2546           }
2547           case 74: {
2548             global::Google.Protobuf.WellKnownTypes.Type subBuilder = new global::Google.Protobuf.WellKnownTypes.Type();
2549             if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
2550               subBuilder.MergeFrom(TypeField);
2551             }
2552             input.ReadMessage(subBuilder);
2553             TypeField = subBuilder;
2554             break;
2555           }
2556           case 82: {
2557             DoubleField = _oneof_doubleField_codec.Read(input);
2558             break;
2559           }
2560           case 90: {
2561             FloatField = _oneof_floatField_codec.Read(input);
2562             break;
2563           }
2564           case 98: {
2565             Int64Field = _oneof_int64Field_codec.Read(input);
2566             break;
2567           }
2568           case 106: {
2569             Uint64Field = _oneof_uint64Field_codec.Read(input);
2570             break;
2571           }
2572           case 114: {
2573             Int32Field = _oneof_int32Field_codec.Read(input);
2574             break;
2575           }
2576           case 122: {
2577             Uint32Field = _oneof_uint32Field_codec.Read(input);
2578             break;
2579           }
2580           case 130: {
2581             BoolField = _oneof_boolField_codec.Read(input);
2582             break;
2583           }
2584           case 138: {
2585             StringField = _oneof_stringField_codec.Read(input);
2586             break;
2587           }
2588           case 146: {
2589             BytesField = _oneof_bytesField_codec.Read(input);
2590             break;
2591           }
2592         }
2593       }
2594     #endif
2595     }
2596 
2597     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2598     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)2599     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
2600       uint tag;
2601       while ((tag = input.ReadTag()) != 0) {
2602         switch(tag) {
2603           default:
2604             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
2605             break;
2606           case 10: {
2607             global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global::Google.Protobuf.WellKnownTypes.Any();
2608             if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
2609               subBuilder.MergeFrom(AnyField);
2610             }
2611             input.ReadMessage(subBuilder);
2612             AnyField = subBuilder;
2613             break;
2614           }
2615           case 18: {
2616             global::Google.Protobuf.WellKnownTypes.Api subBuilder = new global::Google.Protobuf.WellKnownTypes.Api();
2617             if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
2618               subBuilder.MergeFrom(ApiField);
2619             }
2620             input.ReadMessage(subBuilder);
2621             ApiField = subBuilder;
2622             break;
2623           }
2624           case 26: {
2625             global::Google.Protobuf.WellKnownTypes.Duration subBuilder = new global::Google.Protobuf.WellKnownTypes.Duration();
2626             if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
2627               subBuilder.MergeFrom(DurationField);
2628             }
2629             input.ReadMessage(subBuilder);
2630             DurationField = subBuilder;
2631             break;
2632           }
2633           case 34: {
2634             global::Google.Protobuf.WellKnownTypes.Empty subBuilder = new global::Google.Protobuf.WellKnownTypes.Empty();
2635             if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) {
2636               subBuilder.MergeFrom(EmptyField);
2637             }
2638             input.ReadMessage(subBuilder);
2639             EmptyField = subBuilder;
2640             break;
2641           }
2642           case 42: {
2643             global::Google.Protobuf.WellKnownTypes.FieldMask subBuilder = new global::Google.Protobuf.WellKnownTypes.FieldMask();
2644             if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) {
2645               subBuilder.MergeFrom(FieldMaskField);
2646             }
2647             input.ReadMessage(subBuilder);
2648             FieldMaskField = subBuilder;
2649             break;
2650           }
2651           case 50: {
2652             global::Google.Protobuf.WellKnownTypes.SourceContext subBuilder = new global::Google.Protobuf.WellKnownTypes.SourceContext();
2653             if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) {
2654               subBuilder.MergeFrom(SourceContextField);
2655             }
2656             input.ReadMessage(subBuilder);
2657             SourceContextField = subBuilder;
2658             break;
2659           }
2660           case 58: {
2661             global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct();
2662             if (oneofFieldCase_ == OneofFieldOneofCase.StructField) {
2663               subBuilder.MergeFrom(StructField);
2664             }
2665             input.ReadMessage(subBuilder);
2666             StructField = subBuilder;
2667             break;
2668           }
2669           case 66: {
2670             global::Google.Protobuf.WellKnownTypes.Timestamp subBuilder = new global::Google.Protobuf.WellKnownTypes.Timestamp();
2671             if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) {
2672               subBuilder.MergeFrom(TimestampField);
2673             }
2674             input.ReadMessage(subBuilder);
2675             TimestampField = subBuilder;
2676             break;
2677           }
2678           case 74: {
2679             global::Google.Protobuf.WellKnownTypes.Type subBuilder = new global::Google.Protobuf.WellKnownTypes.Type();
2680             if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) {
2681               subBuilder.MergeFrom(TypeField);
2682             }
2683             input.ReadMessage(subBuilder);
2684             TypeField = subBuilder;
2685             break;
2686           }
2687           case 82: {
2688             DoubleField = _oneof_doubleField_codec.Read(ref input);
2689             break;
2690           }
2691           case 90: {
2692             FloatField = _oneof_floatField_codec.Read(ref input);
2693             break;
2694           }
2695           case 98: {
2696             Int64Field = _oneof_int64Field_codec.Read(ref input);
2697             break;
2698           }
2699           case 106: {
2700             Uint64Field = _oneof_uint64Field_codec.Read(ref input);
2701             break;
2702           }
2703           case 114: {
2704             Int32Field = _oneof_int32Field_codec.Read(ref input);
2705             break;
2706           }
2707           case 122: {
2708             Uint32Field = _oneof_uint32Field_codec.Read(ref input);
2709             break;
2710           }
2711           case 130: {
2712             BoolField = _oneof_boolField_codec.Read(ref input);
2713             break;
2714           }
2715           case 138: {
2716             StringField = _oneof_stringField_codec.Read(ref input);
2717             break;
2718           }
2719           case 146: {
2720             BytesField = _oneof_bytesField_codec.Read(ref input);
2721             break;
2722           }
2723         }
2724       }
2725     }
2726     #endif
2727 
2728   }
2729 
2730   /// <summary>
2731   /// A map field for each well-known type. We only
2732   /// need to worry about the value part of the map being the
2733   /// well-known types, as messages can't be map keys.
2734   /// </summary>
2735   public sealed partial class MapWellKnownTypes : pb::IMessage<MapWellKnownTypes>
2736   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
2737       , pb::IBufferMessage
2738   #endif
2739   {
2740     private static readonly pb::MessageParser<MapWellKnownTypes> _parser = new pb::MessageParser<MapWellKnownTypes>(() => new MapWellKnownTypes());
2741     private pb::UnknownFieldSet _unknownFields;
2742     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2743     public static pb::MessageParser<MapWellKnownTypes> Parser { get { return _parser; } }
2744 
2745     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2746     public static pbr::MessageDescriptor Descriptor {
2747       get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesReflection.Descriptor.MessageTypes[3]; }
2748     }
2749 
2750     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2751     pbr::MessageDescriptor pb::IMessage.Descriptor {
2752       get { return Descriptor; }
2753     }
2754 
2755     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MapWellKnownTypes()2756     public MapWellKnownTypes() {
2757       OnConstruction();
2758     }
2759 
OnConstruction()2760     partial void OnConstruction();
2761 
2762     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MapWellKnownTypes(MapWellKnownTypes other)2763     public MapWellKnownTypes(MapWellKnownTypes other) : this() {
2764       anyField_ = other.anyField_.Clone();
2765       apiField_ = other.apiField_.Clone();
2766       durationField_ = other.durationField_.Clone();
2767       emptyField_ = other.emptyField_.Clone();
2768       fieldMaskField_ = other.fieldMaskField_.Clone();
2769       sourceContextField_ = other.sourceContextField_.Clone();
2770       structField_ = other.structField_.Clone();
2771       timestampField_ = other.timestampField_.Clone();
2772       typeField_ = other.typeField_.Clone();
2773       doubleField_ = other.doubleField_.Clone();
2774       floatField_ = other.floatField_.Clone();
2775       int64Field_ = other.int64Field_.Clone();
2776       uint64Field_ = other.uint64Field_.Clone();
2777       int32Field_ = other.int32Field_.Clone();
2778       uint32Field_ = other.uint32Field_.Clone();
2779       boolField_ = other.boolField_.Clone();
2780       stringField_ = other.stringField_.Clone();
2781       bytesField_ = other.bytesField_.Clone();
2782       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
2783     }
2784 
2785     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()2786     public MapWellKnownTypes Clone() {
2787       return new MapWellKnownTypes(this);
2788     }
2789 
2790     /// <summary>Field number for the "any_field" field.</summary>
2791     public const int AnyFieldFieldNumber = 1;
2792     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec _map_anyField_codec
2793         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Any.Parser), 10);
2794     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> anyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>();
2795     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2796     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> AnyField {
2797       get { return anyField_; }
2798     }
2799 
2800     /// <summary>Field number for the "api_field" field.</summary>
2801     public const int ApiFieldFieldNumber = 2;
2802     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec _map_apiField_codec
2803         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Api.Parser), 18);
2804     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> apiField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>();
2805     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2806     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> ApiField {
2807       get { return apiField_; }
2808     }
2809 
2810     /// <summary>Field number for the "duration_field" field.</summary>
2811     public const int DurationFieldFieldNumber = 3;
2812     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec _map_durationField_codec
2813         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Duration.Parser), 26);
2814     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> durationField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration>();
2815     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2816     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> DurationField {
2817       get { return durationField_; }
2818     }
2819 
2820     /// <summary>Field number for the "empty_field" field.</summary>
2821     public const int EmptyFieldFieldNumber = 4;
2822     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec _map_emptyField_codec
2823         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Empty.Parser), 34);
2824     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> emptyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>();
2825     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2826     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> EmptyField {
2827       get { return emptyField_; }
2828     }
2829 
2830     /// <summary>Field number for the "field_mask_field" field.</summary>
2831     public const int FieldMaskFieldFieldNumber = 5;
2832     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec _map_fieldMaskField_codec
2833         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.FieldMask.Parser), 42);
2834     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> fieldMaskField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask>();
2835     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2836     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
2837       get { return fieldMaskField_; }
2838     }
2839 
2840     /// <summary>Field number for the "source_context_field" field.</summary>
2841     public const int SourceContextFieldFieldNumber = 6;
2842     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec _map_sourceContextField_codec
2843         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.SourceContext.Parser), 50);
2844     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> sourceContextField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext>();
2845     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2846     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceContext> SourceContextField {
2847       get { return sourceContextField_; }
2848     }
2849 
2850     /// <summary>Field number for the "struct_field" field.</summary>
2851     public const int StructFieldFieldNumber = 7;
2852     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec _map_structField_codec
2853         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Struct.Parser), 58);
2854     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> structField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>();
2855     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2856     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> StructField {
2857       get { return structField_; }
2858     }
2859 
2860     /// <summary>Field number for the "timestamp_field" field.</summary>
2861     public const int TimestampFieldFieldNumber = 8;
2862     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec _map_timestampField_codec
2863         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Timestamp.Parser), 66);
2864     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> timestampField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp>();
2865     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2866     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
2867       get { return timestampField_; }
2868     }
2869 
2870     /// <summary>Field number for the "type_field" field.</summary>
2871     public const int TypeFieldFieldNumber = 9;
2872     private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec _map_typeField_codec
2873         = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Type.Parser), 74);
2874     private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> typeField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>();
2875     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2876     public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> TypeField {
2877       get { return typeField_; }
2878     }
2879 
2880     /// <summary>Field number for the "double_field" field.</summary>
2881     public const int DoubleFieldFieldNumber = 10;
2882     private static readonly pbc::MapField<int, double?>.Codec _map_doubleField_codec
2883         = new pbc::MapField<int, double?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<double>(18), 82);
2884     private readonly pbc::MapField<int, double?> doubleField_ = new pbc::MapField<int, double?>();
2885     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2886     public pbc::MapField<int, double?> DoubleField {
2887       get { return doubleField_; }
2888     }
2889 
2890     /// <summary>Field number for the "float_field" field.</summary>
2891     public const int FloatFieldFieldNumber = 11;
2892     private static readonly pbc::MapField<int, float?>.Codec _map_floatField_codec
2893         = new pbc::MapField<int, float?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<float>(18), 90);
2894     private readonly pbc::MapField<int, float?> floatField_ = new pbc::MapField<int, float?>();
2895     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2896     public pbc::MapField<int, float?> FloatField {
2897       get { return floatField_; }
2898     }
2899 
2900     /// <summary>Field number for the "int64_field" field.</summary>
2901     public const int Int64FieldFieldNumber = 12;
2902     private static readonly pbc::MapField<int, long?>.Codec _map_int64Field_codec
2903         = new pbc::MapField<int, long?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<long>(18), 98);
2904     private readonly pbc::MapField<int, long?> int64Field_ = new pbc::MapField<int, long?>();
2905     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2906     public pbc::MapField<int, long?> Int64Field {
2907       get { return int64Field_; }
2908     }
2909 
2910     /// <summary>Field number for the "uint64_field" field.</summary>
2911     public const int Uint64FieldFieldNumber = 13;
2912     private static readonly pbc::MapField<int, ulong?>.Codec _map_uint64Field_codec
2913         = new pbc::MapField<int, ulong?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<ulong>(18), 106);
2914     private readonly pbc::MapField<int, ulong?> uint64Field_ = new pbc::MapField<int, ulong?>();
2915     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2916     public pbc::MapField<int, ulong?> Uint64Field {
2917       get { return uint64Field_; }
2918     }
2919 
2920     /// <summary>Field number for the "int32_field" field.</summary>
2921     public const int Int32FieldFieldNumber = 14;
2922     private static readonly pbc::MapField<int, int?>.Codec _map_int32Field_codec
2923         = new pbc::MapField<int, int?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<int>(18), 114);
2924     private readonly pbc::MapField<int, int?> int32Field_ = new pbc::MapField<int, int?>();
2925     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2926     public pbc::MapField<int, int?> Int32Field {
2927       get { return int32Field_; }
2928     }
2929 
2930     /// <summary>Field number for the "uint32_field" field.</summary>
2931     public const int Uint32FieldFieldNumber = 15;
2932     private static readonly pbc::MapField<int, uint?>.Codec _map_uint32Field_codec
2933         = new pbc::MapField<int, uint?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<uint>(18), 122);
2934     private readonly pbc::MapField<int, uint?> uint32Field_ = new pbc::MapField<int, uint?>();
2935     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2936     public pbc::MapField<int, uint?> Uint32Field {
2937       get { return uint32Field_; }
2938     }
2939 
2940     /// <summary>Field number for the "bool_field" field.</summary>
2941     public const int BoolFieldFieldNumber = 16;
2942     private static readonly pbc::MapField<int, bool?>.Codec _map_boolField_codec
2943         = new pbc::MapField<int, bool?>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForStructWrapper<bool>(18), 130);
2944     private readonly pbc::MapField<int, bool?> boolField_ = new pbc::MapField<int, bool?>();
2945     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2946     public pbc::MapField<int, bool?> BoolField {
2947       get { return boolField_; }
2948     }
2949 
2950     /// <summary>Field number for the "string_field" field.</summary>
2951     public const int StringFieldFieldNumber = 17;
2952     private static readonly pbc::MapField<int, string>.Codec _map_stringField_codec
2953         = new pbc::MapField<int, string>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForClassWrapper<string>(18), 138);
2954     private readonly pbc::MapField<int, string> stringField_ = new pbc::MapField<int, string>();
2955     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2956     public pbc::MapField<int, string> StringField {
2957       get { return stringField_; }
2958     }
2959 
2960     /// <summary>Field number for the "bytes_field" field.</summary>
2961     public const int BytesFieldFieldNumber = 18;
2962     private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_bytesField_codec
2963         = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8, 0), pb::FieldCodec.ForClassWrapper<pb::ByteString>(18), 146);
2964     private readonly pbc::MapField<int, pb::ByteString> bytesField_ = new pbc::MapField<int, pb::ByteString>();
2965     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2966     public pbc::MapField<int, pb::ByteString> BytesField {
2967       get { return bytesField_; }
2968     }
2969 
2970     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)2971     public override bool Equals(object other) {
2972       return Equals(other as MapWellKnownTypes);
2973     }
2974 
2975     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(MapWellKnownTypes other)2976     public bool Equals(MapWellKnownTypes other) {
2977       if (ReferenceEquals(other, null)) {
2978         return false;
2979       }
2980       if (ReferenceEquals(other, this)) {
2981         return true;
2982       }
2983       if (!AnyField.Equals(other.AnyField)) return false;
2984       if (!ApiField.Equals(other.ApiField)) return false;
2985       if (!DurationField.Equals(other.DurationField)) return false;
2986       if (!EmptyField.Equals(other.EmptyField)) return false;
2987       if (!FieldMaskField.Equals(other.FieldMaskField)) return false;
2988       if (!SourceContextField.Equals(other.SourceContextField)) return false;
2989       if (!StructField.Equals(other.StructField)) return false;
2990       if (!TimestampField.Equals(other.TimestampField)) return false;
2991       if (!TypeField.Equals(other.TypeField)) return false;
2992       if (!DoubleField.Equals(other.DoubleField)) return false;
2993       if (!FloatField.Equals(other.FloatField)) return false;
2994       if (!Int64Field.Equals(other.Int64Field)) return false;
2995       if (!Uint64Field.Equals(other.Uint64Field)) return false;
2996       if (!Int32Field.Equals(other.Int32Field)) return false;
2997       if (!Uint32Field.Equals(other.Uint32Field)) return false;
2998       if (!BoolField.Equals(other.BoolField)) return false;
2999       if (!StringField.Equals(other.StringField)) return false;
3000       if (!BytesField.Equals(other.BytesField)) return false;
3001       return Equals(_unknownFields, other._unknownFields);
3002     }
3003 
3004     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()3005     public override int GetHashCode() {
3006       int hash = 1;
3007       hash ^= AnyField.GetHashCode();
3008       hash ^= ApiField.GetHashCode();
3009       hash ^= DurationField.GetHashCode();
3010       hash ^= EmptyField.GetHashCode();
3011       hash ^= FieldMaskField.GetHashCode();
3012       hash ^= SourceContextField.GetHashCode();
3013       hash ^= StructField.GetHashCode();
3014       hash ^= TimestampField.GetHashCode();
3015       hash ^= TypeField.GetHashCode();
3016       hash ^= DoubleField.GetHashCode();
3017       hash ^= FloatField.GetHashCode();
3018       hash ^= Int64Field.GetHashCode();
3019       hash ^= Uint64Field.GetHashCode();
3020       hash ^= Int32Field.GetHashCode();
3021       hash ^= Uint32Field.GetHashCode();
3022       hash ^= BoolField.GetHashCode();
3023       hash ^= StringField.GetHashCode();
3024       hash ^= BytesField.GetHashCode();
3025       if (_unknownFields != null) {
3026         hash ^= _unknownFields.GetHashCode();
3027       }
3028       return hash;
3029     }
3030 
3031     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()3032     public override string ToString() {
3033       return pb::JsonFormatter.ToDiagnosticString(this);
3034     }
3035 
3036     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)3037     public void WriteTo(pb::CodedOutputStream output) {
3038     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3039       output.WriteRawMessage(this);
3040     #else
3041       anyField_.WriteTo(output, _map_anyField_codec);
3042       apiField_.WriteTo(output, _map_apiField_codec);
3043       durationField_.WriteTo(output, _map_durationField_codec);
3044       emptyField_.WriteTo(output, _map_emptyField_codec);
3045       fieldMaskField_.WriteTo(output, _map_fieldMaskField_codec);
3046       sourceContextField_.WriteTo(output, _map_sourceContextField_codec);
3047       structField_.WriteTo(output, _map_structField_codec);
3048       timestampField_.WriteTo(output, _map_timestampField_codec);
3049       typeField_.WriteTo(output, _map_typeField_codec);
3050       doubleField_.WriteTo(output, _map_doubleField_codec);
3051       floatField_.WriteTo(output, _map_floatField_codec);
3052       int64Field_.WriteTo(output, _map_int64Field_codec);
3053       uint64Field_.WriteTo(output, _map_uint64Field_codec);
3054       int32Field_.WriteTo(output, _map_int32Field_codec);
3055       uint32Field_.WriteTo(output, _map_uint32Field_codec);
3056       boolField_.WriteTo(output, _map_boolField_codec);
3057       stringField_.WriteTo(output, _map_stringField_codec);
3058       bytesField_.WriteTo(output, _map_bytesField_codec);
3059       if (_unknownFields != null) {
3060         _unknownFields.WriteTo(output);
3061       }
3062     #endif
3063     }
3064 
3065     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3066     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)3067     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
3068       anyField_.WriteTo(ref output, _map_anyField_codec);
3069       apiField_.WriteTo(ref output, _map_apiField_codec);
3070       durationField_.WriteTo(ref output, _map_durationField_codec);
3071       emptyField_.WriteTo(ref output, _map_emptyField_codec);
3072       fieldMaskField_.WriteTo(ref output, _map_fieldMaskField_codec);
3073       sourceContextField_.WriteTo(ref output, _map_sourceContextField_codec);
3074       structField_.WriteTo(ref output, _map_structField_codec);
3075       timestampField_.WriteTo(ref output, _map_timestampField_codec);
3076       typeField_.WriteTo(ref output, _map_typeField_codec);
3077       doubleField_.WriteTo(ref output, _map_doubleField_codec);
3078       floatField_.WriteTo(ref output, _map_floatField_codec);
3079       int64Field_.WriteTo(ref output, _map_int64Field_codec);
3080       uint64Field_.WriteTo(ref output, _map_uint64Field_codec);
3081       int32Field_.WriteTo(ref output, _map_int32Field_codec);
3082       uint32Field_.WriteTo(ref output, _map_uint32Field_codec);
3083       boolField_.WriteTo(ref output, _map_boolField_codec);
3084       stringField_.WriteTo(ref output, _map_stringField_codec);
3085       bytesField_.WriteTo(ref output, _map_bytesField_codec);
3086       if (_unknownFields != null) {
3087         _unknownFields.WriteTo(ref output);
3088       }
3089     }
3090     #endif
3091 
3092     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()3093     public int CalculateSize() {
3094       int size = 0;
3095       size += anyField_.CalculateSize(_map_anyField_codec);
3096       size += apiField_.CalculateSize(_map_apiField_codec);
3097       size += durationField_.CalculateSize(_map_durationField_codec);
3098       size += emptyField_.CalculateSize(_map_emptyField_codec);
3099       size += fieldMaskField_.CalculateSize(_map_fieldMaskField_codec);
3100       size += sourceContextField_.CalculateSize(_map_sourceContextField_codec);
3101       size += structField_.CalculateSize(_map_structField_codec);
3102       size += timestampField_.CalculateSize(_map_timestampField_codec);
3103       size += typeField_.CalculateSize(_map_typeField_codec);
3104       size += doubleField_.CalculateSize(_map_doubleField_codec);
3105       size += floatField_.CalculateSize(_map_floatField_codec);
3106       size += int64Field_.CalculateSize(_map_int64Field_codec);
3107       size += uint64Field_.CalculateSize(_map_uint64Field_codec);
3108       size += int32Field_.CalculateSize(_map_int32Field_codec);
3109       size += uint32Field_.CalculateSize(_map_uint32Field_codec);
3110       size += boolField_.CalculateSize(_map_boolField_codec);
3111       size += stringField_.CalculateSize(_map_stringField_codec);
3112       size += bytesField_.CalculateSize(_map_bytesField_codec);
3113       if (_unknownFields != null) {
3114         size += _unknownFields.CalculateSize();
3115       }
3116       return size;
3117     }
3118 
3119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(MapWellKnownTypes other)3120     public void MergeFrom(MapWellKnownTypes other) {
3121       if (other == null) {
3122         return;
3123       }
3124       anyField_.Add(other.anyField_);
3125       apiField_.Add(other.apiField_);
3126       durationField_.Add(other.durationField_);
3127       emptyField_.Add(other.emptyField_);
3128       fieldMaskField_.Add(other.fieldMaskField_);
3129       sourceContextField_.Add(other.sourceContextField_);
3130       structField_.Add(other.structField_);
3131       timestampField_.Add(other.timestampField_);
3132       typeField_.Add(other.typeField_);
3133       doubleField_.Add(other.doubleField_);
3134       floatField_.Add(other.floatField_);
3135       int64Field_.Add(other.int64Field_);
3136       uint64Field_.Add(other.uint64Field_);
3137       int32Field_.Add(other.int32Field_);
3138       uint32Field_.Add(other.uint32Field_);
3139       boolField_.Add(other.boolField_);
3140       stringField_.Add(other.stringField_);
3141       bytesField_.Add(other.bytesField_);
3142       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
3143     }
3144 
3145     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)3146     public void MergeFrom(pb::CodedInputStream input) {
3147     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3148       input.ReadRawMessage(this);
3149     #else
3150       uint tag;
3151       while ((tag = input.ReadTag()) != 0) {
3152         switch(tag) {
3153           default:
3154             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
3155             break;
3156           case 10: {
3157             anyField_.AddEntriesFrom(input, _map_anyField_codec);
3158             break;
3159           }
3160           case 18: {
3161             apiField_.AddEntriesFrom(input, _map_apiField_codec);
3162             break;
3163           }
3164           case 26: {
3165             durationField_.AddEntriesFrom(input, _map_durationField_codec);
3166             break;
3167           }
3168           case 34: {
3169             emptyField_.AddEntriesFrom(input, _map_emptyField_codec);
3170             break;
3171           }
3172           case 42: {
3173             fieldMaskField_.AddEntriesFrom(input, _map_fieldMaskField_codec);
3174             break;
3175           }
3176           case 50: {
3177             sourceContextField_.AddEntriesFrom(input, _map_sourceContextField_codec);
3178             break;
3179           }
3180           case 58: {
3181             structField_.AddEntriesFrom(input, _map_structField_codec);
3182             break;
3183           }
3184           case 66: {
3185             timestampField_.AddEntriesFrom(input, _map_timestampField_codec);
3186             break;
3187           }
3188           case 74: {
3189             typeField_.AddEntriesFrom(input, _map_typeField_codec);
3190             break;
3191           }
3192           case 82: {
3193             doubleField_.AddEntriesFrom(input, _map_doubleField_codec);
3194             break;
3195           }
3196           case 90: {
3197             floatField_.AddEntriesFrom(input, _map_floatField_codec);
3198             break;
3199           }
3200           case 98: {
3201             int64Field_.AddEntriesFrom(input, _map_int64Field_codec);
3202             break;
3203           }
3204           case 106: {
3205             uint64Field_.AddEntriesFrom(input, _map_uint64Field_codec);
3206             break;
3207           }
3208           case 114: {
3209             int32Field_.AddEntriesFrom(input, _map_int32Field_codec);
3210             break;
3211           }
3212           case 122: {
3213             uint32Field_.AddEntriesFrom(input, _map_uint32Field_codec);
3214             break;
3215           }
3216           case 130: {
3217             boolField_.AddEntriesFrom(input, _map_boolField_codec);
3218             break;
3219           }
3220           case 138: {
3221             stringField_.AddEntriesFrom(input, _map_stringField_codec);
3222             break;
3223           }
3224           case 146: {
3225             bytesField_.AddEntriesFrom(input, _map_bytesField_codec);
3226             break;
3227           }
3228         }
3229       }
3230     #endif
3231     }
3232 
3233     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
3234     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)3235     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
3236       uint tag;
3237       while ((tag = input.ReadTag()) != 0) {
3238         switch(tag) {
3239           default:
3240             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
3241             break;
3242           case 10: {
3243             anyField_.AddEntriesFrom(ref input, _map_anyField_codec);
3244             break;
3245           }
3246           case 18: {
3247             apiField_.AddEntriesFrom(ref input, _map_apiField_codec);
3248             break;
3249           }
3250           case 26: {
3251             durationField_.AddEntriesFrom(ref input, _map_durationField_codec);
3252             break;
3253           }
3254           case 34: {
3255             emptyField_.AddEntriesFrom(ref input, _map_emptyField_codec);
3256             break;
3257           }
3258           case 42: {
3259             fieldMaskField_.AddEntriesFrom(ref input, _map_fieldMaskField_codec);
3260             break;
3261           }
3262           case 50: {
3263             sourceContextField_.AddEntriesFrom(ref input, _map_sourceContextField_codec);
3264             break;
3265           }
3266           case 58: {
3267             structField_.AddEntriesFrom(ref input, _map_structField_codec);
3268             break;
3269           }
3270           case 66: {
3271             timestampField_.AddEntriesFrom(ref input, _map_timestampField_codec);
3272             break;
3273           }
3274           case 74: {
3275             typeField_.AddEntriesFrom(ref input, _map_typeField_codec);
3276             break;
3277           }
3278           case 82: {
3279             doubleField_.AddEntriesFrom(ref input, _map_doubleField_codec);
3280             break;
3281           }
3282           case 90: {
3283             floatField_.AddEntriesFrom(ref input, _map_floatField_codec);
3284             break;
3285           }
3286           case 98: {
3287             int64Field_.AddEntriesFrom(ref input, _map_int64Field_codec);
3288             break;
3289           }
3290           case 106: {
3291             uint64Field_.AddEntriesFrom(ref input, _map_uint64Field_codec);
3292             break;
3293           }
3294           case 114: {
3295             int32Field_.AddEntriesFrom(ref input, _map_int32Field_codec);
3296             break;
3297           }
3298           case 122: {
3299             uint32Field_.AddEntriesFrom(ref input, _map_uint32Field_codec);
3300             break;
3301           }
3302           case 130: {
3303             boolField_.AddEntriesFrom(ref input, _map_boolField_codec);
3304             break;
3305           }
3306           case 138: {
3307             stringField_.AddEntriesFrom(ref input, _map_stringField_codec);
3308             break;
3309           }
3310           case 146: {
3311             bytesField_.AddEntriesFrom(ref input, _map_bytesField_codec);
3312             break;
3313           }
3314         }
3315       }
3316     }
3317     #endif
3318 
3319   }
3320 
3321   #endregion
3322 
3323 }
3324 
3325 #endregion Designer generated code
3326