Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf.Test/TestProtos/UnittestWellKnownTypes.cs

Issue 2495533002: third_party/protobuf: Update to HEAD (83d681ee2c) (Closed)
Patch Set: Make chrome settings proto generated file a component Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Generated by the protocol buffer compiler. DO NOT EDIT! 1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/unittest_well_known_types.proto 2 // source: google/protobuf/unittest_well_known_types.proto
3 #pragma warning disable 1591, 0612, 3021 3 #pragma warning disable 1591, 0612, 3021
4 #region Designer generated code 4 #region Designer generated code
5 5
6 using pb = global::Google.Protobuf; 6 using pb = global::Google.Protobuf;
7 using pbc = global::Google.Protobuf.Collections; 7 using pbc = global::Google.Protobuf.Collections;
8 using pbr = global::Google.Protobuf.Reflection; 8 using pbr = global::Google.Protobuf.Reflection;
9 using scg = global::System.Collections.Generic; 9 using scg = global::System.Collections.Generic;
10 namespace Google.Protobuf.TestProtos { 10 namespace Google.Protobuf.TestProtos {
11 11
12 /// <summary>Holder for reflection information generated from google/protobuf/ unittest_well_known_types.proto</summary> 12 /// <summary>Holder for reflection information generated from google/protobuf/ unittest_well_known_types.proto</summary>
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14 public static partial class UnittestWellKnownTypesReflection { 13 public static partial class UnittestWellKnownTypesReflection {
15 14
16 #region Descriptor 15 #region Descriptor
17 /// <summary>File descriptor for google/protobuf/unittest_well_known_types.p roto</summary> 16 /// <summary>File descriptor for google/protobuf/unittest_well_known_types.p roto</summary>
18 public static pbr::FileDescriptor Descriptor { 17 public static pbr::FileDescriptor Descriptor {
19 get { return descriptor; } 18 get { return descriptor; }
20 } 19 }
21 private static pbr::FileDescriptor descriptor; 20 private static pbr::FileDescriptor descriptor;
22 21
23 static UnittestWellKnownTypesReflection() { 22 static UnittestWellKnownTypesReflection() {
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.RepeatedWellKnownTypes), global::Google.Protobuf.TestProtos.RepeatedWellKnow nTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "Fi eldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField ", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint 32Field", "BoolField", "StringField", "BytesField" }, null, null, null), 166 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.RepeatedWellKnownTypes), global::Google.Protobuf.TestProtos.RepeatedWellKnow nTypes.Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "Fi eldMaskField", "SourceContextField", "StructField", "TimestampField", "TypeField ", "DoubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint 32Field", "BoolField", "StringField", "BytesField" }, null, null, null),
168 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.OneofWellKnownTypes), global::Google.Protobuf.TestProtos.OneofWellKnownTypes .Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMas kField", "SourceContextField", "StructField", "TimestampField", "TypeField", "Do ubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Fiel d", "BoolField", "StringField", "BytesField" }, new[]{ "OneofField" }, null, nul l), 167 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.OneofWellKnownTypes), global::Google.Protobuf.TestProtos.OneofWellKnownTypes .Parser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMas kField", "SourceContextField", "StructField", "TimestampField", "TypeField", "Do ubleField", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Fiel d", "BoolField", "StringField", "BytesField" }, new[]{ "OneofField" }, null, nul l),
169 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.MapWellKnownTypes), global::Google.Protobuf.TestProtos.MapWellKnownTypes.Par ser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskFie ld", "SourceContextField", "StructField", "TimestampField", "TypeField", "Double Field", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, new pbr::GeneratedClrTyp eInfo[] { null, null, null, null, null, null, null, null, null, null, null, null , null, null, null, null, null, null, }) 168 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestPro tos.MapWellKnownTypes), global::Google.Protobuf.TestProtos.MapWellKnownTypes.Par ser, new[]{ "AnyField", "ApiField", "DurationField", "EmptyField", "FieldMaskFie ld", "SourceContextField", "StructField", "TimestampField", "TypeField", "Double Field", "FloatField", "Int64Field", "Uint64Field", "Int32Field", "Uint32Field", "BoolField", "StringField", "BytesField" }, null, null, new pbr::GeneratedClrTyp eInfo[] { null, null, null, null, null, null, null, null, null, null, null, null , null, null, null, null, null, null, })
170 })); 169 }));
171 } 170 }
172 #endregion 171 #endregion
173 172
174 } 173 }
175 #region Messages 174 #region Messages
176 /// <summary> 175 /// <summary>
177 /// Test that we can include all well-known types. 176 /// Test that we can include all well-known types.
178 /// Each wrapper type is included separately, as languages 177 /// Each wrapper type is included separately, as languages
179 /// map handle different wrappers in different ways. 178 /// map handle different wrappers in different ways.
180 /// </summary> 179 /// </summary>
181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
182 public sealed partial class TestWellKnownTypes : pb::IMessage<TestWellKnownTyp es> { 180 public sealed partial class TestWellKnownTypes : pb::IMessage<TestWellKnownTyp es> {
183 private static readonly pb::MessageParser<TestWellKnownTypes> _parser = new pb::MessageParser<TestWellKnownTypes>(() => new TestWellKnownTypes()); 181 private static readonly pb::MessageParser<TestWellKnownTypes> _parser = new pb::MessageParser<TestWellKnownTypes>(() => new TestWellKnownTypes());
182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
184 public static pb::MessageParser<TestWellKnownTypes> Parser { get { return _p arser; } } 183 public static pb::MessageParser<TestWellKnownTypes> Parser { get { return _p arser; } }
185 184
185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186 public static pbr::MessageDescriptor Descriptor { 186 public static pbr::MessageDescriptor Descriptor {
187 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[0]; } 187 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[0]; }
188 } 188 }
189 189
190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
190 pbr::MessageDescriptor pb::IMessage.Descriptor { 191 pbr::MessageDescriptor pb::IMessage.Descriptor {
191 get { return Descriptor; } 192 get { return Descriptor; }
192 } 193 }
193 194
195 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
194 public TestWellKnownTypes() { 196 public TestWellKnownTypes() {
195 OnConstruction(); 197 OnConstruction();
196 } 198 }
197 199
198 partial void OnConstruction(); 200 partial void OnConstruction();
199 201
202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
200 public TestWellKnownTypes(TestWellKnownTypes other) : this() { 203 public TestWellKnownTypes(TestWellKnownTypes other) : this() {
201 AnyField = other.anyField_ != null ? other.AnyField.Clone() : null; 204 AnyField = other.anyField_ != null ? other.AnyField.Clone() : null;
202 ApiField = other.apiField_ != null ? other.ApiField.Clone() : null; 205 ApiField = other.apiField_ != null ? other.ApiField.Clone() : null;
203 DurationField = other.durationField_ != null ? other.DurationField.Clone() : null; 206 DurationField = other.durationField_ != null ? other.DurationField.Clone() : null;
204 EmptyField = other.emptyField_ != null ? other.EmptyField.Clone() : null; 207 EmptyField = other.emptyField_ != null ? other.EmptyField.Clone() : null;
205 FieldMaskField = other.fieldMaskField_ != null ? other.FieldMaskField.Clon e() : null; 208 FieldMaskField = other.fieldMaskField_ != null ? other.FieldMaskField.Clon e() : null;
206 SourceContextField = other.sourceContextField_ != null ? other.SourceConte xtField.Clone() : null; 209 SourceContextField = other.sourceContextField_ != null ? other.SourceConte xtField.Clone() : null;
207 StructField = other.structField_ != null ? other.StructField.Clone() : nul l; 210 StructField = other.structField_ != null ? other.StructField.Clone() : nul l;
208 TimestampField = other.timestampField_ != null ? other.TimestampField.Clon e() : null; 211 TimestampField = other.timestampField_ != null ? other.TimestampField.Clon e() : null;
209 TypeField = other.typeField_ != null ? other.TypeField.Clone() : null; 212 TypeField = other.typeField_ != null ? other.TypeField.Clone() : null;
210 DoubleField = other.DoubleField; 213 DoubleField = other.DoubleField;
211 FloatField = other.FloatField; 214 FloatField = other.FloatField;
212 Int64Field = other.Int64Field; 215 Int64Field = other.Int64Field;
213 Uint64Field = other.Uint64Field; 216 Uint64Field = other.Uint64Field;
214 Int32Field = other.Int32Field; 217 Int32Field = other.Int32Field;
215 Uint32Field = other.Uint32Field; 218 Uint32Field = other.Uint32Field;
216 BoolField = other.BoolField; 219 BoolField = other.BoolField;
217 StringField = other.StringField; 220 StringField = other.StringField;
218 BytesField = other.BytesField; 221 BytesField = other.BytesField;
219 ValueField = other.valueField_ != null ? other.ValueField.Clone() : null; 222 ValueField = other.valueField_ != null ? other.ValueField.Clone() : null;
220 } 223 }
221 224
225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
222 public TestWellKnownTypes Clone() { 226 public TestWellKnownTypes Clone() {
223 return new TestWellKnownTypes(this); 227 return new TestWellKnownTypes(this);
224 } 228 }
225 229
226 /// <summary>Field number for the "any_field" field.</summary> 230 /// <summary>Field number for the "any_field" field.</summary>
227 public const int AnyFieldFieldNumber = 1; 231 public const int AnyFieldFieldNumber = 1;
228 private global::Google.Protobuf.WellKnownTypes.Any anyField_; 232 private global::Google.Protobuf.WellKnownTypes.Any anyField_;
233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
229 public global::Google.Protobuf.WellKnownTypes.Any AnyField { 234 public global::Google.Protobuf.WellKnownTypes.Any AnyField {
230 get { return anyField_; } 235 get { return anyField_; }
231 set { 236 set {
232 anyField_ = value; 237 anyField_ = value;
233 } 238 }
234 } 239 }
235 240
236 /// <summary>Field number for the "api_field" field.</summary> 241 /// <summary>Field number for the "api_field" field.</summary>
237 public const int ApiFieldFieldNumber = 2; 242 public const int ApiFieldFieldNumber = 2;
238 private global::Google.Protobuf.WellKnownTypes.Api apiField_; 243 private global::Google.Protobuf.WellKnownTypes.Api apiField_;
244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
239 public global::Google.Protobuf.WellKnownTypes.Api ApiField { 245 public global::Google.Protobuf.WellKnownTypes.Api ApiField {
240 get { return apiField_; } 246 get { return apiField_; }
241 set { 247 set {
242 apiField_ = value; 248 apiField_ = value;
243 } 249 }
244 } 250 }
245 251
246 /// <summary>Field number for the "duration_field" field.</summary> 252 /// <summary>Field number for the "duration_field" field.</summary>
247 public const int DurationFieldFieldNumber = 3; 253 public const int DurationFieldFieldNumber = 3;
248 private global::Google.Protobuf.WellKnownTypes.Duration durationField_; 254 private global::Google.Protobuf.WellKnownTypes.Duration durationField_;
255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
249 public global::Google.Protobuf.WellKnownTypes.Duration DurationField { 256 public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
250 get { return durationField_; } 257 get { return durationField_; }
251 set { 258 set {
252 durationField_ = value; 259 durationField_ = value;
253 } 260 }
254 } 261 }
255 262
256 /// <summary>Field number for the "empty_field" field.</summary> 263 /// <summary>Field number for the "empty_field" field.</summary>
257 public const int EmptyFieldFieldNumber = 4; 264 public const int EmptyFieldFieldNumber = 4;
258 private global::Google.Protobuf.WellKnownTypes.Empty emptyField_; 265 private global::Google.Protobuf.WellKnownTypes.Empty emptyField_;
266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
259 public global::Google.Protobuf.WellKnownTypes.Empty EmptyField { 267 public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
260 get { return emptyField_; } 268 get { return emptyField_; }
261 set { 269 set {
262 emptyField_ = value; 270 emptyField_ = value;
263 } 271 }
264 } 272 }
265 273
266 /// <summary>Field number for the "field_mask_field" field.</summary> 274 /// <summary>Field number for the "field_mask_field" field.</summary>
267 public const int FieldMaskFieldFieldNumber = 5; 275 public const int FieldMaskFieldFieldNumber = 5;
268 private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMaskField_; 276 private global::Google.Protobuf.WellKnownTypes.FieldMask fieldMaskField_;
277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
269 public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField { 278 public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
270 get { return fieldMaskField_; } 279 get { return fieldMaskField_; }
271 set { 280 set {
272 fieldMaskField_ = value; 281 fieldMaskField_ = value;
273 } 282 }
274 } 283 }
275 284
276 /// <summary>Field number for the "source_context_field" field.</summary> 285 /// <summary>Field number for the "source_context_field" field.</summary>
277 public const int SourceContextFieldFieldNumber = 6; 286 public const int SourceContextFieldFieldNumber = 6;
278 private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContextFi eld_; 287 private global::Google.Protobuf.WellKnownTypes.SourceContext sourceContextFi eld_;
288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
279 public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextFie ld { 289 public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextFie ld {
280 get { return sourceContextField_; } 290 get { return sourceContextField_; }
281 set { 291 set {
282 sourceContextField_ = value; 292 sourceContextField_ = value;
283 } 293 }
284 } 294 }
285 295
286 /// <summary>Field number for the "struct_field" field.</summary> 296 /// <summary>Field number for the "struct_field" field.</summary>
287 public const int StructFieldFieldNumber = 7; 297 public const int StructFieldFieldNumber = 7;
288 private global::Google.Protobuf.WellKnownTypes.Struct structField_; 298 private global::Google.Protobuf.WellKnownTypes.Struct structField_;
299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
289 public global::Google.Protobuf.WellKnownTypes.Struct StructField { 300 public global::Google.Protobuf.WellKnownTypes.Struct StructField {
290 get { return structField_; } 301 get { return structField_; }
291 set { 302 set {
292 structField_ = value; 303 structField_ = value;
293 } 304 }
294 } 305 }
295 306
296 /// <summary>Field number for the "timestamp_field" field.</summary> 307 /// <summary>Field number for the "timestamp_field" field.</summary>
297 public const int TimestampFieldFieldNumber = 8; 308 public const int TimestampFieldFieldNumber = 8;
298 private global::Google.Protobuf.WellKnownTypes.Timestamp timestampField_; 309 private global::Google.Protobuf.WellKnownTypes.Timestamp timestampField_;
310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
299 public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField { 311 public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
300 get { return timestampField_; } 312 get { return timestampField_; }
301 set { 313 set {
302 timestampField_ = value; 314 timestampField_ = value;
303 } 315 }
304 } 316 }
305 317
306 /// <summary>Field number for the "type_field" field.</summary> 318 /// <summary>Field number for the "type_field" field.</summary>
307 public const int TypeFieldFieldNumber = 9; 319 public const int TypeFieldFieldNumber = 9;
308 private global::Google.Protobuf.WellKnownTypes.Type typeField_; 320 private global::Google.Protobuf.WellKnownTypes.Type typeField_;
321 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
309 public global::Google.Protobuf.WellKnownTypes.Type TypeField { 322 public global::Google.Protobuf.WellKnownTypes.Type TypeField {
310 get { return typeField_; } 323 get { return typeField_; }
311 set { 324 set {
312 typeField_ = value; 325 typeField_ = value;
313 } 326 }
314 } 327 }
315 328
316 /// <summary>Field number for the "double_field" field.</summary> 329 /// <summary>Field number for the "double_field" field.</summary>
317 public const int DoubleFieldFieldNumber = 10; 330 public const int DoubleFieldFieldNumber = 10;
318 private static readonly pb::FieldCodec<double?> _single_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82); 331 private static readonly pb::FieldCodec<double?> _single_doubleField_codec = pb::FieldCodec.ForStructWrapper<double>(82);
319 private double? doubleField_; 332 private double? doubleField_;
333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
320 public double? DoubleField { 334 public double? DoubleField {
321 get { return doubleField_; } 335 get { return doubleField_; }
322 set { 336 set {
323 doubleField_ = value; 337 doubleField_ = value;
324 } 338 }
325 } 339 }
326 340
327 /// <summary>Field number for the "float_field" field.</summary> 341 /// <summary>Field number for the "float_field" field.</summary>
328 public const int FloatFieldFieldNumber = 11; 342 public const int FloatFieldFieldNumber = 11;
329 private static readonly pb::FieldCodec<float?> _single_floatField_codec = pb ::FieldCodec.ForStructWrapper<float>(90); 343 private static readonly pb::FieldCodec<float?> _single_floatField_codec = pb ::FieldCodec.ForStructWrapper<float>(90);
330 private float? floatField_; 344 private float? floatField_;
345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
331 public float? FloatField { 346 public float? FloatField {
332 get { return floatField_; } 347 get { return floatField_; }
333 set { 348 set {
334 floatField_ = value; 349 floatField_ = value;
335 } 350 }
336 } 351 }
337 352
338 /// <summary>Field number for the "int64_field" field.</summary> 353 /// <summary>Field number for the "int64_field" field.</summary>
339 public const int Int64FieldFieldNumber = 12; 354 public const int Int64FieldFieldNumber = 12;
340 private static readonly pb::FieldCodec<long?> _single_int64Field_codec = pb: :FieldCodec.ForStructWrapper<long>(98); 355 private static readonly pb::FieldCodec<long?> _single_int64Field_codec = pb: :FieldCodec.ForStructWrapper<long>(98);
341 private long? int64Field_; 356 private long? int64Field_;
357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
342 public long? Int64Field { 358 public long? Int64Field {
343 get { return int64Field_; } 359 get { return int64Field_; }
344 set { 360 set {
345 int64Field_ = value; 361 int64Field_ = value;
346 } 362 }
347 } 363 }
348 364
349 /// <summary>Field number for the "uint64_field" field.</summary> 365 /// <summary>Field number for the "uint64_field" field.</summary>
350 public const int Uint64FieldFieldNumber = 13; 366 public const int Uint64FieldFieldNumber = 13;
351 private static readonly pb::FieldCodec<ulong?> _single_uint64Field_codec = p b::FieldCodec.ForStructWrapper<ulong>(106); 367 private static readonly pb::FieldCodec<ulong?> _single_uint64Field_codec = p b::FieldCodec.ForStructWrapper<ulong>(106);
352 private ulong? uint64Field_; 368 private ulong? uint64Field_;
369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
353 public ulong? Uint64Field { 370 public ulong? Uint64Field {
354 get { return uint64Field_; } 371 get { return uint64Field_; }
355 set { 372 set {
356 uint64Field_ = value; 373 uint64Field_ = value;
357 } 374 }
358 } 375 }
359 376
360 /// <summary>Field number for the "int32_field" field.</summary> 377 /// <summary>Field number for the "int32_field" field.</summary>
361 public const int Int32FieldFieldNumber = 14; 378 public const int Int32FieldFieldNumber = 14;
362 private static readonly pb::FieldCodec<int?> _single_int32Field_codec = pb:: FieldCodec.ForStructWrapper<int>(114); 379 private static readonly pb::FieldCodec<int?> _single_int32Field_codec = pb:: FieldCodec.ForStructWrapper<int>(114);
363 private int? int32Field_; 380 private int? int32Field_;
381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
364 public int? Int32Field { 382 public int? Int32Field {
365 get { return int32Field_; } 383 get { return int32Field_; }
366 set { 384 set {
367 int32Field_ = value; 385 int32Field_ = value;
368 } 386 }
369 } 387 }
370 388
371 /// <summary>Field number for the "uint32_field" field.</summary> 389 /// <summary>Field number for the "uint32_field" field.</summary>
372 public const int Uint32FieldFieldNumber = 15; 390 public const int Uint32FieldFieldNumber = 15;
373 private static readonly pb::FieldCodec<uint?> _single_uint32Field_codec = pb ::FieldCodec.ForStructWrapper<uint>(122); 391 private static readonly pb::FieldCodec<uint?> _single_uint32Field_codec = pb ::FieldCodec.ForStructWrapper<uint>(122);
374 private uint? uint32Field_; 392 private uint? uint32Field_;
393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
375 public uint? Uint32Field { 394 public uint? Uint32Field {
376 get { return uint32Field_; } 395 get { return uint32Field_; }
377 set { 396 set {
378 uint32Field_ = value; 397 uint32Field_ = value;
379 } 398 }
380 } 399 }
381 400
382 /// <summary>Field number for the "bool_field" field.</summary> 401 /// <summary>Field number for the "bool_field" field.</summary>
383 public const int BoolFieldFieldNumber = 16; 402 public const int BoolFieldFieldNumber = 16;
384 private static readonly pb::FieldCodec<bool?> _single_boolField_codec = pb:: FieldCodec.ForStructWrapper<bool>(130); 403 private static readonly pb::FieldCodec<bool?> _single_boolField_codec = pb:: FieldCodec.ForStructWrapper<bool>(130);
385 private bool? boolField_; 404 private bool? boolField_;
405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
386 public bool? BoolField { 406 public bool? BoolField {
387 get { return boolField_; } 407 get { return boolField_; }
388 set { 408 set {
389 boolField_ = value; 409 boolField_ = value;
390 } 410 }
391 } 411 }
392 412
393 /// <summary>Field number for the "string_field" field.</summary> 413 /// <summary>Field number for the "string_field" field.</summary>
394 public const int StringFieldFieldNumber = 17; 414 public const int StringFieldFieldNumber = 17;
395 private static readonly pb::FieldCodec<string> _single_stringField_codec = p b::FieldCodec.ForClassWrapper<string>(138); 415 private static readonly pb::FieldCodec<string> _single_stringField_codec = p b::FieldCodec.ForClassWrapper<string>(138);
396 private string stringField_; 416 private string stringField_;
417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
397 public string StringField { 418 public string StringField {
398 get { return stringField_; } 419 get { return stringField_; }
399 set { 420 set {
400 stringField_ = value; 421 stringField_ = value;
401 } 422 }
402 } 423 }
403 424
404 /// <summary>Field number for the "bytes_field" field.</summary> 425 /// <summary>Field number for the "bytes_field" field.</summary>
405 public const int BytesFieldFieldNumber = 18; 426 public const int BytesFieldFieldNumber = 18;
406 private static readonly pb::FieldCodec<pb::ByteString> _single_bytesField_co dec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146); 427 private static readonly pb::FieldCodec<pb::ByteString> _single_bytesField_co dec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
407 private pb::ByteString bytesField_; 428 private pb::ByteString bytesField_;
429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
408 public pb::ByteString BytesField { 430 public pb::ByteString BytesField {
409 get { return bytesField_; } 431 get { return bytesField_; }
410 set { 432 set {
411 bytesField_ = value; 433 bytesField_ = value;
412 } 434 }
413 } 435 }
414 436
415 /// <summary>Field number for the "value_field" field.</summary> 437 /// <summary>Field number for the "value_field" field.</summary>
416 public const int ValueFieldFieldNumber = 19; 438 public const int ValueFieldFieldNumber = 19;
417 private global::Google.Protobuf.WellKnownTypes.Value valueField_; 439 private global::Google.Protobuf.WellKnownTypes.Value valueField_;
418 /// <summary> 440 /// <summary>
419 /// Part of struct, but useful to be able to test separately 441 /// Part of struct, but useful to be able to test separately
420 /// </summary> 442 /// </summary>
443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
421 public global::Google.Protobuf.WellKnownTypes.Value ValueField { 444 public global::Google.Protobuf.WellKnownTypes.Value ValueField {
422 get { return valueField_; } 445 get { return valueField_; }
423 set { 446 set {
424 valueField_ = value; 447 valueField_ = value;
425 } 448 }
426 } 449 }
427 450
451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
428 public override bool Equals(object other) { 452 public override bool Equals(object other) {
429 return Equals(other as TestWellKnownTypes); 453 return Equals(other as TestWellKnownTypes);
430 } 454 }
431 455
456 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
432 public bool Equals(TestWellKnownTypes other) { 457 public bool Equals(TestWellKnownTypes other) {
433 if (ReferenceEquals(other, null)) { 458 if (ReferenceEquals(other, null)) {
434 return false; 459 return false;
435 } 460 }
436 if (ReferenceEquals(other, this)) { 461 if (ReferenceEquals(other, this)) {
437 return true; 462 return true;
438 } 463 }
439 if (!object.Equals(AnyField, other.AnyField)) return false; 464 if (!object.Equals(AnyField, other.AnyField)) return false;
440 if (!object.Equals(ApiField, other.ApiField)) return false; 465 if (!object.Equals(ApiField, other.ApiField)) return false;
441 if (!object.Equals(DurationField, other.DurationField)) return false; 466 if (!object.Equals(DurationField, other.DurationField)) return false;
442 if (!object.Equals(EmptyField, other.EmptyField)) return false; 467 if (!object.Equals(EmptyField, other.EmptyField)) return false;
443 if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false; 468 if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
444 if (!object.Equals(SourceContextField, other.SourceContextField)) return f alse; 469 if (!object.Equals(SourceContextField, other.SourceContextField)) return f alse;
445 if (!object.Equals(StructField, other.StructField)) return false; 470 if (!object.Equals(StructField, other.StructField)) return false;
446 if (!object.Equals(TimestampField, other.TimestampField)) return false; 471 if (!object.Equals(TimestampField, other.TimestampField)) return false;
447 if (!object.Equals(TypeField, other.TypeField)) return false; 472 if (!object.Equals(TypeField, other.TypeField)) return false;
448 if (DoubleField != other.DoubleField) return false; 473 if (DoubleField != other.DoubleField) return false;
449 if (FloatField != other.FloatField) return false; 474 if (FloatField != other.FloatField) return false;
450 if (Int64Field != other.Int64Field) return false; 475 if (Int64Field != other.Int64Field) return false;
451 if (Uint64Field != other.Uint64Field) return false; 476 if (Uint64Field != other.Uint64Field) return false;
452 if (Int32Field != other.Int32Field) return false; 477 if (Int32Field != other.Int32Field) return false;
453 if (Uint32Field != other.Uint32Field) return false; 478 if (Uint32Field != other.Uint32Field) return false;
454 if (BoolField != other.BoolField) return false; 479 if (BoolField != other.BoolField) return false;
455 if (StringField != other.StringField) return false; 480 if (StringField != other.StringField) return false;
456 if (BytesField != other.BytesField) return false; 481 if (BytesField != other.BytesField) return false;
457 if (!object.Equals(ValueField, other.ValueField)) return false; 482 if (!object.Equals(ValueField, other.ValueField)) return false;
458 return true; 483 return true;
459 } 484 }
460 485
486 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
461 public override int GetHashCode() { 487 public override int GetHashCode() {
462 int hash = 1; 488 int hash = 1;
463 if (anyField_ != null) hash ^= AnyField.GetHashCode(); 489 if (anyField_ != null) hash ^= AnyField.GetHashCode();
464 if (apiField_ != null) hash ^= ApiField.GetHashCode(); 490 if (apiField_ != null) hash ^= ApiField.GetHashCode();
465 if (durationField_ != null) hash ^= DurationField.GetHashCode(); 491 if (durationField_ != null) hash ^= DurationField.GetHashCode();
466 if (emptyField_ != null) hash ^= EmptyField.GetHashCode(); 492 if (emptyField_ != null) hash ^= EmptyField.GetHashCode();
467 if (fieldMaskField_ != null) hash ^= FieldMaskField.GetHashCode(); 493 if (fieldMaskField_ != null) hash ^= FieldMaskField.GetHashCode();
468 if (sourceContextField_ != null) hash ^= SourceContextField.GetHashCode(); 494 if (sourceContextField_ != null) hash ^= SourceContextField.GetHashCode();
469 if (structField_ != null) hash ^= StructField.GetHashCode(); 495 if (structField_ != null) hash ^= StructField.GetHashCode();
470 if (timestampField_ != null) hash ^= TimestampField.GetHashCode(); 496 if (timestampField_ != null) hash ^= TimestampField.GetHashCode();
471 if (typeField_ != null) hash ^= TypeField.GetHashCode(); 497 if (typeField_ != null) hash ^= TypeField.GetHashCode();
472 if (doubleField_ != null) hash ^= DoubleField.GetHashCode(); 498 if (doubleField_ != null) hash ^= DoubleField.GetHashCode();
473 if (floatField_ != null) hash ^= FloatField.GetHashCode(); 499 if (floatField_ != null) hash ^= FloatField.GetHashCode();
474 if (int64Field_ != null) hash ^= Int64Field.GetHashCode(); 500 if (int64Field_ != null) hash ^= Int64Field.GetHashCode();
475 if (uint64Field_ != null) hash ^= Uint64Field.GetHashCode(); 501 if (uint64Field_ != null) hash ^= Uint64Field.GetHashCode();
476 if (int32Field_ != null) hash ^= Int32Field.GetHashCode(); 502 if (int32Field_ != null) hash ^= Int32Field.GetHashCode();
477 if (uint32Field_ != null) hash ^= Uint32Field.GetHashCode(); 503 if (uint32Field_ != null) hash ^= Uint32Field.GetHashCode();
478 if (boolField_ != null) hash ^= BoolField.GetHashCode(); 504 if (boolField_ != null) hash ^= BoolField.GetHashCode();
479 if (stringField_ != null) hash ^= StringField.GetHashCode(); 505 if (stringField_ != null) hash ^= StringField.GetHashCode();
480 if (bytesField_ != null) hash ^= BytesField.GetHashCode(); 506 if (bytesField_ != null) hash ^= BytesField.GetHashCode();
481 if (valueField_ != null) hash ^= ValueField.GetHashCode(); 507 if (valueField_ != null) hash ^= ValueField.GetHashCode();
482 return hash; 508 return hash;
483 } 509 }
484 510
511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
485 public override string ToString() { 512 public override string ToString() {
486 return pb::JsonFormatter.ToDiagnosticString(this); 513 return pb::JsonFormatter.ToDiagnosticString(this);
487 } 514 }
488 515
516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
489 public void WriteTo(pb::CodedOutputStream output) { 517 public void WriteTo(pb::CodedOutputStream output) {
490 if (anyField_ != null) { 518 if (anyField_ != null) {
491 output.WriteRawTag(10); 519 output.WriteRawTag(10);
492 output.WriteMessage(AnyField); 520 output.WriteMessage(AnyField);
493 } 521 }
494 if (apiField_ != null) { 522 if (apiField_ != null) {
495 output.WriteRawTag(18); 523 output.WriteRawTag(18);
496 output.WriteMessage(ApiField); 524 output.WriteMessage(ApiField);
497 } 525 }
498 if (durationField_ != null) { 526 if (durationField_ != null) {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 } 577 }
550 if (bytesField_ != null) { 578 if (bytesField_ != null) {
551 _single_bytesField_codec.WriteTagAndValue(output, BytesField); 579 _single_bytesField_codec.WriteTagAndValue(output, BytesField);
552 } 580 }
553 if (valueField_ != null) { 581 if (valueField_ != null) {
554 output.WriteRawTag(154, 1); 582 output.WriteRawTag(154, 1);
555 output.WriteMessage(ValueField); 583 output.WriteMessage(ValueField);
556 } 584 }
557 } 585 }
558 586
587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
559 public int CalculateSize() { 588 public int CalculateSize() {
560 int size = 0; 589 int size = 0;
561 if (anyField_ != null) { 590 if (anyField_ != null) {
562 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField); 591 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
563 } 592 }
564 if (apiField_ != null) { 593 if (apiField_ != null) {
565 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField); 594 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
566 } 595 }
567 if (durationField_ != null) { 596 if (durationField_ != null) {
568 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField); 597 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 } 640 }
612 if (bytesField_ != null) { 641 if (bytesField_ != null) {
613 size += _single_bytesField_codec.CalculateSizeWithTag(BytesField); 642 size += _single_bytesField_codec.CalculateSizeWithTag(BytesField);
614 } 643 }
615 if (valueField_ != null) { 644 if (valueField_ != null) {
616 size += 2 + pb::CodedOutputStream.ComputeMessageSize(ValueField); 645 size += 2 + pb::CodedOutputStream.ComputeMessageSize(ValueField);
617 } 646 }
618 return size; 647 return size;
619 } 648 }
620 649
650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
621 public void MergeFrom(TestWellKnownTypes other) { 651 public void MergeFrom(TestWellKnownTypes other) {
622 if (other == null) { 652 if (other == null) {
623 return; 653 return;
624 } 654 }
625 if (other.anyField_ != null) { 655 if (other.anyField_ != null) {
626 if (anyField_ == null) { 656 if (anyField_ == null) {
627 anyField_ = new global::Google.Protobuf.WellKnownTypes.Any(); 657 anyField_ = new global::Google.Protobuf.WellKnownTypes.Any();
628 } 658 }
629 AnyField.MergeFrom(other.AnyField); 659 AnyField.MergeFrom(other.AnyField);
630 } 660 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 752 }
723 } 753 }
724 if (other.valueField_ != null) { 754 if (other.valueField_ != null) {
725 if (valueField_ == null) { 755 if (valueField_ == null) {
726 valueField_ = new global::Google.Protobuf.WellKnownTypes.Value(); 756 valueField_ = new global::Google.Protobuf.WellKnownTypes.Value();
727 } 757 }
728 ValueField.MergeFrom(other.ValueField); 758 ValueField.MergeFrom(other.ValueField);
729 } 759 }
730 } 760 }
731 761
762 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
732 public void MergeFrom(pb::CodedInputStream input) { 763 public void MergeFrom(pb::CodedInputStream input) {
733 uint tag; 764 uint tag;
734 while ((tag = input.ReadTag()) != 0) { 765 while ((tag = input.ReadTag()) != 0) {
735 switch(tag) { 766 switch(tag) {
736 default: 767 default:
737 input.SkipLastField(); 768 input.SkipLastField();
738 break; 769 break;
739 case 10: { 770 case 10: {
740 if (anyField_ == null) { 771 if (anyField_ == null) {
741 anyField_ = new global::Google.Protobuf.WellKnownTypes.Any(); 772 anyField_ = new global::Google.Protobuf.WellKnownTypes.Any();
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 input.ReadMessage(valueField_); 900 input.ReadMessage(valueField_);
870 break; 901 break;
871 } 902 }
872 } 903 }
873 } 904 }
874 } 905 }
875 906
876 } 907 }
877 908
878 /// <summary> 909 /// <summary>
879 /// A repeated field for each well-known type. 910 /// A repeated field for each well-known type.
880 /// </summary> 911 /// </summary>
881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
882 public sealed partial class RepeatedWellKnownTypes : pb::IMessage<RepeatedWell KnownTypes> { 912 public sealed partial class RepeatedWellKnownTypes : pb::IMessage<RepeatedWell KnownTypes> {
883 private static readonly pb::MessageParser<RepeatedWellKnownTypes> _parser = new pb::MessageParser<RepeatedWellKnownTypes>(() => new RepeatedWellKnownTypes() ); 913 private static readonly pb::MessageParser<RepeatedWellKnownTypes> _parser = new pb::MessageParser<RepeatedWellKnownTypes>(() => new RepeatedWellKnownTypes() );
914 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
884 public static pb::MessageParser<RepeatedWellKnownTypes> Parser { get { retur n _parser; } } 915 public static pb::MessageParser<RepeatedWellKnownTypes> Parser { get { retur n _parser; } }
885 916
917 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
886 public static pbr::MessageDescriptor Descriptor { 918 public static pbr::MessageDescriptor Descriptor {
887 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[1]; } 919 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[1]; }
888 } 920 }
889 921
922 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
890 pbr::MessageDescriptor pb::IMessage.Descriptor { 923 pbr::MessageDescriptor pb::IMessage.Descriptor {
891 get { return Descriptor; } 924 get { return Descriptor; }
892 } 925 }
893 926
927 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
894 public RepeatedWellKnownTypes() { 928 public RepeatedWellKnownTypes() {
895 OnConstruction(); 929 OnConstruction();
896 } 930 }
897 931
898 partial void OnConstruction(); 932 partial void OnConstruction();
899 933
934 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
900 public RepeatedWellKnownTypes(RepeatedWellKnownTypes other) : this() { 935 public RepeatedWellKnownTypes(RepeatedWellKnownTypes other) : this() {
901 anyField_ = other.anyField_.Clone(); 936 anyField_ = other.anyField_.Clone();
902 apiField_ = other.apiField_.Clone(); 937 apiField_ = other.apiField_.Clone();
903 durationField_ = other.durationField_.Clone(); 938 durationField_ = other.durationField_.Clone();
904 emptyField_ = other.emptyField_.Clone(); 939 emptyField_ = other.emptyField_.Clone();
905 fieldMaskField_ = other.fieldMaskField_.Clone(); 940 fieldMaskField_ = other.fieldMaskField_.Clone();
906 sourceContextField_ = other.sourceContextField_.Clone(); 941 sourceContextField_ = other.sourceContextField_.Clone();
907 structField_ = other.structField_.Clone(); 942 structField_ = other.structField_.Clone();
908 timestampField_ = other.timestampField_.Clone(); 943 timestampField_ = other.timestampField_.Clone();
909 typeField_ = other.typeField_.Clone(); 944 typeField_ = other.typeField_.Clone();
910 doubleField_ = other.doubleField_.Clone(); 945 doubleField_ = other.doubleField_.Clone();
911 floatField_ = other.floatField_.Clone(); 946 floatField_ = other.floatField_.Clone();
912 int64Field_ = other.int64Field_.Clone(); 947 int64Field_ = other.int64Field_.Clone();
913 uint64Field_ = other.uint64Field_.Clone(); 948 uint64Field_ = other.uint64Field_.Clone();
914 int32Field_ = other.int32Field_.Clone(); 949 int32Field_ = other.int32Field_.Clone();
915 uint32Field_ = other.uint32Field_.Clone(); 950 uint32Field_ = other.uint32Field_.Clone();
916 boolField_ = other.boolField_.Clone(); 951 boolField_ = other.boolField_.Clone();
917 stringField_ = other.stringField_.Clone(); 952 stringField_ = other.stringField_.Clone();
918 bytesField_ = other.bytesField_.Clone(); 953 bytesField_ = other.bytesField_.Clone();
919 } 954 }
920 955
956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
921 public RepeatedWellKnownTypes Clone() { 957 public RepeatedWellKnownTypes Clone() {
922 return new RepeatedWellKnownTypes(this); 958 return new RepeatedWellKnownTypes(this);
923 } 959 }
924 960
925 /// <summary>Field number for the "any_field" field.</summary> 961 /// <summary>Field number for the "any_field" field.</summary>
926 public const int AnyFieldFieldNumber = 1; 962 public const int AnyFieldFieldNumber = 1;
927 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Any> _repeated_anyField_codec 963 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Any> _repeated_anyField_codec
928 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.A ny.Parser); 964 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.A ny.Parser);
929 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.A ny> anyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.An y>(); 965 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.A ny> anyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.An y>();
966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
930 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> AnyFie ld { 967 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Any> AnyFie ld {
931 get { return anyField_; } 968 get { return anyField_; }
932 } 969 }
933 970
934 /// <summary>Field number for the "api_field" field.</summary> 971 /// <summary>Field number for the "api_field" field.</summary>
935 public const int ApiFieldFieldNumber = 2; 972 public const int ApiFieldFieldNumber = 2;
936 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Api> _repeated_apiField_codec 973 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Api> _repeated_apiField_codec
937 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.A pi.Parser); 974 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.A pi.Parser);
938 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.A pi> apiField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Ap i>(); 975 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.A pi> apiField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Ap i>();
976 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
939 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> ApiFie ld { 977 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Api> ApiFie ld {
940 get { return apiField_; } 978 get { return apiField_; }
941 } 979 }
942 980
943 /// <summary>Field number for the "duration_field" field.</summary> 981 /// <summary>Field number for the "duration_field" field.</summary>
944 public const int DurationFieldFieldNumber = 3; 982 public const int DurationFieldFieldNumber = 3;
945 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Duration> _repeated_durationField_codec 983 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Duration> _repeated_durationField_codec
946 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.D uration.Parser); 984 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.D uration.Parser);
947 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.D uration> durationField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKno wnTypes.Duration>(); 985 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.D uration> durationField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKno wnTypes.Duration>();
986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
948 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> D urationField { 987 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Duration> D urationField {
949 get { return durationField_; } 988 get { return durationField_; }
950 } 989 }
951 990
952 /// <summary>Field number for the "empty_field" field.</summary> 991 /// <summary>Field number for the "empty_field" field.</summary>
953 public const int EmptyFieldFieldNumber = 4; 992 public const int EmptyFieldFieldNumber = 4;
954 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Empty> _repeated_emptyField_codec 993 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Empty> _repeated_emptyField_codec
955 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.WellKnownTypes.E mpty.Parser); 994 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.WellKnownTypes.E mpty.Parser);
956 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.E mpty> emptyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownType s.Empty>(); 995 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.E mpty> emptyField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownType s.Empty>();
996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
957 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> Empt yField { 997 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Empty> Empt yField {
958 get { return emptyField_; } 998 get { return emptyField_; }
959 } 999 }
960 1000
961 /// <summary>Field number for the "field_mask_field" field.</summary> 1001 /// <summary>Field number for the "field_mask_field" field.</summary>
962 public const int FieldMaskFieldFieldNumber = 5; 1002 public const int FieldMaskFieldFieldNumber = 5;
963 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.FieldMask> _repeated_fieldMaskField_codec 1003 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.FieldMask> _repeated_fieldMaskField_codec
964 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.F ieldMask.Parser); 1004 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.WellKnownTypes.F ieldMask.Parser);
965 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.F ieldMask> fieldMaskField_ = new pbc::RepeatedField<global::Google.Protobuf.WellK nownTypes.FieldMask>(); 1005 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.F ieldMask> fieldMaskField_ = new pbc::RepeatedField<global::Google.Protobuf.WellK nownTypes.FieldMask>();
1006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
966 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField { 1007 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
967 get { return fieldMaskField_; } 1008 get { return fieldMaskField_; }
968 } 1009 }
969 1010
970 /// <summary>Field number for the "source_context_field" field.</summary> 1011 /// <summary>Field number for the "source_context_field" field.</summary>
971 public const int SourceContextFieldFieldNumber = 6; 1012 public const int SourceContextFieldFieldNumber = 6;
972 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.SourceContext> _repeated_sourceContextField_codec 1013 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.SourceContext> _repeated_sourceContextField_codec
973 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.S ourceContext.Parser); 1014 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.WellKnownTypes.S ourceContext.Parser);
974 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.S ourceContext> sourceContextField_ = new pbc::RepeatedField<global::Google.Protob uf.WellKnownTypes.SourceContext>(); 1015 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.S ourceContext> sourceContextField_ = new pbc::RepeatedField<global::Google.Protob uf.WellKnownTypes.SourceContext>();
1016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
975 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceConte xt> SourceContextField { 1017 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.SourceConte xt> SourceContextField {
976 get { return sourceContextField_; } 1018 get { return sourceContextField_; }
977 } 1019 }
978 1020
979 /// <summary>Field number for the "struct_field" field.</summary> 1021 /// <summary>Field number for the "struct_field" field.</summary>
980 public const int StructFieldFieldNumber = 7; 1022 public const int StructFieldFieldNumber = 7;
981 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Struct> _repeated_structField_codec 1023 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Struct> _repeated_structField_codec
982 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.WellKnownTypes.S truct.Parser); 1024 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.WellKnownTypes.S truct.Parser);
983 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.S truct> structField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTy pes.Struct>(); 1025 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.S truct> structField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTy pes.Struct>();
1026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
984 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> Str uctField { 1027 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Struct> Str uctField {
985 get { return structField_; } 1028 get { return structField_; }
986 } 1029 }
987 1030
988 /// <summary>Field number for the "timestamp_field" field.</summary> 1031 /// <summary>Field number for the "timestamp_field" field.</summary>
989 public const int TimestampFieldFieldNumber = 8; 1032 public const int TimestampFieldFieldNumber = 8;
990 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Timestamp> _repeated_timestampField_codec 1033 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Timestamp> _repeated_timestampField_codec
991 = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.WellKnownTypes.T imestamp.Parser); 1034 = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.WellKnownTypes.T imestamp.Parser);
992 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.T imestamp> timestampField_ = new pbc::RepeatedField<global::Google.Protobuf.WellK nownTypes.Timestamp>(); 1035 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.T imestamp> timestampField_ = new pbc::RepeatedField<global::Google.Protobuf.WellK nownTypes.Timestamp>();
1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
993 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField { 1037 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
994 get { return timestampField_; } 1038 get { return timestampField_; }
995 } 1039 }
996 1040
997 /// <summary>Field number for the "type_field" field.</summary> 1041 /// <summary>Field number for the "type_field" field.</summary>
998 public const int TypeFieldFieldNumber = 9; 1042 public const int TypeFieldFieldNumber = 9;
999 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Type> _repeated_typeField_codec 1043 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownType s.Type> _repeated_typeField_codec
1000 = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.WellKnownTypes.T ype.Parser); 1044 = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.WellKnownTypes.T ype.Parser);
1001 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.T ype> typeField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes. Type>(); 1045 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.T ype> typeField_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes. Type>();
1046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1002 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> TypeF ield { 1047 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Type> TypeF ield {
1003 get { return typeField_; } 1048 get { return typeField_; }
1004 } 1049 }
1005 1050
1006 /// <summary>Field number for the "double_field" field.</summary> 1051 /// <summary>Field number for the "double_field" field.</summary>
1007 public const int DoubleFieldFieldNumber = 10; 1052 public const int DoubleFieldFieldNumber = 10;
1008 private static readonly pb::FieldCodec<double?> _repeated_doubleField_codec 1053 private static readonly pb::FieldCodec<double?> _repeated_doubleField_codec
1009 = pb::FieldCodec.ForStructWrapper<double>(82); 1054 = pb::FieldCodec.ForStructWrapper<double>(82);
1010 private readonly pbc::RepeatedField<double?> doubleField_ = new pbc::Repeate dField<double?>(); 1055 private readonly pbc::RepeatedField<double?> doubleField_ = new pbc::Repeate dField<double?>();
1011 /// <summary> 1056 /// <summary>
1012 /// These don't actually make a lot of sense, but they're not prohibited... 1057 /// These don't actually make a lot of sense, but they're not prohibited...
1013 /// </summary> 1058 /// </summary>
1059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1014 public pbc::RepeatedField<double?> DoubleField { 1060 public pbc::RepeatedField<double?> DoubleField {
1015 get { return doubleField_; } 1061 get { return doubleField_; }
1016 } 1062 }
1017 1063
1018 /// <summary>Field number for the "float_field" field.</summary> 1064 /// <summary>Field number for the "float_field" field.</summary>
1019 public const int FloatFieldFieldNumber = 11; 1065 public const int FloatFieldFieldNumber = 11;
1020 private static readonly pb::FieldCodec<float?> _repeated_floatField_codec 1066 private static readonly pb::FieldCodec<float?> _repeated_floatField_codec
1021 = pb::FieldCodec.ForStructWrapper<float>(90); 1067 = pb::FieldCodec.ForStructWrapper<float>(90);
1022 private readonly pbc::RepeatedField<float?> floatField_ = new pbc::RepeatedF ield<float?>(); 1068 private readonly pbc::RepeatedField<float?> floatField_ = new pbc::RepeatedF ield<float?>();
1069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1023 public pbc::RepeatedField<float?> FloatField { 1070 public pbc::RepeatedField<float?> FloatField {
1024 get { return floatField_; } 1071 get { return floatField_; }
1025 } 1072 }
1026 1073
1027 /// <summary>Field number for the "int64_field" field.</summary> 1074 /// <summary>Field number for the "int64_field" field.</summary>
1028 public const int Int64FieldFieldNumber = 12; 1075 public const int Int64FieldFieldNumber = 12;
1029 private static readonly pb::FieldCodec<long?> _repeated_int64Field_codec 1076 private static readonly pb::FieldCodec<long?> _repeated_int64Field_codec
1030 = pb::FieldCodec.ForStructWrapper<long>(98); 1077 = pb::FieldCodec.ForStructWrapper<long>(98);
1031 private readonly pbc::RepeatedField<long?> int64Field_ = new pbc::RepeatedFi eld<long?>(); 1078 private readonly pbc::RepeatedField<long?> int64Field_ = new pbc::RepeatedFi eld<long?>();
1079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1032 public pbc::RepeatedField<long?> Int64Field { 1080 public pbc::RepeatedField<long?> Int64Field {
1033 get { return int64Field_; } 1081 get { return int64Field_; }
1034 } 1082 }
1035 1083
1036 /// <summary>Field number for the "uint64_field" field.</summary> 1084 /// <summary>Field number for the "uint64_field" field.</summary>
1037 public const int Uint64FieldFieldNumber = 13; 1085 public const int Uint64FieldFieldNumber = 13;
1038 private static readonly pb::FieldCodec<ulong?> _repeated_uint64Field_codec 1086 private static readonly pb::FieldCodec<ulong?> _repeated_uint64Field_codec
1039 = pb::FieldCodec.ForStructWrapper<ulong>(106); 1087 = pb::FieldCodec.ForStructWrapper<ulong>(106);
1040 private readonly pbc::RepeatedField<ulong?> uint64Field_ = new pbc::Repeated Field<ulong?>(); 1088 private readonly pbc::RepeatedField<ulong?> uint64Field_ = new pbc::Repeated Field<ulong?>();
1089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1041 public pbc::RepeatedField<ulong?> Uint64Field { 1090 public pbc::RepeatedField<ulong?> Uint64Field {
1042 get { return uint64Field_; } 1091 get { return uint64Field_; }
1043 } 1092 }
1044 1093
1045 /// <summary>Field number for the "int32_field" field.</summary> 1094 /// <summary>Field number for the "int32_field" field.</summary>
1046 public const int Int32FieldFieldNumber = 14; 1095 public const int Int32FieldFieldNumber = 14;
1047 private static readonly pb::FieldCodec<int?> _repeated_int32Field_codec 1096 private static readonly pb::FieldCodec<int?> _repeated_int32Field_codec
1048 = pb::FieldCodec.ForStructWrapper<int>(114); 1097 = pb::FieldCodec.ForStructWrapper<int>(114);
1049 private readonly pbc::RepeatedField<int?> int32Field_ = new pbc::RepeatedFie ld<int?>(); 1098 private readonly pbc::RepeatedField<int?> int32Field_ = new pbc::RepeatedFie ld<int?>();
1099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1050 public pbc::RepeatedField<int?> Int32Field { 1100 public pbc::RepeatedField<int?> Int32Field {
1051 get { return int32Field_; } 1101 get { return int32Field_; }
1052 } 1102 }
1053 1103
1054 /// <summary>Field number for the "uint32_field" field.</summary> 1104 /// <summary>Field number for the "uint32_field" field.</summary>
1055 public const int Uint32FieldFieldNumber = 15; 1105 public const int Uint32FieldFieldNumber = 15;
1056 private static readonly pb::FieldCodec<uint?> _repeated_uint32Field_codec 1106 private static readonly pb::FieldCodec<uint?> _repeated_uint32Field_codec
1057 = pb::FieldCodec.ForStructWrapper<uint>(122); 1107 = pb::FieldCodec.ForStructWrapper<uint>(122);
1058 private readonly pbc::RepeatedField<uint?> uint32Field_ = new pbc::RepeatedF ield<uint?>(); 1108 private readonly pbc::RepeatedField<uint?> uint32Field_ = new pbc::RepeatedF ield<uint?>();
1109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1059 public pbc::RepeatedField<uint?> Uint32Field { 1110 public pbc::RepeatedField<uint?> Uint32Field {
1060 get { return uint32Field_; } 1111 get { return uint32Field_; }
1061 } 1112 }
1062 1113
1063 /// <summary>Field number for the "bool_field" field.</summary> 1114 /// <summary>Field number for the "bool_field" field.</summary>
1064 public const int BoolFieldFieldNumber = 16; 1115 public const int BoolFieldFieldNumber = 16;
1065 private static readonly pb::FieldCodec<bool?> _repeated_boolField_codec 1116 private static readonly pb::FieldCodec<bool?> _repeated_boolField_codec
1066 = pb::FieldCodec.ForStructWrapper<bool>(130); 1117 = pb::FieldCodec.ForStructWrapper<bool>(130);
1067 private readonly pbc::RepeatedField<bool?> boolField_ = new pbc::RepeatedFie ld<bool?>(); 1118 private readonly pbc::RepeatedField<bool?> boolField_ = new pbc::RepeatedFie ld<bool?>();
1119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1068 public pbc::RepeatedField<bool?> BoolField { 1120 public pbc::RepeatedField<bool?> BoolField {
1069 get { return boolField_; } 1121 get { return boolField_; }
1070 } 1122 }
1071 1123
1072 /// <summary>Field number for the "string_field" field.</summary> 1124 /// <summary>Field number for the "string_field" field.</summary>
1073 public const int StringFieldFieldNumber = 17; 1125 public const int StringFieldFieldNumber = 17;
1074 private static readonly pb::FieldCodec<string> _repeated_stringField_codec 1126 private static readonly pb::FieldCodec<string> _repeated_stringField_codec
1075 = pb::FieldCodec.ForClassWrapper<string>(138); 1127 = pb::FieldCodec.ForClassWrapper<string>(138);
1076 private readonly pbc::RepeatedField<string> stringField_ = new pbc::Repeated Field<string>(); 1128 private readonly pbc::RepeatedField<string> stringField_ = new pbc::Repeated Field<string>();
1129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1077 public pbc::RepeatedField<string> StringField { 1130 public pbc::RepeatedField<string> StringField {
1078 get { return stringField_; } 1131 get { return stringField_; }
1079 } 1132 }
1080 1133
1081 /// <summary>Field number for the "bytes_field" field.</summary> 1134 /// <summary>Field number for the "bytes_field" field.</summary>
1082 public const int BytesFieldFieldNumber = 18; 1135 public const int BytesFieldFieldNumber = 18;
1083 private static readonly pb::FieldCodec<pb::ByteString> _repeated_bytesField_ codec 1136 private static readonly pb::FieldCodec<pb::ByteString> _repeated_bytesField_ codec
1084 = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146); 1137 = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
1085 private readonly pbc::RepeatedField<pb::ByteString> bytesField_ = new pbc::R epeatedField<pb::ByteString>(); 1138 private readonly pbc::RepeatedField<pb::ByteString> bytesField_ = new pbc::R epeatedField<pb::ByteString>();
1139 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1086 public pbc::RepeatedField<pb::ByteString> BytesField { 1140 public pbc::RepeatedField<pb::ByteString> BytesField {
1087 get { return bytesField_; } 1141 get { return bytesField_; }
1088 } 1142 }
1089 1143
1144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1090 public override bool Equals(object other) { 1145 public override bool Equals(object other) {
1091 return Equals(other as RepeatedWellKnownTypes); 1146 return Equals(other as RepeatedWellKnownTypes);
1092 } 1147 }
1093 1148
1149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1094 public bool Equals(RepeatedWellKnownTypes other) { 1150 public bool Equals(RepeatedWellKnownTypes other) {
1095 if (ReferenceEquals(other, null)) { 1151 if (ReferenceEquals(other, null)) {
1096 return false; 1152 return false;
1097 } 1153 }
1098 if (ReferenceEquals(other, this)) { 1154 if (ReferenceEquals(other, this)) {
1099 return true; 1155 return true;
1100 } 1156 }
1101 if(!anyField_.Equals(other.anyField_)) return false; 1157 if(!anyField_.Equals(other.anyField_)) return false;
1102 if(!apiField_.Equals(other.apiField_)) return false; 1158 if(!apiField_.Equals(other.apiField_)) return false;
1103 if(!durationField_.Equals(other.durationField_)) return false; 1159 if(!durationField_.Equals(other.durationField_)) return false;
1104 if(!emptyField_.Equals(other.emptyField_)) return false; 1160 if(!emptyField_.Equals(other.emptyField_)) return false;
1105 if(!fieldMaskField_.Equals(other.fieldMaskField_)) return false; 1161 if(!fieldMaskField_.Equals(other.fieldMaskField_)) return false;
1106 if(!sourceContextField_.Equals(other.sourceContextField_)) return false; 1162 if(!sourceContextField_.Equals(other.sourceContextField_)) return false;
1107 if(!structField_.Equals(other.structField_)) return false; 1163 if(!structField_.Equals(other.structField_)) return false;
1108 if(!timestampField_.Equals(other.timestampField_)) return false; 1164 if(!timestampField_.Equals(other.timestampField_)) return false;
1109 if(!typeField_.Equals(other.typeField_)) return false; 1165 if(!typeField_.Equals(other.typeField_)) return false;
1110 if(!doubleField_.Equals(other.doubleField_)) return false; 1166 if(!doubleField_.Equals(other.doubleField_)) return false;
1111 if(!floatField_.Equals(other.floatField_)) return false; 1167 if(!floatField_.Equals(other.floatField_)) return false;
1112 if(!int64Field_.Equals(other.int64Field_)) return false; 1168 if(!int64Field_.Equals(other.int64Field_)) return false;
1113 if(!uint64Field_.Equals(other.uint64Field_)) return false; 1169 if(!uint64Field_.Equals(other.uint64Field_)) return false;
1114 if(!int32Field_.Equals(other.int32Field_)) return false; 1170 if(!int32Field_.Equals(other.int32Field_)) return false;
1115 if(!uint32Field_.Equals(other.uint32Field_)) return false; 1171 if(!uint32Field_.Equals(other.uint32Field_)) return false;
1116 if(!boolField_.Equals(other.boolField_)) return false; 1172 if(!boolField_.Equals(other.boolField_)) return false;
1117 if(!stringField_.Equals(other.stringField_)) return false; 1173 if(!stringField_.Equals(other.stringField_)) return false;
1118 if(!bytesField_.Equals(other.bytesField_)) return false; 1174 if(!bytesField_.Equals(other.bytesField_)) return false;
1119 return true; 1175 return true;
1120 } 1176 }
1121 1177
1178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1122 public override int GetHashCode() { 1179 public override int GetHashCode() {
1123 int hash = 1; 1180 int hash = 1;
1124 hash ^= anyField_.GetHashCode(); 1181 hash ^= anyField_.GetHashCode();
1125 hash ^= apiField_.GetHashCode(); 1182 hash ^= apiField_.GetHashCode();
1126 hash ^= durationField_.GetHashCode(); 1183 hash ^= durationField_.GetHashCode();
1127 hash ^= emptyField_.GetHashCode(); 1184 hash ^= emptyField_.GetHashCode();
1128 hash ^= fieldMaskField_.GetHashCode(); 1185 hash ^= fieldMaskField_.GetHashCode();
1129 hash ^= sourceContextField_.GetHashCode(); 1186 hash ^= sourceContextField_.GetHashCode();
1130 hash ^= structField_.GetHashCode(); 1187 hash ^= structField_.GetHashCode();
1131 hash ^= timestampField_.GetHashCode(); 1188 hash ^= timestampField_.GetHashCode();
1132 hash ^= typeField_.GetHashCode(); 1189 hash ^= typeField_.GetHashCode();
1133 hash ^= doubleField_.GetHashCode(); 1190 hash ^= doubleField_.GetHashCode();
1134 hash ^= floatField_.GetHashCode(); 1191 hash ^= floatField_.GetHashCode();
1135 hash ^= int64Field_.GetHashCode(); 1192 hash ^= int64Field_.GetHashCode();
1136 hash ^= uint64Field_.GetHashCode(); 1193 hash ^= uint64Field_.GetHashCode();
1137 hash ^= int32Field_.GetHashCode(); 1194 hash ^= int32Field_.GetHashCode();
1138 hash ^= uint32Field_.GetHashCode(); 1195 hash ^= uint32Field_.GetHashCode();
1139 hash ^= boolField_.GetHashCode(); 1196 hash ^= boolField_.GetHashCode();
1140 hash ^= stringField_.GetHashCode(); 1197 hash ^= stringField_.GetHashCode();
1141 hash ^= bytesField_.GetHashCode(); 1198 hash ^= bytesField_.GetHashCode();
1142 return hash; 1199 return hash;
1143 } 1200 }
1144 1201
1202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1145 public override string ToString() { 1203 public override string ToString() {
1146 return pb::JsonFormatter.ToDiagnosticString(this); 1204 return pb::JsonFormatter.ToDiagnosticString(this);
1147 } 1205 }
1148 1206
1207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1149 public void WriteTo(pb::CodedOutputStream output) { 1208 public void WriteTo(pb::CodedOutputStream output) {
1150 anyField_.WriteTo(output, _repeated_anyField_codec); 1209 anyField_.WriteTo(output, _repeated_anyField_codec);
1151 apiField_.WriteTo(output, _repeated_apiField_codec); 1210 apiField_.WriteTo(output, _repeated_apiField_codec);
1152 durationField_.WriteTo(output, _repeated_durationField_codec); 1211 durationField_.WriteTo(output, _repeated_durationField_codec);
1153 emptyField_.WriteTo(output, _repeated_emptyField_codec); 1212 emptyField_.WriteTo(output, _repeated_emptyField_codec);
1154 fieldMaskField_.WriteTo(output, _repeated_fieldMaskField_codec); 1213 fieldMaskField_.WriteTo(output, _repeated_fieldMaskField_codec);
1155 sourceContextField_.WriteTo(output, _repeated_sourceContextField_codec); 1214 sourceContextField_.WriteTo(output, _repeated_sourceContextField_codec);
1156 structField_.WriteTo(output, _repeated_structField_codec); 1215 structField_.WriteTo(output, _repeated_structField_codec);
1157 timestampField_.WriteTo(output, _repeated_timestampField_codec); 1216 timestampField_.WriteTo(output, _repeated_timestampField_codec);
1158 typeField_.WriteTo(output, _repeated_typeField_codec); 1217 typeField_.WriteTo(output, _repeated_typeField_codec);
1159 doubleField_.WriteTo(output, _repeated_doubleField_codec); 1218 doubleField_.WriteTo(output, _repeated_doubleField_codec);
1160 floatField_.WriteTo(output, _repeated_floatField_codec); 1219 floatField_.WriteTo(output, _repeated_floatField_codec);
1161 int64Field_.WriteTo(output, _repeated_int64Field_codec); 1220 int64Field_.WriteTo(output, _repeated_int64Field_codec);
1162 uint64Field_.WriteTo(output, _repeated_uint64Field_codec); 1221 uint64Field_.WriteTo(output, _repeated_uint64Field_codec);
1163 int32Field_.WriteTo(output, _repeated_int32Field_codec); 1222 int32Field_.WriteTo(output, _repeated_int32Field_codec);
1164 uint32Field_.WriteTo(output, _repeated_uint32Field_codec); 1223 uint32Field_.WriteTo(output, _repeated_uint32Field_codec);
1165 boolField_.WriteTo(output, _repeated_boolField_codec); 1224 boolField_.WriteTo(output, _repeated_boolField_codec);
1166 stringField_.WriteTo(output, _repeated_stringField_codec); 1225 stringField_.WriteTo(output, _repeated_stringField_codec);
1167 bytesField_.WriteTo(output, _repeated_bytesField_codec); 1226 bytesField_.WriteTo(output, _repeated_bytesField_codec);
1168 } 1227 }
1169 1228
1229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1170 public int CalculateSize() { 1230 public int CalculateSize() {
1171 int size = 0; 1231 int size = 0;
1172 size += anyField_.CalculateSize(_repeated_anyField_codec); 1232 size += anyField_.CalculateSize(_repeated_anyField_codec);
1173 size += apiField_.CalculateSize(_repeated_apiField_codec); 1233 size += apiField_.CalculateSize(_repeated_apiField_codec);
1174 size += durationField_.CalculateSize(_repeated_durationField_codec); 1234 size += durationField_.CalculateSize(_repeated_durationField_codec);
1175 size += emptyField_.CalculateSize(_repeated_emptyField_codec); 1235 size += emptyField_.CalculateSize(_repeated_emptyField_codec);
1176 size += fieldMaskField_.CalculateSize(_repeated_fieldMaskField_codec); 1236 size += fieldMaskField_.CalculateSize(_repeated_fieldMaskField_codec);
1177 size += sourceContextField_.CalculateSize(_repeated_sourceContextField_cod ec); 1237 size += sourceContextField_.CalculateSize(_repeated_sourceContextField_cod ec);
1178 size += structField_.CalculateSize(_repeated_structField_codec); 1238 size += structField_.CalculateSize(_repeated_structField_codec);
1179 size += timestampField_.CalculateSize(_repeated_timestampField_codec); 1239 size += timestampField_.CalculateSize(_repeated_timestampField_codec);
1180 size += typeField_.CalculateSize(_repeated_typeField_codec); 1240 size += typeField_.CalculateSize(_repeated_typeField_codec);
1181 size += doubleField_.CalculateSize(_repeated_doubleField_codec); 1241 size += doubleField_.CalculateSize(_repeated_doubleField_codec);
1182 size += floatField_.CalculateSize(_repeated_floatField_codec); 1242 size += floatField_.CalculateSize(_repeated_floatField_codec);
1183 size += int64Field_.CalculateSize(_repeated_int64Field_codec); 1243 size += int64Field_.CalculateSize(_repeated_int64Field_codec);
1184 size += uint64Field_.CalculateSize(_repeated_uint64Field_codec); 1244 size += uint64Field_.CalculateSize(_repeated_uint64Field_codec);
1185 size += int32Field_.CalculateSize(_repeated_int32Field_codec); 1245 size += int32Field_.CalculateSize(_repeated_int32Field_codec);
1186 size += uint32Field_.CalculateSize(_repeated_uint32Field_codec); 1246 size += uint32Field_.CalculateSize(_repeated_uint32Field_codec);
1187 size += boolField_.CalculateSize(_repeated_boolField_codec); 1247 size += boolField_.CalculateSize(_repeated_boolField_codec);
1188 size += stringField_.CalculateSize(_repeated_stringField_codec); 1248 size += stringField_.CalculateSize(_repeated_stringField_codec);
1189 size += bytesField_.CalculateSize(_repeated_bytesField_codec); 1249 size += bytesField_.CalculateSize(_repeated_bytesField_codec);
1190 return size; 1250 return size;
1191 } 1251 }
1192 1252
1253 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1193 public void MergeFrom(RepeatedWellKnownTypes other) { 1254 public void MergeFrom(RepeatedWellKnownTypes other) {
1194 if (other == null) { 1255 if (other == null) {
1195 return; 1256 return;
1196 } 1257 }
1197 anyField_.Add(other.anyField_); 1258 anyField_.Add(other.anyField_);
1198 apiField_.Add(other.apiField_); 1259 apiField_.Add(other.apiField_);
1199 durationField_.Add(other.durationField_); 1260 durationField_.Add(other.durationField_);
1200 emptyField_.Add(other.emptyField_); 1261 emptyField_.Add(other.emptyField_);
1201 fieldMaskField_.Add(other.fieldMaskField_); 1262 fieldMaskField_.Add(other.fieldMaskField_);
1202 sourceContextField_.Add(other.sourceContextField_); 1263 sourceContextField_.Add(other.sourceContextField_);
1203 structField_.Add(other.structField_); 1264 structField_.Add(other.structField_);
1204 timestampField_.Add(other.timestampField_); 1265 timestampField_.Add(other.timestampField_);
1205 typeField_.Add(other.typeField_); 1266 typeField_.Add(other.typeField_);
1206 doubleField_.Add(other.doubleField_); 1267 doubleField_.Add(other.doubleField_);
1207 floatField_.Add(other.floatField_); 1268 floatField_.Add(other.floatField_);
1208 int64Field_.Add(other.int64Field_); 1269 int64Field_.Add(other.int64Field_);
1209 uint64Field_.Add(other.uint64Field_); 1270 uint64Field_.Add(other.uint64Field_);
1210 int32Field_.Add(other.int32Field_); 1271 int32Field_.Add(other.int32Field_);
1211 uint32Field_.Add(other.uint32Field_); 1272 uint32Field_.Add(other.uint32Field_);
1212 boolField_.Add(other.boolField_); 1273 boolField_.Add(other.boolField_);
1213 stringField_.Add(other.stringField_); 1274 stringField_.Add(other.stringField_);
1214 bytesField_.Add(other.bytesField_); 1275 bytesField_.Add(other.bytesField_);
1215 } 1276 }
1216 1277
1278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1217 public void MergeFrom(pb::CodedInputStream input) { 1279 public void MergeFrom(pb::CodedInputStream input) {
1218 uint tag; 1280 uint tag;
1219 while ((tag = input.ReadTag()) != 0) { 1281 while ((tag = input.ReadTag()) != 0) {
1220 switch(tag) { 1282 switch(tag) {
1221 default: 1283 default:
1222 input.SkipLastField(); 1284 input.SkipLastField();
1223 break; 1285 break;
1224 case 10: { 1286 case 10: {
1225 anyField_.AddEntriesFrom(input, _repeated_anyField_codec); 1287 anyField_.AddEntriesFrom(input, _repeated_anyField_codec);
1226 break; 1288 break;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 case 146: { 1354 case 146: {
1293 bytesField_.AddEntriesFrom(input, _repeated_bytesField_codec); 1355 bytesField_.AddEntriesFrom(input, _repeated_bytesField_codec);
1294 break; 1356 break;
1295 } 1357 }
1296 } 1358 }
1297 } 1359 }
1298 } 1360 }
1299 1361
1300 } 1362 }
1301 1363
1302 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1303 public sealed partial class OneofWellKnownTypes : pb::IMessage<OneofWellKnownT ypes> { 1364 public sealed partial class OneofWellKnownTypes : pb::IMessage<OneofWellKnownT ypes> {
1304 private static readonly pb::MessageParser<OneofWellKnownTypes> _parser = new pb::MessageParser<OneofWellKnownTypes>(() => new OneofWellKnownTypes()); 1365 private static readonly pb::MessageParser<OneofWellKnownTypes> _parser = new pb::MessageParser<OneofWellKnownTypes>(() => new OneofWellKnownTypes());
1366 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1305 public static pb::MessageParser<OneofWellKnownTypes> Parser { get { return _ parser; } } 1367 public static pb::MessageParser<OneofWellKnownTypes> Parser { get { return _ parser; } }
1306 1368
1369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1307 public static pbr::MessageDescriptor Descriptor { 1370 public static pbr::MessageDescriptor Descriptor {
1308 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[2]; } 1371 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[2]; }
1309 } 1372 }
1310 1373
1374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1311 pbr::MessageDescriptor pb::IMessage.Descriptor { 1375 pbr::MessageDescriptor pb::IMessage.Descriptor {
1312 get { return Descriptor; } 1376 get { return Descriptor; }
1313 } 1377 }
1314 1378
1379 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1315 public OneofWellKnownTypes() { 1380 public OneofWellKnownTypes() {
1316 OnConstruction(); 1381 OnConstruction();
1317 } 1382 }
1318 1383
1319 partial void OnConstruction(); 1384 partial void OnConstruction();
1320 1385
1386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1321 public OneofWellKnownTypes(OneofWellKnownTypes other) : this() { 1387 public OneofWellKnownTypes(OneofWellKnownTypes other) : this() {
1322 switch (other.OneofFieldCase) { 1388 switch (other.OneofFieldCase) {
1323 case OneofFieldOneofCase.AnyField: 1389 case OneofFieldOneofCase.AnyField:
1324 AnyField = other.AnyField.Clone(); 1390 AnyField = other.AnyField.Clone();
1325 break; 1391 break;
1326 case OneofFieldOneofCase.ApiField: 1392 case OneofFieldOneofCase.ApiField:
1327 ApiField = other.ApiField.Clone(); 1393 ApiField = other.ApiField.Clone();
1328 break; 1394 break;
1329 case OneofFieldOneofCase.DurationField: 1395 case OneofFieldOneofCase.DurationField:
1330 DurationField = other.DurationField.Clone(); 1396 DurationField = other.DurationField.Clone();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 case OneofFieldOneofCase.StringField: 1437 case OneofFieldOneofCase.StringField:
1372 StringField = other.StringField; 1438 StringField = other.StringField;
1373 break; 1439 break;
1374 case OneofFieldOneofCase.BytesField: 1440 case OneofFieldOneofCase.BytesField:
1375 BytesField = other.BytesField; 1441 BytesField = other.BytesField;
1376 break; 1442 break;
1377 } 1443 }
1378 1444
1379 } 1445 }
1380 1446
1447 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1381 public OneofWellKnownTypes Clone() { 1448 public OneofWellKnownTypes Clone() {
1382 return new OneofWellKnownTypes(this); 1449 return new OneofWellKnownTypes(this);
1383 } 1450 }
1384 1451
1385 /// <summary>Field number for the "any_field" field.</summary> 1452 /// <summary>Field number for the "any_field" field.</summary>
1386 public const int AnyFieldFieldNumber = 1; 1453 public const int AnyFieldFieldNumber = 1;
1454 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1387 public global::Google.Protobuf.WellKnownTypes.Any AnyField { 1455 public global::Google.Protobuf.WellKnownTypes.Any AnyField {
1388 get { return oneofFieldCase_ == OneofFieldOneofCase.AnyField ? (global::Go ogle.Protobuf.WellKnownTypes.Any) oneofField_ : null; } 1456 get { return oneofFieldCase_ == OneofFieldOneofCase.AnyField ? (global::Go ogle.Protobuf.WellKnownTypes.Any) oneofField_ : null; }
1389 set { 1457 set {
1390 oneofField_ = value; 1458 oneofField_ = value;
1391 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.AnyField; 1459 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.AnyField;
1392 } 1460 }
1393 } 1461 }
1394 1462
1395 /// <summary>Field number for the "api_field" field.</summary> 1463 /// <summary>Field number for the "api_field" field.</summary>
1396 public const int ApiFieldFieldNumber = 2; 1464 public const int ApiFieldFieldNumber = 2;
1465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1397 public global::Google.Protobuf.WellKnownTypes.Api ApiField { 1466 public global::Google.Protobuf.WellKnownTypes.Api ApiField {
1398 get { return oneofFieldCase_ == OneofFieldOneofCase.ApiField ? (global::Go ogle.Protobuf.WellKnownTypes.Api) oneofField_ : null; } 1467 get { return oneofFieldCase_ == OneofFieldOneofCase.ApiField ? (global::Go ogle.Protobuf.WellKnownTypes.Api) oneofField_ : null; }
1399 set { 1468 set {
1400 oneofField_ = value; 1469 oneofField_ = value;
1401 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.ApiField; 1470 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.ApiField;
1402 } 1471 }
1403 } 1472 }
1404 1473
1405 /// <summary>Field number for the "duration_field" field.</summary> 1474 /// <summary>Field number for the "duration_field" field.</summary>
1406 public const int DurationFieldFieldNumber = 3; 1475 public const int DurationFieldFieldNumber = 3;
1476 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1407 public global::Google.Protobuf.WellKnownTypes.Duration DurationField { 1477 public global::Google.Protobuf.WellKnownTypes.Duration DurationField {
1408 get { return oneofFieldCase_ == OneofFieldOneofCase.DurationField ? (globa l::Google.Protobuf.WellKnownTypes.Duration) oneofField_ : null; } 1478 get { return oneofFieldCase_ == OneofFieldOneofCase.DurationField ? (globa l::Google.Protobuf.WellKnownTypes.Duration) oneofField_ : null; }
1409 set { 1479 set {
1410 oneofField_ = value; 1480 oneofField_ = value;
1411 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.DurationField; 1481 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.DurationField;
1412 } 1482 }
1413 } 1483 }
1414 1484
1415 /// <summary>Field number for the "empty_field" field.</summary> 1485 /// <summary>Field number for the "empty_field" field.</summary>
1416 public const int EmptyFieldFieldNumber = 4; 1486 public const int EmptyFieldFieldNumber = 4;
1487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1417 public global::Google.Protobuf.WellKnownTypes.Empty EmptyField { 1488 public global::Google.Protobuf.WellKnownTypes.Empty EmptyField {
1418 get { return oneofFieldCase_ == OneofFieldOneofCase.EmptyField ? (global:: Google.Protobuf.WellKnownTypes.Empty) oneofField_ : null; } 1489 get { return oneofFieldCase_ == OneofFieldOneofCase.EmptyField ? (global:: Google.Protobuf.WellKnownTypes.Empty) oneofField_ : null; }
1419 set { 1490 set {
1420 oneofField_ = value; 1491 oneofField_ = value;
1421 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.EmptyField; 1492 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.EmptyField;
1422 } 1493 }
1423 } 1494 }
1424 1495
1425 /// <summary>Field number for the "field_mask_field" field.</summary> 1496 /// <summary>Field number for the "field_mask_field" field.</summary>
1426 public const int FieldMaskFieldFieldNumber = 5; 1497 public const int FieldMaskFieldFieldNumber = 5;
1498 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1427 public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField { 1499 public global::Google.Protobuf.WellKnownTypes.FieldMask FieldMaskField {
1428 get { return oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField ? (glob al::Google.Protobuf.WellKnownTypes.FieldMask) oneofField_ : null; } 1500 get { return oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField ? (glob al::Google.Protobuf.WellKnownTypes.FieldMask) oneofField_ : null; }
1429 set { 1501 set {
1430 oneofField_ = value; 1502 oneofField_ = value;
1431 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.FieldMaskField; 1503 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.FieldMaskField;
1432 } 1504 }
1433 } 1505 }
1434 1506
1435 /// <summary>Field number for the "source_context_field" field.</summary> 1507 /// <summary>Field number for the "source_context_field" field.</summary>
1436 public const int SourceContextFieldFieldNumber = 6; 1508 public const int SourceContextFieldFieldNumber = 6;
1509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1437 public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextFie ld { 1510 public global::Google.Protobuf.WellKnownTypes.SourceContext SourceContextFie ld {
1438 get { return oneofFieldCase_ == OneofFieldOneofCase.SourceContextField ? ( global::Google.Protobuf.WellKnownTypes.SourceContext) oneofField_ : null; } 1511 get { return oneofFieldCase_ == OneofFieldOneofCase.SourceContextField ? ( global::Google.Protobuf.WellKnownTypes.SourceContext) oneofField_ : null; }
1439 set { 1512 set {
1440 oneofField_ = value; 1513 oneofField_ = value;
1441 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.SourceContextField; 1514 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.SourceContextField;
1442 } 1515 }
1443 } 1516 }
1444 1517
1445 /// <summary>Field number for the "struct_field" field.</summary> 1518 /// <summary>Field number for the "struct_field" field.</summary>
1446 public const int StructFieldFieldNumber = 7; 1519 public const int StructFieldFieldNumber = 7;
1520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1447 public global::Google.Protobuf.WellKnownTypes.Struct StructField { 1521 public global::Google.Protobuf.WellKnownTypes.Struct StructField {
1448 get { return oneofFieldCase_ == OneofFieldOneofCase.StructField ? (global: :Google.Protobuf.WellKnownTypes.Struct) oneofField_ : null; } 1522 get { return oneofFieldCase_ == OneofFieldOneofCase.StructField ? (global: :Google.Protobuf.WellKnownTypes.Struct) oneofField_ : null; }
1449 set { 1523 set {
1450 oneofField_ = value; 1524 oneofField_ = value;
1451 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.StructField; 1525 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.StructField;
1452 } 1526 }
1453 } 1527 }
1454 1528
1455 /// <summary>Field number for the "timestamp_field" field.</summary> 1529 /// <summary>Field number for the "timestamp_field" field.</summary>
1456 public const int TimestampFieldFieldNumber = 8; 1530 public const int TimestampFieldFieldNumber = 8;
1531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1457 public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField { 1532 public global::Google.Protobuf.WellKnownTypes.Timestamp TimestampField {
1458 get { return oneofFieldCase_ == OneofFieldOneofCase.TimestampField ? (glob al::Google.Protobuf.WellKnownTypes.Timestamp) oneofField_ : null; } 1533 get { return oneofFieldCase_ == OneofFieldOneofCase.TimestampField ? (glob al::Google.Protobuf.WellKnownTypes.Timestamp) oneofField_ : null; }
1459 set { 1534 set {
1460 oneofField_ = value; 1535 oneofField_ = value;
1461 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.TimestampField; 1536 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.TimestampField;
1462 } 1537 }
1463 } 1538 }
1464 1539
1465 /// <summary>Field number for the "type_field" field.</summary> 1540 /// <summary>Field number for the "type_field" field.</summary>
1466 public const int TypeFieldFieldNumber = 9; 1541 public const int TypeFieldFieldNumber = 9;
1542 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1467 public global::Google.Protobuf.WellKnownTypes.Type TypeField { 1543 public global::Google.Protobuf.WellKnownTypes.Type TypeField {
1468 get { return oneofFieldCase_ == OneofFieldOneofCase.TypeField ? (global::G oogle.Protobuf.WellKnownTypes.Type) oneofField_ : null; } 1544 get { return oneofFieldCase_ == OneofFieldOneofCase.TypeField ? (global::G oogle.Protobuf.WellKnownTypes.Type) oneofField_ : null; }
1469 set { 1545 set {
1470 oneofField_ = value; 1546 oneofField_ = value;
1471 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.TypeField; 1547 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.TypeField;
1472 } 1548 }
1473 } 1549 }
1474 1550
1475 /// <summary>Field number for the "double_field" field.</summary> 1551 /// <summary>Field number for the "double_field" field.</summary>
1476 public const int DoubleFieldFieldNumber = 10; 1552 public const int DoubleFieldFieldNumber = 10;
1477 private static readonly pb::FieldCodec<double?> _oneof_doubleField_codec = p b::FieldCodec.ForStructWrapper<double>(82); 1553 private static readonly pb::FieldCodec<double?> _oneof_doubleField_codec = p b::FieldCodec.ForStructWrapper<double>(82);
1554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1478 public double? DoubleField { 1555 public double? DoubleField {
1479 get { return oneofFieldCase_ == OneofFieldOneofCase.DoubleField ? (double? ) oneofField_ : (double?) null; } 1556 get { return oneofFieldCase_ == OneofFieldOneofCase.DoubleField ? (double? ) oneofField_ : (double?) null; }
1480 set { 1557 set {
1481 oneofField_ = value; 1558 oneofField_ = value;
1482 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.DoubleField; 1559 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.DoubleField;
1483 } 1560 }
1484 } 1561 }
1485 1562
1486 /// <summary>Field number for the "float_field" field.</summary> 1563 /// <summary>Field number for the "float_field" field.</summary>
1487 public const int FloatFieldFieldNumber = 11; 1564 public const int FloatFieldFieldNumber = 11;
1488 private static readonly pb::FieldCodec<float?> _oneof_floatField_codec = pb: :FieldCodec.ForStructWrapper<float>(90); 1565 private static readonly pb::FieldCodec<float?> _oneof_floatField_codec = pb: :FieldCodec.ForStructWrapper<float>(90);
1566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1489 public float? FloatField { 1567 public float? FloatField {
1490 get { return oneofFieldCase_ == OneofFieldOneofCase.FloatField ? (float?) oneofField_ : (float?) null; } 1568 get { return oneofFieldCase_ == OneofFieldOneofCase.FloatField ? (float?) oneofField_ : (float?) null; }
1491 set { 1569 set {
1492 oneofField_ = value; 1570 oneofField_ = value;
1493 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.FloatField; 1571 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.FloatField;
1494 } 1572 }
1495 } 1573 }
1496 1574
1497 /// <summary>Field number for the "int64_field" field.</summary> 1575 /// <summary>Field number for the "int64_field" field.</summary>
1498 public const int Int64FieldFieldNumber = 12; 1576 public const int Int64FieldFieldNumber = 12;
1499 private static readonly pb::FieldCodec<long?> _oneof_int64Field_codec = pb:: FieldCodec.ForStructWrapper<long>(98); 1577 private static readonly pb::FieldCodec<long?> _oneof_int64Field_codec = pb:: FieldCodec.ForStructWrapper<long>(98);
1578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1500 public long? Int64Field { 1579 public long? Int64Field {
1501 get { return oneofFieldCase_ == OneofFieldOneofCase.Int64Field ? (long?) o neofField_ : (long?) null; } 1580 get { return oneofFieldCase_ == OneofFieldOneofCase.Int64Field ? (long?) o neofField_ : (long?) null; }
1502 set { 1581 set {
1503 oneofField_ = value; 1582 oneofField_ = value;
1504 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Int64Field; 1583 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Int64Field;
1505 } 1584 }
1506 } 1585 }
1507 1586
1508 /// <summary>Field number for the "uint64_field" field.</summary> 1587 /// <summary>Field number for the "uint64_field" field.</summary>
1509 public const int Uint64FieldFieldNumber = 13; 1588 public const int Uint64FieldFieldNumber = 13;
1510 private static readonly pb::FieldCodec<ulong?> _oneof_uint64Field_codec = pb ::FieldCodec.ForStructWrapper<ulong>(106); 1589 private static readonly pb::FieldCodec<ulong?> _oneof_uint64Field_codec = pb ::FieldCodec.ForStructWrapper<ulong>(106);
1590 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1511 public ulong? Uint64Field { 1591 public ulong? Uint64Field {
1512 get { return oneofFieldCase_ == OneofFieldOneofCase.Uint64Field ? (ulong?) oneofField_ : (ulong?) null; } 1592 get { return oneofFieldCase_ == OneofFieldOneofCase.Uint64Field ? (ulong?) oneofField_ : (ulong?) null; }
1513 set { 1593 set {
1514 oneofField_ = value; 1594 oneofField_ = value;
1515 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Uint64Field; 1595 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Uint64Field;
1516 } 1596 }
1517 } 1597 }
1518 1598
1519 /// <summary>Field number for the "int32_field" field.</summary> 1599 /// <summary>Field number for the "int32_field" field.</summary>
1520 public const int Int32FieldFieldNumber = 14; 1600 public const int Int32FieldFieldNumber = 14;
1521 private static readonly pb::FieldCodec<int?> _oneof_int32Field_codec = pb::F ieldCodec.ForStructWrapper<int>(114); 1601 private static readonly pb::FieldCodec<int?> _oneof_int32Field_codec = pb::F ieldCodec.ForStructWrapper<int>(114);
1602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1522 public int? Int32Field { 1603 public int? Int32Field {
1523 get { return oneofFieldCase_ == OneofFieldOneofCase.Int32Field ? (int?) on eofField_ : (int?) null; } 1604 get { return oneofFieldCase_ == OneofFieldOneofCase.Int32Field ? (int?) on eofField_ : (int?) null; }
1524 set { 1605 set {
1525 oneofField_ = value; 1606 oneofField_ = value;
1526 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Int32Field; 1607 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Int32Field;
1527 } 1608 }
1528 } 1609 }
1529 1610
1530 /// <summary>Field number for the "uint32_field" field.</summary> 1611 /// <summary>Field number for the "uint32_field" field.</summary>
1531 public const int Uint32FieldFieldNumber = 15; 1612 public const int Uint32FieldFieldNumber = 15;
1532 private static readonly pb::FieldCodec<uint?> _oneof_uint32Field_codec = pb: :FieldCodec.ForStructWrapper<uint>(122); 1613 private static readonly pb::FieldCodec<uint?> _oneof_uint32Field_codec = pb: :FieldCodec.ForStructWrapper<uint>(122);
1614 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1533 public uint? Uint32Field { 1615 public uint? Uint32Field {
1534 get { return oneofFieldCase_ == OneofFieldOneofCase.Uint32Field ? (uint?) oneofField_ : (uint?) null; } 1616 get { return oneofFieldCase_ == OneofFieldOneofCase.Uint32Field ? (uint?) oneofField_ : (uint?) null; }
1535 set { 1617 set {
1536 oneofField_ = value; 1618 oneofField_ = value;
1537 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Uint32Field; 1619 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.Uint32Field;
1538 } 1620 }
1539 } 1621 }
1540 1622
1541 /// <summary>Field number for the "bool_field" field.</summary> 1623 /// <summary>Field number for the "bool_field" field.</summary>
1542 public const int BoolFieldFieldNumber = 16; 1624 public const int BoolFieldFieldNumber = 16;
1543 private static readonly pb::FieldCodec<bool?> _oneof_boolField_codec = pb::F ieldCodec.ForStructWrapper<bool>(130); 1625 private static readonly pb::FieldCodec<bool?> _oneof_boolField_codec = pb::F ieldCodec.ForStructWrapper<bool>(130);
1626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1544 public bool? BoolField { 1627 public bool? BoolField {
1545 get { return oneofFieldCase_ == OneofFieldOneofCase.BoolField ? (bool?) on eofField_ : (bool?) null; } 1628 get { return oneofFieldCase_ == OneofFieldOneofCase.BoolField ? (bool?) on eofField_ : (bool?) null; }
1546 set { 1629 set {
1547 oneofField_ = value; 1630 oneofField_ = value;
1548 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.BoolField; 1631 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.BoolField;
1549 } 1632 }
1550 } 1633 }
1551 1634
1552 /// <summary>Field number for the "string_field" field.</summary> 1635 /// <summary>Field number for the "string_field" field.</summary>
1553 public const int StringFieldFieldNumber = 17; 1636 public const int StringFieldFieldNumber = 17;
1554 private static readonly pb::FieldCodec<string> _oneof_stringField_codec = pb ::FieldCodec.ForClassWrapper<string>(138); 1637 private static readonly pb::FieldCodec<string> _oneof_stringField_codec = pb ::FieldCodec.ForClassWrapper<string>(138);
1638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1555 public string StringField { 1639 public string StringField {
1556 get { return oneofFieldCase_ == OneofFieldOneofCase.StringField ? (string) oneofField_ : (string) null; } 1640 get { return oneofFieldCase_ == OneofFieldOneofCase.StringField ? (string) oneofField_ : (string) null; }
1557 set { 1641 set {
1558 oneofField_ = value; 1642 oneofField_ = value;
1559 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.StringField; 1643 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.StringField;
1560 } 1644 }
1561 } 1645 }
1562 1646
1563 /// <summary>Field number for the "bytes_field" field.</summary> 1647 /// <summary>Field number for the "bytes_field" field.</summary>
1564 public const int BytesFieldFieldNumber = 18; 1648 public const int BytesFieldFieldNumber = 18;
1565 private static readonly pb::FieldCodec<pb::ByteString> _oneof_bytesField_cod ec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146); 1649 private static readonly pb::FieldCodec<pb::ByteString> _oneof_bytesField_cod ec = pb::FieldCodec.ForClassWrapper<pb::ByteString>(146);
1650 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1566 public pb::ByteString BytesField { 1651 public pb::ByteString BytesField {
1567 get { return oneofFieldCase_ == OneofFieldOneofCase.BytesField ? (pb::Byte String) oneofField_ : (pb::ByteString) null; } 1652 get { return oneofFieldCase_ == OneofFieldOneofCase.BytesField ? (pb::Byte String) oneofField_ : (pb::ByteString) null; }
1568 set { 1653 set {
1569 oneofField_ = value; 1654 oneofField_ = value;
1570 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.BytesField; 1655 oneofFieldCase_ = value == null ? OneofFieldOneofCase.None : OneofFieldO neofCase.BytesField;
1571 } 1656 }
1572 } 1657 }
1573 1658
1574 private object oneofField_; 1659 private object oneofField_;
1575 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary> 1660 /// <summary>Enum of possible cases for the "oneof_field" oneof.</summary>
(...skipping 12 matching lines...) Expand all
1588 FloatField = 11, 1673 FloatField = 11,
1589 Int64Field = 12, 1674 Int64Field = 12,
1590 Uint64Field = 13, 1675 Uint64Field = 13,
1591 Int32Field = 14, 1676 Int32Field = 14,
1592 Uint32Field = 15, 1677 Uint32Field = 15,
1593 BoolField = 16, 1678 BoolField = 16,
1594 StringField = 17, 1679 StringField = 17,
1595 BytesField = 18, 1680 BytesField = 18,
1596 } 1681 }
1597 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None; 1682 private OneofFieldOneofCase oneofFieldCase_ = OneofFieldOneofCase.None;
1683 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1598 public OneofFieldOneofCase OneofFieldCase { 1684 public OneofFieldOneofCase OneofFieldCase {
1599 get { return oneofFieldCase_; } 1685 get { return oneofFieldCase_; }
1600 } 1686 }
1601 1687
1688 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1602 public void ClearOneofField() { 1689 public void ClearOneofField() {
1603 oneofFieldCase_ = OneofFieldOneofCase.None; 1690 oneofFieldCase_ = OneofFieldOneofCase.None;
1604 oneofField_ = null; 1691 oneofField_ = null;
1605 } 1692 }
1606 1693
1694 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1607 public override bool Equals(object other) { 1695 public override bool Equals(object other) {
1608 return Equals(other as OneofWellKnownTypes); 1696 return Equals(other as OneofWellKnownTypes);
1609 } 1697 }
1610 1698
1699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1611 public bool Equals(OneofWellKnownTypes other) { 1700 public bool Equals(OneofWellKnownTypes other) {
1612 if (ReferenceEquals(other, null)) { 1701 if (ReferenceEquals(other, null)) {
1613 return false; 1702 return false;
1614 } 1703 }
1615 if (ReferenceEquals(other, this)) { 1704 if (ReferenceEquals(other, this)) {
1616 return true; 1705 return true;
1617 } 1706 }
1618 if (!object.Equals(AnyField, other.AnyField)) return false; 1707 if (!object.Equals(AnyField, other.AnyField)) return false;
1619 if (!object.Equals(ApiField, other.ApiField)) return false; 1708 if (!object.Equals(ApiField, other.ApiField)) return false;
1620 if (!object.Equals(DurationField, other.DurationField)) return false; 1709 if (!object.Equals(DurationField, other.DurationField)) return false;
1621 if (!object.Equals(EmptyField, other.EmptyField)) return false; 1710 if (!object.Equals(EmptyField, other.EmptyField)) return false;
1622 if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false; 1711 if (!object.Equals(FieldMaskField, other.FieldMaskField)) return false;
1623 if (!object.Equals(SourceContextField, other.SourceContextField)) return f alse; 1712 if (!object.Equals(SourceContextField, other.SourceContextField)) return f alse;
1624 if (!object.Equals(StructField, other.StructField)) return false; 1713 if (!object.Equals(StructField, other.StructField)) return false;
1625 if (!object.Equals(TimestampField, other.TimestampField)) return false; 1714 if (!object.Equals(TimestampField, other.TimestampField)) return false;
1626 if (!object.Equals(TypeField, other.TypeField)) return false; 1715 if (!object.Equals(TypeField, other.TypeField)) return false;
1627 if (DoubleField != other.DoubleField) return false; 1716 if (DoubleField != other.DoubleField) return false;
1628 if (FloatField != other.FloatField) return false; 1717 if (FloatField != other.FloatField) return false;
1629 if (Int64Field != other.Int64Field) return false; 1718 if (Int64Field != other.Int64Field) return false;
1630 if (Uint64Field != other.Uint64Field) return false; 1719 if (Uint64Field != other.Uint64Field) return false;
1631 if (Int32Field != other.Int32Field) return false; 1720 if (Int32Field != other.Int32Field) return false;
1632 if (Uint32Field != other.Uint32Field) return false; 1721 if (Uint32Field != other.Uint32Field) return false;
1633 if (BoolField != other.BoolField) return false; 1722 if (BoolField != other.BoolField) return false;
1634 if (StringField != other.StringField) return false; 1723 if (StringField != other.StringField) return false;
1635 if (BytesField != other.BytesField) return false; 1724 if (BytesField != other.BytesField) return false;
1636 if (OneofFieldCase != other.OneofFieldCase) return false; 1725 if (OneofFieldCase != other.OneofFieldCase) return false;
1637 return true; 1726 return true;
1638 } 1727 }
1639 1728
1729 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1640 public override int GetHashCode() { 1730 public override int GetHashCode() {
1641 int hash = 1; 1731 int hash = 1;
1642 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) hash ^= AnyField.GetH ashCode(); 1732 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) hash ^= AnyField.GetH ashCode();
1643 if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) hash ^= ApiField.GetH ashCode(); 1733 if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) hash ^= ApiField.GetH ashCode();
1644 if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) hash ^= Duration Field.GetHashCode(); 1734 if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) hash ^= Duration Field.GetHashCode();
1645 if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) hash ^= EmptyField. GetHashCode(); 1735 if (oneofFieldCase_ == OneofFieldOneofCase.EmptyField) hash ^= EmptyField. GetHashCode();
1646 if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) hash ^= FieldMa skField.GetHashCode(); 1736 if (oneofFieldCase_ == OneofFieldOneofCase.FieldMaskField) hash ^= FieldMa skField.GetHashCode();
1647 if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) hash ^= Sou rceContextField.GetHashCode(); 1737 if (oneofFieldCase_ == OneofFieldOneofCase.SourceContextField) hash ^= Sou rceContextField.GetHashCode();
1648 if (oneofFieldCase_ == OneofFieldOneofCase.StructField) hash ^= StructFiel d.GetHashCode(); 1738 if (oneofFieldCase_ == OneofFieldOneofCase.StructField) hash ^= StructFiel d.GetHashCode();
1649 if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) hash ^= Timesta mpField.GetHashCode(); 1739 if (oneofFieldCase_ == OneofFieldOneofCase.TimestampField) hash ^= Timesta mpField.GetHashCode();
1650 if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) hash ^= TypeField.Ge tHashCode(); 1740 if (oneofFieldCase_ == OneofFieldOneofCase.TypeField) hash ^= TypeField.Ge tHashCode();
1651 if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) hash ^= DoubleFiel d.GetHashCode(); 1741 if (oneofFieldCase_ == OneofFieldOneofCase.DoubleField) hash ^= DoubleFiel d.GetHashCode();
1652 if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) hash ^= FloatField. GetHashCode(); 1742 if (oneofFieldCase_ == OneofFieldOneofCase.FloatField) hash ^= FloatField. GetHashCode();
1653 if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) hash ^= Int64Field. GetHashCode(); 1743 if (oneofFieldCase_ == OneofFieldOneofCase.Int64Field) hash ^= Int64Field. GetHashCode();
1654 if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) hash ^= Uint64Fiel d.GetHashCode(); 1744 if (oneofFieldCase_ == OneofFieldOneofCase.Uint64Field) hash ^= Uint64Fiel d.GetHashCode();
1655 if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) hash ^= Int32Field. GetHashCode(); 1745 if (oneofFieldCase_ == OneofFieldOneofCase.Int32Field) hash ^= Int32Field. GetHashCode();
1656 if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) hash ^= Uint32Fiel d.GetHashCode(); 1746 if (oneofFieldCase_ == OneofFieldOneofCase.Uint32Field) hash ^= Uint32Fiel d.GetHashCode();
1657 if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) hash ^= BoolField.Ge tHashCode(); 1747 if (oneofFieldCase_ == OneofFieldOneofCase.BoolField) hash ^= BoolField.Ge tHashCode();
1658 if (oneofFieldCase_ == OneofFieldOneofCase.StringField) hash ^= StringFiel d.GetHashCode(); 1748 if (oneofFieldCase_ == OneofFieldOneofCase.StringField) hash ^= StringFiel d.GetHashCode();
1659 if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) hash ^= BytesField. GetHashCode(); 1749 if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) hash ^= BytesField. GetHashCode();
1660 hash ^= (int) oneofFieldCase_; 1750 hash ^= (int) oneofFieldCase_;
1661 return hash; 1751 return hash;
1662 } 1752 }
1663 1753
1754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1664 public override string ToString() { 1755 public override string ToString() {
1665 return pb::JsonFormatter.ToDiagnosticString(this); 1756 return pb::JsonFormatter.ToDiagnosticString(this);
1666 } 1757 }
1667 1758
1759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1668 public void WriteTo(pb::CodedOutputStream output) { 1760 public void WriteTo(pb::CodedOutputStream output) {
1669 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) { 1761 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
1670 output.WriteRawTag(10); 1762 output.WriteRawTag(10);
1671 output.WriteMessage(AnyField); 1763 output.WriteMessage(AnyField);
1672 } 1764 }
1673 if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) { 1765 if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
1674 output.WriteRawTag(18); 1766 output.WriteRawTag(18);
1675 output.WriteMessage(ApiField); 1767 output.WriteMessage(ApiField);
1676 } 1768 }
1677 if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) { 1769 if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
1724 _oneof_boolField_codec.WriteTagAndValue(output, (bool?) oneofField_); 1816 _oneof_boolField_codec.WriteTagAndValue(output, (bool?) oneofField_);
1725 } 1817 }
1726 if (oneofFieldCase_ == OneofFieldOneofCase.StringField) { 1818 if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
1727 _oneof_stringField_codec.WriteTagAndValue(output, (string) oneofField_); 1819 _oneof_stringField_codec.WriteTagAndValue(output, (string) oneofField_);
1728 } 1820 }
1729 if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) { 1821 if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
1730 _oneof_bytesField_codec.WriteTagAndValue(output, (pb::ByteString) oneofF ield_); 1822 _oneof_bytesField_codec.WriteTagAndValue(output, (pb::ByteString) oneofF ield_);
1731 } 1823 }
1732 } 1824 }
1733 1825
1826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1734 public int CalculateSize() { 1827 public int CalculateSize() {
1735 int size = 0; 1828 int size = 0;
1736 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) { 1829 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
1737 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField); 1830 size += 1 + pb::CodedOutputStream.ComputeMessageSize(AnyField);
1738 } 1831 }
1739 if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) { 1832 if (oneofFieldCase_ == OneofFieldOneofCase.ApiField) {
1740 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField); 1833 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ApiField);
1741 } 1834 }
1742 if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) { 1835 if (oneofFieldCase_ == OneofFieldOneofCase.DurationField) {
1743 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField); 1836 size += 1 + pb::CodedOutputStream.ComputeMessageSize(DurationField);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 } 1876 }
1784 if (oneofFieldCase_ == OneofFieldOneofCase.StringField) { 1877 if (oneofFieldCase_ == OneofFieldOneofCase.StringField) {
1785 size += _oneof_stringField_codec.CalculateSizeWithTag(StringField); 1878 size += _oneof_stringField_codec.CalculateSizeWithTag(StringField);
1786 } 1879 }
1787 if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) { 1880 if (oneofFieldCase_ == OneofFieldOneofCase.BytesField) {
1788 size += _oneof_bytesField_codec.CalculateSizeWithTag(BytesField); 1881 size += _oneof_bytesField_codec.CalculateSizeWithTag(BytesField);
1789 } 1882 }
1790 return size; 1883 return size;
1791 } 1884 }
1792 1885
1886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1793 public void MergeFrom(OneofWellKnownTypes other) { 1887 public void MergeFrom(OneofWellKnownTypes other) {
1794 if (other == null) { 1888 if (other == null) {
1795 return; 1889 return;
1796 } 1890 }
1797 switch (other.OneofFieldCase) { 1891 switch (other.OneofFieldCase) {
1798 case OneofFieldOneofCase.AnyField: 1892 case OneofFieldOneofCase.AnyField:
1799 AnyField = other.AnyField; 1893 AnyField = other.AnyField;
1800 break; 1894 break;
1801 case OneofFieldOneofCase.ApiField: 1895 case OneofFieldOneofCase.ApiField:
1802 ApiField = other.ApiField; 1896 ApiField = other.ApiField;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1846 case OneofFieldOneofCase.StringField: 1940 case OneofFieldOneofCase.StringField:
1847 StringField = other.StringField; 1941 StringField = other.StringField;
1848 break; 1942 break;
1849 case OneofFieldOneofCase.BytesField: 1943 case OneofFieldOneofCase.BytesField:
1850 BytesField = other.BytesField; 1944 BytesField = other.BytesField;
1851 break; 1945 break;
1852 } 1946 }
1853 1947
1854 } 1948 }
1855 1949
1950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1856 public void MergeFrom(pb::CodedInputStream input) { 1951 public void MergeFrom(pb::CodedInputStream input) {
1857 uint tag; 1952 uint tag;
1858 while ((tag = input.ReadTag()) != 0) { 1953 while ((tag = input.ReadTag()) != 0) {
1859 switch(tag) { 1954 switch(tag) {
1860 default: 1955 default:
1861 input.SkipLastField(); 1956 input.SkipLastField();
1862 break; 1957 break;
1863 case 10: { 1958 case 10: {
1864 global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global:: Google.Protobuf.WellKnownTypes.Any(); 1959 global::Google.Protobuf.WellKnownTypes.Any subBuilder = new global:: Google.Protobuf.WellKnownTypes.Any();
1865 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) { 1960 if (oneofFieldCase_ == OneofFieldOneofCase.AnyField) {
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
1977 BytesField = _oneof_bytesField_codec.Read(input); 2072 BytesField = _oneof_bytesField_codec.Read(input);
1978 break; 2073 break;
1979 } 2074 }
1980 } 2075 }
1981 } 2076 }
1982 } 2077 }
1983 2078
1984 } 2079 }
1985 2080
1986 /// <summary> 2081 /// <summary>
1987 /// A map field for each well-known type. We only 2082 /// A map field for each well-known type. We only
1988 /// need to worry about the value part of the map being the 2083 /// need to worry about the value part of the map being the
1989 /// well-known types, as messages can't be map keys. 2084 /// well-known types, as messages can't be map keys.
1990 /// </summary> 2085 /// </summary>
1991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1992 public sealed partial class MapWellKnownTypes : pb::IMessage<MapWellKnownTypes > { 2086 public sealed partial class MapWellKnownTypes : pb::IMessage<MapWellKnownTypes > {
1993 private static readonly pb::MessageParser<MapWellKnownTypes> _parser = new p b::MessageParser<MapWellKnownTypes>(() => new MapWellKnownTypes()); 2087 private static readonly pb::MessageParser<MapWellKnownTypes> _parser = new p b::MessageParser<MapWellKnownTypes>(() => new MapWellKnownTypes());
2088 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1994 public static pb::MessageParser<MapWellKnownTypes> Parser { get { return _pa rser; } } 2089 public static pb::MessageParser<MapWellKnownTypes> Parser { get { return _pa rser; } }
1995 2090
2091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1996 public static pbr::MessageDescriptor Descriptor { 2092 public static pbr::MessageDescriptor Descriptor {
1997 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[3]; } 2093 get { return global::Google.Protobuf.TestProtos.UnittestWellKnownTypesRefl ection.Descriptor.MessageTypes[3]; }
1998 } 2094 }
1999 2095
2096 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2000 pbr::MessageDescriptor pb::IMessage.Descriptor { 2097 pbr::MessageDescriptor pb::IMessage.Descriptor {
2001 get { return Descriptor; } 2098 get { return Descriptor; }
2002 } 2099 }
2003 2100
2101 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2004 public MapWellKnownTypes() { 2102 public MapWellKnownTypes() {
2005 OnConstruction(); 2103 OnConstruction();
2006 } 2104 }
2007 2105
2008 partial void OnConstruction(); 2106 partial void OnConstruction();
2009 2107
2108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2010 public MapWellKnownTypes(MapWellKnownTypes other) : this() { 2109 public MapWellKnownTypes(MapWellKnownTypes other) : this() {
2011 anyField_ = other.anyField_.Clone(); 2110 anyField_ = other.anyField_.Clone();
2012 apiField_ = other.apiField_.Clone(); 2111 apiField_ = other.apiField_.Clone();
2013 durationField_ = other.durationField_.Clone(); 2112 durationField_ = other.durationField_.Clone();
2014 emptyField_ = other.emptyField_.Clone(); 2113 emptyField_ = other.emptyField_.Clone();
2015 fieldMaskField_ = other.fieldMaskField_.Clone(); 2114 fieldMaskField_ = other.fieldMaskField_.Clone();
2016 sourceContextField_ = other.sourceContextField_.Clone(); 2115 sourceContextField_ = other.sourceContextField_.Clone();
2017 structField_ = other.structField_.Clone(); 2116 structField_ = other.structField_.Clone();
2018 timestampField_ = other.timestampField_.Clone(); 2117 timestampField_ = other.timestampField_.Clone();
2019 typeField_ = other.typeField_.Clone(); 2118 typeField_ = other.typeField_.Clone();
2020 doubleField_ = other.doubleField_.Clone(); 2119 doubleField_ = other.doubleField_.Clone();
2021 floatField_ = other.floatField_.Clone(); 2120 floatField_ = other.floatField_.Clone();
2022 int64Field_ = other.int64Field_.Clone(); 2121 int64Field_ = other.int64Field_.Clone();
2023 uint64Field_ = other.uint64Field_.Clone(); 2122 uint64Field_ = other.uint64Field_.Clone();
2024 int32Field_ = other.int32Field_.Clone(); 2123 int32Field_ = other.int32Field_.Clone();
2025 uint32Field_ = other.uint32Field_.Clone(); 2124 uint32Field_ = other.uint32Field_.Clone();
2026 boolField_ = other.boolField_.Clone(); 2125 boolField_ = other.boolField_.Clone();
2027 stringField_ = other.stringField_.Clone(); 2126 stringField_ = other.stringField_.Clone();
2028 bytesField_ = other.bytesField_.Clone(); 2127 bytesField_ = other.bytesField_.Clone();
2029 } 2128 }
2030 2129
2130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2031 public MapWellKnownTypes Clone() { 2131 public MapWellKnownTypes Clone() {
2032 return new MapWellKnownTypes(this); 2132 return new MapWellKnownTypes(this);
2033 } 2133 }
2034 2134
2035 /// <summary>Field number for the "any_field" field.</summary> 2135 /// <summary>Field number for the "any_field" field.</summary>
2036 public const int AnyFieldFieldNumber = 1; 2136 public const int AnyFieldFieldNumber = 1;
2037 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Any>.Codec _map_anyField_codec 2137 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Any>.Codec _map_anyField_codec
2038 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Cod ec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Prot obuf.WellKnownTypes.Any.Parser), 10); 2138 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any>.Cod ec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Prot obuf.WellKnownTypes.Any.Parser), 10);
2039 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.A ny> anyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.An y>(); 2139 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.A ny> anyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.An y>();
2140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2040 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> AnyFie ld { 2141 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Any> AnyFie ld {
2041 get { return anyField_; } 2142 get { return anyField_; }
2042 } 2143 }
2043 2144
2044 /// <summary>Field number for the "api_field" field.</summary> 2145 /// <summary>Field number for the "api_field" field.</summary>
2045 public const int ApiFieldFieldNumber = 2; 2146 public const int ApiFieldFieldNumber = 2;
2046 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Api>.Codec _map_apiField_codec 2147 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Api>.Codec _map_apiField_codec
2047 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Cod ec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Prot obuf.WellKnownTypes.Api.Parser), 18); 2148 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api>.Cod ec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Prot obuf.WellKnownTypes.Api.Parser), 18);
2048 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.A pi> apiField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Ap i>(); 2149 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.A pi> apiField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Ap i>();
2150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2049 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> ApiFie ld { 2151 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Api> ApiFie ld {
2050 get { return apiField_; } 2152 get { return apiField_; }
2051 } 2153 }
2052 2154
2053 /// <summary>Field number for the "duration_field" field.</summary> 2155 /// <summary>Field number for the "duration_field" field.</summary>
2054 public const int DurationFieldFieldNumber = 3; 2156 public const int DurationFieldFieldNumber = 3;
2055 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Duration>.Codec _map_durationField_codec 2157 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Duration>.Codec _map_durationField_codec
2056 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration >.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google .Protobuf.WellKnownTypes.Duration.Parser), 26); 2158 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration >.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google .Protobuf.WellKnownTypes.Duration.Parser), 26);
2057 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.D uration> durationField_ = new pbc::MapField<int, global::Google.Protobuf.WellKno wnTypes.Duration>(); 2159 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.D uration> durationField_ = new pbc::MapField<int, global::Google.Protobuf.WellKno wnTypes.Duration>();
2160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2058 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> D urationField { 2161 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Duration> D urationField {
2059 get { return durationField_; } 2162 get { return durationField_; }
2060 } 2163 }
2061 2164
2062 /// <summary>Field number for the "empty_field" field.</summary> 2165 /// <summary>Field number for the "empty_field" field.</summary>
2063 public const int EmptyFieldFieldNumber = 4; 2166 public const int EmptyFieldFieldNumber = 4;
2064 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Empty>.Codec _map_emptyField_codec 2167 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Empty>.Codec _map_emptyField_codec
2065 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.C odec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Pr otobuf.WellKnownTypes.Empty.Parser), 34); 2168 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty>.C odec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Pr otobuf.WellKnownTypes.Empty.Parser), 34);
2066 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.E mpty> emptyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownType s.Empty>(); 2169 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.E mpty> emptyField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownType s.Empty>();
2170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2067 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> Empt yField { 2171 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Empty> Empt yField {
2068 get { return emptyField_; } 2172 get { return emptyField_; }
2069 } 2173 }
2070 2174
2071 /// <summary>Field number for the "field_mask_field" field.</summary> 2175 /// <summary>Field number for the "field_mask_field" field.</summary>
2072 public const int FieldMaskFieldFieldNumber = 5; 2176 public const int FieldMaskFieldFieldNumber = 5;
2073 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.FieldMask>.Codec _map_fieldMaskField_codec 2177 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.FieldMask>.Codec _map_fieldMaskField_codec
2074 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMas k>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Googl e.Protobuf.WellKnownTypes.FieldMask.Parser), 42); 2178 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMas k>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Googl e.Protobuf.WellKnownTypes.FieldMask.Parser), 42);
2075 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.F ieldMask> fieldMaskField_ = new pbc::MapField<int, global::Google.Protobuf.WellK nownTypes.FieldMask>(); 2179 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.F ieldMask> fieldMaskField_ = new pbc::MapField<int, global::Google.Protobuf.WellK nownTypes.FieldMask>();
2180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2076 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField { 2181 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.FieldMask> FieldMaskField {
2077 get { return fieldMaskField_; } 2182 get { return fieldMaskField_; }
2078 } 2183 }
2079 2184
2080 /// <summary>Field number for the "source_context_field" field.</summary> 2185 /// <summary>Field number for the "source_context_field" field.</summary>
2081 public const int SourceContextFieldFieldNumber = 6; 2186 public const int SourceContextFieldFieldNumber = 6;
2082 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.SourceContext>.Codec _map_sourceContextField_codec 2187 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.SourceContext>.Codec _map_sourceContextField_codec
2083 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceCo ntext>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::G oogle.Protobuf.WellKnownTypes.SourceContext.Parser), 50); 2188 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceCo ntext>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::G oogle.Protobuf.WellKnownTypes.SourceContext.Parser), 50);
2084 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.S ourceContext> sourceContextField_ = new pbc::MapField<int, global::Google.Protob uf.WellKnownTypes.SourceContext>(); 2189 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.S ourceContext> sourceContextField_ = new pbc::MapField<int, global::Google.Protob uf.WellKnownTypes.SourceContext>();
2190 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2085 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceConte xt> SourceContextField { 2191 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.SourceConte xt> SourceContextField {
2086 get { return sourceContextField_; } 2192 get { return sourceContextField_; }
2087 } 2193 }
2088 2194
2089 /// <summary>Field number for the "struct_field" field.</summary> 2195 /// <summary>Field number for the "struct_field" field.</summary>
2090 public const int StructFieldFieldNumber = 7; 2196 public const int StructFieldFieldNumber = 7;
2091 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Struct>.Codec _map_structField_codec 2197 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Struct>.Codec _map_structField_codec
2092 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>. Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.P rotobuf.WellKnownTypes.Struct.Parser), 58); 2198 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct>. Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.P rotobuf.WellKnownTypes.Struct.Parser), 58);
2093 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.S truct> structField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTy pes.Struct>(); 2199 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.S truct> structField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTy pes.Struct>();
2200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2094 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> Str uctField { 2201 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Struct> Str uctField {
2095 get { return structField_; } 2202 get { return structField_; }
2096 } 2203 }
2097 2204
2098 /// <summary>Field number for the "timestamp_field" field.</summary> 2205 /// <summary>Field number for the "timestamp_field" field.</summary>
2099 public const int TimestampFieldFieldNumber = 8; 2206 public const int TimestampFieldFieldNumber = 8;
2100 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Timestamp>.Codec _map_timestampField_codec 2207 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Timestamp>.Codec _map_timestampField_codec
2101 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestam p>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Googl e.Protobuf.WellKnownTypes.Timestamp.Parser), 66); 2208 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestam p>.Codec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Googl e.Protobuf.WellKnownTypes.Timestamp.Parser), 66);
2102 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.T imestamp> timestampField_ = new pbc::MapField<int, global::Google.Protobuf.WellK nownTypes.Timestamp>(); 2209 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.T imestamp> timestampField_ = new pbc::MapField<int, global::Google.Protobuf.WellK nownTypes.Timestamp>();
2210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2103 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField { 2211 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Timestamp> TimestampField {
2104 get { return timestampField_; } 2212 get { return timestampField_; }
2105 } 2213 }
2106 2214
2107 /// <summary>Field number for the "type_field" field.</summary> 2215 /// <summary>Field number for the "type_field" field.</summary>
2108 public const int TypeFieldFieldNumber = 9; 2216 public const int TypeFieldFieldNumber = 9;
2109 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Type>.Codec _map_typeField_codec 2217 private static readonly pbc::MapField<int, global::Google.Protobuf.WellKnown Types.Type>.Codec _map_typeField_codec
2110 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Co dec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Pro tobuf.WellKnownTypes.Type.Parser), 74); 2218 = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type>.Co dec(pb::FieldCodec.ForInt32(8), pb::FieldCodec.ForMessage(18, global::Google.Pro tobuf.WellKnownTypes.Type.Parser), 74);
2111 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.T ype> typeField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes. Type>(); 2219 private readonly pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.T ype> typeField_ = new pbc::MapField<int, global::Google.Protobuf.WellKnownTypes. Type>();
2220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2112 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> TypeF ield { 2221 public pbc::MapField<int, global::Google.Protobuf.WellKnownTypes.Type> TypeF ield {
2113 get { return typeField_; } 2222 get { return typeField_; }
2114 } 2223 }
2115 2224
2116 /// <summary>Field number for the "double_field" field.</summary> 2225 /// <summary>Field number for the "double_field" field.</summary>
2117 public const int DoubleFieldFieldNumber = 10; 2226 public const int DoubleFieldFieldNumber = 10;
2118 private static readonly pbc::MapField<int, double?>.Codec _map_doubleField_c odec 2227 private static readonly pbc::MapField<int, double?>.Codec _map_doubleField_c odec
2119 = new pbc::MapField<int, double?>.Codec(pb::FieldCodec.ForInt32(8), pb:: FieldCodec.ForStructWrapper<double>(18), 82); 2228 = new pbc::MapField<int, double?>.Codec(pb::FieldCodec.ForInt32(8), pb:: FieldCodec.ForStructWrapper<double>(18), 82);
2120 private readonly pbc::MapField<int, double?> doubleField_ = new pbc::MapFiel d<int, double?>(); 2229 private readonly pbc::MapField<int, double?> doubleField_ = new pbc::MapFiel d<int, double?>();
2230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2121 public pbc::MapField<int, double?> DoubleField { 2231 public pbc::MapField<int, double?> DoubleField {
2122 get { return doubleField_; } 2232 get { return doubleField_; }
2123 } 2233 }
2124 2234
2125 /// <summary>Field number for the "float_field" field.</summary> 2235 /// <summary>Field number for the "float_field" field.</summary>
2126 public const int FloatFieldFieldNumber = 11; 2236 public const int FloatFieldFieldNumber = 11;
2127 private static readonly pbc::MapField<int, float?>.Codec _map_floatField_cod ec 2237 private static readonly pbc::MapField<int, float?>.Codec _map_floatField_cod ec
2128 = new pbc::MapField<int, float?>.Codec(pb::FieldCodec.ForInt32(8), pb::F ieldCodec.ForStructWrapper<float>(18), 90); 2238 = new pbc::MapField<int, float?>.Codec(pb::FieldCodec.ForInt32(8), pb::F ieldCodec.ForStructWrapper<float>(18), 90);
2129 private readonly pbc::MapField<int, float?> floatField_ = new pbc::MapField< int, float?>(); 2239 private readonly pbc::MapField<int, float?> floatField_ = new pbc::MapField< int, float?>();
2240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2130 public pbc::MapField<int, float?> FloatField { 2241 public pbc::MapField<int, float?> FloatField {
2131 get { return floatField_; } 2242 get { return floatField_; }
2132 } 2243 }
2133 2244
2134 /// <summary>Field number for the "int64_field" field.</summary> 2245 /// <summary>Field number for the "int64_field" field.</summary>
2135 public const int Int64FieldFieldNumber = 12; 2246 public const int Int64FieldFieldNumber = 12;
2136 private static readonly pbc::MapField<int, long?>.Codec _map_int64Field_code c 2247 private static readonly pbc::MapField<int, long?>.Codec _map_int64Field_code c
2137 = new pbc::MapField<int, long?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fi eldCodec.ForStructWrapper<long>(18), 98); 2248 = new pbc::MapField<int, long?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fi eldCodec.ForStructWrapper<long>(18), 98);
2138 private readonly pbc::MapField<int, long?> int64Field_ = new pbc::MapField<i nt, long?>(); 2249 private readonly pbc::MapField<int, long?> int64Field_ = new pbc::MapField<i nt, long?>();
2250 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2139 public pbc::MapField<int, long?> Int64Field { 2251 public pbc::MapField<int, long?> Int64Field {
2140 get { return int64Field_; } 2252 get { return int64Field_; }
2141 } 2253 }
2142 2254
2143 /// <summary>Field number for the "uint64_field" field.</summary> 2255 /// <summary>Field number for the "uint64_field" field.</summary>
2144 public const int Uint64FieldFieldNumber = 13; 2256 public const int Uint64FieldFieldNumber = 13;
2145 private static readonly pbc::MapField<int, ulong?>.Codec _map_uint64Field_co dec 2257 private static readonly pbc::MapField<int, ulong?>.Codec _map_uint64Field_co dec
2146 = new pbc::MapField<int, ulong?>.Codec(pb::FieldCodec.ForInt32(8), pb::F ieldCodec.ForStructWrapper<ulong>(18), 106); 2258 = new pbc::MapField<int, ulong?>.Codec(pb::FieldCodec.ForInt32(8), pb::F ieldCodec.ForStructWrapper<ulong>(18), 106);
2147 private readonly pbc::MapField<int, ulong?> uint64Field_ = new pbc::MapField <int, ulong?>(); 2259 private readonly pbc::MapField<int, ulong?> uint64Field_ = new pbc::MapField <int, ulong?>();
2260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2148 public pbc::MapField<int, ulong?> Uint64Field { 2261 public pbc::MapField<int, ulong?> Uint64Field {
2149 get { return uint64Field_; } 2262 get { return uint64Field_; }
2150 } 2263 }
2151 2264
2152 /// <summary>Field number for the "int32_field" field.</summary> 2265 /// <summary>Field number for the "int32_field" field.</summary>
2153 public const int Int32FieldFieldNumber = 14; 2266 public const int Int32FieldFieldNumber = 14;
2154 private static readonly pbc::MapField<int, int?>.Codec _map_int32Field_codec 2267 private static readonly pbc::MapField<int, int?>.Codec _map_int32Field_codec
2155 = new pbc::MapField<int, int?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fie ldCodec.ForStructWrapper<int>(18), 114); 2268 = new pbc::MapField<int, int?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fie ldCodec.ForStructWrapper<int>(18), 114);
2156 private readonly pbc::MapField<int, int?> int32Field_ = new pbc::MapField<in t, int?>(); 2269 private readonly pbc::MapField<int, int?> int32Field_ = new pbc::MapField<in t, int?>();
2270 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2157 public pbc::MapField<int, int?> Int32Field { 2271 public pbc::MapField<int, int?> Int32Field {
2158 get { return int32Field_; } 2272 get { return int32Field_; }
2159 } 2273 }
2160 2274
2161 /// <summary>Field number for the "uint32_field" field.</summary> 2275 /// <summary>Field number for the "uint32_field" field.</summary>
2162 public const int Uint32FieldFieldNumber = 15; 2276 public const int Uint32FieldFieldNumber = 15;
2163 private static readonly pbc::MapField<int, uint?>.Codec _map_uint32Field_cod ec 2277 private static readonly pbc::MapField<int, uint?>.Codec _map_uint32Field_cod ec
2164 = new pbc::MapField<int, uint?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fi eldCodec.ForStructWrapper<uint>(18), 122); 2278 = new pbc::MapField<int, uint?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fi eldCodec.ForStructWrapper<uint>(18), 122);
2165 private readonly pbc::MapField<int, uint?> uint32Field_ = new pbc::MapField< int, uint?>(); 2279 private readonly pbc::MapField<int, uint?> uint32Field_ = new pbc::MapField< int, uint?>();
2280 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2166 public pbc::MapField<int, uint?> Uint32Field { 2281 public pbc::MapField<int, uint?> Uint32Field {
2167 get { return uint32Field_; } 2282 get { return uint32Field_; }
2168 } 2283 }
2169 2284
2170 /// <summary>Field number for the "bool_field" field.</summary> 2285 /// <summary>Field number for the "bool_field" field.</summary>
2171 public const int BoolFieldFieldNumber = 16; 2286 public const int BoolFieldFieldNumber = 16;
2172 private static readonly pbc::MapField<int, bool?>.Codec _map_boolField_codec 2287 private static readonly pbc::MapField<int, bool?>.Codec _map_boolField_codec
2173 = new pbc::MapField<int, bool?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fi eldCodec.ForStructWrapper<bool>(18), 130); 2288 = new pbc::MapField<int, bool?>.Codec(pb::FieldCodec.ForInt32(8), pb::Fi eldCodec.ForStructWrapper<bool>(18), 130);
2174 private readonly pbc::MapField<int, bool?> boolField_ = new pbc::MapField<in t, bool?>(); 2289 private readonly pbc::MapField<int, bool?> boolField_ = new pbc::MapField<in t, bool?>();
2290 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2175 public pbc::MapField<int, bool?> BoolField { 2291 public pbc::MapField<int, bool?> BoolField {
2176 get { return boolField_; } 2292 get { return boolField_; }
2177 } 2293 }
2178 2294
2179 /// <summary>Field number for the "string_field" field.</summary> 2295 /// <summary>Field number for the "string_field" field.</summary>
2180 public const int StringFieldFieldNumber = 17; 2296 public const int StringFieldFieldNumber = 17;
2181 private static readonly pbc::MapField<int, string>.Codec _map_stringField_co dec 2297 private static readonly pbc::MapField<int, string>.Codec _map_stringField_co dec
2182 = new pbc::MapField<int, string>.Codec(pb::FieldCodec.ForInt32(8), pb::F ieldCodec.ForClassWrapper<string>(18), 138); 2298 = new pbc::MapField<int, string>.Codec(pb::FieldCodec.ForInt32(8), pb::F ieldCodec.ForClassWrapper<string>(18), 138);
2183 private readonly pbc::MapField<int, string> stringField_ = new pbc::MapField <int, string>(); 2299 private readonly pbc::MapField<int, string> stringField_ = new pbc::MapField <int, string>();
2300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2184 public pbc::MapField<int, string> StringField { 2301 public pbc::MapField<int, string> StringField {
2185 get { return stringField_; } 2302 get { return stringField_; }
2186 } 2303 }
2187 2304
2188 /// <summary>Field number for the "bytes_field" field.</summary> 2305 /// <summary>Field number for the "bytes_field" field.</summary>
2189 public const int BytesFieldFieldNumber = 18; 2306 public const int BytesFieldFieldNumber = 18;
2190 private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_bytesF ield_codec 2307 private static readonly pbc::MapField<int, pb::ByteString>.Codec _map_bytesF ield_codec
2191 = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8 ), pb::FieldCodec.ForClassWrapper<pb::ByteString>(18), 146); 2308 = new pbc::MapField<int, pb::ByteString>.Codec(pb::FieldCodec.ForInt32(8 ), pb::FieldCodec.ForClassWrapper<pb::ByteString>(18), 146);
2192 private readonly pbc::MapField<int, pb::ByteString> bytesField_ = new pbc::M apField<int, pb::ByteString>(); 2309 private readonly pbc::MapField<int, pb::ByteString> bytesField_ = new pbc::M apField<int, pb::ByteString>();
2310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2193 public pbc::MapField<int, pb::ByteString> BytesField { 2311 public pbc::MapField<int, pb::ByteString> BytesField {
2194 get { return bytesField_; } 2312 get { return bytesField_; }
2195 } 2313 }
2196 2314
2315 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2197 public override bool Equals(object other) { 2316 public override bool Equals(object other) {
2198 return Equals(other as MapWellKnownTypes); 2317 return Equals(other as MapWellKnownTypes);
2199 } 2318 }
2200 2319
2320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2201 public bool Equals(MapWellKnownTypes other) { 2321 public bool Equals(MapWellKnownTypes other) {
2202 if (ReferenceEquals(other, null)) { 2322 if (ReferenceEquals(other, null)) {
2203 return false; 2323 return false;
2204 } 2324 }
2205 if (ReferenceEquals(other, this)) { 2325 if (ReferenceEquals(other, this)) {
2206 return true; 2326 return true;
2207 } 2327 }
2208 if (!AnyField.Equals(other.AnyField)) return false; 2328 if (!AnyField.Equals(other.AnyField)) return false;
2209 if (!ApiField.Equals(other.ApiField)) return false; 2329 if (!ApiField.Equals(other.ApiField)) return false;
2210 if (!DurationField.Equals(other.DurationField)) return false; 2330 if (!DurationField.Equals(other.DurationField)) return false;
2211 if (!EmptyField.Equals(other.EmptyField)) return false; 2331 if (!EmptyField.Equals(other.EmptyField)) return false;
2212 if (!FieldMaskField.Equals(other.FieldMaskField)) return false; 2332 if (!FieldMaskField.Equals(other.FieldMaskField)) return false;
2213 if (!SourceContextField.Equals(other.SourceContextField)) return false; 2333 if (!SourceContextField.Equals(other.SourceContextField)) return false;
2214 if (!StructField.Equals(other.StructField)) return false; 2334 if (!StructField.Equals(other.StructField)) return false;
2215 if (!TimestampField.Equals(other.TimestampField)) return false; 2335 if (!TimestampField.Equals(other.TimestampField)) return false;
2216 if (!TypeField.Equals(other.TypeField)) return false; 2336 if (!TypeField.Equals(other.TypeField)) return false;
2217 if (!DoubleField.Equals(other.DoubleField)) return false; 2337 if (!DoubleField.Equals(other.DoubleField)) return false;
2218 if (!FloatField.Equals(other.FloatField)) return false; 2338 if (!FloatField.Equals(other.FloatField)) return false;
2219 if (!Int64Field.Equals(other.Int64Field)) return false; 2339 if (!Int64Field.Equals(other.Int64Field)) return false;
2220 if (!Uint64Field.Equals(other.Uint64Field)) return false; 2340 if (!Uint64Field.Equals(other.Uint64Field)) return false;
2221 if (!Int32Field.Equals(other.Int32Field)) return false; 2341 if (!Int32Field.Equals(other.Int32Field)) return false;
2222 if (!Uint32Field.Equals(other.Uint32Field)) return false; 2342 if (!Uint32Field.Equals(other.Uint32Field)) return false;
2223 if (!BoolField.Equals(other.BoolField)) return false; 2343 if (!BoolField.Equals(other.BoolField)) return false;
2224 if (!StringField.Equals(other.StringField)) return false; 2344 if (!StringField.Equals(other.StringField)) return false;
2225 if (!BytesField.Equals(other.BytesField)) return false; 2345 if (!BytesField.Equals(other.BytesField)) return false;
2226 return true; 2346 return true;
2227 } 2347 }
2228 2348
2349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2229 public override int GetHashCode() { 2350 public override int GetHashCode() {
2230 int hash = 1; 2351 int hash = 1;
2231 hash ^= AnyField.GetHashCode(); 2352 hash ^= AnyField.GetHashCode();
2232 hash ^= ApiField.GetHashCode(); 2353 hash ^= ApiField.GetHashCode();
2233 hash ^= DurationField.GetHashCode(); 2354 hash ^= DurationField.GetHashCode();
2234 hash ^= EmptyField.GetHashCode(); 2355 hash ^= EmptyField.GetHashCode();
2235 hash ^= FieldMaskField.GetHashCode(); 2356 hash ^= FieldMaskField.GetHashCode();
2236 hash ^= SourceContextField.GetHashCode(); 2357 hash ^= SourceContextField.GetHashCode();
2237 hash ^= StructField.GetHashCode(); 2358 hash ^= StructField.GetHashCode();
2238 hash ^= TimestampField.GetHashCode(); 2359 hash ^= TimestampField.GetHashCode();
2239 hash ^= TypeField.GetHashCode(); 2360 hash ^= TypeField.GetHashCode();
2240 hash ^= DoubleField.GetHashCode(); 2361 hash ^= DoubleField.GetHashCode();
2241 hash ^= FloatField.GetHashCode(); 2362 hash ^= FloatField.GetHashCode();
2242 hash ^= Int64Field.GetHashCode(); 2363 hash ^= Int64Field.GetHashCode();
2243 hash ^= Uint64Field.GetHashCode(); 2364 hash ^= Uint64Field.GetHashCode();
2244 hash ^= Int32Field.GetHashCode(); 2365 hash ^= Int32Field.GetHashCode();
2245 hash ^= Uint32Field.GetHashCode(); 2366 hash ^= Uint32Field.GetHashCode();
2246 hash ^= BoolField.GetHashCode(); 2367 hash ^= BoolField.GetHashCode();
2247 hash ^= StringField.GetHashCode(); 2368 hash ^= StringField.GetHashCode();
2248 hash ^= BytesField.GetHashCode(); 2369 hash ^= BytesField.GetHashCode();
2249 return hash; 2370 return hash;
2250 } 2371 }
2251 2372
2373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2252 public override string ToString() { 2374 public override string ToString() {
2253 return pb::JsonFormatter.ToDiagnosticString(this); 2375 return pb::JsonFormatter.ToDiagnosticString(this);
2254 } 2376 }
2255 2377
2378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2256 public void WriteTo(pb::CodedOutputStream output) { 2379 public void WriteTo(pb::CodedOutputStream output) {
2257 anyField_.WriteTo(output, _map_anyField_codec); 2380 anyField_.WriteTo(output, _map_anyField_codec);
2258 apiField_.WriteTo(output, _map_apiField_codec); 2381 apiField_.WriteTo(output, _map_apiField_codec);
2259 durationField_.WriteTo(output, _map_durationField_codec); 2382 durationField_.WriteTo(output, _map_durationField_codec);
2260 emptyField_.WriteTo(output, _map_emptyField_codec); 2383 emptyField_.WriteTo(output, _map_emptyField_codec);
2261 fieldMaskField_.WriteTo(output, _map_fieldMaskField_codec); 2384 fieldMaskField_.WriteTo(output, _map_fieldMaskField_codec);
2262 sourceContextField_.WriteTo(output, _map_sourceContextField_codec); 2385 sourceContextField_.WriteTo(output, _map_sourceContextField_codec);
2263 structField_.WriteTo(output, _map_structField_codec); 2386 structField_.WriteTo(output, _map_structField_codec);
2264 timestampField_.WriteTo(output, _map_timestampField_codec); 2387 timestampField_.WriteTo(output, _map_timestampField_codec);
2265 typeField_.WriteTo(output, _map_typeField_codec); 2388 typeField_.WriteTo(output, _map_typeField_codec);
2266 doubleField_.WriteTo(output, _map_doubleField_codec); 2389 doubleField_.WriteTo(output, _map_doubleField_codec);
2267 floatField_.WriteTo(output, _map_floatField_codec); 2390 floatField_.WriteTo(output, _map_floatField_codec);
2268 int64Field_.WriteTo(output, _map_int64Field_codec); 2391 int64Field_.WriteTo(output, _map_int64Field_codec);
2269 uint64Field_.WriteTo(output, _map_uint64Field_codec); 2392 uint64Field_.WriteTo(output, _map_uint64Field_codec);
2270 int32Field_.WriteTo(output, _map_int32Field_codec); 2393 int32Field_.WriteTo(output, _map_int32Field_codec);
2271 uint32Field_.WriteTo(output, _map_uint32Field_codec); 2394 uint32Field_.WriteTo(output, _map_uint32Field_codec);
2272 boolField_.WriteTo(output, _map_boolField_codec); 2395 boolField_.WriteTo(output, _map_boolField_codec);
2273 stringField_.WriteTo(output, _map_stringField_codec); 2396 stringField_.WriteTo(output, _map_stringField_codec);
2274 bytesField_.WriteTo(output, _map_bytesField_codec); 2397 bytesField_.WriteTo(output, _map_bytesField_codec);
2275 } 2398 }
2276 2399
2400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2277 public int CalculateSize() { 2401 public int CalculateSize() {
2278 int size = 0; 2402 int size = 0;
2279 size += anyField_.CalculateSize(_map_anyField_codec); 2403 size += anyField_.CalculateSize(_map_anyField_codec);
2280 size += apiField_.CalculateSize(_map_apiField_codec); 2404 size += apiField_.CalculateSize(_map_apiField_codec);
2281 size += durationField_.CalculateSize(_map_durationField_codec); 2405 size += durationField_.CalculateSize(_map_durationField_codec);
2282 size += emptyField_.CalculateSize(_map_emptyField_codec); 2406 size += emptyField_.CalculateSize(_map_emptyField_codec);
2283 size += fieldMaskField_.CalculateSize(_map_fieldMaskField_codec); 2407 size += fieldMaskField_.CalculateSize(_map_fieldMaskField_codec);
2284 size += sourceContextField_.CalculateSize(_map_sourceContextField_codec); 2408 size += sourceContextField_.CalculateSize(_map_sourceContextField_codec);
2285 size += structField_.CalculateSize(_map_structField_codec); 2409 size += structField_.CalculateSize(_map_structField_codec);
2286 size += timestampField_.CalculateSize(_map_timestampField_codec); 2410 size += timestampField_.CalculateSize(_map_timestampField_codec);
2287 size += typeField_.CalculateSize(_map_typeField_codec); 2411 size += typeField_.CalculateSize(_map_typeField_codec);
2288 size += doubleField_.CalculateSize(_map_doubleField_codec); 2412 size += doubleField_.CalculateSize(_map_doubleField_codec);
2289 size += floatField_.CalculateSize(_map_floatField_codec); 2413 size += floatField_.CalculateSize(_map_floatField_codec);
2290 size += int64Field_.CalculateSize(_map_int64Field_codec); 2414 size += int64Field_.CalculateSize(_map_int64Field_codec);
2291 size += uint64Field_.CalculateSize(_map_uint64Field_codec); 2415 size += uint64Field_.CalculateSize(_map_uint64Field_codec);
2292 size += int32Field_.CalculateSize(_map_int32Field_codec); 2416 size += int32Field_.CalculateSize(_map_int32Field_codec);
2293 size += uint32Field_.CalculateSize(_map_uint32Field_codec); 2417 size += uint32Field_.CalculateSize(_map_uint32Field_codec);
2294 size += boolField_.CalculateSize(_map_boolField_codec); 2418 size += boolField_.CalculateSize(_map_boolField_codec);
2295 size += stringField_.CalculateSize(_map_stringField_codec); 2419 size += stringField_.CalculateSize(_map_stringField_codec);
2296 size += bytesField_.CalculateSize(_map_bytesField_codec); 2420 size += bytesField_.CalculateSize(_map_bytesField_codec);
2297 return size; 2421 return size;
2298 } 2422 }
2299 2423
2424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2300 public void MergeFrom(MapWellKnownTypes other) { 2425 public void MergeFrom(MapWellKnownTypes other) {
2301 if (other == null) { 2426 if (other == null) {
2302 return; 2427 return;
2303 } 2428 }
2304 anyField_.Add(other.anyField_); 2429 anyField_.Add(other.anyField_);
2305 apiField_.Add(other.apiField_); 2430 apiField_.Add(other.apiField_);
2306 durationField_.Add(other.durationField_); 2431 durationField_.Add(other.durationField_);
2307 emptyField_.Add(other.emptyField_); 2432 emptyField_.Add(other.emptyField_);
2308 fieldMaskField_.Add(other.fieldMaskField_); 2433 fieldMaskField_.Add(other.fieldMaskField_);
2309 sourceContextField_.Add(other.sourceContextField_); 2434 sourceContextField_.Add(other.sourceContextField_);
2310 structField_.Add(other.structField_); 2435 structField_.Add(other.structField_);
2311 timestampField_.Add(other.timestampField_); 2436 timestampField_.Add(other.timestampField_);
2312 typeField_.Add(other.typeField_); 2437 typeField_.Add(other.typeField_);
2313 doubleField_.Add(other.doubleField_); 2438 doubleField_.Add(other.doubleField_);
2314 floatField_.Add(other.floatField_); 2439 floatField_.Add(other.floatField_);
2315 int64Field_.Add(other.int64Field_); 2440 int64Field_.Add(other.int64Field_);
2316 uint64Field_.Add(other.uint64Field_); 2441 uint64Field_.Add(other.uint64Field_);
2317 int32Field_.Add(other.int32Field_); 2442 int32Field_.Add(other.int32Field_);
2318 uint32Field_.Add(other.uint32Field_); 2443 uint32Field_.Add(other.uint32Field_);
2319 boolField_.Add(other.boolField_); 2444 boolField_.Add(other.boolField_);
2320 stringField_.Add(other.stringField_); 2445 stringField_.Add(other.stringField_);
2321 bytesField_.Add(other.bytesField_); 2446 bytesField_.Add(other.bytesField_);
2322 } 2447 }
2323 2448
2449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2324 public void MergeFrom(pb::CodedInputStream input) { 2450 public void MergeFrom(pb::CodedInputStream input) {
2325 uint tag; 2451 uint tag;
2326 while ((tag = input.ReadTag()) != 0) { 2452 while ((tag = input.ReadTag()) != 0) {
2327 switch(tag) { 2453 switch(tag) {
2328 default: 2454 default:
2329 input.SkipLastField(); 2455 input.SkipLastField();
2330 break; 2456 break;
2331 case 10: { 2457 case 10: {
2332 anyField_.AddEntriesFrom(input, _map_anyField_codec); 2458 anyField_.AddEntriesFrom(input, _map_anyField_codec);
2333 break; 2459 break;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2404 } 2530 }
2405 } 2531 }
2406 2532
2407 } 2533 }
2408 2534
2409 #endregion 2535 #endregion
2410 2536
2411 } 2537 }
2412 2538
2413 #endregion Designer generated code 2539 #endregion Designer generated code
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698