1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: google/protobuf/compiler/plugin.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021, 8981 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.Compiler { 13 14 /// <summary>Holder for reflection information generated from google/protobuf/compiler/plugin.proto</summary> 15 public static partial class PluginReflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for google/protobuf/compiler/plugin.proto</summary> 19 public static pbr::FileDescriptor Descriptor { 20 get { return descriptor; } 21 } 22 private static pbr::FileDescriptor descriptor; 23 PluginReflection()24 static PluginReflection() { 25 byte[] descriptorData = global::System.Convert.FromBase64String( 26 string.Concat( 27 "CiVnb29nbGUvcHJvdG9idWYvY29tcGlsZXIvcGx1Z2luLnByb3RvEhhnb29n", 28 "bGUucHJvdG9idWYuY29tcGlsZXIaIGdvb2dsZS9wcm90b2J1Zi9kZXNjcmlw", 29 "dG9yLnByb3RvIkYKB1ZlcnNpb24SDQoFbWFqb3IYASABKAUSDQoFbWlub3IY", 30 "AiABKAUSDQoFcGF0Y2gYAyABKAUSDgoGc3VmZml4GAQgASgJIoECChRDb2Rl", 31 "R2VuZXJhdG9yUmVxdWVzdBIYChBmaWxlX3RvX2dlbmVyYXRlGAEgAygJEhEK", 32 "CXBhcmFtZXRlchgCIAEoCRI4Cgpwcm90b19maWxlGA8gAygLMiQuZ29vZ2xl", 33 "LnByb3RvYnVmLkZpbGVEZXNjcmlwdG9yUHJvdG8SRQoXc291cmNlX2ZpbGVf", 34 "ZGVzY3JpcHRvcnMYESADKAsyJC5nb29nbGUucHJvdG9idWYuRmlsZURlc2Ny", 35 "aXB0b3JQcm90bxI7ChBjb21waWxlcl92ZXJzaW9uGAMgASgLMiEuZ29vZ2xl", 36 "LnByb3RvYnVmLmNvbXBpbGVyLlZlcnNpb24ikgMKFUNvZGVHZW5lcmF0b3JS", 37 "ZXNwb25zZRINCgVlcnJvchgBIAEoCRIaChJzdXBwb3J0ZWRfZmVhdHVyZXMY", 38 "AiABKAQSFwoPbWluaW11bV9lZGl0aW9uGAMgASgFEhcKD21heGltdW1fZWRp", 39 "dGlvbhgEIAEoBRJCCgRmaWxlGA8gAygLMjQuZ29vZ2xlLnByb3RvYnVmLmNv", 40 "bXBpbGVyLkNvZGVHZW5lcmF0b3JSZXNwb25zZS5GaWxlGn8KBEZpbGUSDAoE", 41 "bmFtZRgBIAEoCRIXCg9pbnNlcnRpb25fcG9pbnQYAiABKAkSDwoHY29udGVu", 42 "dBgPIAEoCRI/ChNnZW5lcmF0ZWRfY29kZV9pbmZvGBAgASgLMiIuZ29vZ2xl", 43 "LnByb3RvYnVmLkdlbmVyYXRlZENvZGVJbmZvIlcKB0ZlYXR1cmUSEAoMRkVB", 44 "VFVSRV9OT05FEAASGwoXRkVBVFVSRV9QUk9UTzNfT1BUSU9OQUwQARIdChlG", 45 "RUFUVVJFX1NVUFBPUlRTX0VESVRJT05TEAJCcgocY29tLmdvb2dsZS5wcm90", 46 "b2J1Zi5jb21waWxlckIMUGx1Z2luUHJvdG9zWilnb29nbGUuZ29sYW5nLm9y", 47 "Zy9wcm90b2J1Zi90eXBlcy9wbHVnaW5wYqoCGEdvb2dsZS5Qcm90b2J1Zi5D", 48 "b21waWxlcg==")); 49 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 50 new pbr::FileDescriptor[] { global::Google.Protobuf.Reflection.DescriptorReflection.Descriptor, }, 51 new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { 52 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Compiler.Version), global::Google.Protobuf.Compiler.Version.Parser, new[]{ "Major", "Minor", "Patch", "Suffix" }, null, null, null, null), 53 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Compiler.CodeGeneratorRequest), global::Google.Protobuf.Compiler.CodeGeneratorRequest.Parser, new[]{ "FileToGenerate", "Parameter", "ProtoFile", "SourceFileDescriptors", "CompilerVersion" }, null, null, null, null), 54 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Compiler.CodeGeneratorResponse), global::Google.Protobuf.Compiler.CodeGeneratorResponse.Parser, new[]{ "Error", "SupportedFeatures", "MinimumEdition", "MaximumEdition", "File" }, null, new[]{ typeof(global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.Feature) }, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.File), global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.File.Parser, new[]{ "Name", "InsertionPoint", "Content", "GeneratedCodeInfo" }, null, null, null, null)}) 55 })); 56 } 57 #endregion 58 59 } 60 #region Messages 61 /// <summary> 62 /// The version number of protocol compiler. 63 /// </summary> 64 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 65 public sealed partial class Version : pb::IMessage<Version> 66 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 67 , pb::IBufferMessage 68 #endif 69 { 70 private static readonly pb::MessageParser<Version> _parser = new pb::MessageParser<Version>(() => new Version()); 71 private pb::UnknownFieldSet _unknownFields; 72 private int _hasBits0; 73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 74 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 75 public static pb::MessageParser<Version> Parser { get { return _parser; } } 76 77 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 78 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 79 public static pbr::MessageDescriptor Descriptor { 80 get { return global::Google.Protobuf.Compiler.PluginReflection.Descriptor.MessageTypes[0]; } 81 } 82 83 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 84 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 85 pbr::MessageDescriptor pb::IMessage.Descriptor { 86 get { return Descriptor; } 87 } 88 89 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 90 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Version()91 public Version() { 92 OnConstruction(); 93 } 94 OnConstruction()95 partial void OnConstruction(); 96 97 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 98 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Version(Version other)99 public Version(Version other) : this() { 100 _hasBits0 = other._hasBits0; 101 major_ = other.major_; 102 minor_ = other.minor_; 103 patch_ = other.patch_; 104 suffix_ = other.suffix_; 105 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 106 } 107 108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 109 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()110 public Version Clone() { 111 return new Version(this); 112 } 113 114 /// <summary>Field number for the "major" field.</summary> 115 public const int MajorFieldNumber = 1; 116 private readonly static int MajorDefaultValue = 0; 117 118 private int major_; 119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 120 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 121 public int Major { 122 get { if ((_hasBits0 & 1) != 0) { return major_; } else { return MajorDefaultValue; } } 123 set { 124 _hasBits0 |= 1; 125 major_ = value; 126 } 127 } 128 /// <summary>Gets whether the "major" field is set</summary> 129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 130 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 131 public bool HasMajor { 132 get { return (_hasBits0 & 1) != 0; } 133 } 134 /// <summary>Clears the value of the "major" field</summary> 135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMajor()137 public void ClearMajor() { 138 _hasBits0 &= ~1; 139 } 140 141 /// <summary>Field number for the "minor" field.</summary> 142 public const int MinorFieldNumber = 2; 143 private readonly static int MinorDefaultValue = 0; 144 145 private int minor_; 146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 147 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 148 public int Minor { 149 get { if ((_hasBits0 & 2) != 0) { return minor_; } else { return MinorDefaultValue; } } 150 set { 151 _hasBits0 |= 2; 152 minor_ = value; 153 } 154 } 155 /// <summary>Gets whether the "minor" field is set</summary> 156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 157 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 158 public bool HasMinor { 159 get { return (_hasBits0 & 2) != 0; } 160 } 161 /// <summary>Clears the value of the "minor" field</summary> 162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 163 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMinor()164 public void ClearMinor() { 165 _hasBits0 &= ~2; 166 } 167 168 /// <summary>Field number for the "patch" field.</summary> 169 public const int PatchFieldNumber = 3; 170 private readonly static int PatchDefaultValue = 0; 171 172 private int patch_; 173 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 174 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 175 public int Patch { 176 get { if ((_hasBits0 & 4) != 0) { return patch_; } else { return PatchDefaultValue; } } 177 set { 178 _hasBits0 |= 4; 179 patch_ = value; 180 } 181 } 182 /// <summary>Gets whether the "patch" field is set</summary> 183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 184 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 185 public bool HasPatch { 186 get { return (_hasBits0 & 4) != 0; } 187 } 188 /// <summary>Clears the value of the "patch" field</summary> 189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 190 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearPatch()191 public void ClearPatch() { 192 _hasBits0 &= ~4; 193 } 194 195 /// <summary>Field number for the "suffix" field.</summary> 196 public const int SuffixFieldNumber = 4; 197 private readonly static string SuffixDefaultValue = ""; 198 199 private string suffix_; 200 /// <summary> 201 /// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should 202 /// be empty for mainline stable releases. 203 /// </summary> 204 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 205 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 206 public string Suffix { 207 get { return suffix_ ?? SuffixDefaultValue; } 208 set { 209 suffix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 210 } 211 } 212 /// <summary>Gets whether the "suffix" field is set</summary> 213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 214 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 215 public bool HasSuffix { 216 get { return suffix_ != null; } 217 } 218 /// <summary>Clears the value of the "suffix" field</summary> 219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 220 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSuffix()221 public void ClearSuffix() { 222 suffix_ = null; 223 } 224 225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 226 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)227 public override bool Equals(object other) { 228 return Equals(other as Version); 229 } 230 231 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 232 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(Version other)233 public bool Equals(Version other) { 234 if (ReferenceEquals(other, null)) { 235 return false; 236 } 237 if (ReferenceEquals(other, this)) { 238 return true; 239 } 240 if (Major != other.Major) return false; 241 if (Minor != other.Minor) return false; 242 if (Patch != other.Patch) return false; 243 if (Suffix != other.Suffix) return false; 244 return Equals(_unknownFields, other._unknownFields); 245 } 246 247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 248 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()249 public override int GetHashCode() { 250 int hash = 1; 251 if (HasMajor) hash ^= Major.GetHashCode(); 252 if (HasMinor) hash ^= Minor.GetHashCode(); 253 if (HasPatch) hash ^= Patch.GetHashCode(); 254 if (HasSuffix) hash ^= Suffix.GetHashCode(); 255 if (_unknownFields != null) { 256 hash ^= _unknownFields.GetHashCode(); 257 } 258 return hash; 259 } 260 261 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 262 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()263 public override string ToString() { 264 return pb::JsonFormatter.ToDiagnosticString(this); 265 } 266 267 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 268 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)269 public void WriteTo(pb::CodedOutputStream output) { 270 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 271 output.WriteRawMessage(this); 272 #else 273 if (HasMajor) { 274 output.WriteRawTag(8); 275 output.WriteInt32(Major); 276 } 277 if (HasMinor) { 278 output.WriteRawTag(16); 279 output.WriteInt32(Minor); 280 } 281 if (HasPatch) { 282 output.WriteRawTag(24); 283 output.WriteInt32(Patch); 284 } 285 if (HasSuffix) { 286 output.WriteRawTag(34); 287 output.WriteString(Suffix); 288 } 289 if (_unknownFields != null) { 290 _unknownFields.WriteTo(output); 291 } 292 #endif 293 } 294 295 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 297 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)298 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 299 if (HasMajor) { 300 output.WriteRawTag(8); 301 output.WriteInt32(Major); 302 } 303 if (HasMinor) { 304 output.WriteRawTag(16); 305 output.WriteInt32(Minor); 306 } 307 if (HasPatch) { 308 output.WriteRawTag(24); 309 output.WriteInt32(Patch); 310 } 311 if (HasSuffix) { 312 output.WriteRawTag(34); 313 output.WriteString(Suffix); 314 } 315 if (_unknownFields != null) { 316 _unknownFields.WriteTo(ref output); 317 } 318 } 319 #endif 320 321 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 322 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()323 public int CalculateSize() { 324 int size = 0; 325 if (HasMajor) { 326 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Major); 327 } 328 if (HasMinor) { 329 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Minor); 330 } 331 if (HasPatch) { 332 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Patch); 333 } 334 if (HasSuffix) { 335 size += 1 + pb::CodedOutputStream.ComputeStringSize(Suffix); 336 } 337 if (_unknownFields != null) { 338 size += _unknownFields.CalculateSize(); 339 } 340 return size; 341 } 342 343 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 344 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(Version other)345 public void MergeFrom(Version other) { 346 if (other == null) { 347 return; 348 } 349 if (other.HasMajor) { 350 Major = other.Major; 351 } 352 if (other.HasMinor) { 353 Minor = other.Minor; 354 } 355 if (other.HasPatch) { 356 Patch = other.Patch; 357 } 358 if (other.HasSuffix) { 359 Suffix = other.Suffix; 360 } 361 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 362 } 363 364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 365 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)366 public void MergeFrom(pb::CodedInputStream input) { 367 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 368 input.ReadRawMessage(this); 369 #else 370 uint tag; 371 while ((tag = input.ReadTag()) != 0) { 372 if ((tag & 7) == 4) { 373 // Abort on any end group tag. 374 return; 375 } 376 switch(tag) { 377 default: 378 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 379 break; 380 case 8: { 381 Major = input.ReadInt32(); 382 break; 383 } 384 case 16: { 385 Minor = input.ReadInt32(); 386 break; 387 } 388 case 24: { 389 Patch = input.ReadInt32(); 390 break; 391 } 392 case 34: { 393 Suffix = input.ReadString(); 394 break; 395 } 396 } 397 } 398 #endif 399 } 400 401 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 403 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)404 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 405 uint tag; 406 while ((tag = input.ReadTag()) != 0) { 407 if ((tag & 7) == 4) { 408 // Abort on any end group tag. 409 return; 410 } 411 switch(tag) { 412 default: 413 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 414 break; 415 case 8: { 416 Major = input.ReadInt32(); 417 break; 418 } 419 case 16: { 420 Minor = input.ReadInt32(); 421 break; 422 } 423 case 24: { 424 Patch = input.ReadInt32(); 425 break; 426 } 427 case 34: { 428 Suffix = input.ReadString(); 429 break; 430 } 431 } 432 } 433 } 434 #endif 435 436 } 437 438 /// <summary> 439 /// An encoded CodeGeneratorRequest is written to the plugin's stdin. 440 /// </summary> 441 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 442 public sealed partial class CodeGeneratorRequest : pb::IMessage<CodeGeneratorRequest> 443 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 444 , pb::IBufferMessage 445 #endif 446 { 447 private static readonly pb::MessageParser<CodeGeneratorRequest> _parser = new pb::MessageParser<CodeGeneratorRequest>(() => new CodeGeneratorRequest()); 448 private pb::UnknownFieldSet _unknownFields; 449 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 450 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 451 public static pb::MessageParser<CodeGeneratorRequest> Parser { get { return _parser; } } 452 453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 454 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 455 public static pbr::MessageDescriptor Descriptor { 456 get { return global::Google.Protobuf.Compiler.PluginReflection.Descriptor.MessageTypes[1]; } 457 } 458 459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 460 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 461 pbr::MessageDescriptor pb::IMessage.Descriptor { 462 get { return Descriptor; } 463 } 464 465 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 466 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CodeGeneratorRequest()467 public CodeGeneratorRequest() { 468 OnConstruction(); 469 } 470 OnConstruction()471 partial void OnConstruction(); 472 473 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 474 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CodeGeneratorRequest(CodeGeneratorRequest other)475 public CodeGeneratorRequest(CodeGeneratorRequest other) : this() { 476 fileToGenerate_ = other.fileToGenerate_.Clone(); 477 parameter_ = other.parameter_; 478 protoFile_ = other.protoFile_.Clone(); 479 sourceFileDescriptors_ = other.sourceFileDescriptors_.Clone(); 480 compilerVersion_ = other.compilerVersion_ != null ? other.compilerVersion_.Clone() : null; 481 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 482 } 483 484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 485 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()486 public CodeGeneratorRequest Clone() { 487 return new CodeGeneratorRequest(this); 488 } 489 490 /// <summary>Field number for the "file_to_generate" field.</summary> 491 public const int FileToGenerateFieldNumber = 1; 492 private static readonly pb::FieldCodec<string> _repeated_fileToGenerate_codec 493 = pb::FieldCodec.ForString(10); 494 private readonly pbc::RepeatedField<string> fileToGenerate_ = new pbc::RepeatedField<string>(); 495 /// <summary> 496 /// The .proto files that were explicitly listed on the command-line. The 497 /// code generator should generate code only for these files. Each file's 498 /// descriptor will be included in proto_file, below. 499 /// </summary> 500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 501 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 502 public pbc::RepeatedField<string> FileToGenerate { 503 get { return fileToGenerate_; } 504 } 505 506 /// <summary>Field number for the "parameter" field.</summary> 507 public const int ParameterFieldNumber = 2; 508 private readonly static string ParameterDefaultValue = ""; 509 510 private string parameter_; 511 /// <summary> 512 /// The generator parameter passed on the command-line. 513 /// </summary> 514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 515 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 516 public string Parameter { 517 get { return parameter_ ?? ParameterDefaultValue; } 518 set { 519 parameter_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 520 } 521 } 522 /// <summary>Gets whether the "parameter" field is set</summary> 523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 525 public bool HasParameter { 526 get { return parameter_ != null; } 527 } 528 /// <summary>Clears the value of the "parameter" field</summary> 529 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 530 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearParameter()531 public void ClearParameter() { 532 parameter_ = null; 533 } 534 535 /// <summary>Field number for the "proto_file" field.</summary> 536 public const int ProtoFileFieldNumber = 15; 537 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_protoFile_codec 538 = pb::FieldCodec.ForMessage(122, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser); 539 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> protoFile_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>(); 540 /// <summary> 541 /// FileDescriptorProtos for all files in files_to_generate and everything 542 /// they import. The files will appear in topological order, so each file 543 /// appears before any file that imports it. 544 /// 545 /// Note: the files listed in files_to_generate will include runtime-retention 546 /// options only, but all other files will include source-retention options. 547 /// The source_file_descriptors field below is available in case you need 548 /// source-retention options for files_to_generate. 549 /// 550 /// protoc guarantees that all proto_files will be written after 551 /// the fields above, even though this is not technically guaranteed by the 552 /// protobuf wire format. This theoretically could allow a plugin to stream 553 /// in the FileDescriptorProtos and handle them one by one rather than read 554 /// the entire set into memory at once. However, as of this writing, this 555 /// is not similarly optimized on protoc's end -- it will store all fields in 556 /// memory at once before sending them to the plugin. 557 /// 558 /// Type names of fields and extensions in the FileDescriptorProto are always 559 /// fully qualified. 560 /// </summary> 561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 562 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 563 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> ProtoFile { 564 get { return protoFile_; } 565 } 566 567 /// <summary>Field number for the "source_file_descriptors" field.</summary> 568 public const int SourceFileDescriptorsFieldNumber = 17; 569 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.FileDescriptorProto> _repeated_sourceFileDescriptors_codec 570 = pb::FieldCodec.ForMessage(138, global::Google.Protobuf.Reflection.FileDescriptorProto.Parser); 571 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> sourceFileDescriptors_ = new pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto>(); 572 /// <summary> 573 /// File descriptors with all options, including source-retention options. 574 /// These descriptors are only provided for the files listed in 575 /// files_to_generate. 576 /// </summary> 577 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 578 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 579 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorProto> SourceFileDescriptors { 580 get { return sourceFileDescriptors_; } 581 } 582 583 /// <summary>Field number for the "compiler_version" field.</summary> 584 public const int CompilerVersionFieldNumber = 3; 585 private global::Google.Protobuf.Compiler.Version compilerVersion_; 586 /// <summary> 587 /// The version number of protocol compiler. 588 /// </summary> 589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 590 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 591 public global::Google.Protobuf.Compiler.Version CompilerVersion { 592 get { return compilerVersion_; } 593 set { 594 compilerVersion_ = value; 595 } 596 } 597 598 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 599 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)600 public override bool Equals(object other) { 601 return Equals(other as CodeGeneratorRequest); 602 } 603 604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 605 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CodeGeneratorRequest other)606 public bool Equals(CodeGeneratorRequest other) { 607 if (ReferenceEquals(other, null)) { 608 return false; 609 } 610 if (ReferenceEquals(other, this)) { 611 return true; 612 } 613 if(!fileToGenerate_.Equals(other.fileToGenerate_)) return false; 614 if (Parameter != other.Parameter) return false; 615 if(!protoFile_.Equals(other.protoFile_)) return false; 616 if(!sourceFileDescriptors_.Equals(other.sourceFileDescriptors_)) return false; 617 if (!object.Equals(CompilerVersion, other.CompilerVersion)) return false; 618 return Equals(_unknownFields, other._unknownFields); 619 } 620 621 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 622 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()623 public override int GetHashCode() { 624 int hash = 1; 625 hash ^= fileToGenerate_.GetHashCode(); 626 if (HasParameter) hash ^= Parameter.GetHashCode(); 627 hash ^= protoFile_.GetHashCode(); 628 hash ^= sourceFileDescriptors_.GetHashCode(); 629 if (compilerVersion_ != null) hash ^= CompilerVersion.GetHashCode(); 630 if (_unknownFields != null) { 631 hash ^= _unknownFields.GetHashCode(); 632 } 633 return hash; 634 } 635 636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 637 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()638 public override string ToString() { 639 return pb::JsonFormatter.ToDiagnosticString(this); 640 } 641 642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 643 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)644 public void WriteTo(pb::CodedOutputStream output) { 645 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 646 output.WriteRawMessage(this); 647 #else 648 fileToGenerate_.WriteTo(output, _repeated_fileToGenerate_codec); 649 if (HasParameter) { 650 output.WriteRawTag(18); 651 output.WriteString(Parameter); 652 } 653 if (compilerVersion_ != null) { 654 output.WriteRawTag(26); 655 output.WriteMessage(CompilerVersion); 656 } 657 protoFile_.WriteTo(output, _repeated_protoFile_codec); 658 sourceFileDescriptors_.WriteTo(output, _repeated_sourceFileDescriptors_codec); 659 if (_unknownFields != null) { 660 _unknownFields.WriteTo(output); 661 } 662 #endif 663 } 664 665 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 666 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 667 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)668 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 669 fileToGenerate_.WriteTo(ref output, _repeated_fileToGenerate_codec); 670 if (HasParameter) { 671 output.WriteRawTag(18); 672 output.WriteString(Parameter); 673 } 674 if (compilerVersion_ != null) { 675 output.WriteRawTag(26); 676 output.WriteMessage(CompilerVersion); 677 } 678 protoFile_.WriteTo(ref output, _repeated_protoFile_codec); 679 sourceFileDescriptors_.WriteTo(ref output, _repeated_sourceFileDescriptors_codec); 680 if (_unknownFields != null) { 681 _unknownFields.WriteTo(ref output); 682 } 683 } 684 #endif 685 686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 687 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()688 public int CalculateSize() { 689 int size = 0; 690 size += fileToGenerate_.CalculateSize(_repeated_fileToGenerate_codec); 691 if (HasParameter) { 692 size += 1 + pb::CodedOutputStream.ComputeStringSize(Parameter); 693 } 694 size += protoFile_.CalculateSize(_repeated_protoFile_codec); 695 size += sourceFileDescriptors_.CalculateSize(_repeated_sourceFileDescriptors_codec); 696 if (compilerVersion_ != null) { 697 size += 1 + pb::CodedOutputStream.ComputeMessageSize(CompilerVersion); 698 } 699 if (_unknownFields != null) { 700 size += _unknownFields.CalculateSize(); 701 } 702 return size; 703 } 704 705 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 706 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CodeGeneratorRequest other)707 public void MergeFrom(CodeGeneratorRequest other) { 708 if (other == null) { 709 return; 710 } 711 fileToGenerate_.Add(other.fileToGenerate_); 712 if (other.HasParameter) { 713 Parameter = other.Parameter; 714 } 715 protoFile_.Add(other.protoFile_); 716 sourceFileDescriptors_.Add(other.sourceFileDescriptors_); 717 if (other.compilerVersion_ != null) { 718 if (compilerVersion_ == null) { 719 CompilerVersion = new global::Google.Protobuf.Compiler.Version(); 720 } 721 CompilerVersion.MergeFrom(other.CompilerVersion); 722 } 723 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 724 } 725 726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 727 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)728 public void MergeFrom(pb::CodedInputStream input) { 729 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 730 input.ReadRawMessage(this); 731 #else 732 uint tag; 733 while ((tag = input.ReadTag()) != 0) { 734 if ((tag & 7) == 4) { 735 // Abort on any end group tag. 736 return; 737 } 738 switch(tag) { 739 default: 740 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 741 break; 742 case 10: { 743 fileToGenerate_.AddEntriesFrom(input, _repeated_fileToGenerate_codec); 744 break; 745 } 746 case 18: { 747 Parameter = input.ReadString(); 748 break; 749 } 750 case 26: { 751 if (compilerVersion_ == null) { 752 CompilerVersion = new global::Google.Protobuf.Compiler.Version(); 753 } 754 input.ReadMessage(CompilerVersion); 755 break; 756 } 757 case 122: { 758 protoFile_.AddEntriesFrom(input, _repeated_protoFile_codec); 759 break; 760 } 761 case 138: { 762 sourceFileDescriptors_.AddEntriesFrom(input, _repeated_sourceFileDescriptors_codec); 763 break; 764 } 765 } 766 } 767 #endif 768 } 769 770 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 771 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 772 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)773 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 774 uint tag; 775 while ((tag = input.ReadTag()) != 0) { 776 if ((tag & 7) == 4) { 777 // Abort on any end group tag. 778 return; 779 } 780 switch(tag) { 781 default: 782 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 783 break; 784 case 10: { 785 fileToGenerate_.AddEntriesFrom(ref input, _repeated_fileToGenerate_codec); 786 break; 787 } 788 case 18: { 789 Parameter = input.ReadString(); 790 break; 791 } 792 case 26: { 793 if (compilerVersion_ == null) { 794 CompilerVersion = new global::Google.Protobuf.Compiler.Version(); 795 } 796 input.ReadMessage(CompilerVersion); 797 break; 798 } 799 case 122: { 800 protoFile_.AddEntriesFrom(ref input, _repeated_protoFile_codec); 801 break; 802 } 803 case 138: { 804 sourceFileDescriptors_.AddEntriesFrom(ref input, _repeated_sourceFileDescriptors_codec); 805 break; 806 } 807 } 808 } 809 } 810 #endif 811 812 } 813 814 /// <summary> 815 /// The plugin writes an encoded CodeGeneratorResponse to stdout. 816 /// </summary> 817 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 818 public sealed partial class CodeGeneratorResponse : pb::IMessage<CodeGeneratorResponse> 819 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 820 , pb::IBufferMessage 821 #endif 822 { 823 private static readonly pb::MessageParser<CodeGeneratorResponse> _parser = new pb::MessageParser<CodeGeneratorResponse>(() => new CodeGeneratorResponse()); 824 private pb::UnknownFieldSet _unknownFields; 825 private int _hasBits0; 826 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 827 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 828 public static pb::MessageParser<CodeGeneratorResponse> Parser { get { return _parser; } } 829 830 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 831 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 832 public static pbr::MessageDescriptor Descriptor { 833 get { return global::Google.Protobuf.Compiler.PluginReflection.Descriptor.MessageTypes[2]; } 834 } 835 836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 837 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 838 pbr::MessageDescriptor pb::IMessage.Descriptor { 839 get { return Descriptor; } 840 } 841 842 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 843 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CodeGeneratorResponse()844 public CodeGeneratorResponse() { 845 OnConstruction(); 846 } 847 OnConstruction()848 partial void OnConstruction(); 849 850 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 851 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CodeGeneratorResponse(CodeGeneratorResponse other)852 public CodeGeneratorResponse(CodeGeneratorResponse other) : this() { 853 _hasBits0 = other._hasBits0; 854 error_ = other.error_; 855 supportedFeatures_ = other.supportedFeatures_; 856 minimumEdition_ = other.minimumEdition_; 857 maximumEdition_ = other.maximumEdition_; 858 file_ = other.file_.Clone(); 859 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 860 } 861 862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 863 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()864 public CodeGeneratorResponse Clone() { 865 return new CodeGeneratorResponse(this); 866 } 867 868 /// <summary>Field number for the "error" field.</summary> 869 public const int ErrorFieldNumber = 1; 870 private readonly static string ErrorDefaultValue = ""; 871 872 private string error_; 873 /// <summary> 874 /// Error message. If non-empty, code generation failed. The plugin process 875 /// should exit with status code zero even if it reports an error in this way. 876 /// 877 /// This should be used to indicate errors in .proto files which prevent the 878 /// code generator from generating correct code. Errors which indicate a 879 /// problem in protoc itself -- such as the input CodeGeneratorRequest being 880 /// unparseable -- should be reported by writing a message to stderr and 881 /// exiting with a non-zero status code. 882 /// </summary> 883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 884 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 885 public string Error { 886 get { return error_ ?? ErrorDefaultValue; } 887 set { 888 error_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 889 } 890 } 891 /// <summary>Gets whether the "error" field is set</summary> 892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 893 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 894 public bool HasError { 895 get { return error_ != null; } 896 } 897 /// <summary>Clears the value of the "error" field</summary> 898 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 899 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearError()900 public void ClearError() { 901 error_ = null; 902 } 903 904 /// <summary>Field number for the "supported_features" field.</summary> 905 public const int SupportedFeaturesFieldNumber = 2; 906 private readonly static ulong SupportedFeaturesDefaultValue = 0UL; 907 908 private ulong supportedFeatures_; 909 /// <summary> 910 /// A bitmask of supported features that the code generator supports. 911 /// This is a bitwise "or" of values from the Feature enum. 912 /// </summary> 913 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 914 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 915 public ulong SupportedFeatures { 916 get { if ((_hasBits0 & 1) != 0) { return supportedFeatures_; } else { return SupportedFeaturesDefaultValue; } } 917 set { 918 _hasBits0 |= 1; 919 supportedFeatures_ = value; 920 } 921 } 922 /// <summary>Gets whether the "supported_features" field is set</summary> 923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 924 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 925 public bool HasSupportedFeatures { 926 get { return (_hasBits0 & 1) != 0; } 927 } 928 /// <summary>Clears the value of the "supported_features" field</summary> 929 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 930 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearSupportedFeatures()931 public void ClearSupportedFeatures() { 932 _hasBits0 &= ~1; 933 } 934 935 /// <summary>Field number for the "minimum_edition" field.</summary> 936 public const int MinimumEditionFieldNumber = 3; 937 private readonly static int MinimumEditionDefaultValue = 0; 938 939 private int minimumEdition_; 940 /// <summary> 941 /// The minimum edition this plugin supports. This will be treated as an 942 /// Edition enum, but we want to allow unknown values. It should be specified 943 /// according the edition enum value, *not* the edition number. Only takes 944 /// effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. 945 /// </summary> 946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 947 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 948 public int MinimumEdition { 949 get { if ((_hasBits0 & 2) != 0) { return minimumEdition_; } else { return MinimumEditionDefaultValue; } } 950 set { 951 _hasBits0 |= 2; 952 minimumEdition_ = value; 953 } 954 } 955 /// <summary>Gets whether the "minimum_edition" field is set</summary> 956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 957 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 958 public bool HasMinimumEdition { 959 get { return (_hasBits0 & 2) != 0; } 960 } 961 /// <summary>Clears the value of the "minimum_edition" field</summary> 962 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 963 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMinimumEdition()964 public void ClearMinimumEdition() { 965 _hasBits0 &= ~2; 966 } 967 968 /// <summary>Field number for the "maximum_edition" field.</summary> 969 public const int MaximumEditionFieldNumber = 4; 970 private readonly static int MaximumEditionDefaultValue = 0; 971 972 private int maximumEdition_; 973 /// <summary> 974 /// The maximum edition this plugin supports. This will be treated as an 975 /// Edition enum, but we want to allow unknown values. It should be specified 976 /// according the edition enum value, *not* the edition number. Only takes 977 /// effect for plugins that have FEATURE_SUPPORTS_EDITIONS set. 978 /// </summary> 979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 980 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 981 public int MaximumEdition { 982 get { if ((_hasBits0 & 4) != 0) { return maximumEdition_; } else { return MaximumEditionDefaultValue; } } 983 set { 984 _hasBits0 |= 4; 985 maximumEdition_ = value; 986 } 987 } 988 /// <summary>Gets whether the "maximum_edition" field is set</summary> 989 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 990 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 991 public bool HasMaximumEdition { 992 get { return (_hasBits0 & 4) != 0; } 993 } 994 /// <summary>Clears the value of the "maximum_edition" field</summary> 995 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 996 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearMaximumEdition()997 public void ClearMaximumEdition() { 998 _hasBits0 &= ~4; 999 } 1000 1001 /// <summary>Field number for the "file" field.</summary> 1002 public const int FileFieldNumber = 15; 1003 private static readonly pb::FieldCodec<global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.File> _repeated_file_codec 1004 = pb::FieldCodec.ForMessage(122, global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.File.Parser); 1005 private readonly pbc::RepeatedField<global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.File> file_ = new pbc::RepeatedField<global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.File>(); 1006 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1007 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1008 public pbc::RepeatedField<global::Google.Protobuf.Compiler.CodeGeneratorResponse.Types.File> File { 1009 get { return file_; } 1010 } 1011 1012 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1013 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1014 public override bool Equals(object other) { 1015 return Equals(other as CodeGeneratorResponse); 1016 } 1017 1018 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1019 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(CodeGeneratorResponse other)1020 public bool Equals(CodeGeneratorResponse other) { 1021 if (ReferenceEquals(other, null)) { 1022 return false; 1023 } 1024 if (ReferenceEquals(other, this)) { 1025 return true; 1026 } 1027 if (Error != other.Error) return false; 1028 if (SupportedFeatures != other.SupportedFeatures) return false; 1029 if (MinimumEdition != other.MinimumEdition) return false; 1030 if (MaximumEdition != other.MaximumEdition) return false; 1031 if(!file_.Equals(other.file_)) return false; 1032 return Equals(_unknownFields, other._unknownFields); 1033 } 1034 1035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1036 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1037 public override int GetHashCode() { 1038 int hash = 1; 1039 if (HasError) hash ^= Error.GetHashCode(); 1040 if (HasSupportedFeatures) hash ^= SupportedFeatures.GetHashCode(); 1041 if (HasMinimumEdition) hash ^= MinimumEdition.GetHashCode(); 1042 if (HasMaximumEdition) hash ^= MaximumEdition.GetHashCode(); 1043 hash ^= file_.GetHashCode(); 1044 if (_unknownFields != null) { 1045 hash ^= _unknownFields.GetHashCode(); 1046 } 1047 return hash; 1048 } 1049 1050 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1051 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1052 public override string ToString() { 1053 return pb::JsonFormatter.ToDiagnosticString(this); 1054 } 1055 1056 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1057 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1058 public void WriteTo(pb::CodedOutputStream output) { 1059 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1060 output.WriteRawMessage(this); 1061 #else 1062 if (HasError) { 1063 output.WriteRawTag(10); 1064 output.WriteString(Error); 1065 } 1066 if (HasSupportedFeatures) { 1067 output.WriteRawTag(16); 1068 output.WriteUInt64(SupportedFeatures); 1069 } 1070 if (HasMinimumEdition) { 1071 output.WriteRawTag(24); 1072 output.WriteInt32(MinimumEdition); 1073 } 1074 if (HasMaximumEdition) { 1075 output.WriteRawTag(32); 1076 output.WriteInt32(MaximumEdition); 1077 } 1078 file_.WriteTo(output, _repeated_file_codec); 1079 if (_unknownFields != null) { 1080 _unknownFields.WriteTo(output); 1081 } 1082 #endif 1083 } 1084 1085 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1087 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1088 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1089 if (HasError) { 1090 output.WriteRawTag(10); 1091 output.WriteString(Error); 1092 } 1093 if (HasSupportedFeatures) { 1094 output.WriteRawTag(16); 1095 output.WriteUInt64(SupportedFeatures); 1096 } 1097 if (HasMinimumEdition) { 1098 output.WriteRawTag(24); 1099 output.WriteInt32(MinimumEdition); 1100 } 1101 if (HasMaximumEdition) { 1102 output.WriteRawTag(32); 1103 output.WriteInt32(MaximumEdition); 1104 } 1105 file_.WriteTo(ref output, _repeated_file_codec); 1106 if (_unknownFields != null) { 1107 _unknownFields.WriteTo(ref output); 1108 } 1109 } 1110 #endif 1111 1112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1113 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1114 public int CalculateSize() { 1115 int size = 0; 1116 if (HasError) { 1117 size += 1 + pb::CodedOutputStream.ComputeStringSize(Error); 1118 } 1119 if (HasSupportedFeatures) { 1120 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(SupportedFeatures); 1121 } 1122 if (HasMinimumEdition) { 1123 size += 1 + pb::CodedOutputStream.ComputeInt32Size(MinimumEdition); 1124 } 1125 if (HasMaximumEdition) { 1126 size += 1 + pb::CodedOutputStream.ComputeInt32Size(MaximumEdition); 1127 } 1128 size += file_.CalculateSize(_repeated_file_codec); 1129 if (_unknownFields != null) { 1130 size += _unknownFields.CalculateSize(); 1131 } 1132 return size; 1133 } 1134 1135 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1136 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(CodeGeneratorResponse other)1137 public void MergeFrom(CodeGeneratorResponse other) { 1138 if (other == null) { 1139 return; 1140 } 1141 if (other.HasError) { 1142 Error = other.Error; 1143 } 1144 if (other.HasSupportedFeatures) { 1145 SupportedFeatures = other.SupportedFeatures; 1146 } 1147 if (other.HasMinimumEdition) { 1148 MinimumEdition = other.MinimumEdition; 1149 } 1150 if (other.HasMaximumEdition) { 1151 MaximumEdition = other.MaximumEdition; 1152 } 1153 file_.Add(other.file_); 1154 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1155 } 1156 1157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1158 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1159 public void MergeFrom(pb::CodedInputStream input) { 1160 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1161 input.ReadRawMessage(this); 1162 #else 1163 uint tag; 1164 while ((tag = input.ReadTag()) != 0) { 1165 if ((tag & 7) == 4) { 1166 // Abort on any end group tag. 1167 return; 1168 } 1169 switch(tag) { 1170 default: 1171 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1172 break; 1173 case 10: { 1174 Error = input.ReadString(); 1175 break; 1176 } 1177 case 16: { 1178 SupportedFeatures = input.ReadUInt64(); 1179 break; 1180 } 1181 case 24: { 1182 MinimumEdition = input.ReadInt32(); 1183 break; 1184 } 1185 case 32: { 1186 MaximumEdition = input.ReadInt32(); 1187 break; 1188 } 1189 case 122: { 1190 file_.AddEntriesFrom(input, _repeated_file_codec); 1191 break; 1192 } 1193 } 1194 } 1195 #endif 1196 } 1197 1198 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1200 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1201 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1202 uint tag; 1203 while ((tag = input.ReadTag()) != 0) { 1204 if ((tag & 7) == 4) { 1205 // Abort on any end group tag. 1206 return; 1207 } 1208 switch(tag) { 1209 default: 1210 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1211 break; 1212 case 10: { 1213 Error = input.ReadString(); 1214 break; 1215 } 1216 case 16: { 1217 SupportedFeatures = input.ReadUInt64(); 1218 break; 1219 } 1220 case 24: { 1221 MinimumEdition = input.ReadInt32(); 1222 break; 1223 } 1224 case 32: { 1225 MaximumEdition = input.ReadInt32(); 1226 break; 1227 } 1228 case 122: { 1229 file_.AddEntriesFrom(ref input, _repeated_file_codec); 1230 break; 1231 } 1232 } 1233 } 1234 } 1235 #endif 1236 1237 #region Nested types 1238 /// <summary>Container for nested types declared in the CodeGeneratorResponse message type.</summary> 1239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1240 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1241 public static partial class Types { 1242 /// <summary> 1243 /// Sync with code_generator.h. 1244 /// </summary> 1245 public enum Feature { 1246 [pbr::OriginalName("FEATURE_NONE")] None = 0, 1247 [pbr::OriginalName("FEATURE_PROTO3_OPTIONAL")] Proto3Optional = 1, 1248 [pbr::OriginalName("FEATURE_SUPPORTS_EDITIONS")] SupportsEditions = 2, 1249 } 1250 1251 /// <summary> 1252 /// Represents a single generated file. 1253 /// </summary> 1254 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 1255 public sealed partial class File : pb::IMessage<File> 1256 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1257 , pb::IBufferMessage 1258 #endif 1259 { 1260 private static readonly pb::MessageParser<File> _parser = new pb::MessageParser<File>(() => new File()); 1261 private pb::UnknownFieldSet _unknownFields; 1262 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1263 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1264 public static pb::MessageParser<File> Parser { get { return _parser; } } 1265 1266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1267 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1268 public static pbr::MessageDescriptor Descriptor { 1269 get { return global::Google.Protobuf.Compiler.CodeGeneratorResponse.Descriptor.NestedTypes[0]; } 1270 } 1271 1272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1273 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1274 pbr::MessageDescriptor pb::IMessage.Descriptor { 1275 get { return Descriptor; } 1276 } 1277 1278 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1279 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] File()1280 public File() { 1281 OnConstruction(); 1282 } 1283 OnConstruction()1284 partial void OnConstruction(); 1285 1286 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1287 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] File(File other)1288 public File(File other) : this() { 1289 name_ = other.name_; 1290 insertionPoint_ = other.insertionPoint_; 1291 content_ = other.content_; 1292 generatedCodeInfo_ = other.generatedCodeInfo_ != null ? other.generatedCodeInfo_.Clone() : null; 1293 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 1294 } 1295 1296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1297 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()1298 public File Clone() { 1299 return new File(this); 1300 } 1301 1302 /// <summary>Field number for the "name" field.</summary> 1303 public const int NameFieldNumber = 1; 1304 private readonly static string NameDefaultValue = ""; 1305 1306 private string name_; 1307 /// <summary> 1308 /// The file name, relative to the output directory. The name must not 1309 /// contain "." or ".." components and must be relative, not be absolute (so, 1310 /// the file cannot lie outside the output directory). "/" must be used as 1311 /// the path separator, not "\". 1312 /// 1313 /// If the name is omitted, the content will be appended to the previous 1314 /// file. This allows the generator to break large files into small chunks, 1315 /// and allows the generated text to be streamed back to protoc so that large 1316 /// files need not reside completely in memory at one time. Note that as of 1317 /// this writing protoc does not optimize for this -- it will read the entire 1318 /// CodeGeneratorResponse before writing files to disk. 1319 /// </summary> 1320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1321 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1322 public string Name { 1323 get { return name_ ?? NameDefaultValue; } 1324 set { 1325 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1326 } 1327 } 1328 /// <summary>Gets whether the "name" field is set</summary> 1329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1330 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1331 public bool HasName { 1332 get { return name_ != null; } 1333 } 1334 /// <summary>Clears the value of the "name" field</summary> 1335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1336 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearName()1337 public void ClearName() { 1338 name_ = null; 1339 } 1340 1341 /// <summary>Field number for the "insertion_point" field.</summary> 1342 public const int InsertionPointFieldNumber = 2; 1343 private readonly static string InsertionPointDefaultValue = ""; 1344 1345 private string insertionPoint_; 1346 /// <summary> 1347 /// If non-empty, indicates that the named file should already exist, and the 1348 /// content here is to be inserted into that file at a defined insertion 1349 /// point. This feature allows a code generator to extend the output 1350 /// produced by another code generator. The original generator may provide 1351 /// insertion points by placing special annotations in the file that look 1352 /// like: 1353 /// @@protoc_insertion_point(NAME) 1354 /// The annotation can have arbitrary text before and after it on the line, 1355 /// which allows it to be placed in a comment. NAME should be replaced with 1356 /// an identifier naming the point -- this is what other generators will use 1357 /// as the insertion_point. Code inserted at this point will be placed 1358 /// immediately above the line containing the insertion point (thus multiple 1359 /// insertions to the same point will come out in the order they were added). 1360 /// The double-@ is intended to make it unlikely that the generated code 1361 /// could contain things that look like insertion points by accident. 1362 /// 1363 /// For example, the C++ code generator places the following line in the 1364 /// .pb.h files that it generates: 1365 /// // @@protoc_insertion_point(namespace_scope) 1366 /// This line appears within the scope of the file's package namespace, but 1367 /// outside of any particular class. Another plugin can then specify the 1368 /// insertion_point "namespace_scope" to generate additional classes or 1369 /// other declarations that should be placed in this scope. 1370 /// 1371 /// Note that if the line containing the insertion point begins with 1372 /// whitespace, the same whitespace will be added to every line of the 1373 /// inserted text. This is useful for languages like Python, where 1374 /// indentation matters. In these languages, the insertion point comment 1375 /// should be indented the same amount as any inserted code will need to be 1376 /// in order to work correctly in that context. 1377 /// 1378 /// The code generator that generates the initial file and the one which 1379 /// inserts into it must both run as part of a single invocation of protoc. 1380 /// Code generators are executed in the order in which they appear on the 1381 /// command line. 1382 /// 1383 /// If |insertion_point| is present, |name| must also be present. 1384 /// </summary> 1385 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1386 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1387 public string InsertionPoint { 1388 get { return insertionPoint_ ?? InsertionPointDefaultValue; } 1389 set { 1390 insertionPoint_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1391 } 1392 } 1393 /// <summary>Gets whether the "insertion_point" field is set</summary> 1394 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1395 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1396 public bool HasInsertionPoint { 1397 get { return insertionPoint_ != null; } 1398 } 1399 /// <summary>Clears the value of the "insertion_point" field</summary> 1400 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1401 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearInsertionPoint()1402 public void ClearInsertionPoint() { 1403 insertionPoint_ = null; 1404 } 1405 1406 /// <summary>Field number for the "content" field.</summary> 1407 public const int ContentFieldNumber = 15; 1408 private readonly static string ContentDefaultValue = ""; 1409 1410 private string content_; 1411 /// <summary> 1412 /// The file contents. 1413 /// </summary> 1414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1415 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1416 public string Content { 1417 get { return content_ ?? ContentDefaultValue; } 1418 set { 1419 content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1420 } 1421 } 1422 /// <summary>Gets whether the "content" field is set</summary> 1423 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1424 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1425 public bool HasContent { 1426 get { return content_ != null; } 1427 } 1428 /// <summary>Clears the value of the "content" field</summary> 1429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ClearContent()1431 public void ClearContent() { 1432 content_ = null; 1433 } 1434 1435 /// <summary>Field number for the "generated_code_info" field.</summary> 1436 public const int GeneratedCodeInfoFieldNumber = 16; 1437 private global::Google.Protobuf.Reflection.GeneratedCodeInfo generatedCodeInfo_; 1438 /// <summary> 1439 /// Information describing the file content being inserted. If an insertion 1440 /// point is used, this information will be appropriately offset and inserted 1441 /// into the code generation metadata for the generated files. 1442 /// </summary> 1443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1444 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 1445 public global::Google.Protobuf.Reflection.GeneratedCodeInfo GeneratedCodeInfo { 1446 get { return generatedCodeInfo_; } 1447 set { 1448 generatedCodeInfo_ = value; 1449 } 1450 } 1451 1452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1453 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)1454 public override bool Equals(object other) { 1455 return Equals(other as File); 1456 } 1457 1458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1459 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(File other)1460 public bool Equals(File other) { 1461 if (ReferenceEquals(other, null)) { 1462 return false; 1463 } 1464 if (ReferenceEquals(other, this)) { 1465 return true; 1466 } 1467 if (Name != other.Name) return false; 1468 if (InsertionPoint != other.InsertionPoint) return false; 1469 if (Content != other.Content) return false; 1470 if (!object.Equals(GeneratedCodeInfo, other.GeneratedCodeInfo)) return false; 1471 return Equals(_unknownFields, other._unknownFields); 1472 } 1473 1474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1475 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()1476 public override int GetHashCode() { 1477 int hash = 1; 1478 if (HasName) hash ^= Name.GetHashCode(); 1479 if (HasInsertionPoint) hash ^= InsertionPoint.GetHashCode(); 1480 if (HasContent) hash ^= Content.GetHashCode(); 1481 if (generatedCodeInfo_ != null) hash ^= GeneratedCodeInfo.GetHashCode(); 1482 if (_unknownFields != null) { 1483 hash ^= _unknownFields.GetHashCode(); 1484 } 1485 return hash; 1486 } 1487 1488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1489 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()1490 public override string ToString() { 1491 return pb::JsonFormatter.ToDiagnosticString(this); 1492 } 1493 1494 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1495 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)1496 public void WriteTo(pb::CodedOutputStream output) { 1497 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1498 output.WriteRawMessage(this); 1499 #else 1500 if (HasName) { 1501 output.WriteRawTag(10); 1502 output.WriteString(Name); 1503 } 1504 if (HasInsertionPoint) { 1505 output.WriteRawTag(18); 1506 output.WriteString(InsertionPoint); 1507 } 1508 if (HasContent) { 1509 output.WriteRawTag(122); 1510 output.WriteString(Content); 1511 } 1512 if (generatedCodeInfo_ != null) { 1513 output.WriteRawTag(130, 1); 1514 output.WriteMessage(GeneratedCodeInfo); 1515 } 1516 if (_unknownFields != null) { 1517 _unknownFields.WriteTo(output); 1518 } 1519 #endif 1520 } 1521 1522 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1523 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1524 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)1525 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 1526 if (HasName) { 1527 output.WriteRawTag(10); 1528 output.WriteString(Name); 1529 } 1530 if (HasInsertionPoint) { 1531 output.WriteRawTag(18); 1532 output.WriteString(InsertionPoint); 1533 } 1534 if (HasContent) { 1535 output.WriteRawTag(122); 1536 output.WriteString(Content); 1537 } 1538 if (generatedCodeInfo_ != null) { 1539 output.WriteRawTag(130, 1); 1540 output.WriteMessage(GeneratedCodeInfo); 1541 } 1542 if (_unknownFields != null) { 1543 _unknownFields.WriteTo(ref output); 1544 } 1545 } 1546 #endif 1547 1548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1549 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()1550 public int CalculateSize() { 1551 int size = 0; 1552 if (HasName) { 1553 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1554 } 1555 if (HasInsertionPoint) { 1556 size += 1 + pb::CodedOutputStream.ComputeStringSize(InsertionPoint); 1557 } 1558 if (HasContent) { 1559 size += 1 + pb::CodedOutputStream.ComputeStringSize(Content); 1560 } 1561 if (generatedCodeInfo_ != null) { 1562 size += 2 + pb::CodedOutputStream.ComputeMessageSize(GeneratedCodeInfo); 1563 } 1564 if (_unknownFields != null) { 1565 size += _unknownFields.CalculateSize(); 1566 } 1567 return size; 1568 } 1569 1570 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1571 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(File other)1572 public void MergeFrom(File other) { 1573 if (other == null) { 1574 return; 1575 } 1576 if (other.HasName) { 1577 Name = other.Name; 1578 } 1579 if (other.HasInsertionPoint) { 1580 InsertionPoint = other.InsertionPoint; 1581 } 1582 if (other.HasContent) { 1583 Content = other.Content; 1584 } 1585 if (other.generatedCodeInfo_ != null) { 1586 if (generatedCodeInfo_ == null) { 1587 GeneratedCodeInfo = new global::Google.Protobuf.Reflection.GeneratedCodeInfo(); 1588 } 1589 GeneratedCodeInfo.MergeFrom(other.GeneratedCodeInfo); 1590 } 1591 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 1592 } 1593 1594 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1595 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)1596 public void MergeFrom(pb::CodedInputStream input) { 1597 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1598 input.ReadRawMessage(this); 1599 #else 1600 uint tag; 1601 while ((tag = input.ReadTag()) != 0) { 1602 if ((tag & 7) == 4) { 1603 // Abort on any end group tag. 1604 return; 1605 } 1606 switch(tag) { 1607 default: 1608 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 1609 break; 1610 case 10: { 1611 Name = input.ReadString(); 1612 break; 1613 } 1614 case 18: { 1615 InsertionPoint = input.ReadString(); 1616 break; 1617 } 1618 case 122: { 1619 Content = input.ReadString(); 1620 break; 1621 } 1622 case 130: { 1623 if (generatedCodeInfo_ == null) { 1624 GeneratedCodeInfo = new global::Google.Protobuf.Reflection.GeneratedCodeInfo(); 1625 } 1626 input.ReadMessage(GeneratedCodeInfo); 1627 break; 1628 } 1629 } 1630 } 1631 #endif 1632 } 1633 1634 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 1635 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1636 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)1637 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 1638 uint tag; 1639 while ((tag = input.ReadTag()) != 0) { 1640 if ((tag & 7) == 4) { 1641 // Abort on any end group tag. 1642 return; 1643 } 1644 switch(tag) { 1645 default: 1646 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 1647 break; 1648 case 10: { 1649 Name = input.ReadString(); 1650 break; 1651 } 1652 case 18: { 1653 InsertionPoint = input.ReadString(); 1654 break; 1655 } 1656 case 122: { 1657 Content = input.ReadString(); 1658 break; 1659 } 1660 case 130: { 1661 if (generatedCodeInfo_ == null) { 1662 GeneratedCodeInfo = new global::Google.Protobuf.Reflection.GeneratedCodeInfo(); 1663 } 1664 input.ReadMessage(GeneratedCodeInfo); 1665 break; 1666 } 1667 } 1668 } 1669 } 1670 #endif 1671 1672 } 1673 1674 } 1675 #endregion 1676 1677 } 1678 1679 #endregion 1680 1681 } 1682 1683 #endregion Designer generated code 1684