1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: google/protobuf/struct.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021 6 #region Designer generated code 7 8 using pb = global::Google.Protobuf; 9 using pbc = global::Google.Protobuf.Collections; 10 using pbr = global::Google.Protobuf.Reflection; 11 using scg = global::System.Collections.Generic; 12 namespace Google.Protobuf.WellKnownTypes { 13 14 /// <summary>Holder for reflection information generated from google/protobuf/struct.proto</summary> 15 public static partial class StructReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for google/protobuf/struct.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 StructReflection()24 static StructReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9i", 28 "dWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9i", 29 "dWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgB", 30 "IAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToC", 31 "OAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJv", 32 "dG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoM", 33 "c3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8K", 34 "DHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RI", 35 "ABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RW", 36 "YWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIW", 37 "Lmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9W", 38 "QUxVRRAAQoEBChNjb20uZ29vZ2xlLnByb3RvYnVmQgtTdHJ1Y3RQcm90b1AB", 39 "WjFnaXRodWIuY29tL2dvbGFuZy9wcm90b2J1Zi9wdHlwZXMvc3RydWN0O3N0", 40 "cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5", 41 "cGVzYgZwcm90bzM=")); 42 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 43 new pbr::FileDescriptor[] { }, 44 new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.WellKnownTypes.NullValue), }, null, new pbr::GeneratedClrTypeInfo[] { 45 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Struct), global::Google.Protobuf.WellKnownTypes.Struct.Parser, new[]{ "Fields" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, }), 46 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Value), global::Google.Protobuf.WellKnownTypes.Value.Parser, new[]{ "NullValue", "NumberValue", "StringValue", "BoolValue", "StructValue", "ListValue" }, new[]{ "Kind" }, null, null, null), 47 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.ListValue), global::Google.Protobuf.WellKnownTypes.ListValue.Parser, new[]{ "Values" }, null, null, null, null) 48 })); 49 } 50 #endregion 51 52 } 53 #region Enums 54 /// <summary> 55 /// `NullValue` is a singleton enumeration to represent the null value for the 56 /// `Value` type union. 57 /// 58 /// The JSON representation for `NullValue` is JSON `null`. 59 /// </summary> 60 public enum NullValue { 61 /// <summary> 62 /// Null value. 63 /// </summary> 64 [pbr::OriginalName("NULL_VALUE")] NullValue = 0, 65 } 66 67 #endregion 68 69 #region Messages 70 /// <summary> 71 /// `Struct` represents a structured data value, consisting of fields 72 /// which map to dynamically typed values. In some languages, `Struct` 73 /// might be supported by a native representation. For example, in 74 /// scripting languages like JS a struct is represented as an 75 /// object. The details of that representation are described together 76 /// with the proto support for the language. 77 /// 78 /// The JSON representation for `Struct` is JSON object. 79 /// </summary> 80 public sealed partial class Struct : pb::IMessage<Struct> { 81 private static readonly pb::MessageParser<Struct> _parser = new pb::MessageParser<Struct>(() => new Struct()); 82 private pb::UnknownFieldSet _unknownFields; 83 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 84 public static pb::MessageParser<Struct> Parser { get { return _parser; } } 85 86 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 87 public static pbr::MessageDescriptor Descriptor { 88 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor.MessageTypes[0]; } 89 } 90 91 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 92 pbr::MessageDescriptor pb::IMessage.Descriptor { 93 get { return Descriptor; } 94 } 95 96 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Struct()97 public Struct() { 98 OnConstruction(); 99 } 100 OnConstruction()101 partial void OnConstruction(); 102 103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Struct(Struct other)104 public Struct(Struct other) : this() { 105 fields_ = other.fields_.Clone(); 106 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 107 } 108 109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()110 public Struct Clone() { 111 return new Struct(this); 112 } 113 114 /// <summary>Field number for the "fields" field.</summary> 115 public const int FieldsFieldNumber = 1; 116 private static readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec _map_fields_codec 117 = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.Value.Parser), 10); 118 private readonly pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> fields_ = new pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value>(); 119 /// <summary> 120 /// Unordered map of dynamically typed values. 121 /// </summary> 122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 123 public pbc::MapField<string, global::Google.Protobuf.WellKnownTypes.Value> Fields { 124 get { return fields_; } 125 } 126 127 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)128 public override bool Equals(object other) { 129 return Equals(other as Struct); 130 } 131 132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Struct other)133 public bool Equals(Struct other) { 134 if (ReferenceEquals(other, null)) { 135 return false; 136 } 137 if (ReferenceEquals(other, this)) { 138 return true; 139 } 140 if (!Fields.Equals(other.Fields)) return false; 141 return Equals(_unknownFields, other._unknownFields); 142 } 143 144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()145 public override int GetHashCode() { 146 int hash = 1; 147 hash ^= Fields.GetHashCode(); 148 if (_unknownFields != null) { 149 hash ^= _unknownFields.GetHashCode(); 150 } 151 return hash; 152 } 153 154 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()155 public override string ToString() { 156 return pb::JsonFormatter.ToDiagnosticString(this); 157 } 158 159 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)160 public void WriteTo(pb::CodedOutputStream output) { 161 fields_.WriteTo(output, _map_fields_codec); 162 if (_unknownFields != null) { 163 _unknownFields.WriteTo(output); 164 } 165 } 166 167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()168 public int CalculateSize() { 169 int size = 0; 170 size += fields_.CalculateSize(_map_fields_codec); 171 if (_unknownFields != null) { 172 size += _unknownFields.CalculateSize(); 173 } 174 return size; 175 } 176 177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Struct other)178 public void MergeFrom(Struct other) { 179 if (other == null) { 180 return; 181 } 182 fields_.Add(other.fields_); 183 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 184 } 185 186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)187 public void MergeFrom(pb::CodedInputStream input) { 188 uint tag; 189 while ((tag = input.ReadTag()) != 0) { 190 switch(tag) { 191 default: 192 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 193 break; 194 case 10: { 195 fields_.AddEntriesFrom(input, _map_fields_codec); 196 break; 197 } 198 } 199 } 200 } 201 202 } 203 204 /// <summary> 205 /// `Value` represents a dynamically typed value which can be either 206 /// null, a number, a string, a boolean, a recursive struct value, or a 207 /// list of values. A producer of value is expected to set one of that 208 /// variants, absence of any variant indicates an error. 209 /// 210 /// The JSON representation for `Value` is JSON value. 211 /// </summary> 212 public sealed partial class Value : pb::IMessage<Value> { 213 private static readonly pb::MessageParser<Value> _parser = new pb::MessageParser<Value>(() => new Value()); 214 private pb::UnknownFieldSet _unknownFields; 215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 216 public static pb::MessageParser<Value> Parser { get { return _parser; } } 217 218 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 219 public static pbr::MessageDescriptor Descriptor { 220 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor.MessageTypes[1]; } 221 } 222 223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 224 pbr::MessageDescriptor pb::IMessage.Descriptor { 225 get { return Descriptor; } 226 } 227 228 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Value()229 public Value() { 230 OnConstruction(); 231 } 232 OnConstruction()233 partial void OnConstruction(); 234 235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Value(Value other)236 public Value(Value other) : this() { 237 switch (other.KindCase) { 238 case KindOneofCase.NullValue: 239 NullValue = other.NullValue; 240 break; 241 case KindOneofCase.NumberValue: 242 NumberValue = other.NumberValue; 243 break; 244 case KindOneofCase.StringValue: 245 StringValue = other.StringValue; 246 break; 247 case KindOneofCase.BoolValue: 248 BoolValue = other.BoolValue; 249 break; 250 case KindOneofCase.StructValue: 251 StructValue = other.StructValue.Clone(); 252 break; 253 case KindOneofCase.ListValue: 254 ListValue = other.ListValue.Clone(); 255 break; 256 } 257 258 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 259 } 260 261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()262 public Value Clone() { 263 return new Value(this); 264 } 265 266 /// <summary>Field number for the "null_value" field.</summary> 267 public const int NullValueFieldNumber = 1; 268 /// <summary> 269 /// Represents a null value. 270 /// </summary> 271 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 272 public global::Google.Protobuf.WellKnownTypes.NullValue NullValue { 273 get { return kindCase_ == KindOneofCase.NullValue ? (global::Google.Protobuf.WellKnownTypes.NullValue) kind_ : global::Google.Protobuf.WellKnownTypes.NullValue.NullValue; } 274 set { 275 kind_ = value; 276 kindCase_ = KindOneofCase.NullValue; 277 } 278 } 279 280 /// <summary>Field number for the "number_value" field.</summary> 281 public const int NumberValueFieldNumber = 2; 282 /// <summary> 283 /// Represents a double value. 284 /// </summary> 285 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 286 public double NumberValue { 287 get { return kindCase_ == KindOneofCase.NumberValue ? (double) kind_ : 0D; } 288 set { 289 kind_ = value; 290 kindCase_ = KindOneofCase.NumberValue; 291 } 292 } 293 294 /// <summary>Field number for the "string_value" field.</summary> 295 public const int StringValueFieldNumber = 3; 296 /// <summary> 297 /// Represents a string value. 298 /// </summary> 299 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 300 public string StringValue { 301 get { return kindCase_ == KindOneofCase.StringValue ? (string) kind_ : ""; } 302 set { 303 kind_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 304 kindCase_ = KindOneofCase.StringValue; 305 } 306 } 307 308 /// <summary>Field number for the "bool_value" field.</summary> 309 public const int BoolValueFieldNumber = 4; 310 /// <summary> 311 /// Represents a boolean value. 312 /// </summary> 313 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 314 public bool BoolValue { 315 get { return kindCase_ == KindOneofCase.BoolValue ? (bool) kind_ : false; } 316 set { 317 kind_ = value; 318 kindCase_ = KindOneofCase.BoolValue; 319 } 320 } 321 322 /// <summary>Field number for the "struct_value" field.</summary> 323 public const int StructValueFieldNumber = 5; 324 /// <summary> 325 /// Represents a structured value. 326 /// </summary> 327 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 328 public global::Google.Protobuf.WellKnownTypes.Struct StructValue { 329 get { return kindCase_ == KindOneofCase.StructValue ? (global::Google.Protobuf.WellKnownTypes.Struct) kind_ : null; } 330 set { 331 kind_ = value; 332 kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.StructValue; 333 } 334 } 335 336 /// <summary>Field number for the "list_value" field.</summary> 337 public const int ListValueFieldNumber = 6; 338 /// <summary> 339 /// Represents a repeated `Value`. 340 /// </summary> 341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 342 public global::Google.Protobuf.WellKnownTypes.ListValue ListValue { 343 get { return kindCase_ == KindOneofCase.ListValue ? (global::Google.Protobuf.WellKnownTypes.ListValue) kind_ : null; } 344 set { 345 kind_ = value; 346 kindCase_ = value == null ? KindOneofCase.None : KindOneofCase.ListValue; 347 } 348 } 349 350 private object kind_; 351 /// <summary>Enum of possible cases for the "kind" oneof.</summary> 352 public enum KindOneofCase { 353 None = 0, 354 NullValue = 1, 355 NumberValue = 2, 356 StringValue = 3, 357 BoolValue = 4, 358 StructValue = 5, 359 ListValue = 6, 360 } 361 private KindOneofCase kindCase_ = KindOneofCase.None; 362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 363 public KindOneofCase KindCase { 364 get { return kindCase_; } 365 } 366 367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ClearKind()368 public void ClearKind() { 369 kindCase_ = KindOneofCase.None; 370 kind_ = null; 371 } 372 373 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)374 public override bool Equals(object other) { 375 return Equals(other as Value); 376 } 377 378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Value other)379 public bool Equals(Value other) { 380 if (ReferenceEquals(other, null)) { 381 return false; 382 } 383 if (ReferenceEquals(other, this)) { 384 return true; 385 } 386 if (NullValue != other.NullValue) return false; 387 if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(NumberValue, other.NumberValue)) return false; 388 if (StringValue != other.StringValue) return false; 389 if (BoolValue != other.BoolValue) return false; 390 if (!object.Equals(StructValue, other.StructValue)) return false; 391 if (!object.Equals(ListValue, other.ListValue)) return false; 392 if (KindCase != other.KindCase) return false; 393 return Equals(_unknownFields, other._unknownFields); 394 } 395 396 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()397 public override int GetHashCode() { 398 int hash = 1; 399 if (kindCase_ == KindOneofCase.NullValue) hash ^= NullValue.GetHashCode(); 400 if (kindCase_ == KindOneofCase.NumberValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(NumberValue); 401 if (kindCase_ == KindOneofCase.StringValue) hash ^= StringValue.GetHashCode(); 402 if (kindCase_ == KindOneofCase.BoolValue) hash ^= BoolValue.GetHashCode(); 403 if (kindCase_ == KindOneofCase.StructValue) hash ^= StructValue.GetHashCode(); 404 if (kindCase_ == KindOneofCase.ListValue) hash ^= ListValue.GetHashCode(); 405 hash ^= (int) kindCase_; 406 if (_unknownFields != null) { 407 hash ^= _unknownFields.GetHashCode(); 408 } 409 return hash; 410 } 411 412 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()413 public override string ToString() { 414 return pb::JsonFormatter.ToDiagnosticString(this); 415 } 416 417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)418 public void WriteTo(pb::CodedOutputStream output) { 419 if (kindCase_ == KindOneofCase.NullValue) { 420 output.WriteRawTag(8); 421 output.WriteEnum((int) NullValue); 422 } 423 if (kindCase_ == KindOneofCase.NumberValue) { 424 output.WriteRawTag(17); 425 output.WriteDouble(NumberValue); 426 } 427 if (kindCase_ == KindOneofCase.StringValue) { 428 output.WriteRawTag(26); 429 output.WriteString(StringValue); 430 } 431 if (kindCase_ == KindOneofCase.BoolValue) { 432 output.WriteRawTag(32); 433 output.WriteBool(BoolValue); 434 } 435 if (kindCase_ == KindOneofCase.StructValue) { 436 output.WriteRawTag(42); 437 output.WriteMessage(StructValue); 438 } 439 if (kindCase_ == KindOneofCase.ListValue) { 440 output.WriteRawTag(50); 441 output.WriteMessage(ListValue); 442 } 443 if (_unknownFields != null) { 444 _unknownFields.WriteTo(output); 445 } 446 } 447 448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()449 public int CalculateSize() { 450 int size = 0; 451 if (kindCase_ == KindOneofCase.NullValue) { 452 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) NullValue); 453 } 454 if (kindCase_ == KindOneofCase.NumberValue) { 455 size += 1 + 8; 456 } 457 if (kindCase_ == KindOneofCase.StringValue) { 458 size += 1 + pb::CodedOutputStream.ComputeStringSize(StringValue); 459 } 460 if (kindCase_ == KindOneofCase.BoolValue) { 461 size += 1 + 1; 462 } 463 if (kindCase_ == KindOneofCase.StructValue) { 464 size += 1 + pb::CodedOutputStream.ComputeMessageSize(StructValue); 465 } 466 if (kindCase_ == KindOneofCase.ListValue) { 467 size += 1 + pb::CodedOutputStream.ComputeMessageSize(ListValue); 468 } 469 if (_unknownFields != null) { 470 size += _unknownFields.CalculateSize(); 471 } 472 return size; 473 } 474 475 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Value other)476 public void MergeFrom(Value other) { 477 if (other == null) { 478 return; 479 } 480 switch (other.KindCase) { 481 case KindOneofCase.NullValue: 482 NullValue = other.NullValue; 483 break; 484 case KindOneofCase.NumberValue: 485 NumberValue = other.NumberValue; 486 break; 487 case KindOneofCase.StringValue: 488 StringValue = other.StringValue; 489 break; 490 case KindOneofCase.BoolValue: 491 BoolValue = other.BoolValue; 492 break; 493 case KindOneofCase.StructValue: 494 if (StructValue == null) { 495 StructValue = new global::Google.Protobuf.WellKnownTypes.Struct(); 496 } 497 StructValue.MergeFrom(other.StructValue); 498 break; 499 case KindOneofCase.ListValue: 500 if (ListValue == null) { 501 ListValue = new global::Google.Protobuf.WellKnownTypes.ListValue(); 502 } 503 ListValue.MergeFrom(other.ListValue); 504 break; 505 } 506 507 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 508 } 509 510 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)511 public void MergeFrom(pb::CodedInputStream input) { 512 uint tag; 513 while ((tag = input.ReadTag()) != 0) { 514 switch(tag) { 515 default: 516 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 517 break; 518 case 8: { 519 kind_ = input.ReadEnum(); 520 kindCase_ = KindOneofCase.NullValue; 521 break; 522 } 523 case 17: { 524 NumberValue = input.ReadDouble(); 525 break; 526 } 527 case 26: { 528 StringValue = input.ReadString(); 529 break; 530 } 531 case 32: { 532 BoolValue = input.ReadBool(); 533 break; 534 } 535 case 42: { 536 global::Google.Protobuf.WellKnownTypes.Struct subBuilder = new global::Google.Protobuf.WellKnownTypes.Struct(); 537 if (kindCase_ == KindOneofCase.StructValue) { 538 subBuilder.MergeFrom(StructValue); 539 } 540 input.ReadMessage(subBuilder); 541 StructValue = subBuilder; 542 break; 543 } 544 case 50: { 545 global::Google.Protobuf.WellKnownTypes.ListValue subBuilder = new global::Google.Protobuf.WellKnownTypes.ListValue(); 546 if (kindCase_ == KindOneofCase.ListValue) { 547 subBuilder.MergeFrom(ListValue); 548 } 549 input.ReadMessage(subBuilder); 550 ListValue = subBuilder; 551 break; 552 } 553 } 554 } 555 } 556 557 } 558 559 /// <summary> 560 /// `ListValue` is a wrapper around a repeated field of values. 561 /// 562 /// The JSON representation for `ListValue` is JSON array. 563 /// </summary> 564 public sealed partial class ListValue : pb::IMessage<ListValue> { 565 private static readonly pb::MessageParser<ListValue> _parser = new pb::MessageParser<ListValue>(() => new ListValue()); 566 private pb::UnknownFieldSet _unknownFields; 567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 568 public static pb::MessageParser<ListValue> Parser { get { return _parser; } } 569 570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 571 public static pbr::MessageDescriptor Descriptor { 572 get { return global::Google.Protobuf.WellKnownTypes.StructReflection.Descriptor.MessageTypes[2]; } 573 } 574 575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 576 pbr::MessageDescriptor pb::IMessage.Descriptor { 577 get { return Descriptor; } 578 } 579 580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ListValue()581 public ListValue() { 582 OnConstruction(); 583 } 584 OnConstruction()585 partial void OnConstruction(); 586 587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ListValue(ListValue other)588 public ListValue(ListValue other) : this() { 589 values_ = other.values_.Clone(); 590 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 591 } 592 593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()594 public ListValue Clone() { 595 return new ListValue(this); 596 } 597 598 /// <summary>Field number for the "values" field.</summary> 599 public const int ValuesFieldNumber = 1; 600 private static readonly pb::FieldCodec<global::Google.Protobuf.WellKnownTypes.Value> _repeated_values_codec 601 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.WellKnownTypes.Value.Parser); 602 private readonly pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> values_ = new pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value>(); 603 /// <summary> 604 /// Repeated field of dynamically typed values. 605 /// </summary> 606 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 607 public pbc::RepeatedField<global::Google.Protobuf.WellKnownTypes.Value> Values { 608 get { return values_; } 609 } 610 611 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)612 public override bool Equals(object other) { 613 return Equals(other as ListValue); 614 } 615 616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ListValue other)617 public bool Equals(ListValue other) { 618 if (ReferenceEquals(other, null)) { 619 return false; 620 } 621 if (ReferenceEquals(other, this)) { 622 return true; 623 } 624 if(!values_.Equals(other.values_)) return false; 625 return Equals(_unknownFields, other._unknownFields); 626 } 627 628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()629 public override int GetHashCode() { 630 int hash = 1; 631 hash ^= values_.GetHashCode(); 632 if (_unknownFields != null) { 633 hash ^= _unknownFields.GetHashCode(); 634 } 635 return hash; 636 } 637 638 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()639 public override string ToString() { 640 return pb::JsonFormatter.ToDiagnosticString(this); 641 } 642 643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)644 public void WriteTo(pb::CodedOutputStream output) { 645 values_.WriteTo(output, _repeated_values_codec); 646 if (_unknownFields != null) { 647 _unknownFields.WriteTo(output); 648 } 649 } 650 651 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()652 public int CalculateSize() { 653 int size = 0; 654 size += values_.CalculateSize(_repeated_values_codec); 655 if (_unknownFields != null) { 656 size += _unknownFields.CalculateSize(); 657 } 658 return size; 659 } 660 661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ListValue other)662 public void MergeFrom(ListValue other) { 663 if (other == null) { 664 return; 665 } 666 values_.Add(other.values_); 667 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 668 } 669 670 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)671 public void MergeFrom(pb::CodedInputStream input) { 672 uint tag; 673 while ((tag = input.ReadTag()) != 0) { 674 switch(tag) { 675 default: 676 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 677 break; 678 case 10: { 679 values_.AddEntriesFrom(input, _repeated_values_codec); 680 break; 681 } 682 } 683 } 684 } 685 686 } 687 688 #endregion 689 690 } 691 692 #endregion Designer generated code 693