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

Side by Side Diff: third_party/protobuf/csharp/src/Google.Protobuf/Reflection/Descriptor.cs

Issue 2600753002: Reverts third_party/protobuf: Update to HEAD (f52e188fe4) (Closed)
Patch Set: Created 3 years, 12 months 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/descriptor.proto 2 // source: google/protobuf/descriptor.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.Reflection { 10 namespace Google.Protobuf.Reflection {
11 11
12 /// <summary>Holder for reflection information generated from google/protobuf/ descriptor.proto</summary> 12 /// <summary>Holder for reflection information generated from google/protobuf/ descriptor.proto</summary>
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
13 internal static partial class DescriptorReflection { 14 internal static partial class DescriptorReflection {
14 15
15 #region Descriptor 16 #region Descriptor
16 /// <summary>File descriptor for google/protobuf/descriptor.proto</summary> 17 /// <summary>File descriptor for google/protobuf/descriptor.proto</summary>
17 public static pbr::FileDescriptor Descriptor { 18 public static pbr::FileDescriptor Descriptor {
18 get { return descriptor; } 19 get { return descriptor; }
19 } 20 }
20 private static pbr::FileDescriptor descriptor; 21 private static pbr::FileDescriptor descriptor;
21 22
22 static DescriptorReflection() { 23 static DescriptorReflection() {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR", 58 "FQoNZGVmYXVsdF92YWx1ZRgHIAEoCRITCgtvbmVvZl9pbmRleBgJIAEoBRIR",
58 "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w", 59 "Cglqc29uX25hbWUYCiABKAkSLgoHb3B0aW9ucxgIIAEoCzIdLmdvb2dsZS5w",
59 "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ", 60 "cm90b2J1Zi5GaWVsZE9wdGlvbnMitgIKBFR5cGUSDwoLVFlQRV9ET1VCTEUQ",
60 "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO", 61 "ARIOCgpUWVBFX0ZMT0FUEAISDgoKVFlQRV9JTlQ2NBADEg8KC1RZUEVfVUlO",
61 "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ", 62 "VDY0EAQSDgoKVFlQRV9JTlQzMhAFEhAKDFRZUEVfRklYRUQ2NBAGEhAKDFRZ",
62 "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS", 63 "UEVfRklYRUQzMhAHEg0KCVRZUEVfQk9PTBAIEg8KC1RZUEVfU1RSSU5HEAkS",
63 "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU", 64 "DgoKVFlQRV9HUk9VUBAKEhAKDFRZUEVfTUVTU0FHRRALEg4KClRZUEVfQllU",
64 "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf", 65 "RVMQDBIPCgtUWVBFX1VJTlQzMhANEg0KCVRZUEVfRU5VTRAOEhEKDVRZUEVf",
65 "U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ", 66 "U0ZJWEVEMzIQDxIRCg1UWVBFX1NGSVhFRDY0EBASDwoLVFlQRV9TSU5UMzIQ",
66 "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM", 67 "ERIPCgtUWVBFX1NJTlQ2NBASIkMKBUxhYmVsEhIKDkxBQkVMX09QVElPTkFM",
67 "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIlQK", 68 "EAESEgoOTEFCRUxfUkVRVUlSRUQQAhISCg5MQUJFTF9SRVBFQVRFRBADIiQK",
68 "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkSLgoHb3B0aW9u", 69 "FE9uZW9mRGVzY3JpcHRvclByb3RvEgwKBG5hbWUYASABKAkijAEKE0VudW1E",
69 "cxgCIAEoCzIdLmdvb2dsZS5wcm90b2J1Zi5PbmVvZk9wdGlvbnMijAEKE0Vu", 70 "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMoCzIp",
70 "dW1EZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRI4CgV2YWx1ZRgCIAMo", 71 "Lmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SLQoH",
71 "CzIpLmdvb2dsZS5wcm90b2J1Zi5FbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8S", 72 "b3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9ucyJs",
72 "LQoHb3B0aW9ucxgDIAEoCzIcLmdvb2dsZS5wcm90b2J1Zi5FbnVtT3B0aW9u", 73 "ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZu",
73 "cyJsChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIO", 74 "dW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90b2J1",
74 "CgZudW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90", 75 "Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclByb3Rv",
75 "b2J1Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclBy", 76 "EgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnByb3Rv",
76 "b3RvEgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnBy", 77 "YnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgLMh8u",
77 "b3RvYnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgL", 78 "Z29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2REZXNj",
78 "Mh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2RE", 79 "cmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIgASgJ",
79 "ZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIg", 80 "EhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5nb29n",
80 "ASgJEhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5n", 81 "bGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFtaW5n",
81 "b29nbGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFt", 82 "GAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVmYWxz",
82 "aW5nGAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVm", 83 "ZSKHBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwKFGph",
83 "YWxzZSKaBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwK", 84 "dmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVfZmls",
84 "FGphdmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVf", 85 "ZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2FuZF9o",
85 "ZmlsZXMYCiABKAg6BWZhbHNlEikKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2Fu", 86 "YXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg",
86 "ZF9oYXNoGBQgASgIQgIYARIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg",
87 "ASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJv", 87 "ASgIOgVmYWxzZRJGCgxvcHRpbWl6ZV9mb3IYCSABKA4yKS5nb29nbGUucHJv",
88 "dG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19w", 88 "dG9idWYuRmlsZU9wdGlvbnMuT3B0aW1pemVNb2RlOgVTUEVFRBISCgpnb19w",
89 "YWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZh", 89 "YWNrYWdlGAsgASgJEiIKE2NjX2dlbmVyaWNfc2VydmljZXMYECABKAg6BWZh",
90 "bHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoT", 90 "bHNlEiQKFWphdmFfZ2VuZXJpY19zZXJ2aWNlcxgRIAEoCDoFZmFsc2USIgoT",
91 "cHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl", 91 "cHlfZ2VuZXJpY19zZXJ2aWNlcxgSIAEoCDoFZmFsc2USGQoKZGVwcmVjYXRl",
92 "ZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFs", 92 "ZBgXIAEoCDoFZmFsc2USHwoQY2NfZW5hYmxlX2FyZW5hcxgfIAEoCDoFZmFs",
93 "c2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVz", 93 "c2USGQoRb2JqY19jbGFzc19wcmVmaXgYJCABKAkSGAoQY3NoYXJwX25hbWVz",
94 "cGFjZRglIAEoCRIUCgxzd2lmdF9wcmVmaXgYJyABKAkSQwoUdW5pbnRlcnBy", 94 "cGFjZRglIAEoCRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n",
95 "ZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJw", 95 "b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRpbWl6",
96 "cmV0ZWRPcHRpb24iOgoMT3B0aW1pemVNb2RlEgkKBVNQRUVEEAESDQoJQ09E", 96 "ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JVTlRJ",
97 "RV9TSVpFEAISEAoMTElURV9SVU5USU1FEAMqCQjoBxCAgICAAkoECCYQJyLs", 97 "TUUQAyoJCOgHEICAgIACSgQIJhAnIuYBCg5NZXNzYWdlT3B0aW9ucxImChdt",
98 "AQoOTWVzc2FnZU9wdGlvbnMSJgoXbWVzc2FnZV9zZXRfd2lyZV9mb3JtYXQY", 98 "ZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9fc3Rh",
99 "ASABKAg6BWZhbHNlEi4KH25vX3N0YW5kYXJkX2Rlc2NyaXB0b3JfYWNjZXNz", 99 "bmRhcmRfZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoKZGVw",
100 "b3IYAiABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNlEhEK", 100 "cmVjYXRlZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMKFHVu",
101 "CW1hcF9lbnRyeRgHIAEoCBJDChR1bmludGVycHJldGVkX29wdGlvbhjnByAD", 101 "aW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5V",
102 "KAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgH", 102 "bmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIimAMKDEZpZWxkT3B0aW9u",
103 "EICAgIACSgQICBAJIp4DCgxGaWVsZE9wdGlvbnMSOgoFY3R5cGUYASABKA4y", 103 "cxI6CgVjdHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlv",
104 "Iy5nb29nbGUucHJvdG9idWYuRmllbGRPcHRpb25zLkNUeXBlOgZTVFJJTkcS", 104 "bnMuQ1R5cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0eXBlGAYg",
105 "DgoGcGFja2VkGAIgASgIEj8KBmpzdHlwZRgGIAEoDjIkLmdvb2dsZS5wcm90", 105 "ASgOMiQuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6CUpT",
106 "b2J1Zi5GaWVsZE9wdGlvbnMuSlNUeXBlOglKU19OT1JNQUwSEwoEbGF6eRgF", 106 "X05PUk1BTBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMg",
107 "IAEoCDoFZmFsc2USGQoKZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2USEwoEd2Vh", 107 "ASgIOgVmYWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmludGVycHJl",
108 "axgKIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygL",
109 "MiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24iLwoFQ1R5",
110 "cGUSCgoGU1RSSU5HEAASCAoEQ09SRBABEhAKDFNUUklOR19QSUVDRRACIjUK",
111 "BkpTVHlwZRINCglKU19OT1JNQUwQABINCglKU19TVFJJTkcQARINCglKU19O",
112 "VU1CRVIQAioJCOgHEICAgIACSgQIBBAFIl4KDE9uZW9mT3B0aW9ucxJDChR1",
113 "bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYu",
114 "VW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACIo0BCgtFbnVtT3B0aW9u",
115 "cxITCgthbGxvd19hbGlhcxgCIAEoCBIZCgpkZXByZWNhdGVkGAMgASgIOgVm",
116 "YWxzZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUu",
117 "cHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACIn0KEEVu",
118 "dW1WYWx1ZU9wdGlvbnMSGQoKZGVwcmVjYXRlZBgBIAEoCDoFZmFsc2USQwoU",
119 "dW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVm",
120 "LlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiJ7Cg5TZXJ2aWNlT3B0",
121 "aW9ucxIZCgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJl",
122 "dGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnBy", 108 "dGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnBy",
123 "ZXRlZE9wdGlvbioJCOgHEICAgIACIq0CCg1NZXRob2RPcHRpb25zEhkKCmRl", 109 "ZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAESEAoM",
124 "cHJlY2F0ZWQYISABKAg6BWZhbHNlEl8KEWlkZW1wb3RlbmN5X2xldmVsGCIg", 110 "U1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0KCUpT",
125 "ASgOMi8uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMuSWRlbXBvdGVu", 111 "X1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAIijQEKC0VudW1P",
126 "Y3lMZXZlbDoTSURFTVBPVEVOQ1lfVU5LTk9XThJDChR1bmludGVycHJldGVk", 112 "cHRpb25zEhMKC2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJlY2F0ZWQYAyAB",
127 "X29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRl", 113 "KAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv",
128 "ZE9wdGlvbiJQChBJZGVtcG90ZW5jeUxldmVsEhcKE0lERU1QT1RFTkNZX1VO", 114 "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi",
129 "S05PV04QABITCg9OT19TSURFX0VGRkVDVFMQARIOCgpJREVNUE9URU5UEAIq", 115 "fQoQRW51bVZhbHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEgASgIOgVmYWxz",
130 "CQjoBxCAgICAAiKeAgoTVW5pbnRlcnByZXRlZE9wdGlvbhI7CgRuYW1lGAIg", 116 "ZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJv",
131 "AygLMi0uZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24uTmFt", 117 "dG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACInsKDlNlcnZp",
132 "ZVBhcnQSGAoQaWRlbnRpZmllcl92YWx1ZRgDIAEoCRIaChJwb3NpdGl2ZV9p", 118 "Y2VPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50",
133 "bnRfdmFsdWUYBCABKAQSGgoSbmVnYXRpdmVfaW50X3ZhbHVlGAUgASgDEhQK", 119 "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu",
134 "DGRvdWJsZV92YWx1ZRgGIAEoARIUCgxzdHJpbmdfdmFsdWUYByABKAwSFwoP", 120 "dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9kT3B0aW9ucxIZ",
135 "YWdncmVnYXRlX3ZhbHVlGAggASgJGjMKCE5hbWVQYXJ0EhEKCW5hbWVfcGFy", 121 "CgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29w",
136 "dBgBIAIoCRIUCgxpc19leHRlbnNpb24YAiACKAgi1QEKDlNvdXJjZUNvZGVJ", 122 "dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w",
137 "bmZvEjoKCGxvY2F0aW9uGAEgAygLMiguZ29vZ2xlLnByb3RvYnVmLlNvdXJj", 123 "dGlvbioJCOgHEICAgIACIp4CChNVbmludGVycHJldGVkT3B0aW9uEjsKBG5h",
138 "ZUNvZGVJbmZvLkxvY2F0aW9uGoYBCghMb2NhdGlvbhIQCgRwYXRoGAEgAygF", 124 "bWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlv",
139 "QgIQARIQCgRzcGFuGAIgAygFQgIQARIYChBsZWFkaW5nX2NvbW1lbnRzGAMg", 125 "bi5OYW1lUGFydBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJEhoKEnBvc2l0",
140 "ASgJEhkKEXRyYWlsaW5nX2NvbW1lbnRzGAQgASgJEiEKGWxlYWRpbmdfZGV0", 126 "aXZlX2ludF92YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRfdmFsdWUYBSAB",
141 "YWNoZWRfY29tbWVudHMYBiADKAkipwEKEUdlbmVyYXRlZENvZGVJbmZvEkEK", 127 "KAMSFAoMZG91YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192YWx1ZRgHIAEo",
142 "CmFubm90YXRpb24YASADKAsyLS5nb29nbGUucHJvdG9idWYuR2VuZXJhdGVk", 128 "DBIXCg9hZ2dyZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBhcnQSEQoJbmFt",
143 "Q29kZUluZm8uQW5ub3RhdGlvbhpPCgpBbm5vdGF0aW9uEhAKBHBhdGgYASAD", 129 "ZV9wYXJ0GAEgAigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCLVAQoOU291cmNl",
144 "KAVCAhABEhMKC3NvdXJjZV9maWxlGAIgASgJEg0KBWJlZ2luGAMgASgFEgsK", 130 "Q29kZUluZm8SOgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUucHJvdG9idWYu",
145 "A2VuZBgEIAEoBUKMAQoTY29tLmdvb2dsZS5wcm90b2J1ZkIQRGVzY3JpcHRv", 131 "U291cmNlQ29kZUluZm8uTG9jYXRpb24ahgEKCExvY2F0aW9uEhAKBHBhdGgY",
146 "clByb3Rvc0gBWj5naXRodWIuY29tL2dvbGFuZy9wcm90b2J1Zi9wcm90b2Mt", 132 "ASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhABEhgKEGxlYWRpbmdfY29tbWVu",
147 "Z2VuLWdvL2Rlc2NyaXB0b3I7ZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Q", 133 "dHMYAyABKAkSGQoRdHJhaWxpbmdfY29tbWVudHMYBCABKAkSIQoZbGVhZGlu",
148 "cm90b2J1Zi5SZWZsZWN0aW9u")); 134 "Z19kZXRhY2hlZF9jb21tZW50cxgGIAMoCSKnAQoRR2VuZXJhdGVkQ29kZUlu",
135 "Zm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5HZW5l",
136 "cmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGk8KCkFubm90YXRpb24SEAoEcGF0",
137 "aBgBIAMoBUICEAESEwoLc291cmNlX2ZpbGUYAiABKAkSDQoFYmVnaW4YAyAB",
138 "KAUSCwoDZW5kGAQgASgFQlgKE2NvbS5nb29nbGUucHJvdG9idWZCEERlc2Ny",
139 "aXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Qcm90",
140 "b2J1Zi5SZWZsZWN0aW9u"));
149 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 141 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
150 new pbr::FileDescriptor[] { }, 142 new pbr::FileDescriptor[] { },
151 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { 143 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
152 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Par ser, new[]{ "File" }, null, null, null), 144 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Par ser, new[]{ "File" }, null, null, null),
153 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto .Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDepend ency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCode Info", "Syntax" }, null, null, null), 145 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto .Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDepend ency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCode Info", "Syntax" }, null, null, null),
154 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange" , "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr ::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.P rotobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobu f.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End" }, null, null, null), 146 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange" , "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr ::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.P rotobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobu f.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End" }, null, null, null),
155 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Reflection.Des criptorProto.Types.ReservedRange.Parser, new[]{ "Start", "End" }, null, null, nu ll)}), 147 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Reflection.Des criptorProto.Types.ReservedRange.Parser, new[]{ "Start", "End" }, null, null, nu ll)}),
156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorPro to.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "De faultValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global:: Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Goog le.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null), 148 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorPro to.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "De faultValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global:: Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Goog le.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null),
157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorPro to.Parser, new[]{ "Name", "Options" }, null, null, null), 149 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorPro to.Parser, new[]{ "Name" }, null, null, null),
158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto .Parser, new[]{ "Name", "Value", "Options" }, null, null, null), 150 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto .Parser, new[]{ "Name", "Value", "Options" }, null, null, null),
159 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescr iptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null), 151 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescr iptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null),
160 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescripto rProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null), 152 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescripto rProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null),
161 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorP roto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreami ng", "ServerStreaming" }, null, null, null), 153 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorP roto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreami ng", "ServerStreaming" }, null, null, null),
162 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAnd Hash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", " JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "Objc ClassPrefix", "CsharpNamespace", "SwiftPrefix", "UninterpretedOption" }, null, n ew[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null), 154 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAnd Hash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", " JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "Objc ClassPrefix", "CsharpNamespace", "UninterpretedOption" }, null, new[]{ typeof(gl obal::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null),
163 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, n ew[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "Map Entry", "UninterpretedOption" }, null, null, null), 155 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, n ew[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "Map Entry", "UninterpretedOption" }, null, null, null),
164 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[] { "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOptio n" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types. CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null), 156 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[] { "Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOptio n" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types. CType), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, null),
165 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.OneofOptions), global::Google.Protobuf.Reflection.OneofOptions.Parser, new[] { "UninterpretedOption" }, null, null, null),
166 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null), 157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null),
167 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parse r, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null), 158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parse r, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
168 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, n ew[]{ "Deprecated", "UninterpretedOption" }, null, null, null), 159 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, n ew[]{ "Deprecated", "UninterpretedOption" }, null, null, null),
169 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new []{ "Deprecated", "IdempotencyLevel", "UninterpretedOption" }, null, new[]{ type of(global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLevel) }, n ull), 160 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new []{ "Deprecated", "UninterpretedOption" }, null, null, null),
170 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption .Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue ", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::Genera tedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf. Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflecti on.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null)}), 161 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption .Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue ", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::Genera tedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf. Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflecti on.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null, null, null)}),
171 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, n ew[]{ "Location" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::Gener atedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.L ocation), global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parse r, new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetache dComments" }, null, null, null)}), 162 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, n ew[]{ "Location" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::Gener atedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.L ocation), global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parse r, new[]{ "Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetache dComments" }, null, null, null)}),
172 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.GeneratedCodeInfo), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Par ser, new[]{ "Annotation" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pb r::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeI nfo.Types.Annotation), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Type s.Annotation.Parser, new[]{ "Path", "SourceFile", "Begin", "End" }, null, null, null)}) 163 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect ion.GeneratedCodeInfo), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Par ser, new[]{ "Annotation" }, null, null, new pbr::GeneratedClrTypeInfo[] { new pb r::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflection.GeneratedCodeI nfo.Types.Annotation), global::Google.Protobuf.Reflection.GeneratedCodeInfo.Type s.Annotation.Parser, new[]{ "Path", "SourceFile", "Begin", "End" }, null, null, null)})
173 })); 164 }));
174 } 165 }
175 #endregion 166 #endregion
176 167
177 } 168 }
178 #region Messages 169 #region Messages
179 /// <summary> 170 /// <summary>
180 /// The protocol compiler can output a FileDescriptorSet containing the .proto 171 /// The protocol compiler can output a FileDescriptorSet containing the .prot o
181 /// files it parses. 172 /// files it parses.
182 /// </summary> 173 /// </summary>
174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
183 internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorS et> { 175 internal sealed partial class FileDescriptorSet : pb::IMessage<FileDescriptorS et> {
184 private static readonly pb::MessageParser<FileDescriptorSet> _parser = new p b::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet()); 176 private static readonly pb::MessageParser<FileDescriptorSet> _parser = new p b::MessageParser<FileDescriptorSet>(() => new FileDescriptorSet());
185 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186 public static pb::MessageParser<FileDescriptorSet> Parser { get { return _pa rser; } } 177 public static pb::MessageParser<FileDescriptorSet> Parser { get { return _pa rser; } }
187 178
188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
189 public static pbr::MessageDescriptor Descriptor { 179 public static pbr::MessageDescriptor Descriptor {
190 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[0]; } 180 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[0]; }
191 } 181 }
192 182
193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
194 pbr::MessageDescriptor pb::IMessage.Descriptor { 183 pbr::MessageDescriptor pb::IMessage.Descriptor {
195 get { return Descriptor; } 184 get { return Descriptor; }
196 } 185 }
197 186
198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
199 public FileDescriptorSet() { 187 public FileDescriptorSet() {
200 OnConstruction(); 188 OnConstruction();
201 } 189 }
202 190
203 partial void OnConstruction(); 191 partial void OnConstruction();
204 192
205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
206 public FileDescriptorSet(FileDescriptorSet other) : this() { 193 public FileDescriptorSet(FileDescriptorSet other) : this() {
207 file_ = other.file_.Clone(); 194 file_ = other.file_.Clone();
208 } 195 }
209 196
210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
211 public FileDescriptorSet Clone() { 197 public FileDescriptorSet Clone() {
212 return new FileDescriptorSet(this); 198 return new FileDescriptorSet(this);
213 } 199 }
214 200
215 /// <summary>Field number for the "file" field.</summary> 201 /// <summary>Field number for the "file" field.</summary>
216 public const int FileFieldNumber = 1; 202 public const int FileFieldNumber = 1;
217 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi leDescriptorProto> _repeated_file_codec 203 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi leDescriptorProto> _repeated_file_codec
218 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileD escriptorProto.Parser); 204 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.FileD escriptorProto.Parser);
219 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileD escriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflectio n.FileDescriptorProto>(); 205 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.FileD escriptorProto> file_ = new pbc::RepeatedField<global::Google.Protobuf.Reflectio n.FileDescriptorProto>();
220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
221 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorP roto> File { 206 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FileDescriptorP roto> File {
222 get { return file_; } 207 get { return file_; }
223 } 208 }
224 209
225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
226 public override bool Equals(object other) { 210 public override bool Equals(object other) {
227 return Equals(other as FileDescriptorSet); 211 return Equals(other as FileDescriptorSet);
228 } 212 }
229 213
230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
231 public bool Equals(FileDescriptorSet other) { 214 public bool Equals(FileDescriptorSet other) {
232 if (ReferenceEquals(other, null)) { 215 if (ReferenceEquals(other, null)) {
233 return false; 216 return false;
234 } 217 }
235 if (ReferenceEquals(other, this)) { 218 if (ReferenceEquals(other, this)) {
236 return true; 219 return true;
237 } 220 }
238 if(!file_.Equals(other.file_)) return false; 221 if(!file_.Equals(other.file_)) return false;
239 return true; 222 return true;
240 } 223 }
241 224
242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
243 public override int GetHashCode() { 225 public override int GetHashCode() {
244 int hash = 1; 226 int hash = 1;
245 hash ^= file_.GetHashCode(); 227 hash ^= file_.GetHashCode();
246 return hash; 228 return hash;
247 } 229 }
248 230
249 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
250 public override string ToString() { 231 public override string ToString() {
251 return pb::JsonFormatter.ToDiagnosticString(this); 232 return pb::JsonFormatter.ToDiagnosticString(this);
252 } 233 }
253 234
254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
255 public void WriteTo(pb::CodedOutputStream output) { 235 public void WriteTo(pb::CodedOutputStream output) {
256 file_.WriteTo(output, _repeated_file_codec); 236 file_.WriteTo(output, _repeated_file_codec);
257 } 237 }
258 238
259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
260 public int CalculateSize() { 239 public int CalculateSize() {
261 int size = 0; 240 int size = 0;
262 size += file_.CalculateSize(_repeated_file_codec); 241 size += file_.CalculateSize(_repeated_file_codec);
263 return size; 242 return size;
264 } 243 }
265 244
266 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
267 public void MergeFrom(FileDescriptorSet other) { 245 public void MergeFrom(FileDescriptorSet other) {
268 if (other == null) { 246 if (other == null) {
269 return; 247 return;
270 } 248 }
271 file_.Add(other.file_); 249 file_.Add(other.file_);
272 } 250 }
273 251
274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
275 public void MergeFrom(pb::CodedInputStream input) { 252 public void MergeFrom(pb::CodedInputStream input) {
276 uint tag; 253 uint tag;
277 while ((tag = input.ReadTag()) != 0) { 254 while ((tag = input.ReadTag()) != 0) {
278 switch(tag) { 255 switch(tag) {
279 default: 256 default:
280 input.SkipLastField(); 257 input.SkipLastField();
281 break; 258 break;
282 case 10: { 259 case 10: {
283 file_.AddEntriesFrom(input, _repeated_file_codec); 260 file_.AddEntriesFrom(input, _repeated_file_codec);
284 break; 261 break;
285 } 262 }
286 } 263 }
287 } 264 }
288 } 265 }
289 266
290 } 267 }
291 268
292 /// <summary> 269 /// <summary>
293 /// Describes a complete .proto file. 270 /// Describes a complete .proto file.
294 /// </summary> 271 /// </summary>
272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
295 internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescripto rProto> { 273 internal sealed partial class FileDescriptorProto : pb::IMessage<FileDescripto rProto> {
296 private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto()); 274 private static readonly pb::MessageParser<FileDescriptorProto> _parser = new pb::MessageParser<FileDescriptorProto>(() => new FileDescriptorProto());
297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
298 public static pb::MessageParser<FileDescriptorProto> Parser { get { return _ parser; } } 275 public static pb::MessageParser<FileDescriptorProto> Parser { get { return _ parser; } }
299 276
300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
301 public static pbr::MessageDescriptor Descriptor { 277 public static pbr::MessageDescriptor Descriptor {
302 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[1]; } 278 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[1]; }
303 } 279 }
304 280
305 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
306 pbr::MessageDescriptor pb::IMessage.Descriptor { 281 pbr::MessageDescriptor pb::IMessage.Descriptor {
307 get { return Descriptor; } 282 get { return Descriptor; }
308 } 283 }
309 284
310 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
311 public FileDescriptorProto() { 285 public FileDescriptorProto() {
312 OnConstruction(); 286 OnConstruction();
313 } 287 }
314 288
315 partial void OnConstruction(); 289 partial void OnConstruction();
316 290
317 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
318 public FileDescriptorProto(FileDescriptorProto other) : this() { 291 public FileDescriptorProto(FileDescriptorProto other) : this() {
319 name_ = other.name_; 292 name_ = other.name_;
320 package_ = other.package_; 293 package_ = other.package_;
321 dependency_ = other.dependency_.Clone(); 294 dependency_ = other.dependency_.Clone();
322 publicDependency_ = other.publicDependency_.Clone(); 295 publicDependency_ = other.publicDependency_.Clone();
323 weakDependency_ = other.weakDependency_.Clone(); 296 weakDependency_ = other.weakDependency_.Clone();
324 messageType_ = other.messageType_.Clone(); 297 messageType_ = other.messageType_.Clone();
325 enumType_ = other.enumType_.Clone(); 298 enumType_ = other.enumType_.Clone();
326 service_ = other.service_.Clone(); 299 service_ = other.service_.Clone();
327 extension_ = other.extension_.Clone(); 300 extension_ = other.extension_.Clone();
328 Options = other.options_ != null ? other.Options.Clone() : null; 301 Options = other.options_ != null ? other.Options.Clone() : null;
329 SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clon e() : null; 302 SourceCodeInfo = other.sourceCodeInfo_ != null ? other.SourceCodeInfo.Clon e() : null;
330 syntax_ = other.syntax_; 303 syntax_ = other.syntax_;
331 } 304 }
332 305
333 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
334 public FileDescriptorProto Clone() { 306 public FileDescriptorProto Clone() {
335 return new FileDescriptorProto(this); 307 return new FileDescriptorProto(this);
336 } 308 }
337 309
338 /// <summary>Field number for the "name" field.</summary> 310 /// <summary>Field number for the "name" field.</summary>
339 public const int NameFieldNumber = 1; 311 public const int NameFieldNumber = 1;
340 private string name_ = ""; 312 private string name_ = "";
341 /// <summary> 313 /// <summary>
342 /// file name, relative to root of source tree 314 /// file name, relative to root of source tree
343 /// </summary> 315 /// </summary>
344 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
345 public string Name { 316 public string Name {
346 get { return name_; } 317 get { return name_; }
347 set { 318 set {
348 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 319 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
349 } 320 }
350 } 321 }
351 322
352 /// <summary>Field number for the "package" field.</summary> 323 /// <summary>Field number for the "package" field.</summary>
353 public const int PackageFieldNumber = 2; 324 public const int PackageFieldNumber = 2;
354 private string package_ = ""; 325 private string package_ = "";
355 /// <summary> 326 /// <summary>
356 /// e.g. "foo", "foo.bar", etc. 327 /// e.g. "foo", "foo.bar", etc.
357 /// </summary> 328 /// </summary>
358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
359 public string Package { 329 public string Package {
360 get { return package_; } 330 get { return package_; }
361 set { 331 set {
362 package_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 332 package_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
363 } 333 }
364 } 334 }
365 335
366 /// <summary>Field number for the "dependency" field.</summary> 336 /// <summary>Field number for the "dependency" field.</summary>
367 public const int DependencyFieldNumber = 3; 337 public const int DependencyFieldNumber = 3;
368 private static readonly pb::FieldCodec<string> _repeated_dependency_codec 338 private static readonly pb::FieldCodec<string> _repeated_dependency_codec
369 = pb::FieldCodec.ForString(26); 339 = pb::FieldCodec.ForString(26);
370 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedF ield<string>(); 340 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedF ield<string>();
371 /// <summary> 341 /// <summary>
372 /// Names of files imported by this file. 342 /// Names of files imported by this file.
373 /// </summary> 343 /// </summary>
374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
375 public pbc::RepeatedField<string> Dependency { 344 public pbc::RepeatedField<string> Dependency {
376 get { return dependency_; } 345 get { return dependency_; }
377 } 346 }
378 347
379 /// <summary>Field number for the "public_dependency" field.</summary> 348 /// <summary>Field number for the "public_dependency" field.</summary>
380 public const int PublicDependencyFieldNumber = 10; 349 public const int PublicDependencyFieldNumber = 10;
381 private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec 350 private static readonly pb::FieldCodec<int> _repeated_publicDependency_codec
382 = pb::FieldCodec.ForInt32(80); 351 = pb::FieldCodec.ForInt32(80);
383 private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::Repeat edField<int>(); 352 private readonly pbc::RepeatedField<int> publicDependency_ = new pbc::Repeat edField<int>();
384 /// <summary> 353 /// <summary>
385 /// Indexes of the public imported files in the dependency list above. 354 /// Indexes of the public imported files in the dependency list above.
386 /// </summary> 355 /// </summary>
387 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
388 public pbc::RepeatedField<int> PublicDependency { 356 public pbc::RepeatedField<int> PublicDependency {
389 get { return publicDependency_; } 357 get { return publicDependency_; }
390 } 358 }
391 359
392 /// <summary>Field number for the "weak_dependency" field.</summary> 360 /// <summary>Field number for the "weak_dependency" field.</summary>
393 public const int WeakDependencyFieldNumber = 11; 361 public const int WeakDependencyFieldNumber = 11;
394 private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec 362 private static readonly pb::FieldCodec<int> _repeated_weakDependency_codec
395 = pb::FieldCodec.ForInt32(88); 363 = pb::FieldCodec.ForInt32(88);
396 private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::Repeated Field<int>(); 364 private readonly pbc::RepeatedField<int> weakDependency_ = new pbc::Repeated Field<int>();
397 /// <summary> 365 /// <summary>
398 /// Indexes of the weak imported files in the dependency list. 366 /// Indexes of the weak imported files in the dependency list.
399 /// For Google-internal migration only. Do not use. 367 /// For Google-internal migration only. Do not use.
400 /// </summary> 368 /// </summary>
401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
402 public pbc::RepeatedField<int> WeakDependency { 369 public pbc::RepeatedField<int> WeakDependency {
403 get { return weakDependency_; } 370 get { return weakDependency_; }
404 } 371 }
405 372
406 /// <summary>Field number for the "message_type" field.</summary> 373 /// <summary>Field number for the "message_type" field.</summary>
407 public const int MessageTypeFieldNumber = 4; 374 public const int MessageTypeFieldNumber = 4;
408 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto> _repeated_messageType_codec 375 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto> _repeated_messageType_codec
409 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.Descr iptorProto.Parser); 376 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.Descr iptorProto.Parser);
410 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflec tion.DescriptorProto>(); 377 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto> messageType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflec tion.DescriptorProto>();
411 /// <summary> 378 /// <summary>
412 /// All top-level definitions in this file. 379 /// All top-level definitions in this file.
413 /// </summary> 380 /// </summary>
414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
415 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto > MessageType { 381 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto > MessageType {
416 get { return messageType_; } 382 get { return messageType_; }
417 } 383 }
418 384
419 /// <summary>Field number for the "enum_type" field.</summary> 385 /// <summary>Field number for the "enum_type" field.</summary>
420 public const int EnumTypeFieldNumber = 5; 386 public const int EnumTypeFieldNumber = 5;
421 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En umDescriptorProto> _repeated_enumType_codec 387 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En umDescriptorProto> _repeated_enumType_codec
422 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumD escriptorProto.Parser); 388 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.EnumD escriptorProto.Parser);
423 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumD escriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Refle ction.EnumDescriptorProto>(); 389 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumD escriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Refle ction.EnumDescriptorProto>();
424 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
425 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorP roto> EnumType { 390 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorP roto> EnumType {
426 get { return enumType_; } 391 get { return enumType_; }
427 } 392 }
428 393
429 /// <summary>Field number for the "service" field.</summary> 394 /// <summary>Field number for the "service" field.</summary>
430 public const int ServiceFieldNumber = 6; 395 public const int ServiceFieldNumber = 6;
431 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Se rviceDescriptorProto> _repeated_service_codec 396 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Se rviceDescriptorProto> _repeated_service_codec
432 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.Servi ceDescriptorProto.Parser); 397 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.Servi ceDescriptorProto.Parser);
433 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Servi ceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.ServiceDescriptorProto>(); 398 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Servi ceDescriptorProto> service_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.ServiceDescriptorProto>();
434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
435 public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescript orProto> Service { 399 public pbc::RepeatedField<global::Google.Protobuf.Reflection.ServiceDescript orProto> Service {
436 get { return service_; } 400 get { return service_; }
437 } 401 }
438 402
439 /// <summary>Field number for the "extension" field.</summary> 403 /// <summary>Field number for the "extension" field.</summary>
440 public const int ExtensionFieldNumber = 7; 404 public const int ExtensionFieldNumber = 7;
441 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi eldDescriptorProto> _repeated_extension_codec 405 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi eldDescriptorProto> _repeated_extension_codec
442 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.Field DescriptorProto.Parser); 406 = pb::FieldCodec.ForMessage(58, global::Google.Protobuf.Reflection.Field DescriptorProto.Parser);
443 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field DescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.FieldDescriptorProto>(); 407 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field DescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.FieldDescriptorProto>();
444 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
445 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor Proto> Extension { 408 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor Proto> Extension {
446 get { return extension_; } 409 get { return extension_; }
447 } 410 }
448 411
449 /// <summary>Field number for the "options" field.</summary> 412 /// <summary>Field number for the "options" field.</summary>
450 public const int OptionsFieldNumber = 8; 413 public const int OptionsFieldNumber = 8;
451 private global::Google.Protobuf.Reflection.FileOptions options_; 414 private global::Google.Protobuf.Reflection.FileOptions options_;
452 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
453 public global::Google.Protobuf.Reflection.FileOptions Options { 415 public global::Google.Protobuf.Reflection.FileOptions Options {
454 get { return options_; } 416 get { return options_; }
455 set { 417 set {
456 options_ = value; 418 options_ = value;
457 } 419 }
458 } 420 }
459 421
460 /// <summary>Field number for the "source_code_info" field.</summary> 422 /// <summary>Field number for the "source_code_info" field.</summary>
461 public const int SourceCodeInfoFieldNumber = 9; 423 public const int SourceCodeInfoFieldNumber = 9;
462 private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_; 424 private global::Google.Protobuf.Reflection.SourceCodeInfo sourceCodeInfo_;
463 /// <summary> 425 /// <summary>
464 /// This field contains optional information about the original source code. 426 /// This field contains optional information about the original source code .
465 /// You may safely remove this entire field without harming runtime 427 /// You may safely remove this entire field without harming runtime
466 /// functionality of the descriptors -- the information is needed only by 428 /// functionality of the descriptors -- the information is needed only by
467 /// development tools. 429 /// development tools.
468 /// </summary> 430 /// </summary>
469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
470 public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo { 431 public global::Google.Protobuf.Reflection.SourceCodeInfo SourceCodeInfo {
471 get { return sourceCodeInfo_; } 432 get { return sourceCodeInfo_; }
472 set { 433 set {
473 sourceCodeInfo_ = value; 434 sourceCodeInfo_ = value;
474 } 435 }
475 } 436 }
476 437
477 /// <summary>Field number for the "syntax" field.</summary> 438 /// <summary>Field number for the "syntax" field.</summary>
478 public const int SyntaxFieldNumber = 12; 439 public const int SyntaxFieldNumber = 12;
479 private string syntax_ = ""; 440 private string syntax_ = "";
480 /// <summary> 441 /// <summary>
481 /// The syntax of the proto file. 442 /// The syntax of the proto file.
482 /// The supported values are "proto2" and "proto3". 443 /// The supported values are "proto2" and "proto3".
483 /// </summary> 444 /// </summary>
484 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
485 public string Syntax { 445 public string Syntax {
486 get { return syntax_; } 446 get { return syntax_; }
487 set { 447 set {
488 syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 448 syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
489 } 449 }
490 } 450 }
491 451
492 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
493 public override bool Equals(object other) { 452 public override bool Equals(object other) {
494 return Equals(other as FileDescriptorProto); 453 return Equals(other as FileDescriptorProto);
495 } 454 }
496 455
497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
498 public bool Equals(FileDescriptorProto other) { 456 public bool Equals(FileDescriptorProto other) {
499 if (ReferenceEquals(other, null)) { 457 if (ReferenceEquals(other, null)) {
500 return false; 458 return false;
501 } 459 }
502 if (ReferenceEquals(other, this)) { 460 if (ReferenceEquals(other, this)) {
503 return true; 461 return true;
504 } 462 }
505 if (Name != other.Name) return false; 463 if (Name != other.Name) return false;
506 if (Package != other.Package) return false; 464 if (Package != other.Package) return false;
507 if(!dependency_.Equals(other.dependency_)) return false; 465 if(!dependency_.Equals(other.dependency_)) return false;
508 if(!publicDependency_.Equals(other.publicDependency_)) return false; 466 if(!publicDependency_.Equals(other.publicDependency_)) return false;
509 if(!weakDependency_.Equals(other.weakDependency_)) return false; 467 if(!weakDependency_.Equals(other.weakDependency_)) return false;
510 if(!messageType_.Equals(other.messageType_)) return false; 468 if(!messageType_.Equals(other.messageType_)) return false;
511 if(!enumType_.Equals(other.enumType_)) return false; 469 if(!enumType_.Equals(other.enumType_)) return false;
512 if(!service_.Equals(other.service_)) return false; 470 if(!service_.Equals(other.service_)) return false;
513 if(!extension_.Equals(other.extension_)) return false; 471 if(!extension_.Equals(other.extension_)) return false;
514 if (!object.Equals(Options, other.Options)) return false; 472 if (!object.Equals(Options, other.Options)) return false;
515 if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false; 473 if (!object.Equals(SourceCodeInfo, other.SourceCodeInfo)) return false;
516 if (Syntax != other.Syntax) return false; 474 if (Syntax != other.Syntax) return false;
517 return true; 475 return true;
518 } 476 }
519 477
520 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
521 public override int GetHashCode() { 478 public override int GetHashCode() {
522 int hash = 1; 479 int hash = 1;
523 if (Name.Length != 0) hash ^= Name.GetHashCode(); 480 if (Name.Length != 0) hash ^= Name.GetHashCode();
524 if (Package.Length != 0) hash ^= Package.GetHashCode(); 481 if (Package.Length != 0) hash ^= Package.GetHashCode();
525 hash ^= dependency_.GetHashCode(); 482 hash ^= dependency_.GetHashCode();
526 hash ^= publicDependency_.GetHashCode(); 483 hash ^= publicDependency_.GetHashCode();
527 hash ^= weakDependency_.GetHashCode(); 484 hash ^= weakDependency_.GetHashCode();
528 hash ^= messageType_.GetHashCode(); 485 hash ^= messageType_.GetHashCode();
529 hash ^= enumType_.GetHashCode(); 486 hash ^= enumType_.GetHashCode();
530 hash ^= service_.GetHashCode(); 487 hash ^= service_.GetHashCode();
531 hash ^= extension_.GetHashCode(); 488 hash ^= extension_.GetHashCode();
532 if (options_ != null) hash ^= Options.GetHashCode(); 489 if (options_ != null) hash ^= Options.GetHashCode();
533 if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode(); 490 if (sourceCodeInfo_ != null) hash ^= SourceCodeInfo.GetHashCode();
534 if (Syntax.Length != 0) hash ^= Syntax.GetHashCode(); 491 if (Syntax.Length != 0) hash ^= Syntax.GetHashCode();
535 return hash; 492 return hash;
536 } 493 }
537 494
538 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
539 public override string ToString() { 495 public override string ToString() {
540 return pb::JsonFormatter.ToDiagnosticString(this); 496 return pb::JsonFormatter.ToDiagnosticString(this);
541 } 497 }
542 498
543 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
544 public void WriteTo(pb::CodedOutputStream output) { 499 public void WriteTo(pb::CodedOutputStream output) {
545 if (Name.Length != 0) { 500 if (Name.Length != 0) {
546 output.WriteRawTag(10); 501 output.WriteRawTag(10);
547 output.WriteString(Name); 502 output.WriteString(Name);
548 } 503 }
549 if (Package.Length != 0) { 504 if (Package.Length != 0) {
550 output.WriteRawTag(18); 505 output.WriteRawTag(18);
551 output.WriteString(Package); 506 output.WriteString(Package);
552 } 507 }
553 dependency_.WriteTo(output, _repeated_dependency_codec); 508 dependency_.WriteTo(output, _repeated_dependency_codec);
(...skipping 10 matching lines...) Expand all
564 output.WriteMessage(SourceCodeInfo); 519 output.WriteMessage(SourceCodeInfo);
565 } 520 }
566 publicDependency_.WriteTo(output, _repeated_publicDependency_codec); 521 publicDependency_.WriteTo(output, _repeated_publicDependency_codec);
567 weakDependency_.WriteTo(output, _repeated_weakDependency_codec); 522 weakDependency_.WriteTo(output, _repeated_weakDependency_codec);
568 if (Syntax.Length != 0) { 523 if (Syntax.Length != 0) {
569 output.WriteRawTag(98); 524 output.WriteRawTag(98);
570 output.WriteString(Syntax); 525 output.WriteString(Syntax);
571 } 526 }
572 } 527 }
573 528
574 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
575 public int CalculateSize() { 529 public int CalculateSize() {
576 int size = 0; 530 int size = 0;
577 if (Name.Length != 0) { 531 if (Name.Length != 0) {
578 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 532 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
579 } 533 }
580 if (Package.Length != 0) { 534 if (Package.Length != 0) {
581 size += 1 + pb::CodedOutputStream.ComputeStringSize(Package); 535 size += 1 + pb::CodedOutputStream.ComputeStringSize(Package);
582 } 536 }
583 size += dependency_.CalculateSize(_repeated_dependency_codec); 537 size += dependency_.CalculateSize(_repeated_dependency_codec);
584 size += publicDependency_.CalculateSize(_repeated_publicDependency_codec); 538 size += publicDependency_.CalculateSize(_repeated_publicDependency_codec);
585 size += weakDependency_.CalculateSize(_repeated_weakDependency_codec); 539 size += weakDependency_.CalculateSize(_repeated_weakDependency_codec);
586 size += messageType_.CalculateSize(_repeated_messageType_codec); 540 size += messageType_.CalculateSize(_repeated_messageType_codec);
587 size += enumType_.CalculateSize(_repeated_enumType_codec); 541 size += enumType_.CalculateSize(_repeated_enumType_codec);
588 size += service_.CalculateSize(_repeated_service_codec); 542 size += service_.CalculateSize(_repeated_service_codec);
589 size += extension_.CalculateSize(_repeated_extension_codec); 543 size += extension_.CalculateSize(_repeated_extension_codec);
590 if (options_ != null) { 544 if (options_ != null) {
591 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 545 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
592 } 546 }
593 if (sourceCodeInfo_ != null) { 547 if (sourceCodeInfo_ != null) {
594 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo); 548 size += 1 + pb::CodedOutputStream.ComputeMessageSize(SourceCodeInfo);
595 } 549 }
596 if (Syntax.Length != 0) { 550 if (Syntax.Length != 0) {
597 size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax); 551 size += 1 + pb::CodedOutputStream.ComputeStringSize(Syntax);
598 } 552 }
599 return size; 553 return size;
600 } 554 }
601 555
602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
603 public void MergeFrom(FileDescriptorProto other) { 556 public void MergeFrom(FileDescriptorProto other) {
604 if (other == null) { 557 if (other == null) {
605 return; 558 return;
606 } 559 }
607 if (other.Name.Length != 0) { 560 if (other.Name.Length != 0) {
608 Name = other.Name; 561 Name = other.Name;
609 } 562 }
610 if (other.Package.Length != 0) { 563 if (other.Package.Length != 0) {
611 Package = other.Package; 564 Package = other.Package;
612 } 565 }
(...skipping 14 matching lines...) Expand all
627 if (sourceCodeInfo_ == null) { 580 if (sourceCodeInfo_ == null) {
628 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInf o(); 581 sourceCodeInfo_ = new global::Google.Protobuf.Reflection.SourceCodeInf o();
629 } 582 }
630 SourceCodeInfo.MergeFrom(other.SourceCodeInfo); 583 SourceCodeInfo.MergeFrom(other.SourceCodeInfo);
631 } 584 }
632 if (other.Syntax.Length != 0) { 585 if (other.Syntax.Length != 0) {
633 Syntax = other.Syntax; 586 Syntax = other.Syntax;
634 } 587 }
635 } 588 }
636 589
637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
638 public void MergeFrom(pb::CodedInputStream input) { 590 public void MergeFrom(pb::CodedInputStream input) {
639 uint tag; 591 uint tag;
640 while ((tag = input.ReadTag()) != 0) { 592 while ((tag = input.ReadTag()) != 0) {
641 switch(tag) { 593 switch(tag) {
642 default: 594 default:
643 input.SkipLastField(); 595 input.SkipLastField();
644 break; 596 break;
645 case 10: { 597 case 10: {
646 Name = input.ReadString(); 598 Name = input.ReadString();
647 break; 599 break;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 Syntax = input.ReadString(); 650 Syntax = input.ReadString();
699 break; 651 break;
700 } 652 }
701 } 653 }
702 } 654 }
703 } 655 }
704 656
705 } 657 }
706 658
707 /// <summary> 659 /// <summary>
708 /// Describes a message type. 660 /// Describes a message type.
709 /// </summary> 661 /// </summary>
662 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
710 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> { 663 internal sealed partial class DescriptorProto : pb::IMessage<DescriptorProto> {
711 private static readonly pb::MessageParser<DescriptorProto> _parser = new pb: :MessageParser<DescriptorProto>(() => new DescriptorProto()); 664 private static readonly pb::MessageParser<DescriptorProto> _parser = new pb: :MessageParser<DescriptorProto>(() => new DescriptorProto());
712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
713 public static pb::MessageParser<DescriptorProto> Parser { get { return _pars er; } } 665 public static pb::MessageParser<DescriptorProto> Parser { get { return _pars er; } }
714 666
715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
716 public static pbr::MessageDescriptor Descriptor { 667 public static pbr::MessageDescriptor Descriptor {
717 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[2]; } 668 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[2]; }
718 } 669 }
719 670
720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
721 pbr::MessageDescriptor pb::IMessage.Descriptor { 671 pbr::MessageDescriptor pb::IMessage.Descriptor {
722 get { return Descriptor; } 672 get { return Descriptor; }
723 } 673 }
724 674
725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
726 public DescriptorProto() { 675 public DescriptorProto() {
727 OnConstruction(); 676 OnConstruction();
728 } 677 }
729 678
730 partial void OnConstruction(); 679 partial void OnConstruction();
731 680
732 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
733 public DescriptorProto(DescriptorProto other) : this() { 681 public DescriptorProto(DescriptorProto other) : this() {
734 name_ = other.name_; 682 name_ = other.name_;
735 field_ = other.field_.Clone(); 683 field_ = other.field_.Clone();
736 extension_ = other.extension_.Clone(); 684 extension_ = other.extension_.Clone();
737 nestedType_ = other.nestedType_.Clone(); 685 nestedType_ = other.nestedType_.Clone();
738 enumType_ = other.enumType_.Clone(); 686 enumType_ = other.enumType_.Clone();
739 extensionRange_ = other.extensionRange_.Clone(); 687 extensionRange_ = other.extensionRange_.Clone();
740 oneofDecl_ = other.oneofDecl_.Clone(); 688 oneofDecl_ = other.oneofDecl_.Clone();
741 Options = other.options_ != null ? other.Options.Clone() : null; 689 Options = other.options_ != null ? other.Options.Clone() : null;
742 reservedRange_ = other.reservedRange_.Clone(); 690 reservedRange_ = other.reservedRange_.Clone();
743 reservedName_ = other.reservedName_.Clone(); 691 reservedName_ = other.reservedName_.Clone();
744 } 692 }
745 693
746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
747 public DescriptorProto Clone() { 694 public DescriptorProto Clone() {
748 return new DescriptorProto(this); 695 return new DescriptorProto(this);
749 } 696 }
750 697
751 /// <summary>Field number for the "name" field.</summary> 698 /// <summary>Field number for the "name" field.</summary>
752 public const int NameFieldNumber = 1; 699 public const int NameFieldNumber = 1;
753 private string name_ = ""; 700 private string name_ = "";
754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
755 public string Name { 701 public string Name {
756 get { return name_; } 702 get { return name_; }
757 set { 703 set {
758 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 704 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
759 } 705 }
760 } 706 }
761 707
762 /// <summary>Field number for the "field" field.</summary> 708 /// <summary>Field number for the "field" field.</summary>
763 public const int FieldFieldNumber = 2; 709 public const int FieldFieldNumber = 2;
764 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi eldDescriptorProto> _repeated_field_codec 710 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi eldDescriptorProto> _repeated_field_codec
765 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Field DescriptorProto.Parser); 711 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Field DescriptorProto.Parser);
766 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field DescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect ion.FieldDescriptorProto>(); 712 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field DescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect ion.FieldDescriptorProto>();
767 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
768 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor Proto> Field { 713 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor Proto> Field {
769 get { return field_; } 714 get { return field_; }
770 } 715 }
771 716
772 /// <summary>Field number for the "extension" field.</summary> 717 /// <summary>Field number for the "extension" field.</summary>
773 public const int ExtensionFieldNumber = 6; 718 public const int ExtensionFieldNumber = 6;
774 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi eldDescriptorProto> _repeated_extension_codec 719 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi eldDescriptorProto> _repeated_extension_codec
775 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.Field DescriptorProto.Parser); 720 = pb::FieldCodec.ForMessage(50, global::Google.Protobuf.Reflection.Field DescriptorProto.Parser);
776 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field DescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.FieldDescriptorProto>(); 721 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field DescriptorProto> extension_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.FieldDescriptorProto>();
777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
778 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor Proto> Extension { 722 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor Proto> Extension {
779 get { return extension_; } 723 get { return extension_; }
780 } 724 }
781 725
782 /// <summary>Field number for the "nested_type" field.</summary> 726 /// <summary>Field number for the "nested_type" field.</summary>
783 public const int NestedTypeFieldNumber = 3; 727 public const int NestedTypeFieldNumber = 3;
784 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto> _repeated_nestedType_codec 728 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto> _repeated_nestedType_codec
785 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.Descr iptorProto.Parser); 729 = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.Reflection.Descr iptorProto.Parser);
786 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect ion.DescriptorProto>(); 730 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto> nestedType_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect ion.DescriptorProto>();
787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
788 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto > NestedType { 731 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto > NestedType {
789 get { return nestedType_; } 732 get { return nestedType_; }
790 } 733 }
791 734
792 /// <summary>Field number for the "enum_type" field.</summary> 735 /// <summary>Field number for the "enum_type" field.</summary>
793 public const int EnumTypeFieldNumber = 4; 736 public const int EnumTypeFieldNumber = 4;
794 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En umDescriptorProto> _repeated_enumType_codec 737 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En umDescriptorProto> _repeated_enumType_codec
795 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumD escriptorProto.Parser); 738 = pb::FieldCodec.ForMessage(34, global::Google.Protobuf.Reflection.EnumD escriptorProto.Parser);
796 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumD escriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Refle ction.EnumDescriptorProto>(); 739 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumD escriptorProto> enumType_ = new pbc::RepeatedField<global::Google.Protobuf.Refle ction.EnumDescriptorProto>();
797 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
798 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorP roto> EnumType { 740 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumDescriptorP roto> EnumType {
799 get { return enumType_; } 741 get { return enumType_; }
800 } 742 }
801 743
802 /// <summary>Field number for the "extension_range" field.</summary> 744 /// <summary>Field number for the "extension_range" field.</summary>
803 public const int ExtensionRangeFieldNumber = 5; 745 public const int ExtensionRangeFieldNumber = 5;
804 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec 746 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto.Types.ExtensionRange> _repeated_extensionRange_codec
805 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.Descr iptorProto.Types.ExtensionRange.Parser); 747 = pb::FieldCodec.ForMessage(42, global::Google.Protobuf.Reflection.Descr iptorProto.Types.ExtensionRange.Parser);
806 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global ::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>(); 748 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto.Types.ExtensionRange> extensionRange_ = new pbc::RepeatedField<global ::Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange>();
807 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
808 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto .Types.ExtensionRange> ExtensionRange { 749 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto .Types.ExtensionRange> ExtensionRange {
809 get { return extensionRange_; } 750 get { return extensionRange_; }
810 } 751 }
811 752
812 /// <summary>Field number for the "oneof_decl" field.</summary> 753 /// <summary>Field number for the "oneof_decl" field.</summary>
813 public const int OneofDeclFieldNumber = 8; 754 public const int OneofDeclFieldNumber = 8;
814 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.On eofDescriptorProto> _repeated_oneofDecl_codec 755 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.On eofDescriptorProto> _repeated_oneofDecl_codec
815 = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.Oneof DescriptorProto.Parser); 756 = pb::FieldCodec.ForMessage(66, global::Google.Protobuf.Reflection.Oneof DescriptorProto.Parser);
816 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Oneof DescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.OneofDescriptorProto>(); 757 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Oneof DescriptorProto> oneofDecl_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.OneofDescriptorProto>();
817 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
818 public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptor Proto> OneofDecl { 758 public pbc::RepeatedField<global::Google.Protobuf.Reflection.OneofDescriptor Proto> OneofDecl {
819 get { return oneofDecl_; } 759 get { return oneofDecl_; }
820 } 760 }
821 761
822 /// <summary>Field number for the "options" field.</summary> 762 /// <summary>Field number for the "options" field.</summary>
823 public const int OptionsFieldNumber = 7; 763 public const int OptionsFieldNumber = 7;
824 private global::Google.Protobuf.Reflection.MessageOptions options_; 764 private global::Google.Protobuf.Reflection.MessageOptions options_;
825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
826 public global::Google.Protobuf.Reflection.MessageOptions Options { 765 public global::Google.Protobuf.Reflection.MessageOptions Options {
827 get { return options_; } 766 get { return options_; }
828 set { 767 set {
829 options_ = value; 768 options_ = value;
830 } 769 }
831 } 770 }
832 771
833 /// <summary>Field number for the "reserved_range" field.</summary> 772 /// <summary>Field number for the "reserved_range" field.</summary>
834 public const int ReservedRangeFieldNumber = 9; 773 public const int ReservedRangeFieldNumber = 9;
835 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto.Types.ReservedRange> _repeated_reservedRange_codec 774 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.De scriptorProto.Types.ReservedRange> _repeated_reservedRange_codec
836 = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.Descr iptorProto.Types.ReservedRange.Parser); 775 = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.Reflection.Descr iptorProto.Types.ReservedRange.Parser);
837 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global:: Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>(); 776 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Descr iptorProto.Types.ReservedRange> reservedRange_ = new pbc::RepeatedField<global:: Google.Protobuf.Reflection.DescriptorProto.Types.ReservedRange>();
838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
839 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto .Types.ReservedRange> ReservedRange { 777 public pbc::RepeatedField<global::Google.Protobuf.Reflection.DescriptorProto .Types.ReservedRange> ReservedRange {
840 get { return reservedRange_; } 778 get { return reservedRange_; }
841 } 779 }
842 780
843 /// <summary>Field number for the "reserved_name" field.</summary> 781 /// <summary>Field number for the "reserved_name" field.</summary>
844 public const int ReservedNameFieldNumber = 10; 782 public const int ReservedNameFieldNumber = 10;
845 private static readonly pb::FieldCodec<string> _repeated_reservedName_codec 783 private static readonly pb::FieldCodec<string> _repeated_reservedName_codec
846 = pb::FieldCodec.ForString(82); 784 = pb::FieldCodec.ForString(82);
847 private readonly pbc::RepeatedField<string> reservedName_ = new pbc::Repeate dField<string>(); 785 private readonly pbc::RepeatedField<string> reservedName_ = new pbc::Repeate dField<string>();
848 /// <summary> 786 /// <summary>
849 /// Reserved field names, which may not be used by fields in the same messag e. 787 /// Reserved field names, which may not be used by fields in the same messa ge.
850 /// A given name may only be reserved once. 788 /// A given name may only be reserved once.
851 /// </summary> 789 /// </summary>
852 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
853 public pbc::RepeatedField<string> ReservedName { 790 public pbc::RepeatedField<string> ReservedName {
854 get { return reservedName_; } 791 get { return reservedName_; }
855 } 792 }
856 793
857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
858 public override bool Equals(object other) { 794 public override bool Equals(object other) {
859 return Equals(other as DescriptorProto); 795 return Equals(other as DescriptorProto);
860 } 796 }
861 797
862 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
863 public bool Equals(DescriptorProto other) { 798 public bool Equals(DescriptorProto other) {
864 if (ReferenceEquals(other, null)) { 799 if (ReferenceEquals(other, null)) {
865 return false; 800 return false;
866 } 801 }
867 if (ReferenceEquals(other, this)) { 802 if (ReferenceEquals(other, this)) {
868 return true; 803 return true;
869 } 804 }
870 if (Name != other.Name) return false; 805 if (Name != other.Name) return false;
871 if(!field_.Equals(other.field_)) return false; 806 if(!field_.Equals(other.field_)) return false;
872 if(!extension_.Equals(other.extension_)) return false; 807 if(!extension_.Equals(other.extension_)) return false;
873 if(!nestedType_.Equals(other.nestedType_)) return false; 808 if(!nestedType_.Equals(other.nestedType_)) return false;
874 if(!enumType_.Equals(other.enumType_)) return false; 809 if(!enumType_.Equals(other.enumType_)) return false;
875 if(!extensionRange_.Equals(other.extensionRange_)) return false; 810 if(!extensionRange_.Equals(other.extensionRange_)) return false;
876 if(!oneofDecl_.Equals(other.oneofDecl_)) return false; 811 if(!oneofDecl_.Equals(other.oneofDecl_)) return false;
877 if (!object.Equals(Options, other.Options)) return false; 812 if (!object.Equals(Options, other.Options)) return false;
878 if(!reservedRange_.Equals(other.reservedRange_)) return false; 813 if(!reservedRange_.Equals(other.reservedRange_)) return false;
879 if(!reservedName_.Equals(other.reservedName_)) return false; 814 if(!reservedName_.Equals(other.reservedName_)) return false;
880 return true; 815 return true;
881 } 816 }
882 817
883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
884 public override int GetHashCode() { 818 public override int GetHashCode() {
885 int hash = 1; 819 int hash = 1;
886 if (Name.Length != 0) hash ^= Name.GetHashCode(); 820 if (Name.Length != 0) hash ^= Name.GetHashCode();
887 hash ^= field_.GetHashCode(); 821 hash ^= field_.GetHashCode();
888 hash ^= extension_.GetHashCode(); 822 hash ^= extension_.GetHashCode();
889 hash ^= nestedType_.GetHashCode(); 823 hash ^= nestedType_.GetHashCode();
890 hash ^= enumType_.GetHashCode(); 824 hash ^= enumType_.GetHashCode();
891 hash ^= extensionRange_.GetHashCode(); 825 hash ^= extensionRange_.GetHashCode();
892 hash ^= oneofDecl_.GetHashCode(); 826 hash ^= oneofDecl_.GetHashCode();
893 if (options_ != null) hash ^= Options.GetHashCode(); 827 if (options_ != null) hash ^= Options.GetHashCode();
894 hash ^= reservedRange_.GetHashCode(); 828 hash ^= reservedRange_.GetHashCode();
895 hash ^= reservedName_.GetHashCode(); 829 hash ^= reservedName_.GetHashCode();
896 return hash; 830 return hash;
897 } 831 }
898 832
899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
900 public override string ToString() { 833 public override string ToString() {
901 return pb::JsonFormatter.ToDiagnosticString(this); 834 return pb::JsonFormatter.ToDiagnosticString(this);
902 } 835 }
903 836
904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
905 public void WriteTo(pb::CodedOutputStream output) { 837 public void WriteTo(pb::CodedOutputStream output) {
906 if (Name.Length != 0) { 838 if (Name.Length != 0) {
907 output.WriteRawTag(10); 839 output.WriteRawTag(10);
908 output.WriteString(Name); 840 output.WriteString(Name);
909 } 841 }
910 field_.WriteTo(output, _repeated_field_codec); 842 field_.WriteTo(output, _repeated_field_codec);
911 nestedType_.WriteTo(output, _repeated_nestedType_codec); 843 nestedType_.WriteTo(output, _repeated_nestedType_codec);
912 enumType_.WriteTo(output, _repeated_enumType_codec); 844 enumType_.WriteTo(output, _repeated_enumType_codec);
913 extensionRange_.WriteTo(output, _repeated_extensionRange_codec); 845 extensionRange_.WriteTo(output, _repeated_extensionRange_codec);
914 extension_.WriteTo(output, _repeated_extension_codec); 846 extension_.WriteTo(output, _repeated_extension_codec);
915 if (options_ != null) { 847 if (options_ != null) {
916 output.WriteRawTag(58); 848 output.WriteRawTag(58);
917 output.WriteMessage(Options); 849 output.WriteMessage(Options);
918 } 850 }
919 oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec); 851 oneofDecl_.WriteTo(output, _repeated_oneofDecl_codec);
920 reservedRange_.WriteTo(output, _repeated_reservedRange_codec); 852 reservedRange_.WriteTo(output, _repeated_reservedRange_codec);
921 reservedName_.WriteTo(output, _repeated_reservedName_codec); 853 reservedName_.WriteTo(output, _repeated_reservedName_codec);
922 } 854 }
923 855
924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
925 public int CalculateSize() { 856 public int CalculateSize() {
926 int size = 0; 857 int size = 0;
927 if (Name.Length != 0) { 858 if (Name.Length != 0) {
928 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 859 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
929 } 860 }
930 size += field_.CalculateSize(_repeated_field_codec); 861 size += field_.CalculateSize(_repeated_field_codec);
931 size += extension_.CalculateSize(_repeated_extension_codec); 862 size += extension_.CalculateSize(_repeated_extension_codec);
932 size += nestedType_.CalculateSize(_repeated_nestedType_codec); 863 size += nestedType_.CalculateSize(_repeated_nestedType_codec);
933 size += enumType_.CalculateSize(_repeated_enumType_codec); 864 size += enumType_.CalculateSize(_repeated_enumType_codec);
934 size += extensionRange_.CalculateSize(_repeated_extensionRange_codec); 865 size += extensionRange_.CalculateSize(_repeated_extensionRange_codec);
935 size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec); 866 size += oneofDecl_.CalculateSize(_repeated_oneofDecl_codec);
936 if (options_ != null) { 867 if (options_ != null) {
937 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 868 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
938 } 869 }
939 size += reservedRange_.CalculateSize(_repeated_reservedRange_codec); 870 size += reservedRange_.CalculateSize(_repeated_reservedRange_codec);
940 size += reservedName_.CalculateSize(_repeated_reservedName_codec); 871 size += reservedName_.CalculateSize(_repeated_reservedName_codec);
941 return size; 872 return size;
942 } 873 }
943 874
944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
945 public void MergeFrom(DescriptorProto other) { 875 public void MergeFrom(DescriptorProto other) {
946 if (other == null) { 876 if (other == null) {
947 return; 877 return;
948 } 878 }
949 if (other.Name.Length != 0) { 879 if (other.Name.Length != 0) {
950 Name = other.Name; 880 Name = other.Name;
951 } 881 }
952 field_.Add(other.field_); 882 field_.Add(other.field_);
953 extension_.Add(other.extension_); 883 extension_.Add(other.extension_);
954 nestedType_.Add(other.nestedType_); 884 nestedType_.Add(other.nestedType_);
955 enumType_.Add(other.enumType_); 885 enumType_.Add(other.enumType_);
956 extensionRange_.Add(other.extensionRange_); 886 extensionRange_.Add(other.extensionRange_);
957 oneofDecl_.Add(other.oneofDecl_); 887 oneofDecl_.Add(other.oneofDecl_);
958 if (other.options_ != null) { 888 if (other.options_ != null) {
959 if (options_ == null) { 889 if (options_ == null) {
960 options_ = new global::Google.Protobuf.Reflection.MessageOptions(); 890 options_ = new global::Google.Protobuf.Reflection.MessageOptions();
961 } 891 }
962 Options.MergeFrom(other.Options); 892 Options.MergeFrom(other.Options);
963 } 893 }
964 reservedRange_.Add(other.reservedRange_); 894 reservedRange_.Add(other.reservedRange_);
965 reservedName_.Add(other.reservedName_); 895 reservedName_.Add(other.reservedName_);
966 } 896 }
967 897
968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
969 public void MergeFrom(pb::CodedInputStream input) { 898 public void MergeFrom(pb::CodedInputStream input) {
970 uint tag; 899 uint tag;
971 while ((tag = input.ReadTag()) != 0) { 900 while ((tag = input.ReadTag()) != 0) {
972 switch(tag) { 901 switch(tag) {
973 default: 902 default:
974 input.SkipLastField(); 903 input.SkipLastField();
975 break; 904 break;
976 case 10: { 905 case 10: {
977 Name = input.ReadString(); 906 Name = input.ReadString();
978 break; 907 break;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 case 82: { 944 case 82: {
1016 reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec); 945 reservedName_.AddEntriesFrom(input, _repeated_reservedName_codec);
1017 break; 946 break;
1018 } 947 }
1019 } 948 }
1020 } 949 }
1021 } 950 }
1022 951
1023 #region Nested types 952 #region Nested types
1024 /// <summary>Container for nested types declared in the DescriptorProto mess age type.</summary> 953 /// <summary>Container for nested types declared in the DescriptorProto mess age type.</summary>
1025 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 954 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1026 public static partial class Types { 955 public static partial class Types {
956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1027 internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange > { 957 internal sealed partial class ExtensionRange : pb::IMessage<ExtensionRange > {
1028 private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange()); 958 private static readonly pb::MessageParser<ExtensionRange> _parser = new pb::MessageParser<ExtensionRange>(() => new ExtensionRange());
1029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1030 public static pb::MessageParser<ExtensionRange> Parser { get { return _p arser; } } 959 public static pb::MessageParser<ExtensionRange> Parser { get { return _p arser; } }
1031 960
1032 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1033 public static pbr::MessageDescriptor Descriptor { 961 public static pbr::MessageDescriptor Descriptor {
1034 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descri ptor.NestedTypes[0]; } 962 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descri ptor.NestedTypes[0]; }
1035 } 963 }
1036 964
1037 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1038 pbr::MessageDescriptor pb::IMessage.Descriptor { 965 pbr::MessageDescriptor pb::IMessage.Descriptor {
1039 get { return Descriptor; } 966 get { return Descriptor; }
1040 } 967 }
1041 968
1042 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1043 public ExtensionRange() { 969 public ExtensionRange() {
1044 OnConstruction(); 970 OnConstruction();
1045 } 971 }
1046 972
1047 partial void OnConstruction(); 973 partial void OnConstruction();
1048 974
1049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1050 public ExtensionRange(ExtensionRange other) : this() { 975 public ExtensionRange(ExtensionRange other) : this() {
1051 start_ = other.start_; 976 start_ = other.start_;
1052 end_ = other.end_; 977 end_ = other.end_;
1053 } 978 }
1054 979
1055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1056 public ExtensionRange Clone() { 980 public ExtensionRange Clone() {
1057 return new ExtensionRange(this); 981 return new ExtensionRange(this);
1058 } 982 }
1059 983
1060 /// <summary>Field number for the "start" field.</summary> 984 /// <summary>Field number for the "start" field.</summary>
1061 public const int StartFieldNumber = 1; 985 public const int StartFieldNumber = 1;
1062 private int start_; 986 private int start_;
1063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1064 public int Start { 987 public int Start {
1065 get { return start_; } 988 get { return start_; }
1066 set { 989 set {
1067 start_ = value; 990 start_ = value;
1068 } 991 }
1069 } 992 }
1070 993
1071 /// <summary>Field number for the "end" field.</summary> 994 /// <summary>Field number for the "end" field.</summary>
1072 public const int EndFieldNumber = 2; 995 public const int EndFieldNumber = 2;
1073 private int end_; 996 private int end_;
1074 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1075 public int End { 997 public int End {
1076 get { return end_; } 998 get { return end_; }
1077 set { 999 set {
1078 end_ = value; 1000 end_ = value;
1079 } 1001 }
1080 } 1002 }
1081 1003
1082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1083 public override bool Equals(object other) { 1004 public override bool Equals(object other) {
1084 return Equals(other as ExtensionRange); 1005 return Equals(other as ExtensionRange);
1085 } 1006 }
1086 1007
1087 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1088 public bool Equals(ExtensionRange other) { 1008 public bool Equals(ExtensionRange other) {
1089 if (ReferenceEquals(other, null)) { 1009 if (ReferenceEquals(other, null)) {
1090 return false; 1010 return false;
1091 } 1011 }
1092 if (ReferenceEquals(other, this)) { 1012 if (ReferenceEquals(other, this)) {
1093 return true; 1013 return true;
1094 } 1014 }
1095 if (Start != other.Start) return false; 1015 if (Start != other.Start) return false;
1096 if (End != other.End) return false; 1016 if (End != other.End) return false;
1097 return true; 1017 return true;
1098 } 1018 }
1099 1019
1100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1101 public override int GetHashCode() { 1020 public override int GetHashCode() {
1102 int hash = 1; 1021 int hash = 1;
1103 if (Start != 0) hash ^= Start.GetHashCode(); 1022 if (Start != 0) hash ^= Start.GetHashCode();
1104 if (End != 0) hash ^= End.GetHashCode(); 1023 if (End != 0) hash ^= End.GetHashCode();
1105 return hash; 1024 return hash;
1106 } 1025 }
1107 1026
1108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1109 public override string ToString() { 1027 public override string ToString() {
1110 return pb::JsonFormatter.ToDiagnosticString(this); 1028 return pb::JsonFormatter.ToDiagnosticString(this);
1111 } 1029 }
1112 1030
1113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1114 public void WriteTo(pb::CodedOutputStream output) { 1031 public void WriteTo(pb::CodedOutputStream output) {
1115 if (Start != 0) { 1032 if (Start != 0) {
1116 output.WriteRawTag(8); 1033 output.WriteRawTag(8);
1117 output.WriteInt32(Start); 1034 output.WriteInt32(Start);
1118 } 1035 }
1119 if (End != 0) { 1036 if (End != 0) {
1120 output.WriteRawTag(16); 1037 output.WriteRawTag(16);
1121 output.WriteInt32(End); 1038 output.WriteInt32(End);
1122 } 1039 }
1123 } 1040 }
1124 1041
1125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1126 public int CalculateSize() { 1042 public int CalculateSize() {
1127 int size = 0; 1043 int size = 0;
1128 if (Start != 0) { 1044 if (Start != 0) {
1129 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); 1045 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
1130 } 1046 }
1131 if (End != 0) { 1047 if (End != 0) {
1132 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); 1048 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
1133 } 1049 }
1134 return size; 1050 return size;
1135 } 1051 }
1136 1052
1137 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1138 public void MergeFrom(ExtensionRange other) { 1053 public void MergeFrom(ExtensionRange other) {
1139 if (other == null) { 1054 if (other == null) {
1140 return; 1055 return;
1141 } 1056 }
1142 if (other.Start != 0) { 1057 if (other.Start != 0) {
1143 Start = other.Start; 1058 Start = other.Start;
1144 } 1059 }
1145 if (other.End != 0) { 1060 if (other.End != 0) {
1146 End = other.End; 1061 End = other.End;
1147 } 1062 }
1148 } 1063 }
1149 1064
1150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1151 public void MergeFrom(pb::CodedInputStream input) { 1065 public void MergeFrom(pb::CodedInputStream input) {
1152 uint tag; 1066 uint tag;
1153 while ((tag = input.ReadTag()) != 0) { 1067 while ((tag = input.ReadTag()) != 0) {
1154 switch(tag) { 1068 switch(tag) {
1155 default: 1069 default:
1156 input.SkipLastField(); 1070 input.SkipLastField();
1157 break; 1071 break;
1158 case 8: { 1072 case 8: {
1159 Start = input.ReadInt32(); 1073 Start = input.ReadInt32();
1160 break; 1074 break;
1161 } 1075 }
1162 case 16: { 1076 case 16: {
1163 End = input.ReadInt32(); 1077 End = input.ReadInt32();
1164 break; 1078 break;
1165 } 1079 }
1166 } 1080 }
1167 } 1081 }
1168 } 1082 }
1169 1083
1170 } 1084 }
1171 1085
1172 /// <summary> 1086 /// <summary>
1173 /// Range of reserved tag numbers. Reserved tag numbers may not be used by 1087 /// Range of reserved tag numbers. Reserved tag numbers may not be used b y
1174 /// fields or extension ranges in the same message. Reserved ranges may 1088 /// fields or extension ranges in the same message. Reserved ranges may
1175 /// not overlap. 1089 /// not overlap.
1176 /// </summary> 1090 /// </summary>
1091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1177 internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> { 1092 internal sealed partial class ReservedRange : pb::IMessage<ReservedRange> {
1178 private static readonly pb::MessageParser<ReservedRange> _parser = new p b::MessageParser<ReservedRange>(() => new ReservedRange()); 1093 private static readonly pb::MessageParser<ReservedRange> _parser = new p b::MessageParser<ReservedRange>(() => new ReservedRange());
1179 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1180 public static pb::MessageParser<ReservedRange> Parser { get { return _pa rser; } } 1094 public static pb::MessageParser<ReservedRange> Parser { get { return _pa rser; } }
1181 1095
1182 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1183 public static pbr::MessageDescriptor Descriptor { 1096 public static pbr::MessageDescriptor Descriptor {
1184 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descri ptor.NestedTypes[1]; } 1097 get { return global::Google.Protobuf.Reflection.DescriptorProto.Descri ptor.NestedTypes[1]; }
1185 } 1098 }
1186 1099
1187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1188 pbr::MessageDescriptor pb::IMessage.Descriptor { 1100 pbr::MessageDescriptor pb::IMessage.Descriptor {
1189 get { return Descriptor; } 1101 get { return Descriptor; }
1190 } 1102 }
1191 1103
1192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1193 public ReservedRange() { 1104 public ReservedRange() {
1194 OnConstruction(); 1105 OnConstruction();
1195 } 1106 }
1196 1107
1197 partial void OnConstruction(); 1108 partial void OnConstruction();
1198 1109
1199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1200 public ReservedRange(ReservedRange other) : this() { 1110 public ReservedRange(ReservedRange other) : this() {
1201 start_ = other.start_; 1111 start_ = other.start_;
1202 end_ = other.end_; 1112 end_ = other.end_;
1203 } 1113 }
1204 1114
1205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1206 public ReservedRange Clone() { 1115 public ReservedRange Clone() {
1207 return new ReservedRange(this); 1116 return new ReservedRange(this);
1208 } 1117 }
1209 1118
1210 /// <summary>Field number for the "start" field.</summary> 1119 /// <summary>Field number for the "start" field.</summary>
1211 public const int StartFieldNumber = 1; 1120 public const int StartFieldNumber = 1;
1212 private int start_; 1121 private int start_;
1213 /// <summary> 1122 /// <summary>
1214 /// Inclusive. 1123 /// Inclusive.
1215 /// </summary> 1124 /// </summary>
1216 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1217 public int Start { 1125 public int Start {
1218 get { return start_; } 1126 get { return start_; }
1219 set { 1127 set {
1220 start_ = value; 1128 start_ = value;
1221 } 1129 }
1222 } 1130 }
1223 1131
1224 /// <summary>Field number for the "end" field.</summary> 1132 /// <summary>Field number for the "end" field.</summary>
1225 public const int EndFieldNumber = 2; 1133 public const int EndFieldNumber = 2;
1226 private int end_; 1134 private int end_;
1227 /// <summary> 1135 /// <summary>
1228 /// Exclusive. 1136 /// Exclusive.
1229 /// </summary> 1137 /// </summary>
1230 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1231 public int End { 1138 public int End {
1232 get { return end_; } 1139 get { return end_; }
1233 set { 1140 set {
1234 end_ = value; 1141 end_ = value;
1235 } 1142 }
1236 } 1143 }
1237 1144
1238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1239 public override bool Equals(object other) { 1145 public override bool Equals(object other) {
1240 return Equals(other as ReservedRange); 1146 return Equals(other as ReservedRange);
1241 } 1147 }
1242 1148
1243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1244 public bool Equals(ReservedRange other) { 1149 public bool Equals(ReservedRange other) {
1245 if (ReferenceEquals(other, null)) { 1150 if (ReferenceEquals(other, null)) {
1246 return false; 1151 return false;
1247 } 1152 }
1248 if (ReferenceEquals(other, this)) { 1153 if (ReferenceEquals(other, this)) {
1249 return true; 1154 return true;
1250 } 1155 }
1251 if (Start != other.Start) return false; 1156 if (Start != other.Start) return false;
1252 if (End != other.End) return false; 1157 if (End != other.End) return false;
1253 return true; 1158 return true;
1254 } 1159 }
1255 1160
1256 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1257 public override int GetHashCode() { 1161 public override int GetHashCode() {
1258 int hash = 1; 1162 int hash = 1;
1259 if (Start != 0) hash ^= Start.GetHashCode(); 1163 if (Start != 0) hash ^= Start.GetHashCode();
1260 if (End != 0) hash ^= End.GetHashCode(); 1164 if (End != 0) hash ^= End.GetHashCode();
1261 return hash; 1165 return hash;
1262 } 1166 }
1263 1167
1264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1265 public override string ToString() { 1168 public override string ToString() {
1266 return pb::JsonFormatter.ToDiagnosticString(this); 1169 return pb::JsonFormatter.ToDiagnosticString(this);
1267 } 1170 }
1268 1171
1269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1270 public void WriteTo(pb::CodedOutputStream output) { 1172 public void WriteTo(pb::CodedOutputStream output) {
1271 if (Start != 0) { 1173 if (Start != 0) {
1272 output.WriteRawTag(8); 1174 output.WriteRawTag(8);
1273 output.WriteInt32(Start); 1175 output.WriteInt32(Start);
1274 } 1176 }
1275 if (End != 0) { 1177 if (End != 0) {
1276 output.WriteRawTag(16); 1178 output.WriteRawTag(16);
1277 output.WriteInt32(End); 1179 output.WriteInt32(End);
1278 } 1180 }
1279 } 1181 }
1280 1182
1281 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1282 public int CalculateSize() { 1183 public int CalculateSize() {
1283 int size = 0; 1184 int size = 0;
1284 if (Start != 0) { 1185 if (Start != 0) {
1285 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start); 1186 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Start);
1286 } 1187 }
1287 if (End != 0) { 1188 if (End != 0) {
1288 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); 1189 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
1289 } 1190 }
1290 return size; 1191 return size;
1291 } 1192 }
1292 1193
1293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1294 public void MergeFrom(ReservedRange other) { 1194 public void MergeFrom(ReservedRange other) {
1295 if (other == null) { 1195 if (other == null) {
1296 return; 1196 return;
1297 } 1197 }
1298 if (other.Start != 0) { 1198 if (other.Start != 0) {
1299 Start = other.Start; 1199 Start = other.Start;
1300 } 1200 }
1301 if (other.End != 0) { 1201 if (other.End != 0) {
1302 End = other.End; 1202 End = other.End;
1303 } 1203 }
1304 } 1204 }
1305 1205
1306 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1307 public void MergeFrom(pb::CodedInputStream input) { 1206 public void MergeFrom(pb::CodedInputStream input) {
1308 uint tag; 1207 uint tag;
1309 while ((tag = input.ReadTag()) != 0) { 1208 while ((tag = input.ReadTag()) != 0) {
1310 switch(tag) { 1209 switch(tag) {
1311 default: 1210 default:
1312 input.SkipLastField(); 1211 input.SkipLastField();
1313 break; 1212 break;
1314 case 8: { 1213 case 8: {
1315 Start = input.ReadInt32(); 1214 Start = input.ReadInt32();
1316 break; 1215 break;
1317 } 1216 }
1318 case 16: { 1217 case 16: {
1319 End = input.ReadInt32(); 1218 End = input.ReadInt32();
1320 break; 1219 break;
1321 } 1220 }
1322 } 1221 }
1323 } 1222 }
1324 } 1223 }
1325 1224
1326 } 1225 }
1327 1226
1328 } 1227 }
1329 #endregion 1228 #endregion
1330 1229
1331 } 1230 }
1332 1231
1333 /// <summary> 1232 /// <summary>
1334 /// Describes a field within a message. 1233 /// Describes a field within a message.
1335 /// </summary> 1234 /// </summary>
1235 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1336 internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescrip torProto> { 1236 internal sealed partial class FieldDescriptorProto : pb::IMessage<FieldDescrip torProto> {
1337 private static readonly pb::MessageParser<FieldDescriptorProto> _parser = ne w pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto()); 1237 private static readonly pb::MessageParser<FieldDescriptorProto> _parser = ne w pb::MessageParser<FieldDescriptorProto>(() => new FieldDescriptorProto());
1338 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1339 public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } } 1238 public static pb::MessageParser<FieldDescriptorProto> Parser { get { return _parser; } }
1340 1239
1341 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1342 public static pbr::MessageDescriptor Descriptor { 1240 public static pbr::MessageDescriptor Descriptor {
1343 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[3]; } 1241 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[3]; }
1344 } 1242 }
1345 1243
1346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1347 pbr::MessageDescriptor pb::IMessage.Descriptor { 1244 pbr::MessageDescriptor pb::IMessage.Descriptor {
1348 get { return Descriptor; } 1245 get { return Descriptor; }
1349 } 1246 }
1350 1247
1351 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1352 public FieldDescriptorProto() { 1248 public FieldDescriptorProto() {
1353 OnConstruction(); 1249 OnConstruction();
1354 } 1250 }
1355 1251
1356 partial void OnConstruction(); 1252 partial void OnConstruction();
1357 1253
1358 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1359 public FieldDescriptorProto(FieldDescriptorProto other) : this() { 1254 public FieldDescriptorProto(FieldDescriptorProto other) : this() {
1360 name_ = other.name_; 1255 name_ = other.name_;
1361 number_ = other.number_; 1256 number_ = other.number_;
1362 label_ = other.label_; 1257 label_ = other.label_;
1363 type_ = other.type_; 1258 type_ = other.type_;
1364 typeName_ = other.typeName_; 1259 typeName_ = other.typeName_;
1365 extendee_ = other.extendee_; 1260 extendee_ = other.extendee_;
1366 defaultValue_ = other.defaultValue_; 1261 defaultValue_ = other.defaultValue_;
1367 oneofIndex_ = other.oneofIndex_; 1262 oneofIndex_ = other.oneofIndex_;
1368 jsonName_ = other.jsonName_; 1263 jsonName_ = other.jsonName_;
1369 Options = other.options_ != null ? other.Options.Clone() : null; 1264 Options = other.options_ != null ? other.Options.Clone() : null;
1370 } 1265 }
1371 1266
1372 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1373 public FieldDescriptorProto Clone() { 1267 public FieldDescriptorProto Clone() {
1374 return new FieldDescriptorProto(this); 1268 return new FieldDescriptorProto(this);
1375 } 1269 }
1376 1270
1377 /// <summary>Field number for the "name" field.</summary> 1271 /// <summary>Field number for the "name" field.</summary>
1378 public const int NameFieldNumber = 1; 1272 public const int NameFieldNumber = 1;
1379 private string name_ = ""; 1273 private string name_ = "";
1380 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1381 public string Name { 1274 public string Name {
1382 get { return name_; } 1275 get { return name_; }
1383 set { 1276 set {
1384 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1277 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1385 } 1278 }
1386 } 1279 }
1387 1280
1388 /// <summary>Field number for the "number" field.</summary> 1281 /// <summary>Field number for the "number" field.</summary>
1389 public const int NumberFieldNumber = 3; 1282 public const int NumberFieldNumber = 3;
1390 private int number_; 1283 private int number_;
1391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1392 public int Number { 1284 public int Number {
1393 get { return number_; } 1285 get { return number_; }
1394 set { 1286 set {
1395 number_ = value; 1287 number_ = value;
1396 } 1288 }
1397 } 1289 }
1398 1290
1399 /// <summary>Field number for the "label" field.</summary> 1291 /// <summary>Field number for the "label" field.</summary>
1400 public const int LabelFieldNumber = 4; 1292 public const int LabelFieldNumber = 4;
1401 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = 0; 1293 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label label_ = 0;
1402 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1403 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label L abel { 1294 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label L abel {
1404 get { return label_; } 1295 get { return label_; }
1405 set { 1296 set {
1406 label_ = value; 1297 label_ = value;
1407 } 1298 }
1408 } 1299 }
1409 1300
1410 /// <summary>Field number for the "type" field.</summary> 1301 /// <summary>Field number for the "type" field.</summary>
1411 public const int TypeFieldNumber = 5; 1302 public const int TypeFieldNumber = 5;
1412 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type t ype_ = 0; 1303 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type t ype_ = 0;
1413 /// <summary> 1304 /// <summary>
1414 /// If type_name is set, this need not be set. If both this and type_name 1305 /// If type_name is set, this need not be set. If both this and type_name
1415 /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. 1306 /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
1416 /// </summary> 1307 /// </summary>
1417 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1418 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Ty pe { 1308 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Ty pe {
1419 get { return type_; } 1309 get { return type_; }
1420 set { 1310 set {
1421 type_ = value; 1311 type_ = value;
1422 } 1312 }
1423 } 1313 }
1424 1314
1425 /// <summary>Field number for the "type_name" field.</summary> 1315 /// <summary>Field number for the "type_name" field.</summary>
1426 public const int TypeNameFieldNumber = 6; 1316 public const int TypeNameFieldNumber = 6;
1427 private string typeName_ = ""; 1317 private string typeName_ = "";
1428 /// <summary> 1318 /// <summary>
1429 /// For message and enum types, this is the name of the type. If the name 1319 /// For message and enum types, this is the name of the type. If the name
1430 /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping 1320 /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
1431 /// rules are used to find the type (i.e. first the nested types within this 1321 /// rules are used to find the type (i.e. first the nested types within thi s
1432 /// message are searched, then within the parent, on up to the root 1322 /// message are searched, then within the parent, on up to the root
1433 /// namespace). 1323 /// namespace).
1434 /// </summary> 1324 /// </summary>
1435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1436 public string TypeName { 1325 public string TypeName {
1437 get { return typeName_; } 1326 get { return typeName_; }
1438 set { 1327 set {
1439 typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1328 typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1440 } 1329 }
1441 } 1330 }
1442 1331
1443 /// <summary>Field number for the "extendee" field.</summary> 1332 /// <summary>Field number for the "extendee" field.</summary>
1444 public const int ExtendeeFieldNumber = 2; 1333 public const int ExtendeeFieldNumber = 2;
1445 private string extendee_ = ""; 1334 private string extendee_ = "";
1446 /// <summary> 1335 /// <summary>
1447 /// For extensions, this is the name of the type being extended. It is 1336 /// For extensions, this is the name of the type being extended. It is
1448 /// resolved in the same manner as type_name. 1337 /// resolved in the same manner as type_name.
1449 /// </summary> 1338 /// </summary>
1450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1451 public string Extendee { 1339 public string Extendee {
1452 get { return extendee_; } 1340 get { return extendee_; }
1453 set { 1341 set {
1454 extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1342 extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1455 } 1343 }
1456 } 1344 }
1457 1345
1458 /// <summary>Field number for the "default_value" field.</summary> 1346 /// <summary>Field number for the "default_value" field.</summary>
1459 public const int DefaultValueFieldNumber = 7; 1347 public const int DefaultValueFieldNumber = 7;
1460 private string defaultValue_ = ""; 1348 private string defaultValue_ = "";
1461 /// <summary> 1349 /// <summary>
1462 /// For numeric types, contains the original text representation of the valu e. 1350 /// For numeric types, contains the original text representation of the val ue.
1463 /// For booleans, "true" or "false". 1351 /// For booleans, "true" or "false".
1464 /// For strings, contains the default text contents (not escaped in any way) . 1352 /// For strings, contains the default text contents (not escaped in any way ).
1465 /// For bytes, contains the C escaped value. All bytes >= 128 are escaped. 1353 /// For bytes, contains the C escaped value. All bytes >= 128 are escaped.
1466 /// TODO(kenton): Base-64 encode? 1354 /// TODO(kenton): Base-64 encode?
1467 /// </summary> 1355 /// </summary>
1468 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1469 public string DefaultValue { 1356 public string DefaultValue {
1470 get { return defaultValue_; } 1357 get { return defaultValue_; }
1471 set { 1358 set {
1472 defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1359 defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1473 } 1360 }
1474 } 1361 }
1475 1362
1476 /// <summary>Field number for the "oneof_index" field.</summary> 1363 /// <summary>Field number for the "oneof_index" field.</summary>
1477 public const int OneofIndexFieldNumber = 9; 1364 public const int OneofIndexFieldNumber = 9;
1478 private int oneofIndex_; 1365 private int oneofIndex_;
1479 /// <summary> 1366 /// <summary>
1480 /// If set, gives the index of a oneof in the containing type's oneof_decl 1367 /// If set, gives the index of a oneof in the containing type's oneof_decl
1481 /// list. This field is a member of that oneof. 1368 /// list. This field is a member of that oneof.
1482 /// </summary> 1369 /// </summary>
1483 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1484 public int OneofIndex { 1370 public int OneofIndex {
1485 get { return oneofIndex_; } 1371 get { return oneofIndex_; }
1486 set { 1372 set {
1487 oneofIndex_ = value; 1373 oneofIndex_ = value;
1488 } 1374 }
1489 } 1375 }
1490 1376
1491 /// <summary>Field number for the "json_name" field.</summary> 1377 /// <summary>Field number for the "json_name" field.</summary>
1492 public const int JsonNameFieldNumber = 10; 1378 public const int JsonNameFieldNumber = 10;
1493 private string jsonName_ = ""; 1379 private string jsonName_ = "";
1494 /// <summary> 1380 /// <summary>
1495 /// JSON name of this field. The value is set by protocol compiler. If the 1381 /// JSON name of this field. The value is set by protocol compiler. If the
1496 /// user has set a "json_name" option on this field, that option's value 1382 /// user has set a "json_name" option on this field, that option's value
1497 /// will be used. Otherwise, it's deduced from the field's name by convertin g 1383 /// will be used. Otherwise, it's deduced from the field's name by converti ng
1498 /// it to camelCase. 1384 /// it to camelCase.
1499 /// </summary> 1385 /// </summary>
1500 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1501 public string JsonName { 1386 public string JsonName {
1502 get { return jsonName_; } 1387 get { return jsonName_; }
1503 set { 1388 set {
1504 jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1389 jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1505 } 1390 }
1506 } 1391 }
1507 1392
1508 /// <summary>Field number for the "options" field.</summary> 1393 /// <summary>Field number for the "options" field.</summary>
1509 public const int OptionsFieldNumber = 8; 1394 public const int OptionsFieldNumber = 8;
1510 private global::Google.Protobuf.Reflection.FieldOptions options_; 1395 private global::Google.Protobuf.Reflection.FieldOptions options_;
1511 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1512 public global::Google.Protobuf.Reflection.FieldOptions Options { 1396 public global::Google.Protobuf.Reflection.FieldOptions Options {
1513 get { return options_; } 1397 get { return options_; }
1514 set { 1398 set {
1515 options_ = value; 1399 options_ = value;
1516 } 1400 }
1517 } 1401 }
1518 1402
1519 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1520 public override bool Equals(object other) { 1403 public override bool Equals(object other) {
1521 return Equals(other as FieldDescriptorProto); 1404 return Equals(other as FieldDescriptorProto);
1522 } 1405 }
1523 1406
1524 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1525 public bool Equals(FieldDescriptorProto other) { 1407 public bool Equals(FieldDescriptorProto other) {
1526 if (ReferenceEquals(other, null)) { 1408 if (ReferenceEquals(other, null)) {
1527 return false; 1409 return false;
1528 } 1410 }
1529 if (ReferenceEquals(other, this)) { 1411 if (ReferenceEquals(other, this)) {
1530 return true; 1412 return true;
1531 } 1413 }
1532 if (Name != other.Name) return false; 1414 if (Name != other.Name) return false;
1533 if (Number != other.Number) return false; 1415 if (Number != other.Number) return false;
1534 if (Label != other.Label) return false; 1416 if (Label != other.Label) return false;
1535 if (Type != other.Type) return false; 1417 if (Type != other.Type) return false;
1536 if (TypeName != other.TypeName) return false; 1418 if (TypeName != other.TypeName) return false;
1537 if (Extendee != other.Extendee) return false; 1419 if (Extendee != other.Extendee) return false;
1538 if (DefaultValue != other.DefaultValue) return false; 1420 if (DefaultValue != other.DefaultValue) return false;
1539 if (OneofIndex != other.OneofIndex) return false; 1421 if (OneofIndex != other.OneofIndex) return false;
1540 if (JsonName != other.JsonName) return false; 1422 if (JsonName != other.JsonName) return false;
1541 if (!object.Equals(Options, other.Options)) return false; 1423 if (!object.Equals(Options, other.Options)) return false;
1542 return true; 1424 return true;
1543 } 1425 }
1544 1426
1545 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1546 public override int GetHashCode() { 1427 public override int GetHashCode() {
1547 int hash = 1; 1428 int hash = 1;
1548 if (Name.Length != 0) hash ^= Name.GetHashCode(); 1429 if (Name.Length != 0) hash ^= Name.GetHashCode();
1549 if (Number != 0) hash ^= Number.GetHashCode(); 1430 if (Number != 0) hash ^= Number.GetHashCode();
1550 if (Label != 0) hash ^= Label.GetHashCode(); 1431 if (Label != 0) hash ^= Label.GetHashCode();
1551 if (Type != 0) hash ^= Type.GetHashCode(); 1432 if (Type != 0) hash ^= Type.GetHashCode();
1552 if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); 1433 if (TypeName.Length != 0) hash ^= TypeName.GetHashCode();
1553 if (Extendee.Length != 0) hash ^= Extendee.GetHashCode(); 1434 if (Extendee.Length != 0) hash ^= Extendee.GetHashCode();
1554 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); 1435 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode();
1555 if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode(); 1436 if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode();
1556 if (JsonName.Length != 0) hash ^= JsonName.GetHashCode(); 1437 if (JsonName.Length != 0) hash ^= JsonName.GetHashCode();
1557 if (options_ != null) hash ^= Options.GetHashCode(); 1438 if (options_ != null) hash ^= Options.GetHashCode();
1558 return hash; 1439 return hash;
1559 } 1440 }
1560 1441
1561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1562 public override string ToString() { 1442 public override string ToString() {
1563 return pb::JsonFormatter.ToDiagnosticString(this); 1443 return pb::JsonFormatter.ToDiagnosticString(this);
1564 } 1444 }
1565 1445
1566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1567 public void WriteTo(pb::CodedOutputStream output) { 1446 public void WriteTo(pb::CodedOutputStream output) {
1568 if (Name.Length != 0) { 1447 if (Name.Length != 0) {
1569 output.WriteRawTag(10); 1448 output.WriteRawTag(10);
1570 output.WriteString(Name); 1449 output.WriteString(Name);
1571 } 1450 }
1572 if (Extendee.Length != 0) { 1451 if (Extendee.Length != 0) {
1573 output.WriteRawTag(18); 1452 output.WriteRawTag(18);
1574 output.WriteString(Extendee); 1453 output.WriteString(Extendee);
1575 } 1454 }
1576 if (Number != 0) { 1455 if (Number != 0) {
(...skipping 23 matching lines...) Expand all
1600 if (OneofIndex != 0) { 1479 if (OneofIndex != 0) {
1601 output.WriteRawTag(72); 1480 output.WriteRawTag(72);
1602 output.WriteInt32(OneofIndex); 1481 output.WriteInt32(OneofIndex);
1603 } 1482 }
1604 if (JsonName.Length != 0) { 1483 if (JsonName.Length != 0) {
1605 output.WriteRawTag(82); 1484 output.WriteRawTag(82);
1606 output.WriteString(JsonName); 1485 output.WriteString(JsonName);
1607 } 1486 }
1608 } 1487 }
1609 1488
1610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1611 public int CalculateSize() { 1489 public int CalculateSize() {
1612 int size = 0; 1490 int size = 0;
1613 if (Name.Length != 0) { 1491 if (Name.Length != 0) {
1614 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1492 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1615 } 1493 }
1616 if (Number != 0) { 1494 if (Number != 0) {
1617 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); 1495 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
1618 } 1496 }
1619 if (Label != 0) { 1497 if (Label != 0) {
1620 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label); 1498 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label);
(...skipping 15 matching lines...) Expand all
1636 } 1514 }
1637 if (JsonName.Length != 0) { 1515 if (JsonName.Length != 0) {
1638 size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName); 1516 size += 1 + pb::CodedOutputStream.ComputeStringSize(JsonName);
1639 } 1517 }
1640 if (options_ != null) { 1518 if (options_ != null) {
1641 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 1519 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
1642 } 1520 }
1643 return size; 1521 return size;
1644 } 1522 }
1645 1523
1646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1647 public void MergeFrom(FieldDescriptorProto other) { 1524 public void MergeFrom(FieldDescriptorProto other) {
1648 if (other == null) { 1525 if (other == null) {
1649 return; 1526 return;
1650 } 1527 }
1651 if (other.Name.Length != 0) { 1528 if (other.Name.Length != 0) {
1652 Name = other.Name; 1529 Name = other.Name;
1653 } 1530 }
1654 if (other.Number != 0) { 1531 if (other.Number != 0) {
1655 Number = other.Number; 1532 Number = other.Number;
1656 } 1533 }
(...skipping 19 matching lines...) Expand all
1676 JsonName = other.JsonName; 1553 JsonName = other.JsonName;
1677 } 1554 }
1678 if (other.options_ != null) { 1555 if (other.options_ != null) {
1679 if (options_ == null) { 1556 if (options_ == null) {
1680 options_ = new global::Google.Protobuf.Reflection.FieldOptions(); 1557 options_ = new global::Google.Protobuf.Reflection.FieldOptions();
1681 } 1558 }
1682 Options.MergeFrom(other.Options); 1559 Options.MergeFrom(other.Options);
1683 } 1560 }
1684 } 1561 }
1685 1562
1686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1687 public void MergeFrom(pb::CodedInputStream input) { 1563 public void MergeFrom(pb::CodedInputStream input) {
1688 uint tag; 1564 uint tag;
1689 while ((tag = input.ReadTag()) != 0) { 1565 while ((tag = input.ReadTag()) != 0) {
1690 switch(tag) { 1566 switch(tag) {
1691 default: 1567 default:
1692 input.SkipLastField(); 1568 input.SkipLastField();
1693 break; 1569 break;
1694 case 10: { 1570 case 10: {
1695 Name = input.ReadString(); 1571 Name = input.ReadString();
1696 break; 1572 break;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1733 case 82: { 1609 case 82: {
1734 JsonName = input.ReadString(); 1610 JsonName = input.ReadString();
1735 break; 1611 break;
1736 } 1612 }
1737 } 1613 }
1738 } 1614 }
1739 } 1615 }
1740 1616
1741 #region Nested types 1617 #region Nested types
1742 /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary> 1618 /// <summary>Container for nested types declared in the FieldDescriptorProto message type.</summary>
1743 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 1619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1744 public static partial class Types { 1620 public static partial class Types {
1745 internal enum Type { 1621 internal enum Type {
1746 /// <summary> 1622 /// <summary>
1747 /// 0 is reserved for errors. 1623 /// 0 is reserved for errors.
1748 /// Order is weird for historical reasons. 1624 /// Order is weird for historical reasons.
1749 /// </summary> 1625 /// </summary>
1750 [pbr::OriginalName("TYPE_DOUBLE")] Double = 1, 1626 [pbr::OriginalName("TYPE_DOUBLE")] Double = 1,
1751 [pbr::OriginalName("TYPE_FLOAT")] Float = 2, 1627 [pbr::OriginalName("TYPE_FLOAT")] Float = 2,
1752 /// <summary> 1628 /// <summary>
1753 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT6 4 if 1629 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT 64 if
1754 /// negative values are likely. 1630 /// negative values are likely.
1755 /// </summary> 1631 /// </summary>
1756 [pbr::OriginalName("TYPE_INT64")] Int64 = 3, 1632 [pbr::OriginalName("TYPE_INT64")] Int64 = 3,
1757 [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4, 1633 [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4,
1758 /// <summary> 1634 /// <summary>
1759 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT3 2 if 1635 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT 32 if
1760 /// negative values are likely. 1636 /// negative values are likely.
1761 /// </summary> 1637 /// </summary>
1762 [pbr::OriginalName("TYPE_INT32")] Int32 = 5, 1638 [pbr::OriginalName("TYPE_INT32")] Int32 = 5,
1763 [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6, 1639 [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6,
1764 [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7, 1640 [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7,
1765 [pbr::OriginalName("TYPE_BOOL")] Bool = 8, 1641 [pbr::OriginalName("TYPE_BOOL")] Bool = 8,
1766 [pbr::OriginalName("TYPE_STRING")] String = 9, 1642 [pbr::OriginalName("TYPE_STRING")] String = 9,
1767 /// <summary> 1643 /// <summary>
1768 /// Tag-delimited aggregate. 1644 /// Tag-delimited aggregate.
1769 /// </summary> 1645 /// </summary>
1770 [pbr::OriginalName("TYPE_GROUP")] Group = 10, 1646 [pbr::OriginalName("TYPE_GROUP")] Group = 10,
1771 /// <summary> 1647 /// <summary>
1772 /// Length-delimited aggregate. 1648 /// Length-delimited aggregate.
1773 /// </summary> 1649 /// </summary>
1774 [pbr::OriginalName("TYPE_MESSAGE")] Message = 11, 1650 [pbr::OriginalName("TYPE_MESSAGE")] Message = 11,
1775 /// <summary> 1651 /// <summary>
1776 /// New in version 2. 1652 /// New in version 2.
1777 /// </summary> 1653 /// </summary>
1778 [pbr::OriginalName("TYPE_BYTES")] Bytes = 12, 1654 [pbr::OriginalName("TYPE_BYTES")] Bytes = 12,
1779 [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13, 1655 [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13,
1780 [pbr::OriginalName("TYPE_ENUM")] Enum = 14, 1656 [pbr::OriginalName("TYPE_ENUM")] Enum = 14,
1781 [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15, 1657 [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15,
1782 [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16, 1658 [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16,
1783 /// <summary> 1659 /// <summary>
1784 /// Uses ZigZag encoding. 1660 /// Uses ZigZag encoding.
1785 /// </summary> 1661 /// </summary>
1786 [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17, 1662 [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17,
1787 /// <summary> 1663 /// <summary>
1788 /// Uses ZigZag encoding. 1664 /// Uses ZigZag encoding.
1789 /// </summary> 1665 /// </summary>
1790 [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18, 1666 [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18,
1791 } 1667 }
1792 1668
1793 internal enum Label { 1669 internal enum Label {
1794 /// <summary> 1670 /// <summary>
1795 /// 0 is reserved for errors 1671 /// 0 is reserved for errors
1796 /// </summary> 1672 /// </summary>
1797 [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1, 1673 [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1,
1798 [pbr::OriginalName("LABEL_REQUIRED")] Required = 2, 1674 [pbr::OriginalName("LABEL_REQUIRED")] Required = 2,
1675 /// <summary>
1676 /// TODO(sanjay): Should we add LABEL_MAP?
1677 /// </summary>
1799 [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3, 1678 [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3,
1800 } 1679 }
1801 1680
1802 } 1681 }
1803 #endregion 1682 #endregion
1804 1683
1805 } 1684 }
1806 1685
1807 /// <summary> 1686 /// <summary>
1808 /// Describes a oneof. 1687 /// Describes a oneof.
1809 /// </summary> 1688 /// </summary>
1689 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1810 internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescrip torProto> { 1690 internal sealed partial class OneofDescriptorProto : pb::IMessage<OneofDescrip torProto> {
1811 private static readonly pb::MessageParser<OneofDescriptorProto> _parser = ne w pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto()); 1691 private static readonly pb::MessageParser<OneofDescriptorProto> _parser = ne w pb::MessageParser<OneofDescriptorProto>(() => new OneofDescriptorProto());
1812 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1813 public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } } 1692 public static pb::MessageParser<OneofDescriptorProto> Parser { get { return _parser; } }
1814 1693
1815 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1816 public static pbr::MessageDescriptor Descriptor { 1694 public static pbr::MessageDescriptor Descriptor {
1817 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[4]; } 1695 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[4]; }
1818 } 1696 }
1819 1697
1820 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1821 pbr::MessageDescriptor pb::IMessage.Descriptor { 1698 pbr::MessageDescriptor pb::IMessage.Descriptor {
1822 get { return Descriptor; } 1699 get { return Descriptor; }
1823 } 1700 }
1824 1701
1825 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1826 public OneofDescriptorProto() { 1702 public OneofDescriptorProto() {
1827 OnConstruction(); 1703 OnConstruction();
1828 } 1704 }
1829 1705
1830 partial void OnConstruction(); 1706 partial void OnConstruction();
1831 1707
1832 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1833 public OneofDescriptorProto(OneofDescriptorProto other) : this() { 1708 public OneofDescriptorProto(OneofDescriptorProto other) : this() {
1834 name_ = other.name_; 1709 name_ = other.name_;
1835 Options = other.options_ != null ? other.Options.Clone() : null;
1836 } 1710 }
1837 1711
1838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1839 public OneofDescriptorProto Clone() { 1712 public OneofDescriptorProto Clone() {
1840 return new OneofDescriptorProto(this); 1713 return new OneofDescriptorProto(this);
1841 } 1714 }
1842 1715
1843 /// <summary>Field number for the "name" field.</summary> 1716 /// <summary>Field number for the "name" field.</summary>
1844 public const int NameFieldNumber = 1; 1717 public const int NameFieldNumber = 1;
1845 private string name_ = ""; 1718 private string name_ = "";
1846 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1847 public string Name { 1719 public string Name {
1848 get { return name_; } 1720 get { return name_; }
1849 set { 1721 set {
1850 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1722 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
1851 } 1723 }
1852 } 1724 }
1853 1725
1854 /// <summary>Field number for the "options" field.</summary>
1855 public const int OptionsFieldNumber = 2;
1856 private global::Google.Protobuf.Reflection.OneofOptions options_;
1857 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1858 public global::Google.Protobuf.Reflection.OneofOptions Options {
1859 get { return options_; }
1860 set {
1861 options_ = value;
1862 }
1863 }
1864
1865 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1866 public override bool Equals(object other) { 1726 public override bool Equals(object other) {
1867 return Equals(other as OneofDescriptorProto); 1727 return Equals(other as OneofDescriptorProto);
1868 } 1728 }
1869 1729
1870 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1871 public bool Equals(OneofDescriptorProto other) { 1730 public bool Equals(OneofDescriptorProto other) {
1872 if (ReferenceEquals(other, null)) { 1731 if (ReferenceEquals(other, null)) {
1873 return false; 1732 return false;
1874 } 1733 }
1875 if (ReferenceEquals(other, this)) { 1734 if (ReferenceEquals(other, this)) {
1876 return true; 1735 return true;
1877 } 1736 }
1878 if (Name != other.Name) return false; 1737 if (Name != other.Name) return false;
1879 if (!object.Equals(Options, other.Options)) return false;
1880 return true; 1738 return true;
1881 } 1739 }
1882 1740
1883 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1884 public override int GetHashCode() { 1741 public override int GetHashCode() {
1885 int hash = 1; 1742 int hash = 1;
1886 if (Name.Length != 0) hash ^= Name.GetHashCode(); 1743 if (Name.Length != 0) hash ^= Name.GetHashCode();
1887 if (options_ != null) hash ^= Options.GetHashCode();
1888 return hash; 1744 return hash;
1889 } 1745 }
1890 1746
1891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1892 public override string ToString() { 1747 public override string ToString() {
1893 return pb::JsonFormatter.ToDiagnosticString(this); 1748 return pb::JsonFormatter.ToDiagnosticString(this);
1894 } 1749 }
1895 1750
1896 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1897 public void WriteTo(pb::CodedOutputStream output) { 1751 public void WriteTo(pb::CodedOutputStream output) {
1898 if (Name.Length != 0) { 1752 if (Name.Length != 0) {
1899 output.WriteRawTag(10); 1753 output.WriteRawTag(10);
1900 output.WriteString(Name); 1754 output.WriteString(Name);
1901 } 1755 }
1902 if (options_ != null) {
1903 output.WriteRawTag(18);
1904 output.WriteMessage(Options);
1905 }
1906 } 1756 }
1907 1757
1908 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1909 public int CalculateSize() { 1758 public int CalculateSize() {
1910 int size = 0; 1759 int size = 0;
1911 if (Name.Length != 0) { 1760 if (Name.Length != 0) {
1912 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1761 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
1913 } 1762 }
1914 if (options_ != null) {
1915 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
1916 }
1917 return size; 1763 return size;
1918 } 1764 }
1919 1765
1920 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1921 public void MergeFrom(OneofDescriptorProto other) { 1766 public void MergeFrom(OneofDescriptorProto other) {
1922 if (other == null) { 1767 if (other == null) {
1923 return; 1768 return;
1924 } 1769 }
1925 if (other.Name.Length != 0) { 1770 if (other.Name.Length != 0) {
1926 Name = other.Name; 1771 Name = other.Name;
1927 } 1772 }
1928 if (other.options_ != null) {
1929 if (options_ == null) {
1930 options_ = new global::Google.Protobuf.Reflection.OneofOptions();
1931 }
1932 Options.MergeFrom(other.Options);
1933 }
1934 } 1773 }
1935 1774
1936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1937 public void MergeFrom(pb::CodedInputStream input) { 1775 public void MergeFrom(pb::CodedInputStream input) {
1938 uint tag; 1776 uint tag;
1939 while ((tag = input.ReadTag()) != 0) { 1777 while ((tag = input.ReadTag()) != 0) {
1940 switch(tag) { 1778 switch(tag) {
1941 default: 1779 default:
1942 input.SkipLastField(); 1780 input.SkipLastField();
1943 break; 1781 break;
1944 case 10: { 1782 case 10: {
1945 Name = input.ReadString(); 1783 Name = input.ReadString();
1946 break; 1784 break;
1947 } 1785 }
1948 case 18: {
1949 if (options_ == null) {
1950 options_ = new global::Google.Protobuf.Reflection.OneofOptions();
1951 }
1952 input.ReadMessage(options_);
1953 break;
1954 }
1955 } 1786 }
1956 } 1787 }
1957 } 1788 }
1958 1789
1959 } 1790 }
1960 1791
1961 /// <summary> 1792 /// <summary>
1962 /// Describes an enum type. 1793 /// Describes an enum type.
1963 /// </summary> 1794 /// </summary>
1795 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1964 internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescripto rProto> { 1796 internal sealed partial class EnumDescriptorProto : pb::IMessage<EnumDescripto rProto> {
1965 private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto()); 1797 private static readonly pb::MessageParser<EnumDescriptorProto> _parser = new pb::MessageParser<EnumDescriptorProto>(() => new EnumDescriptorProto());
1966 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1967 public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _ parser; } } 1798 public static pb::MessageParser<EnumDescriptorProto> Parser { get { return _ parser; } }
1968 1799
1969 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1970 public static pbr::MessageDescriptor Descriptor { 1800 public static pbr::MessageDescriptor Descriptor {
1971 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[5]; } 1801 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[5]; }
1972 } 1802 }
1973 1803
1974 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1975 pbr::MessageDescriptor pb::IMessage.Descriptor { 1804 pbr::MessageDescriptor pb::IMessage.Descriptor {
1976 get { return Descriptor; } 1805 get { return Descriptor; }
1977 } 1806 }
1978 1807
1979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1980 public EnumDescriptorProto() { 1808 public EnumDescriptorProto() {
1981 OnConstruction(); 1809 OnConstruction();
1982 } 1810 }
1983 1811
1984 partial void OnConstruction(); 1812 partial void OnConstruction();
1985 1813
1986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1987 public EnumDescriptorProto(EnumDescriptorProto other) : this() { 1814 public EnumDescriptorProto(EnumDescriptorProto other) : this() {
1988 name_ = other.name_; 1815 name_ = other.name_;
1989 value_ = other.value_.Clone(); 1816 value_ = other.value_.Clone();
1990 Options = other.options_ != null ? other.Options.Clone() : null; 1817 Options = other.options_ != null ? other.Options.Clone() : null;
1991 } 1818 }
1992 1819
1993 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
1994 public EnumDescriptorProto Clone() { 1820 public EnumDescriptorProto Clone() {
1995 return new EnumDescriptorProto(this); 1821 return new EnumDescriptorProto(this);
1996 } 1822 }
1997 1823
1998 /// <summary>Field number for the "name" field.</summary> 1824 /// <summary>Field number for the "name" field.</summary>
1999 public const int NameFieldNumber = 1; 1825 public const int NameFieldNumber = 1;
2000 private string name_ = ""; 1826 private string name_ = "";
2001 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2002 public string Name { 1827 public string Name {
2003 get { return name_; } 1828 get { return name_; }
2004 set { 1829 set {
2005 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1830 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2006 } 1831 }
2007 } 1832 }
2008 1833
2009 /// <summary>Field number for the "value" field.</summary> 1834 /// <summary>Field number for the "value" field.</summary>
2010 public const int ValueFieldNumber = 2; 1835 public const int ValueFieldNumber = 2;
2011 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En umValueDescriptorProto> _repeated_value_codec 1836 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En umValueDescriptorProto> _repeated_value_codec
2012 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumV alueDescriptorProto.Parser); 1837 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumV alueDescriptorProto.Parser);
2013 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumV alueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.EnumValueDescriptorProto>(); 1838 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumV alueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Ref lection.EnumValueDescriptorProto>();
2014 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2015 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescri ptorProto> Value { 1839 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescri ptorProto> Value {
2016 get { return value_; } 1840 get { return value_; }
2017 } 1841 }
2018 1842
2019 /// <summary>Field number for the "options" field.</summary> 1843 /// <summary>Field number for the "options" field.</summary>
2020 public const int OptionsFieldNumber = 3; 1844 public const int OptionsFieldNumber = 3;
2021 private global::Google.Protobuf.Reflection.EnumOptions options_; 1845 private global::Google.Protobuf.Reflection.EnumOptions options_;
2022 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2023 public global::Google.Protobuf.Reflection.EnumOptions Options { 1846 public global::Google.Protobuf.Reflection.EnumOptions Options {
2024 get { return options_; } 1847 get { return options_; }
2025 set { 1848 set {
2026 options_ = value; 1849 options_ = value;
2027 } 1850 }
2028 } 1851 }
2029 1852
2030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2031 public override bool Equals(object other) { 1853 public override bool Equals(object other) {
2032 return Equals(other as EnumDescriptorProto); 1854 return Equals(other as EnumDescriptorProto);
2033 } 1855 }
2034 1856
2035 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2036 public bool Equals(EnumDescriptorProto other) { 1857 public bool Equals(EnumDescriptorProto other) {
2037 if (ReferenceEquals(other, null)) { 1858 if (ReferenceEquals(other, null)) {
2038 return false; 1859 return false;
2039 } 1860 }
2040 if (ReferenceEquals(other, this)) { 1861 if (ReferenceEquals(other, this)) {
2041 return true; 1862 return true;
2042 } 1863 }
2043 if (Name != other.Name) return false; 1864 if (Name != other.Name) return false;
2044 if(!value_.Equals(other.value_)) return false; 1865 if(!value_.Equals(other.value_)) return false;
2045 if (!object.Equals(Options, other.Options)) return false; 1866 if (!object.Equals(Options, other.Options)) return false;
2046 return true; 1867 return true;
2047 } 1868 }
2048 1869
2049 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2050 public override int GetHashCode() { 1870 public override int GetHashCode() {
2051 int hash = 1; 1871 int hash = 1;
2052 if (Name.Length != 0) hash ^= Name.GetHashCode(); 1872 if (Name.Length != 0) hash ^= Name.GetHashCode();
2053 hash ^= value_.GetHashCode(); 1873 hash ^= value_.GetHashCode();
2054 if (options_ != null) hash ^= Options.GetHashCode(); 1874 if (options_ != null) hash ^= Options.GetHashCode();
2055 return hash; 1875 return hash;
2056 } 1876 }
2057 1877
2058 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2059 public override string ToString() { 1878 public override string ToString() {
2060 return pb::JsonFormatter.ToDiagnosticString(this); 1879 return pb::JsonFormatter.ToDiagnosticString(this);
2061 } 1880 }
2062 1881
2063 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2064 public void WriteTo(pb::CodedOutputStream output) { 1882 public void WriteTo(pb::CodedOutputStream output) {
2065 if (Name.Length != 0) { 1883 if (Name.Length != 0) {
2066 output.WriteRawTag(10); 1884 output.WriteRawTag(10);
2067 output.WriteString(Name); 1885 output.WriteString(Name);
2068 } 1886 }
2069 value_.WriteTo(output, _repeated_value_codec); 1887 value_.WriteTo(output, _repeated_value_codec);
2070 if (options_ != null) { 1888 if (options_ != null) {
2071 output.WriteRawTag(26); 1889 output.WriteRawTag(26);
2072 output.WriteMessage(Options); 1890 output.WriteMessage(Options);
2073 } 1891 }
2074 } 1892 }
2075 1893
2076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2077 public int CalculateSize() { 1894 public int CalculateSize() {
2078 int size = 0; 1895 int size = 0;
2079 if (Name.Length != 0) { 1896 if (Name.Length != 0) {
2080 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 1897 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2081 } 1898 }
2082 size += value_.CalculateSize(_repeated_value_codec); 1899 size += value_.CalculateSize(_repeated_value_codec);
2083 if (options_ != null) { 1900 if (options_ != null) {
2084 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 1901 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
2085 } 1902 }
2086 return size; 1903 return size;
2087 } 1904 }
2088 1905
2089 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2090 public void MergeFrom(EnumDescriptorProto other) { 1906 public void MergeFrom(EnumDescriptorProto other) {
2091 if (other == null) { 1907 if (other == null) {
2092 return; 1908 return;
2093 } 1909 }
2094 if (other.Name.Length != 0) { 1910 if (other.Name.Length != 0) {
2095 Name = other.Name; 1911 Name = other.Name;
2096 } 1912 }
2097 value_.Add(other.value_); 1913 value_.Add(other.value_);
2098 if (other.options_ != null) { 1914 if (other.options_ != null) {
2099 if (options_ == null) { 1915 if (options_ == null) {
2100 options_ = new global::Google.Protobuf.Reflection.EnumOptions(); 1916 options_ = new global::Google.Protobuf.Reflection.EnumOptions();
2101 } 1917 }
2102 Options.MergeFrom(other.Options); 1918 Options.MergeFrom(other.Options);
2103 } 1919 }
2104 } 1920 }
2105 1921
2106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2107 public void MergeFrom(pb::CodedInputStream input) { 1922 public void MergeFrom(pb::CodedInputStream input) {
2108 uint tag; 1923 uint tag;
2109 while ((tag = input.ReadTag()) != 0) { 1924 while ((tag = input.ReadTag()) != 0) {
2110 switch(tag) { 1925 switch(tag) {
2111 default: 1926 default:
2112 input.SkipLastField(); 1927 input.SkipLastField();
2113 break; 1928 break;
2114 case 10: { 1929 case 10: {
2115 Name = input.ReadString(); 1930 Name = input.ReadString();
2116 break; 1931 break;
2117 } 1932 }
2118 case 18: { 1933 case 18: {
2119 value_.AddEntriesFrom(input, _repeated_value_codec); 1934 value_.AddEntriesFrom(input, _repeated_value_codec);
2120 break; 1935 break;
2121 } 1936 }
2122 case 26: { 1937 case 26: {
2123 if (options_ == null) { 1938 if (options_ == null) {
2124 options_ = new global::Google.Protobuf.Reflection.EnumOptions(); 1939 options_ = new global::Google.Protobuf.Reflection.EnumOptions();
2125 } 1940 }
2126 input.ReadMessage(options_); 1941 input.ReadMessage(options_);
2127 break; 1942 break;
2128 } 1943 }
2129 } 1944 }
2130 } 1945 }
2131 } 1946 }
2132 1947
2133 } 1948 }
2134 1949
2135 /// <summary> 1950 /// <summary>
2136 /// Describes a value within an enum. 1951 /// Describes a value within an enum.
2137 /// </summary> 1952 /// </summary>
1953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2138 internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValu eDescriptorProto> { 1954 internal sealed partial class EnumValueDescriptorProto : pb::IMessage<EnumValu eDescriptorProto> {
2139 private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorP roto()); 1955 private static readonly pb::MessageParser<EnumValueDescriptorProto> _parser = new pb::MessageParser<EnumValueDescriptorProto>(() => new EnumValueDescriptorP roto());
2140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2141 public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { ret urn _parser; } } 1956 public static pb::MessageParser<EnumValueDescriptorProto> Parser { get { ret urn _parser; } }
2142 1957
2143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2144 public static pbr::MessageDescriptor Descriptor { 1958 public static pbr::MessageDescriptor Descriptor {
2145 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[6]; } 1959 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[6]; }
2146 } 1960 }
2147 1961
2148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2149 pbr::MessageDescriptor pb::IMessage.Descriptor { 1962 pbr::MessageDescriptor pb::IMessage.Descriptor {
2150 get { return Descriptor; } 1963 get { return Descriptor; }
2151 } 1964 }
2152 1965
2153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2154 public EnumValueDescriptorProto() { 1966 public EnumValueDescriptorProto() {
2155 OnConstruction(); 1967 OnConstruction();
2156 } 1968 }
2157 1969
2158 partial void OnConstruction(); 1970 partial void OnConstruction();
2159 1971
2160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2161 public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() { 1972 public EnumValueDescriptorProto(EnumValueDescriptorProto other) : this() {
2162 name_ = other.name_; 1973 name_ = other.name_;
2163 number_ = other.number_; 1974 number_ = other.number_;
2164 Options = other.options_ != null ? other.Options.Clone() : null; 1975 Options = other.options_ != null ? other.Options.Clone() : null;
2165 } 1976 }
2166 1977
2167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2168 public EnumValueDescriptorProto Clone() { 1978 public EnumValueDescriptorProto Clone() {
2169 return new EnumValueDescriptorProto(this); 1979 return new EnumValueDescriptorProto(this);
2170 } 1980 }
2171 1981
2172 /// <summary>Field number for the "name" field.</summary> 1982 /// <summary>Field number for the "name" field.</summary>
2173 public const int NameFieldNumber = 1; 1983 public const int NameFieldNumber = 1;
2174 private string name_ = ""; 1984 private string name_ = "";
2175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2176 public string Name { 1985 public string Name {
2177 get { return name_; } 1986 get { return name_; }
2178 set { 1987 set {
2179 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 1988 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2180 } 1989 }
2181 } 1990 }
2182 1991
2183 /// <summary>Field number for the "number" field.</summary> 1992 /// <summary>Field number for the "number" field.</summary>
2184 public const int NumberFieldNumber = 2; 1993 public const int NumberFieldNumber = 2;
2185 private int number_; 1994 private int number_;
2186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2187 public int Number { 1995 public int Number {
2188 get { return number_; } 1996 get { return number_; }
2189 set { 1997 set {
2190 number_ = value; 1998 number_ = value;
2191 } 1999 }
2192 } 2000 }
2193 2001
2194 /// <summary>Field number for the "options" field.</summary> 2002 /// <summary>Field number for the "options" field.</summary>
2195 public const int OptionsFieldNumber = 3; 2003 public const int OptionsFieldNumber = 3;
2196 private global::Google.Protobuf.Reflection.EnumValueOptions options_; 2004 private global::Google.Protobuf.Reflection.EnumValueOptions options_;
2197 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2198 public global::Google.Protobuf.Reflection.EnumValueOptions Options { 2005 public global::Google.Protobuf.Reflection.EnumValueOptions Options {
2199 get { return options_; } 2006 get { return options_; }
2200 set { 2007 set {
2201 options_ = value; 2008 options_ = value;
2202 } 2009 }
2203 } 2010 }
2204 2011
2205 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2206 public override bool Equals(object other) { 2012 public override bool Equals(object other) {
2207 return Equals(other as EnumValueDescriptorProto); 2013 return Equals(other as EnumValueDescriptorProto);
2208 } 2014 }
2209 2015
2210 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2211 public bool Equals(EnumValueDescriptorProto other) { 2016 public bool Equals(EnumValueDescriptorProto other) {
2212 if (ReferenceEquals(other, null)) { 2017 if (ReferenceEquals(other, null)) {
2213 return false; 2018 return false;
2214 } 2019 }
2215 if (ReferenceEquals(other, this)) { 2020 if (ReferenceEquals(other, this)) {
2216 return true; 2021 return true;
2217 } 2022 }
2218 if (Name != other.Name) return false; 2023 if (Name != other.Name) return false;
2219 if (Number != other.Number) return false; 2024 if (Number != other.Number) return false;
2220 if (!object.Equals(Options, other.Options)) return false; 2025 if (!object.Equals(Options, other.Options)) return false;
2221 return true; 2026 return true;
2222 } 2027 }
2223 2028
2224 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2225 public override int GetHashCode() { 2029 public override int GetHashCode() {
2226 int hash = 1; 2030 int hash = 1;
2227 if (Name.Length != 0) hash ^= Name.GetHashCode(); 2031 if (Name.Length != 0) hash ^= Name.GetHashCode();
2228 if (Number != 0) hash ^= Number.GetHashCode(); 2032 if (Number != 0) hash ^= Number.GetHashCode();
2229 if (options_ != null) hash ^= Options.GetHashCode(); 2033 if (options_ != null) hash ^= Options.GetHashCode();
2230 return hash; 2034 return hash;
2231 } 2035 }
2232 2036
2233 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2234 public override string ToString() { 2037 public override string ToString() {
2235 return pb::JsonFormatter.ToDiagnosticString(this); 2038 return pb::JsonFormatter.ToDiagnosticString(this);
2236 } 2039 }
2237 2040
2238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2239 public void WriteTo(pb::CodedOutputStream output) { 2041 public void WriteTo(pb::CodedOutputStream output) {
2240 if (Name.Length != 0) { 2042 if (Name.Length != 0) {
2241 output.WriteRawTag(10); 2043 output.WriteRawTag(10);
2242 output.WriteString(Name); 2044 output.WriteString(Name);
2243 } 2045 }
2244 if (Number != 0) { 2046 if (Number != 0) {
2245 output.WriteRawTag(16); 2047 output.WriteRawTag(16);
2246 output.WriteInt32(Number); 2048 output.WriteInt32(Number);
2247 } 2049 }
2248 if (options_ != null) { 2050 if (options_ != null) {
2249 output.WriteRawTag(26); 2051 output.WriteRawTag(26);
2250 output.WriteMessage(Options); 2052 output.WriteMessage(Options);
2251 } 2053 }
2252 } 2054 }
2253 2055
2254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2255 public int CalculateSize() { 2056 public int CalculateSize() {
2256 int size = 0; 2057 int size = 0;
2257 if (Name.Length != 0) { 2058 if (Name.Length != 0) {
2258 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 2059 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2259 } 2060 }
2260 if (Number != 0) { 2061 if (Number != 0) {
2261 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); 2062 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number);
2262 } 2063 }
2263 if (options_ != null) { 2064 if (options_ != null) {
2264 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 2065 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
2265 } 2066 }
2266 return size; 2067 return size;
2267 } 2068 }
2268 2069
2269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2270 public void MergeFrom(EnumValueDescriptorProto other) { 2070 public void MergeFrom(EnumValueDescriptorProto other) {
2271 if (other == null) { 2071 if (other == null) {
2272 return; 2072 return;
2273 } 2073 }
2274 if (other.Name.Length != 0) { 2074 if (other.Name.Length != 0) {
2275 Name = other.Name; 2075 Name = other.Name;
2276 } 2076 }
2277 if (other.Number != 0) { 2077 if (other.Number != 0) {
2278 Number = other.Number; 2078 Number = other.Number;
2279 } 2079 }
2280 if (other.options_ != null) { 2080 if (other.options_ != null) {
2281 if (options_ == null) { 2081 if (options_ == null) {
2282 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions(); 2082 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions();
2283 } 2083 }
2284 Options.MergeFrom(other.Options); 2084 Options.MergeFrom(other.Options);
2285 } 2085 }
2286 } 2086 }
2287 2087
2288 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2289 public void MergeFrom(pb::CodedInputStream input) { 2088 public void MergeFrom(pb::CodedInputStream input) {
2290 uint tag; 2089 uint tag;
2291 while ((tag = input.ReadTag()) != 0) { 2090 while ((tag = input.ReadTag()) != 0) {
2292 switch(tag) { 2091 switch(tag) {
2293 default: 2092 default:
2294 input.SkipLastField(); 2093 input.SkipLastField();
2295 break; 2094 break;
2296 case 10: { 2095 case 10: {
2297 Name = input.ReadString(); 2096 Name = input.ReadString();
2298 break; 2097 break;
2299 } 2098 }
2300 case 16: { 2099 case 16: {
2301 Number = input.ReadInt32(); 2100 Number = input.ReadInt32();
2302 break; 2101 break;
2303 } 2102 }
2304 case 26: { 2103 case 26: {
2305 if (options_ == null) { 2104 if (options_ == null) {
2306 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions (); 2105 options_ = new global::Google.Protobuf.Reflection.EnumValueOptions ();
2307 } 2106 }
2308 input.ReadMessage(options_); 2107 input.ReadMessage(options_);
2309 break; 2108 break;
2310 } 2109 }
2311 } 2110 }
2312 } 2111 }
2313 } 2112 }
2314 2113
2315 } 2114 }
2316 2115
2317 /// <summary> 2116 /// <summary>
2318 /// Describes a service. 2117 /// Describes a service.
2319 /// </summary> 2118 /// </summary>
2119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2320 internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDes criptorProto> { 2120 internal sealed partial class ServiceDescriptorProto : pb::IMessage<ServiceDes criptorProto> {
2321 private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto() ); 2121 private static readonly pb::MessageParser<ServiceDescriptorProto> _parser = new pb::MessageParser<ServiceDescriptorProto>(() => new ServiceDescriptorProto() );
2322 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2323 public static pb::MessageParser<ServiceDescriptorProto> Parser { get { retur n _parser; } } 2122 public static pb::MessageParser<ServiceDescriptorProto> Parser { get { retur n _parser; } }
2324 2123
2325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2326 public static pbr::MessageDescriptor Descriptor { 2124 public static pbr::MessageDescriptor Descriptor {
2327 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[7]; } 2125 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[7]; }
2328 } 2126 }
2329 2127
2330 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2331 pbr::MessageDescriptor pb::IMessage.Descriptor { 2128 pbr::MessageDescriptor pb::IMessage.Descriptor {
2332 get { return Descriptor; } 2129 get { return Descriptor; }
2333 } 2130 }
2334 2131
2335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2336 public ServiceDescriptorProto() { 2132 public ServiceDescriptorProto() {
2337 OnConstruction(); 2133 OnConstruction();
2338 } 2134 }
2339 2135
2340 partial void OnConstruction(); 2136 partial void OnConstruction();
2341 2137
2342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2343 public ServiceDescriptorProto(ServiceDescriptorProto other) : this() { 2138 public ServiceDescriptorProto(ServiceDescriptorProto other) : this() {
2344 name_ = other.name_; 2139 name_ = other.name_;
2345 method_ = other.method_.Clone(); 2140 method_ = other.method_.Clone();
2346 Options = other.options_ != null ? other.Options.Clone() : null; 2141 Options = other.options_ != null ? other.Options.Clone() : null;
2347 } 2142 }
2348 2143
2349 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2350 public ServiceDescriptorProto Clone() { 2144 public ServiceDescriptorProto Clone() {
2351 return new ServiceDescriptorProto(this); 2145 return new ServiceDescriptorProto(this);
2352 } 2146 }
2353 2147
2354 /// <summary>Field number for the "name" field.</summary> 2148 /// <summary>Field number for the "name" field.</summary>
2355 public const int NameFieldNumber = 1; 2149 public const int NameFieldNumber = 1;
2356 private string name_ = ""; 2150 private string name_ = "";
2357 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2358 public string Name { 2151 public string Name {
2359 get { return name_; } 2152 get { return name_; }
2360 set { 2153 set {
2361 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2154 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2362 } 2155 }
2363 } 2156 }
2364 2157
2365 /// <summary>Field number for the "method" field.</summary> 2158 /// <summary>Field number for the "method" field.</summary>
2366 public const int MethodFieldNumber = 2; 2159 public const int MethodFieldNumber = 2;
2367 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Me thodDescriptorProto> _repeated_method_codec 2160 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Me thodDescriptorProto> _repeated_method_codec
2368 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Metho dDescriptorProto.Parser); 2161 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Metho dDescriptorProto.Parser);
2369 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Metho dDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Refle ction.MethodDescriptorProto>(); 2162 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Metho dDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Refle ction.MethodDescriptorProto>();
2370 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2371 public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescripto rProto> Method { 2163 public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescripto rProto> Method {
2372 get { return method_; } 2164 get { return method_; }
2373 } 2165 }
2374 2166
2375 /// <summary>Field number for the "options" field.</summary> 2167 /// <summary>Field number for the "options" field.</summary>
2376 public const int OptionsFieldNumber = 3; 2168 public const int OptionsFieldNumber = 3;
2377 private global::Google.Protobuf.Reflection.ServiceOptions options_; 2169 private global::Google.Protobuf.Reflection.ServiceOptions options_;
2378 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2379 public global::Google.Protobuf.Reflection.ServiceOptions Options { 2170 public global::Google.Protobuf.Reflection.ServiceOptions Options {
2380 get { return options_; } 2171 get { return options_; }
2381 set { 2172 set {
2382 options_ = value; 2173 options_ = value;
2383 } 2174 }
2384 } 2175 }
2385 2176
2386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2387 public override bool Equals(object other) { 2177 public override bool Equals(object other) {
2388 return Equals(other as ServiceDescriptorProto); 2178 return Equals(other as ServiceDescriptorProto);
2389 } 2179 }
2390 2180
2391 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2392 public bool Equals(ServiceDescriptorProto other) { 2181 public bool Equals(ServiceDescriptorProto other) {
2393 if (ReferenceEquals(other, null)) { 2182 if (ReferenceEquals(other, null)) {
2394 return false; 2183 return false;
2395 } 2184 }
2396 if (ReferenceEquals(other, this)) { 2185 if (ReferenceEquals(other, this)) {
2397 return true; 2186 return true;
2398 } 2187 }
2399 if (Name != other.Name) return false; 2188 if (Name != other.Name) return false;
2400 if(!method_.Equals(other.method_)) return false; 2189 if(!method_.Equals(other.method_)) return false;
2401 if (!object.Equals(Options, other.Options)) return false; 2190 if (!object.Equals(Options, other.Options)) return false;
2402 return true; 2191 return true;
2403 } 2192 }
2404 2193
2405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2406 public override int GetHashCode() { 2194 public override int GetHashCode() {
2407 int hash = 1; 2195 int hash = 1;
2408 if (Name.Length != 0) hash ^= Name.GetHashCode(); 2196 if (Name.Length != 0) hash ^= Name.GetHashCode();
2409 hash ^= method_.GetHashCode(); 2197 hash ^= method_.GetHashCode();
2410 if (options_ != null) hash ^= Options.GetHashCode(); 2198 if (options_ != null) hash ^= Options.GetHashCode();
2411 return hash; 2199 return hash;
2412 } 2200 }
2413 2201
2414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2415 public override string ToString() { 2202 public override string ToString() {
2416 return pb::JsonFormatter.ToDiagnosticString(this); 2203 return pb::JsonFormatter.ToDiagnosticString(this);
2417 } 2204 }
2418 2205
2419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2420 public void WriteTo(pb::CodedOutputStream output) { 2206 public void WriteTo(pb::CodedOutputStream output) {
2421 if (Name.Length != 0) { 2207 if (Name.Length != 0) {
2422 output.WriteRawTag(10); 2208 output.WriteRawTag(10);
2423 output.WriteString(Name); 2209 output.WriteString(Name);
2424 } 2210 }
2425 method_.WriteTo(output, _repeated_method_codec); 2211 method_.WriteTo(output, _repeated_method_codec);
2426 if (options_ != null) { 2212 if (options_ != null) {
2427 output.WriteRawTag(26); 2213 output.WriteRawTag(26);
2428 output.WriteMessage(Options); 2214 output.WriteMessage(Options);
2429 } 2215 }
2430 } 2216 }
2431 2217
2432 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2433 public int CalculateSize() { 2218 public int CalculateSize() {
2434 int size = 0; 2219 int size = 0;
2435 if (Name.Length != 0) { 2220 if (Name.Length != 0) {
2436 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 2221 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2437 } 2222 }
2438 size += method_.CalculateSize(_repeated_method_codec); 2223 size += method_.CalculateSize(_repeated_method_codec);
2439 if (options_ != null) { 2224 if (options_ != null) {
2440 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 2225 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
2441 } 2226 }
2442 return size; 2227 return size;
2443 } 2228 }
2444 2229
2445 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2446 public void MergeFrom(ServiceDescriptorProto other) { 2230 public void MergeFrom(ServiceDescriptorProto other) {
2447 if (other == null) { 2231 if (other == null) {
2448 return; 2232 return;
2449 } 2233 }
2450 if (other.Name.Length != 0) { 2234 if (other.Name.Length != 0) {
2451 Name = other.Name; 2235 Name = other.Name;
2452 } 2236 }
2453 method_.Add(other.method_); 2237 method_.Add(other.method_);
2454 if (other.options_ != null) { 2238 if (other.options_ != null) {
2455 if (options_ == null) { 2239 if (options_ == null) {
2456 options_ = new global::Google.Protobuf.Reflection.ServiceOptions(); 2240 options_ = new global::Google.Protobuf.Reflection.ServiceOptions();
2457 } 2241 }
2458 Options.MergeFrom(other.Options); 2242 Options.MergeFrom(other.Options);
2459 } 2243 }
2460 } 2244 }
2461 2245
2462 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2463 public void MergeFrom(pb::CodedInputStream input) { 2246 public void MergeFrom(pb::CodedInputStream input) {
2464 uint tag; 2247 uint tag;
2465 while ((tag = input.ReadTag()) != 0) { 2248 while ((tag = input.ReadTag()) != 0) {
2466 switch(tag) { 2249 switch(tag) {
2467 default: 2250 default:
2468 input.SkipLastField(); 2251 input.SkipLastField();
2469 break; 2252 break;
2470 case 10: { 2253 case 10: {
2471 Name = input.ReadString(); 2254 Name = input.ReadString();
2472 break; 2255 break;
2473 } 2256 }
2474 case 18: { 2257 case 18: {
2475 method_.AddEntriesFrom(input, _repeated_method_codec); 2258 method_.AddEntriesFrom(input, _repeated_method_codec);
2476 break; 2259 break;
2477 } 2260 }
2478 case 26: { 2261 case 26: {
2479 if (options_ == null) { 2262 if (options_ == null) {
2480 options_ = new global::Google.Protobuf.Reflection.ServiceOptions() ; 2263 options_ = new global::Google.Protobuf.Reflection.ServiceOptions() ;
2481 } 2264 }
2482 input.ReadMessage(options_); 2265 input.ReadMessage(options_);
2483 break; 2266 break;
2484 } 2267 }
2485 } 2268 }
2486 } 2269 }
2487 } 2270 }
2488 2271
2489 } 2272 }
2490 2273
2491 /// <summary> 2274 /// <summary>
2492 /// Describes a method of a service. 2275 /// Describes a method of a service.
2493 /// </summary> 2276 /// </summary>
2277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2494 internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescr iptorProto> { 2278 internal sealed partial class MethodDescriptorProto : pb::IMessage<MethodDescr iptorProto> {
2495 private static readonly pb::MessageParser<MethodDescriptorProto> _parser = n ew pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto()); 2279 private static readonly pb::MessageParser<MethodDescriptorProto> _parser = n ew pb::MessageParser<MethodDescriptorProto>(() => new MethodDescriptorProto());
2496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2497 public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } } 2280 public static pb::MessageParser<MethodDescriptorProto> Parser { get { return _parser; } }
2498 2281
2499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2500 public static pbr::MessageDescriptor Descriptor { 2282 public static pbr::MessageDescriptor Descriptor {
2501 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[8]; } 2283 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[8]; }
2502 } 2284 }
2503 2285
2504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2505 pbr::MessageDescriptor pb::IMessage.Descriptor { 2286 pbr::MessageDescriptor pb::IMessage.Descriptor {
2506 get { return Descriptor; } 2287 get { return Descriptor; }
2507 } 2288 }
2508 2289
2509 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2510 public MethodDescriptorProto() { 2290 public MethodDescriptorProto() {
2511 OnConstruction(); 2291 OnConstruction();
2512 } 2292 }
2513 2293
2514 partial void OnConstruction(); 2294 partial void OnConstruction();
2515 2295
2516 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2517 public MethodDescriptorProto(MethodDescriptorProto other) : this() { 2296 public MethodDescriptorProto(MethodDescriptorProto other) : this() {
2518 name_ = other.name_; 2297 name_ = other.name_;
2519 inputType_ = other.inputType_; 2298 inputType_ = other.inputType_;
2520 outputType_ = other.outputType_; 2299 outputType_ = other.outputType_;
2521 Options = other.options_ != null ? other.Options.Clone() : null; 2300 Options = other.options_ != null ? other.Options.Clone() : null;
2522 clientStreaming_ = other.clientStreaming_; 2301 clientStreaming_ = other.clientStreaming_;
2523 serverStreaming_ = other.serverStreaming_; 2302 serverStreaming_ = other.serverStreaming_;
2524 } 2303 }
2525 2304
2526 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2527 public MethodDescriptorProto Clone() { 2305 public MethodDescriptorProto Clone() {
2528 return new MethodDescriptorProto(this); 2306 return new MethodDescriptorProto(this);
2529 } 2307 }
2530 2308
2531 /// <summary>Field number for the "name" field.</summary> 2309 /// <summary>Field number for the "name" field.</summary>
2532 public const int NameFieldNumber = 1; 2310 public const int NameFieldNumber = 1;
2533 private string name_ = ""; 2311 private string name_ = "";
2534 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2535 public string Name { 2312 public string Name {
2536 get { return name_; } 2313 get { return name_; }
2537 set { 2314 set {
2538 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2315 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2539 } 2316 }
2540 } 2317 }
2541 2318
2542 /// <summary>Field number for the "input_type" field.</summary> 2319 /// <summary>Field number for the "input_type" field.</summary>
2543 public const int InputTypeFieldNumber = 2; 2320 public const int InputTypeFieldNumber = 2;
2544 private string inputType_ = ""; 2321 private string inputType_ = "";
2545 /// <summary> 2322 /// <summary>
2546 /// Input and output type names. These are resolved in the same way as 2323 /// Input and output type names. These are resolved in the same way as
2547 /// FieldDescriptorProto.type_name, but must refer to a message type. 2324 /// FieldDescriptorProto.type_name, but must refer to a message type.
2548 /// </summary> 2325 /// </summary>
2549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2550 public string InputType { 2326 public string InputType {
2551 get { return inputType_; } 2327 get { return inputType_; }
2552 set { 2328 set {
2553 inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2329 inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2554 } 2330 }
2555 } 2331 }
2556 2332
2557 /// <summary>Field number for the "output_type" field.</summary> 2333 /// <summary>Field number for the "output_type" field.</summary>
2558 public const int OutputTypeFieldNumber = 3; 2334 public const int OutputTypeFieldNumber = 3;
2559 private string outputType_ = ""; 2335 private string outputType_ = "";
2560 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2561 public string OutputType { 2336 public string OutputType {
2562 get { return outputType_; } 2337 get { return outputType_; }
2563 set { 2338 set {
2564 outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2339 outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2565 } 2340 }
2566 } 2341 }
2567 2342
2568 /// <summary>Field number for the "options" field.</summary> 2343 /// <summary>Field number for the "options" field.</summary>
2569 public const int OptionsFieldNumber = 4; 2344 public const int OptionsFieldNumber = 4;
2570 private global::Google.Protobuf.Reflection.MethodOptions options_; 2345 private global::Google.Protobuf.Reflection.MethodOptions options_;
2571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2572 public global::Google.Protobuf.Reflection.MethodOptions Options { 2346 public global::Google.Protobuf.Reflection.MethodOptions Options {
2573 get { return options_; } 2347 get { return options_; }
2574 set { 2348 set {
2575 options_ = value; 2349 options_ = value;
2576 } 2350 }
2577 } 2351 }
2578 2352
2579 /// <summary>Field number for the "client_streaming" field.</summary> 2353 /// <summary>Field number for the "client_streaming" field.</summary>
2580 public const int ClientStreamingFieldNumber = 5; 2354 public const int ClientStreamingFieldNumber = 5;
2581 private bool clientStreaming_; 2355 private bool clientStreaming_;
2582 /// <summary> 2356 /// <summary>
2583 /// Identifies if client streams multiple client messages 2357 /// Identifies if client streams multiple client messages
2584 /// </summary> 2358 /// </summary>
2585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2586 public bool ClientStreaming { 2359 public bool ClientStreaming {
2587 get { return clientStreaming_; } 2360 get { return clientStreaming_; }
2588 set { 2361 set {
2589 clientStreaming_ = value; 2362 clientStreaming_ = value;
2590 } 2363 }
2591 } 2364 }
2592 2365
2593 /// <summary>Field number for the "server_streaming" field.</summary> 2366 /// <summary>Field number for the "server_streaming" field.</summary>
2594 public const int ServerStreamingFieldNumber = 6; 2367 public const int ServerStreamingFieldNumber = 6;
2595 private bool serverStreaming_; 2368 private bool serverStreaming_;
2596 /// <summary> 2369 /// <summary>
2597 /// Identifies if server streams multiple server messages 2370 /// Identifies if server streams multiple server messages
2598 /// </summary> 2371 /// </summary>
2599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2600 public bool ServerStreaming { 2372 public bool ServerStreaming {
2601 get { return serverStreaming_; } 2373 get { return serverStreaming_; }
2602 set { 2374 set {
2603 serverStreaming_ = value; 2375 serverStreaming_ = value;
2604 } 2376 }
2605 } 2377 }
2606 2378
2607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2608 public override bool Equals(object other) { 2379 public override bool Equals(object other) {
2609 return Equals(other as MethodDescriptorProto); 2380 return Equals(other as MethodDescriptorProto);
2610 } 2381 }
2611 2382
2612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2613 public bool Equals(MethodDescriptorProto other) { 2383 public bool Equals(MethodDescriptorProto other) {
2614 if (ReferenceEquals(other, null)) { 2384 if (ReferenceEquals(other, null)) {
2615 return false; 2385 return false;
2616 } 2386 }
2617 if (ReferenceEquals(other, this)) { 2387 if (ReferenceEquals(other, this)) {
2618 return true; 2388 return true;
2619 } 2389 }
2620 if (Name != other.Name) return false; 2390 if (Name != other.Name) return false;
2621 if (InputType != other.InputType) return false; 2391 if (InputType != other.InputType) return false;
2622 if (OutputType != other.OutputType) return false; 2392 if (OutputType != other.OutputType) return false;
2623 if (!object.Equals(Options, other.Options)) return false; 2393 if (!object.Equals(Options, other.Options)) return false;
2624 if (ClientStreaming != other.ClientStreaming) return false; 2394 if (ClientStreaming != other.ClientStreaming) return false;
2625 if (ServerStreaming != other.ServerStreaming) return false; 2395 if (ServerStreaming != other.ServerStreaming) return false;
2626 return true; 2396 return true;
2627 } 2397 }
2628 2398
2629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2630 public override int GetHashCode() { 2399 public override int GetHashCode() {
2631 int hash = 1; 2400 int hash = 1;
2632 if (Name.Length != 0) hash ^= Name.GetHashCode(); 2401 if (Name.Length != 0) hash ^= Name.GetHashCode();
2633 if (InputType.Length != 0) hash ^= InputType.GetHashCode(); 2402 if (InputType.Length != 0) hash ^= InputType.GetHashCode();
2634 if (OutputType.Length != 0) hash ^= OutputType.GetHashCode(); 2403 if (OutputType.Length != 0) hash ^= OutputType.GetHashCode();
2635 if (options_ != null) hash ^= Options.GetHashCode(); 2404 if (options_ != null) hash ^= Options.GetHashCode();
2636 if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode(); 2405 if (ClientStreaming != false) hash ^= ClientStreaming.GetHashCode();
2637 if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode(); 2406 if (ServerStreaming != false) hash ^= ServerStreaming.GetHashCode();
2638 return hash; 2407 return hash;
2639 } 2408 }
2640 2409
2641 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2642 public override string ToString() { 2410 public override string ToString() {
2643 return pb::JsonFormatter.ToDiagnosticString(this); 2411 return pb::JsonFormatter.ToDiagnosticString(this);
2644 } 2412 }
2645 2413
2646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2647 public void WriteTo(pb::CodedOutputStream output) { 2414 public void WriteTo(pb::CodedOutputStream output) {
2648 if (Name.Length != 0) { 2415 if (Name.Length != 0) {
2649 output.WriteRawTag(10); 2416 output.WriteRawTag(10);
2650 output.WriteString(Name); 2417 output.WriteString(Name);
2651 } 2418 }
2652 if (InputType.Length != 0) { 2419 if (InputType.Length != 0) {
2653 output.WriteRawTag(18); 2420 output.WriteRawTag(18);
2654 output.WriteString(InputType); 2421 output.WriteString(InputType);
2655 } 2422 }
2656 if (OutputType.Length != 0) { 2423 if (OutputType.Length != 0) {
2657 output.WriteRawTag(26); 2424 output.WriteRawTag(26);
2658 output.WriteString(OutputType); 2425 output.WriteString(OutputType);
2659 } 2426 }
2660 if (options_ != null) { 2427 if (options_ != null) {
2661 output.WriteRawTag(34); 2428 output.WriteRawTag(34);
2662 output.WriteMessage(Options); 2429 output.WriteMessage(Options);
2663 } 2430 }
2664 if (ClientStreaming != false) { 2431 if (ClientStreaming != false) {
2665 output.WriteRawTag(40); 2432 output.WriteRawTag(40);
2666 output.WriteBool(ClientStreaming); 2433 output.WriteBool(ClientStreaming);
2667 } 2434 }
2668 if (ServerStreaming != false) { 2435 if (ServerStreaming != false) {
2669 output.WriteRawTag(48); 2436 output.WriteRawTag(48);
2670 output.WriteBool(ServerStreaming); 2437 output.WriteBool(ServerStreaming);
2671 } 2438 }
2672 } 2439 }
2673 2440
2674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2675 public int CalculateSize() { 2441 public int CalculateSize() {
2676 int size = 0; 2442 int size = 0;
2677 if (Name.Length != 0) { 2443 if (Name.Length != 0) {
2678 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); 2444 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
2679 } 2445 }
2680 if (InputType.Length != 0) { 2446 if (InputType.Length != 0) {
2681 size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType); 2447 size += 1 + pb::CodedOutputStream.ComputeStringSize(InputType);
2682 } 2448 }
2683 if (OutputType.Length != 0) { 2449 if (OutputType.Length != 0) {
2684 size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType); 2450 size += 1 + pb::CodedOutputStream.ComputeStringSize(OutputType);
2685 } 2451 }
2686 if (options_ != null) { 2452 if (options_ != null) {
2687 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options); 2453 size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
2688 } 2454 }
2689 if (ClientStreaming != false) { 2455 if (ClientStreaming != false) {
2690 size += 1 + 1; 2456 size += 1 + 1;
2691 } 2457 }
2692 if (ServerStreaming != false) { 2458 if (ServerStreaming != false) {
2693 size += 1 + 1; 2459 size += 1 + 1;
2694 } 2460 }
2695 return size; 2461 return size;
2696 } 2462 }
2697 2463
2698 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2699 public void MergeFrom(MethodDescriptorProto other) { 2464 public void MergeFrom(MethodDescriptorProto other) {
2700 if (other == null) { 2465 if (other == null) {
2701 return; 2466 return;
2702 } 2467 }
2703 if (other.Name.Length != 0) { 2468 if (other.Name.Length != 0) {
2704 Name = other.Name; 2469 Name = other.Name;
2705 } 2470 }
2706 if (other.InputType.Length != 0) { 2471 if (other.InputType.Length != 0) {
2707 InputType = other.InputType; 2472 InputType = other.InputType;
2708 } 2473 }
2709 if (other.OutputType.Length != 0) { 2474 if (other.OutputType.Length != 0) {
2710 OutputType = other.OutputType; 2475 OutputType = other.OutputType;
2711 } 2476 }
2712 if (other.options_ != null) { 2477 if (other.options_ != null) {
2713 if (options_ == null) { 2478 if (options_ == null) {
2714 options_ = new global::Google.Protobuf.Reflection.MethodOptions(); 2479 options_ = new global::Google.Protobuf.Reflection.MethodOptions();
2715 } 2480 }
2716 Options.MergeFrom(other.Options); 2481 Options.MergeFrom(other.Options);
2717 } 2482 }
2718 if (other.ClientStreaming != false) { 2483 if (other.ClientStreaming != false) {
2719 ClientStreaming = other.ClientStreaming; 2484 ClientStreaming = other.ClientStreaming;
2720 } 2485 }
2721 if (other.ServerStreaming != false) { 2486 if (other.ServerStreaming != false) {
2722 ServerStreaming = other.ServerStreaming; 2487 ServerStreaming = other.ServerStreaming;
2723 } 2488 }
2724 } 2489 }
2725 2490
2726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2727 public void MergeFrom(pb::CodedInputStream input) { 2491 public void MergeFrom(pb::CodedInputStream input) {
2728 uint tag; 2492 uint tag;
2729 while ((tag = input.ReadTag()) != 0) { 2493 while ((tag = input.ReadTag()) != 0) {
2730 switch(tag) { 2494 switch(tag) {
2731 default: 2495 default:
2732 input.SkipLastField(); 2496 input.SkipLastField();
2733 break; 2497 break;
2734 case 10: { 2498 case 10: {
2735 Name = input.ReadString(); 2499 Name = input.ReadString();
2736 break; 2500 break;
(...skipping 20 matching lines...) Expand all
2757 case 48: { 2521 case 48: {
2758 ServerStreaming = input.ReadBool(); 2522 ServerStreaming = input.ReadBool();
2759 break; 2523 break;
2760 } 2524 }
2761 } 2525 }
2762 } 2526 }
2763 } 2527 }
2764 2528
2765 } 2529 }
2766 2530
2531 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
2767 internal sealed partial class FileOptions : pb::IMessage<FileOptions> { 2532 internal sealed partial class FileOptions : pb::IMessage<FileOptions> {
2768 private static readonly pb::MessageParser<FileOptions> _parser = new pb::Mes sageParser<FileOptions>(() => new FileOptions()); 2533 private static readonly pb::MessageParser<FileOptions> _parser = new pb::Mes sageParser<FileOptions>(() => new FileOptions());
2769 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2770 public static pb::MessageParser<FileOptions> Parser { get { return _parser; } } 2534 public static pb::MessageParser<FileOptions> Parser { get { return _parser; } }
2771 2535
2772 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2773 public static pbr::MessageDescriptor Descriptor { 2536 public static pbr::MessageDescriptor Descriptor {
2774 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[9]; } 2537 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[9]; }
2775 } 2538 }
2776 2539
2777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2778 pbr::MessageDescriptor pb::IMessage.Descriptor { 2540 pbr::MessageDescriptor pb::IMessage.Descriptor {
2779 get { return Descriptor; } 2541 get { return Descriptor; }
2780 } 2542 }
2781 2543
2782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2783 public FileOptions() { 2544 public FileOptions() {
2784 OnConstruction(); 2545 OnConstruction();
2785 } 2546 }
2786 2547
2787 partial void OnConstruction(); 2548 partial void OnConstruction();
2788 2549
2789 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2790 public FileOptions(FileOptions other) : this() { 2550 public FileOptions(FileOptions other) : this() {
2791 javaPackage_ = other.javaPackage_; 2551 javaPackage_ = other.javaPackage_;
2792 javaOuterClassname_ = other.javaOuterClassname_; 2552 javaOuterClassname_ = other.javaOuterClassname_;
2793 javaMultipleFiles_ = other.javaMultipleFiles_; 2553 javaMultipleFiles_ = other.javaMultipleFiles_;
2794 javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_; 2554 javaGenerateEqualsAndHash_ = other.javaGenerateEqualsAndHash_;
2795 javaStringCheckUtf8_ = other.javaStringCheckUtf8_; 2555 javaStringCheckUtf8_ = other.javaStringCheckUtf8_;
2796 optimizeFor_ = other.optimizeFor_; 2556 optimizeFor_ = other.optimizeFor_;
2797 goPackage_ = other.goPackage_; 2557 goPackage_ = other.goPackage_;
2798 ccGenericServices_ = other.ccGenericServices_; 2558 ccGenericServices_ = other.ccGenericServices_;
2799 javaGenericServices_ = other.javaGenericServices_; 2559 javaGenericServices_ = other.javaGenericServices_;
2800 pyGenericServices_ = other.pyGenericServices_; 2560 pyGenericServices_ = other.pyGenericServices_;
2801 deprecated_ = other.deprecated_; 2561 deprecated_ = other.deprecated_;
2802 ccEnableArenas_ = other.ccEnableArenas_; 2562 ccEnableArenas_ = other.ccEnableArenas_;
2803 objcClassPrefix_ = other.objcClassPrefix_; 2563 objcClassPrefix_ = other.objcClassPrefix_;
2804 csharpNamespace_ = other.csharpNamespace_; 2564 csharpNamespace_ = other.csharpNamespace_;
2805 swiftPrefix_ = other.swiftPrefix_;
2806 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 2565 uninterpretedOption_ = other.uninterpretedOption_.Clone();
2807 } 2566 }
2808 2567
2809 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2810 public FileOptions Clone() { 2568 public FileOptions Clone() {
2811 return new FileOptions(this); 2569 return new FileOptions(this);
2812 } 2570 }
2813 2571
2814 /// <summary>Field number for the "java_package" field.</summary> 2572 /// <summary>Field number for the "java_package" field.</summary>
2815 public const int JavaPackageFieldNumber = 1; 2573 public const int JavaPackageFieldNumber = 1;
2816 private string javaPackage_ = ""; 2574 private string javaPackage_ = "";
2817 /// <summary> 2575 /// <summary>
2818 /// Sets the Java package where classes generated from this .proto will be 2576 /// Sets the Java package where classes generated from this .proto will be
2819 /// placed. By default, the proto package is used, but this is often 2577 /// placed. By default, the proto package is used, but this is often
2820 /// inappropriate because proto packages do not normally start with backward s 2578 /// inappropriate because proto packages do not normally start with backwar ds
2821 /// domain names. 2579 /// domain names.
2822 /// </summary> 2580 /// </summary>
2823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2824 public string JavaPackage { 2581 public string JavaPackage {
2825 get { return javaPackage_; } 2582 get { return javaPackage_; }
2826 set { 2583 set {
2827 javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2584 javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2828 } 2585 }
2829 } 2586 }
2830 2587
2831 /// <summary>Field number for the "java_outer_classname" field.</summary> 2588 /// <summary>Field number for the "java_outer_classname" field.</summary>
2832 public const int JavaOuterClassnameFieldNumber = 8; 2589 public const int JavaOuterClassnameFieldNumber = 8;
2833 private string javaOuterClassname_ = ""; 2590 private string javaOuterClassname_ = "";
2834 /// <summary> 2591 /// <summary>
2835 /// If set, all the classes from the .proto file are wrapped in a single 2592 /// If set, all the classes from the .proto file are wrapped in a single
2836 /// outer class with the given name. This applies to both Proto1 2593 /// outer class with the given name. This applies to both Proto1
2837 /// (equivalent to the old "--one_java_file" option) and Proto2 (where 2594 /// (equivalent to the old "--one_java_file" option) and Proto2 (where
2838 /// a .proto always translates to a single class, but you may want to 2595 /// a .proto always translates to a single class, but you may want to
2839 /// explicitly choose the class name). 2596 /// explicitly choose the class name).
2840 /// </summary> 2597 /// </summary>
2841 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2842 public string JavaOuterClassname { 2598 public string JavaOuterClassname {
2843 get { return javaOuterClassname_; } 2599 get { return javaOuterClassname_; }
2844 set { 2600 set {
2845 javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value" ); 2601 javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value" );
2846 } 2602 }
2847 } 2603 }
2848 2604
2849 /// <summary>Field number for the "java_multiple_files" field.</summary> 2605 /// <summary>Field number for the "java_multiple_files" field.</summary>
2850 public const int JavaMultipleFilesFieldNumber = 10; 2606 public const int JavaMultipleFilesFieldNumber = 10;
2851 private bool javaMultipleFiles_; 2607 private bool javaMultipleFiles_;
2852 /// <summary> 2608 /// <summary>
2853 /// If set true, then the Java code generator will generate a separate .java 2609 /// If set true, then the Java code generator will generate a separate .jav a
2854 /// file for each top-level message, enum, and service defined in the .proto 2610 /// file for each top-level message, enum, and service defined in the .prot o
2855 /// file. Thus, these types will *not* be nested inside the outer class 2611 /// file. Thus, these types will *not* be nested inside the outer class
2856 /// named by java_outer_classname. However, the outer class will still be 2612 /// named by java_outer_classname. However, the outer class will still be
2857 /// generated to contain the file's getDescriptor() method as well as any 2613 /// generated to contain the file's getDescriptor() method as well as any
2858 /// top-level extensions defined in the file. 2614 /// top-level extensions defined in the file.
2859 /// </summary> 2615 /// </summary>
2860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2861 public bool JavaMultipleFiles { 2616 public bool JavaMultipleFiles {
2862 get { return javaMultipleFiles_; } 2617 get { return javaMultipleFiles_; }
2863 set { 2618 set {
2864 javaMultipleFiles_ = value; 2619 javaMultipleFiles_ = value;
2865 } 2620 }
2866 } 2621 }
2867 2622
2868 /// <summary>Field number for the "java_generate_equals_and_hash" field.</su mmary> 2623 /// <summary>Field number for the "java_generate_equals_and_hash" field.</su mmary>
2869 public const int JavaGenerateEqualsAndHashFieldNumber = 20; 2624 public const int JavaGenerateEqualsAndHashFieldNumber = 20;
2870 private bool javaGenerateEqualsAndHash_; 2625 private bool javaGenerateEqualsAndHash_;
2871 /// <summary> 2626 /// <summary>
2872 /// This option does nothing. 2627 /// If set true, then the Java code generator will generate equals() and
2628 /// hashCode() methods for all messages defined in the .proto file.
2629 /// This increases generated code size, potentially substantially for large
2630 /// protos, which may harm a memory-constrained application.
2631 /// - In the full runtime this is a speed optimization, as the
2632 /// AbstractMessage base class includes reflection-based implementations of
2633 /// these methods.
2634 /// - In the lite runtime, setting this option changes the semantics of
2635 /// equals() and hashCode() to more closely match those of the full runtime ;
2636 /// the generated methods compute their results based on field values rathe r
2637 /// than object identity. (Implementations should not assume that hashcodes
2638 /// will be consistent across runtimes or versions of the protocol compiler .)
2873 /// </summary> 2639 /// </summary>
2874 [global::System.ObsoleteAttribute]
2875 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2876 public bool JavaGenerateEqualsAndHash { 2640 public bool JavaGenerateEqualsAndHash {
2877 get { return javaGenerateEqualsAndHash_; } 2641 get { return javaGenerateEqualsAndHash_; }
2878 set { 2642 set {
2879 javaGenerateEqualsAndHash_ = value; 2643 javaGenerateEqualsAndHash_ = value;
2880 } 2644 }
2881 } 2645 }
2882 2646
2883 /// <summary>Field number for the "java_string_check_utf8" field.</summary> 2647 /// <summary>Field number for the "java_string_check_utf8" field.</summary>
2884 public const int JavaStringCheckUtf8FieldNumber = 27; 2648 public const int JavaStringCheckUtf8FieldNumber = 27;
2885 private bool javaStringCheckUtf8_; 2649 private bool javaStringCheckUtf8_;
2886 /// <summary> 2650 /// <summary>
2887 /// If set true, then the Java2 code generator will generate code that 2651 /// If set true, then the Java2 code generator will generate code that
2888 /// throws an exception whenever an attempt is made to assign a non-UTF-8 2652 /// throws an exception whenever an attempt is made to assign a non-UTF-8
2889 /// byte sequence to a string field. 2653 /// byte sequence to a string field.
2890 /// Message reflection will do the same. 2654 /// Message reflection will do the same.
2891 /// However, an extension field still accepts non-UTF-8 byte sequences. 2655 /// However, an extension field still accepts non-UTF-8 byte sequences.
2892 /// This option has no effect on when used with the lite runtime. 2656 /// This option has no effect on when used with the lite runtime.
2893 /// </summary> 2657 /// </summary>
2894 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2895 public bool JavaStringCheckUtf8 { 2658 public bool JavaStringCheckUtf8 {
2896 get { return javaStringCheckUtf8_; } 2659 get { return javaStringCheckUtf8_; }
2897 set { 2660 set {
2898 javaStringCheckUtf8_ = value; 2661 javaStringCheckUtf8_ = value;
2899 } 2662 }
2900 } 2663 }
2901 2664
2902 /// <summary>Field number for the "optimize_for" field.</summary> 2665 /// <summary>Field number for the "optimize_for" field.</summary>
2903 public const int OptimizeForFieldNumber = 9; 2666 public const int OptimizeForFieldNumber = 9;
2904 private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode op timizeFor_ = 0; 2667 private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode op timizeFor_ = 0;
2905 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2906 public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode Opt imizeFor { 2668 public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode Opt imizeFor {
2907 get { return optimizeFor_; } 2669 get { return optimizeFor_; }
2908 set { 2670 set {
2909 optimizeFor_ = value; 2671 optimizeFor_ = value;
2910 } 2672 }
2911 } 2673 }
2912 2674
2913 /// <summary>Field number for the "go_package" field.</summary> 2675 /// <summary>Field number for the "go_package" field.</summary>
2914 public const int GoPackageFieldNumber = 11; 2676 public const int GoPackageFieldNumber = 11;
2915 private string goPackage_ = ""; 2677 private string goPackage_ = "";
2916 /// <summary> 2678 /// <summary>
2917 /// Sets the Go package where structs generated from this .proto will be 2679 /// Sets the Go package where structs generated from this .proto will be
2918 /// placed. If omitted, the Go package will be derived from the following: 2680 /// placed. If omitted, the Go package will be derived from the following:
2919 /// - The basename of the package import path, if provided. 2681 /// - The basename of the package import path, if provided.
2920 /// - Otherwise, the package statement in the .proto file, if present. 2682 /// - Otherwise, the package statement in the .proto file, if present.
2921 /// - Otherwise, the basename of the .proto file, without extension. 2683 /// - Otherwise, the basename of the .proto file, without extension.
2922 /// </summary> 2684 /// </summary>
2923 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2924 public string GoPackage { 2685 public string GoPackage {
2925 get { return goPackage_; } 2686 get { return goPackage_; }
2926 set { 2687 set {
2927 goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2688 goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
2928 } 2689 }
2929 } 2690 }
2930 2691
2931 /// <summary>Field number for the "cc_generic_services" field.</summary> 2692 /// <summary>Field number for the "cc_generic_services" field.</summary>
2932 public const int CcGenericServicesFieldNumber = 16; 2693 public const int CcGenericServicesFieldNumber = 16;
2933 private bool ccGenericServices_; 2694 private bool ccGenericServices_;
2934 /// <summary> 2695 /// <summary>
2935 /// Should generic services be generated in each language? "Generic" servic es 2696 /// Should generic services be generated in each language? "Generic" servi ces
2936 /// are not specific to any particular RPC system. They are generated by th e 2697 /// are not specific to any particular RPC system. They are generated by t he
2937 /// main code generators in each language (without additional plugins). 2698 /// main code generators in each language (without additional plugins).
2938 /// Generic services were the only kind of service generation supported by 2699 /// Generic services were the only kind of service generation supported by
2939 /// early versions of google.protobuf. 2700 /// early versions of google.protobuf.
2940 /// 2701 ///
2941 /// Generic services are now considered deprecated in favor of using plugins 2702 /// Generic services are now considered deprecated in favor of using plugin s
2942 /// that generate code specific to your particular RPC system. Therefore, 2703 /// that generate code specific to your particular RPC system. Therefore,
2943 /// these default to false. Old code which depends on generic services shou ld 2704 /// these default to false. Old code which depends on generic services sho uld
2944 /// explicitly set them to true. 2705 /// explicitly set them to true.
2945 /// </summary> 2706 /// </summary>
2946 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2947 public bool CcGenericServices { 2707 public bool CcGenericServices {
2948 get { return ccGenericServices_; } 2708 get { return ccGenericServices_; }
2949 set { 2709 set {
2950 ccGenericServices_ = value; 2710 ccGenericServices_ = value;
2951 } 2711 }
2952 } 2712 }
2953 2713
2954 /// <summary>Field number for the "java_generic_services" field.</summary> 2714 /// <summary>Field number for the "java_generic_services" field.</summary>
2955 public const int JavaGenericServicesFieldNumber = 17; 2715 public const int JavaGenericServicesFieldNumber = 17;
2956 private bool javaGenericServices_; 2716 private bool javaGenericServices_;
2957 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2958 public bool JavaGenericServices { 2717 public bool JavaGenericServices {
2959 get { return javaGenericServices_; } 2718 get { return javaGenericServices_; }
2960 set { 2719 set {
2961 javaGenericServices_ = value; 2720 javaGenericServices_ = value;
2962 } 2721 }
2963 } 2722 }
2964 2723
2965 /// <summary>Field number for the "py_generic_services" field.</summary> 2724 /// <summary>Field number for the "py_generic_services" field.</summary>
2966 public const int PyGenericServicesFieldNumber = 18; 2725 public const int PyGenericServicesFieldNumber = 18;
2967 private bool pyGenericServices_; 2726 private bool pyGenericServices_;
2968 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2969 public bool PyGenericServices { 2727 public bool PyGenericServices {
2970 get { return pyGenericServices_; } 2728 get { return pyGenericServices_; }
2971 set { 2729 set {
2972 pyGenericServices_ = value; 2730 pyGenericServices_ = value;
2973 } 2731 }
2974 } 2732 }
2975 2733
2976 /// <summary>Field number for the "deprecated" field.</summary> 2734 /// <summary>Field number for the "deprecated" field.</summary>
2977 public const int DeprecatedFieldNumber = 23; 2735 public const int DeprecatedFieldNumber = 23;
2978 private bool deprecated_; 2736 private bool deprecated_;
2979 /// <summary> 2737 /// <summary>
2980 /// Is this file deprecated? 2738 /// Is this file deprecated?
2981 /// Depending on the target platform, this can emit Deprecated annotations 2739 /// Depending on the target platform, this can emit Deprecated annotations
2982 /// for everything in the file, or it will be completely ignored; in the ver y 2740 /// for everything in the file, or it will be completely ignored; in the ve ry
2983 /// least, this is a formalization for deprecating files. 2741 /// least, this is a formalization for deprecating files.
2984 /// </summary> 2742 /// </summary>
2985 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
2986 public bool Deprecated { 2743 public bool Deprecated {
2987 get { return deprecated_; } 2744 get { return deprecated_; }
2988 set { 2745 set {
2989 deprecated_ = value; 2746 deprecated_ = value;
2990 } 2747 }
2991 } 2748 }
2992 2749
2993 /// <summary>Field number for the "cc_enable_arenas" field.</summary> 2750 /// <summary>Field number for the "cc_enable_arenas" field.</summary>
2994 public const int CcEnableArenasFieldNumber = 31; 2751 public const int CcEnableArenasFieldNumber = 31;
2995 private bool ccEnableArenas_; 2752 private bool ccEnableArenas_;
2996 /// <summary> 2753 /// <summary>
2997 /// Enables the use of arenas for the proto messages in this file. This appl ies 2754 /// Enables the use of arenas for the proto messages in this file. This app lies
2998 /// only to generated classes for C++. 2755 /// only to generated classes for C++.
2999 /// </summary> 2756 /// </summary>
3000 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3001 public bool CcEnableArenas { 2757 public bool CcEnableArenas {
3002 get { return ccEnableArenas_; } 2758 get { return ccEnableArenas_; }
3003 set { 2759 set {
3004 ccEnableArenas_ = value; 2760 ccEnableArenas_ = value;
3005 } 2761 }
3006 } 2762 }
3007 2763
3008 /// <summary>Field number for the "objc_class_prefix" field.</summary> 2764 /// <summary>Field number for the "objc_class_prefix" field.</summary>
3009 public const int ObjcClassPrefixFieldNumber = 36; 2765 public const int ObjcClassPrefixFieldNumber = 36;
3010 private string objcClassPrefix_ = ""; 2766 private string objcClassPrefix_ = "";
3011 /// <summary> 2767 /// <summary>
3012 /// Sets the objective c class prefix which is prepended to all objective c 2768 /// Sets the objective c class prefix which is prepended to all objective c
3013 /// generated classes from this .proto. There is no default. 2769 /// generated classes from this .proto. There is no default.
3014 /// </summary> 2770 /// </summary>
3015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3016 public string ObjcClassPrefix { 2771 public string ObjcClassPrefix {
3017 get { return objcClassPrefix_; } 2772 get { return objcClassPrefix_; }
3018 set { 2773 set {
3019 objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2774 objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3020 } 2775 }
3021 } 2776 }
3022 2777
3023 /// <summary>Field number for the "csharp_namespace" field.</summary> 2778 /// <summary>Field number for the "csharp_namespace" field.</summary>
3024 public const int CsharpNamespaceFieldNumber = 37; 2779 public const int CsharpNamespaceFieldNumber = 37;
3025 private string csharpNamespace_ = ""; 2780 private string csharpNamespace_ = "";
3026 /// <summary> 2781 /// <summary>
3027 /// Namespace for generated classes; defaults to the package. 2782 /// Namespace for generated classes; defaults to the package.
3028 /// </summary> 2783 /// </summary>
3029 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3030 public string CsharpNamespace { 2784 public string CsharpNamespace {
3031 get { return csharpNamespace_; } 2785 get { return csharpNamespace_; }
3032 set { 2786 set {
3033 csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 2787 csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3034 } 2788 }
3035 } 2789 }
3036 2790
3037 /// <summary>Field number for the "swift_prefix" field.</summary>
3038 public const int SwiftPrefixFieldNumber = 39;
3039 private string swiftPrefix_ = "";
3040 /// <summary>
3041 /// By default Swift generators will take the proto package and CamelCase it
3042 /// replacing '.' with underscore and use that to prefix the types/symbols
3043 /// defined. When this options is provided, they will use this value instead
3044 /// to prefix the types/symbols defined.
3045 /// </summary>
3046 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3047 public string SwiftPrefix {
3048 get { return swiftPrefix_; }
3049 set {
3050 swiftPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
3051 }
3052 }
3053
3054 /// <summary>Field number for the "uninterpreted_option" field.</summary> 2791 /// <summary>Field number for the "uninterpreted_option" field.</summary>
3055 public const int UninterpretedOptionFieldNumber = 999; 2792 public const int UninterpretedOptionFieldNumber = 999;
3056 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec 2793 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
3057 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser); 2794 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
3058 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>(); 2795 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
3059 /// <summary> 2796 /// <summary>
3060 /// The parser stores options it doesn't recognize here. See above. 2797 /// The parser stores options it doesn't recognize here. See above.
3061 /// </summary> 2798 /// </summary>
3062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3063 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption { 2799 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
3064 get { return uninterpretedOption_; } 2800 get { return uninterpretedOption_; }
3065 } 2801 }
3066 2802
3067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3068 public override bool Equals(object other) { 2803 public override bool Equals(object other) {
3069 return Equals(other as FileOptions); 2804 return Equals(other as FileOptions);
3070 } 2805 }
3071 2806
3072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3073 public bool Equals(FileOptions other) { 2807 public bool Equals(FileOptions other) {
3074 if (ReferenceEquals(other, null)) { 2808 if (ReferenceEquals(other, null)) {
3075 return false; 2809 return false;
3076 } 2810 }
3077 if (ReferenceEquals(other, this)) { 2811 if (ReferenceEquals(other, this)) {
3078 return true; 2812 return true;
3079 } 2813 }
3080 if (JavaPackage != other.JavaPackage) return false; 2814 if (JavaPackage != other.JavaPackage) return false;
3081 if (JavaOuterClassname != other.JavaOuterClassname) return false; 2815 if (JavaOuterClassname != other.JavaOuterClassname) return false;
3082 if (JavaMultipleFiles != other.JavaMultipleFiles) return false; 2816 if (JavaMultipleFiles != other.JavaMultipleFiles) return false;
3083 if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return f alse; 2817 if (JavaGenerateEqualsAndHash != other.JavaGenerateEqualsAndHash) return f alse;
3084 if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false; 2818 if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false;
3085 if (OptimizeFor != other.OptimizeFor) return false; 2819 if (OptimizeFor != other.OptimizeFor) return false;
3086 if (GoPackage != other.GoPackage) return false; 2820 if (GoPackage != other.GoPackage) return false;
3087 if (CcGenericServices != other.CcGenericServices) return false; 2821 if (CcGenericServices != other.CcGenericServices) return false;
3088 if (JavaGenericServices != other.JavaGenericServices) return false; 2822 if (JavaGenericServices != other.JavaGenericServices) return false;
3089 if (PyGenericServices != other.PyGenericServices) return false; 2823 if (PyGenericServices != other.PyGenericServices) return false;
3090 if (Deprecated != other.Deprecated) return false; 2824 if (Deprecated != other.Deprecated) return false;
3091 if (CcEnableArenas != other.CcEnableArenas) return false; 2825 if (CcEnableArenas != other.CcEnableArenas) return false;
3092 if (ObjcClassPrefix != other.ObjcClassPrefix) return false; 2826 if (ObjcClassPrefix != other.ObjcClassPrefix) return false;
3093 if (CsharpNamespace != other.CsharpNamespace) return false; 2827 if (CsharpNamespace != other.CsharpNamespace) return false;
3094 if (SwiftPrefix != other.SwiftPrefix) return false;
3095 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 2828 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
3096 return true; 2829 return true;
3097 } 2830 }
3098 2831
3099 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3100 public override int GetHashCode() { 2832 public override int GetHashCode() {
3101 int hash = 1; 2833 int hash = 1;
3102 if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode(); 2834 if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode();
3103 if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode (); 2835 if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode ();
3104 if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode(); 2836 if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode();
3105 if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash. GetHashCode(); 2837 if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash. GetHashCode();
3106 if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode( ); 2838 if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode( );
3107 if (OptimizeFor != 0) hash ^= OptimizeFor.GetHashCode(); 2839 if (OptimizeFor != 0) hash ^= OptimizeFor.GetHashCode();
3108 if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode(); 2840 if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode();
3109 if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode(); 2841 if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode();
3110 if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode( ); 2842 if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode( );
3111 if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode(); 2843 if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode();
3112 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 2844 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
3113 if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode(); 2845 if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode();
3114 if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode(); 2846 if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode();
3115 if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode(); 2847 if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode();
3116 if (SwiftPrefix.Length != 0) hash ^= SwiftPrefix.GetHashCode();
3117 hash ^= uninterpretedOption_.GetHashCode(); 2848 hash ^= uninterpretedOption_.GetHashCode();
3118 return hash; 2849 return hash;
3119 } 2850 }
3120 2851
3121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3122 public override string ToString() { 2852 public override string ToString() {
3123 return pb::JsonFormatter.ToDiagnosticString(this); 2853 return pb::JsonFormatter.ToDiagnosticString(this);
3124 } 2854 }
3125 2855
3126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3127 public void WriteTo(pb::CodedOutputStream output) { 2856 public void WriteTo(pb::CodedOutputStream output) {
3128 if (JavaPackage.Length != 0) { 2857 if (JavaPackage.Length != 0) {
3129 output.WriteRawTag(10); 2858 output.WriteRawTag(10);
3130 output.WriteString(JavaPackage); 2859 output.WriteString(JavaPackage);
3131 } 2860 }
3132 if (JavaOuterClassname.Length != 0) { 2861 if (JavaOuterClassname.Length != 0) {
3133 output.WriteRawTag(66); 2862 output.WriteRawTag(66);
3134 output.WriteString(JavaOuterClassname); 2863 output.WriteString(JavaOuterClassname);
3135 } 2864 }
3136 if (OptimizeFor != 0) { 2865 if (OptimizeFor != 0) {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
3174 output.WriteBool(CcEnableArenas); 2903 output.WriteBool(CcEnableArenas);
3175 } 2904 }
3176 if (ObjcClassPrefix.Length != 0) { 2905 if (ObjcClassPrefix.Length != 0) {
3177 output.WriteRawTag(162, 2); 2906 output.WriteRawTag(162, 2);
3178 output.WriteString(ObjcClassPrefix); 2907 output.WriteString(ObjcClassPrefix);
3179 } 2908 }
3180 if (CsharpNamespace.Length != 0) { 2909 if (CsharpNamespace.Length != 0) {
3181 output.WriteRawTag(170, 2); 2910 output.WriteRawTag(170, 2);
3182 output.WriteString(CsharpNamespace); 2911 output.WriteString(CsharpNamespace);
3183 } 2912 }
3184 if (SwiftPrefix.Length != 0) {
3185 output.WriteRawTag(186, 2);
3186 output.WriteString(SwiftPrefix);
3187 }
3188 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 2913 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
3189 } 2914 }
3190 2915
3191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3192 public int CalculateSize() { 2916 public int CalculateSize() {
3193 int size = 0; 2917 int size = 0;
3194 if (JavaPackage.Length != 0) { 2918 if (JavaPackage.Length != 0) {
3195 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage); 2919 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage);
3196 } 2920 }
3197 if (JavaOuterClassname.Length != 0) { 2921 if (JavaOuterClassname.Length != 0) {
3198 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname); 2922 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname);
3199 } 2923 }
3200 if (JavaMultipleFiles != false) { 2924 if (JavaMultipleFiles != false) {
3201 size += 1 + 1; 2925 size += 1 + 1;
(...skipping 24 matching lines...) Expand all
3226 } 2950 }
3227 if (CcEnableArenas != false) { 2951 if (CcEnableArenas != false) {
3228 size += 2 + 1; 2952 size += 2 + 1;
3229 } 2953 }
3230 if (ObjcClassPrefix.Length != 0) { 2954 if (ObjcClassPrefix.Length != 0) {
3231 size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix); 2955 size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix);
3232 } 2956 }
3233 if (CsharpNamespace.Length != 0) { 2957 if (CsharpNamespace.Length != 0) {
3234 size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace); 2958 size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace);
3235 } 2959 }
3236 if (SwiftPrefix.Length != 0) {
3237 size += 2 + pb::CodedOutputStream.ComputeStringSize(SwiftPrefix);
3238 }
3239 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec); 2960 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
3240 return size; 2961 return size;
3241 } 2962 }
3242 2963
3243 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3244 public void MergeFrom(FileOptions other) { 2964 public void MergeFrom(FileOptions other) {
3245 if (other == null) { 2965 if (other == null) {
3246 return; 2966 return;
3247 } 2967 }
3248 if (other.JavaPackage.Length != 0) { 2968 if (other.JavaPackage.Length != 0) {
3249 JavaPackage = other.JavaPackage; 2969 JavaPackage = other.JavaPackage;
3250 } 2970 }
3251 if (other.JavaOuterClassname.Length != 0) { 2971 if (other.JavaOuterClassname.Length != 0) {
3252 JavaOuterClassname = other.JavaOuterClassname; 2972 JavaOuterClassname = other.JavaOuterClassname;
3253 } 2973 }
(...skipping 26 matching lines...) Expand all
3280 } 3000 }
3281 if (other.CcEnableArenas != false) { 3001 if (other.CcEnableArenas != false) {
3282 CcEnableArenas = other.CcEnableArenas; 3002 CcEnableArenas = other.CcEnableArenas;
3283 } 3003 }
3284 if (other.ObjcClassPrefix.Length != 0) { 3004 if (other.ObjcClassPrefix.Length != 0) {
3285 ObjcClassPrefix = other.ObjcClassPrefix; 3005 ObjcClassPrefix = other.ObjcClassPrefix;
3286 } 3006 }
3287 if (other.CsharpNamespace.Length != 0) { 3007 if (other.CsharpNamespace.Length != 0) {
3288 CsharpNamespace = other.CsharpNamespace; 3008 CsharpNamespace = other.CsharpNamespace;
3289 } 3009 }
3290 if (other.SwiftPrefix.Length != 0) {
3291 SwiftPrefix = other.SwiftPrefix;
3292 }
3293 uninterpretedOption_.Add(other.uninterpretedOption_); 3010 uninterpretedOption_.Add(other.uninterpretedOption_);
3294 } 3011 }
3295 3012
3296 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3297 public void MergeFrom(pb::CodedInputStream input) { 3013 public void MergeFrom(pb::CodedInputStream input) {
3298 uint tag; 3014 uint tag;
3299 while ((tag = input.ReadTag()) != 0) { 3015 while ((tag = input.ReadTag()) != 0) {
3300 switch(tag) { 3016 switch(tag) {
3301 default: 3017 default:
3302 input.SkipLastField(); 3018 input.SkipLastField();
3303 break; 3019 break;
3304 case 10: { 3020 case 10: {
3305 JavaPackage = input.ReadString(); 3021 JavaPackage = input.ReadString();
3306 break; 3022 break;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
3350 break; 3066 break;
3351 } 3067 }
3352 case 290: { 3068 case 290: {
3353 ObjcClassPrefix = input.ReadString(); 3069 ObjcClassPrefix = input.ReadString();
3354 break; 3070 break;
3355 } 3071 }
3356 case 298: { 3072 case 298: {
3357 CsharpNamespace = input.ReadString(); 3073 CsharpNamespace = input.ReadString();
3358 break; 3074 break;
3359 } 3075 }
3360 case 314: {
3361 SwiftPrefix = input.ReadString();
3362 break;
3363 }
3364 case 7994: { 3076 case 7994: {
3365 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec); 3077 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
3366 break; 3078 break;
3367 } 3079 }
3368 } 3080 }
3369 } 3081 }
3370 } 3082 }
3371 3083
3372 #region Nested types 3084 #region Nested types
3373 /// <summary>Container for nested types declared in the FileOptions message type.</summary> 3085 /// <summary>Container for nested types declared in the FileOptions message type.</summary>
3374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3375 public static partial class Types { 3087 public static partial class Types {
3376 /// <summary> 3088 /// <summary>
3377 /// Generated classes can be optimized for speed or code size. 3089 /// Generated classes can be optimized for speed or code size.
3378 /// </summary> 3090 /// </summary>
3379 internal enum OptimizeMode { 3091 internal enum OptimizeMode {
3380 /// <summary> 3092 /// <summary>
3381 /// Generate complete code for parsing, serialization, 3093 /// Generate complete code for parsing, serialization,
3382 /// </summary> 3094 /// </summary>
3383 [pbr::OriginalName("SPEED")] Speed = 1, 3095 [pbr::OriginalName("SPEED")] Speed = 1,
3384 /// <summary> 3096 /// <summary>
3385 /// etc. 3097 /// etc.
3386 /// </summary> 3098 /// </summary>
3387 [pbr::OriginalName("CODE_SIZE")] CodeSize = 2, 3099 [pbr::OriginalName("CODE_SIZE")] CodeSize = 2,
3388 /// <summary> 3100 /// <summary>
3389 /// Generate code using MessageLite and the lite runtime. 3101 /// Generate code using MessageLite and the lite runtime.
3390 /// </summary> 3102 /// </summary>
3391 [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3, 3103 [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3,
3392 } 3104 }
3393 3105
3394 } 3106 }
3395 #endregion 3107 #endregion
3396 3108
3397 } 3109 }
3398 3110
3111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3399 internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> { 3112 internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> {
3400 private static readonly pb::MessageParser<MessageOptions> _parser = new pb:: MessageParser<MessageOptions>(() => new MessageOptions()); 3113 private static readonly pb::MessageParser<MessageOptions> _parser = new pb:: MessageParser<MessageOptions>(() => new MessageOptions());
3401 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3402 public static pb::MessageParser<MessageOptions> Parser { get { return _parse r; } } 3114 public static pb::MessageParser<MessageOptions> Parser { get { return _parse r; } }
3403 3115
3404 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3405 public static pbr::MessageDescriptor Descriptor { 3116 public static pbr::MessageDescriptor Descriptor {
3406 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[10]; } 3117 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[10]; }
3407 } 3118 }
3408 3119
3409 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3410 pbr::MessageDescriptor pb::IMessage.Descriptor { 3120 pbr::MessageDescriptor pb::IMessage.Descriptor {
3411 get { return Descriptor; } 3121 get { return Descriptor; }
3412 } 3122 }
3413 3123
3414 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3415 public MessageOptions() { 3124 public MessageOptions() {
3416 OnConstruction(); 3125 OnConstruction();
3417 } 3126 }
3418 3127
3419 partial void OnConstruction(); 3128 partial void OnConstruction();
3420 3129
3421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3422 public MessageOptions(MessageOptions other) : this() { 3130 public MessageOptions(MessageOptions other) : this() {
3423 messageSetWireFormat_ = other.messageSetWireFormat_; 3131 messageSetWireFormat_ = other.messageSetWireFormat_;
3424 noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_; 3132 noStandardDescriptorAccessor_ = other.noStandardDescriptorAccessor_;
3425 deprecated_ = other.deprecated_; 3133 deprecated_ = other.deprecated_;
3426 mapEntry_ = other.mapEntry_; 3134 mapEntry_ = other.mapEntry_;
3427 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 3135 uninterpretedOption_ = other.uninterpretedOption_.Clone();
3428 } 3136 }
3429 3137
3430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3431 public MessageOptions Clone() { 3138 public MessageOptions Clone() {
3432 return new MessageOptions(this); 3139 return new MessageOptions(this);
3433 } 3140 }
3434 3141
3435 /// <summary>Field number for the "message_set_wire_format" field.</summary> 3142 /// <summary>Field number for the "message_set_wire_format" field.</summary>
3436 public const int MessageSetWireFormatFieldNumber = 1; 3143 public const int MessageSetWireFormatFieldNumber = 1;
3437 private bool messageSetWireFormat_; 3144 private bool messageSetWireFormat_;
3438 /// <summary> 3145 /// <summary>
3439 /// Set true to use the old proto1 MessageSet wire format for extensions. 3146 /// Set true to use the old proto1 MessageSet wire format for extensions.
3440 /// This is provided for backwards-compatibility with the MessageSet wire 3147 /// This is provided for backwards-compatibility with the MessageSet wire
3441 /// format. You should not use this for any other reason: It's less 3148 /// format. You should not use this for any other reason: It's less
3442 /// efficient, has fewer features, and is more complicated. 3149 /// efficient, has fewer features, and is more complicated.
3443 /// 3150 ///
3444 /// The message must be defined exactly as follows: 3151 /// The message must be defined exactly as follows:
3445 /// message Foo { 3152 /// message Foo {
3446 /// option message_set_wire_format = true; 3153 /// option message_set_wire_format = true;
3447 /// extensions 4 to max; 3154 /// extensions 4 to max;
3448 /// } 3155 /// }
3449 /// Note that the message cannot have any defined fields; MessageSets only 3156 /// Note that the message cannot have any defined fields; MessageSets only
3450 /// have extensions. 3157 /// have extensions.
3451 /// 3158 ///
3452 /// All extensions of your type must be singular messages; e.g. they cannot 3159 /// All extensions of your type must be singular messages; e.g. they cannot
3453 /// be int32s, enums, or repeated messages. 3160 /// be int32s, enums, or repeated messages.
3454 /// 3161 ///
3455 /// Because this is an option, the above two restrictions are not enforced b y 3162 /// Because this is an option, the above two restrictions are not enforced by
3456 /// the protocol compiler. 3163 /// the protocol compiler.
3457 /// </summary> 3164 /// </summary>
3458 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3459 public bool MessageSetWireFormat { 3165 public bool MessageSetWireFormat {
3460 get { return messageSetWireFormat_; } 3166 get { return messageSetWireFormat_; }
3461 set { 3167 set {
3462 messageSetWireFormat_ = value; 3168 messageSetWireFormat_ = value;
3463 } 3169 }
3464 } 3170 }
3465 3171
3466 /// <summary>Field number for the "no_standard_descriptor_accessor" field.</ summary> 3172 /// <summary>Field number for the "no_standard_descriptor_accessor" field.</ summary>
3467 public const int NoStandardDescriptorAccessorFieldNumber = 2; 3173 public const int NoStandardDescriptorAccessorFieldNumber = 2;
3468 private bool noStandardDescriptorAccessor_; 3174 private bool noStandardDescriptorAccessor_;
3469 /// <summary> 3175 /// <summary>
3470 /// Disables the generation of the standard "descriptor()" accessor, which c an 3176 /// Disables the generation of the standard "descriptor()" accessor, which can
3471 /// conflict with a field of the same name. This is meant to make migration 3177 /// conflict with a field of the same name. This is meant to make migratio n
3472 /// from proto1 easier; new code should avoid fields named "descriptor". 3178 /// from proto1 easier; new code should avoid fields named "descriptor".
3473 /// </summary> 3179 /// </summary>
3474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3475 public bool NoStandardDescriptorAccessor { 3180 public bool NoStandardDescriptorAccessor {
3476 get { return noStandardDescriptorAccessor_; } 3181 get { return noStandardDescriptorAccessor_; }
3477 set { 3182 set {
3478 noStandardDescriptorAccessor_ = value; 3183 noStandardDescriptorAccessor_ = value;
3479 } 3184 }
3480 } 3185 }
3481 3186
3482 /// <summary>Field number for the "deprecated" field.</summary> 3187 /// <summary>Field number for the "deprecated" field.</summary>
3483 public const int DeprecatedFieldNumber = 3; 3188 public const int DeprecatedFieldNumber = 3;
3484 private bool deprecated_; 3189 private bool deprecated_;
3485 /// <summary> 3190 /// <summary>
3486 /// Is this message deprecated? 3191 /// Is this message deprecated?
3487 /// Depending on the target platform, this can emit Deprecated annotations 3192 /// Depending on the target platform, this can emit Deprecated annotations
3488 /// for the message, or it will be completely ignored; in the very least, 3193 /// for the message, or it will be completely ignored; in the very least,
3489 /// this is a formalization for deprecating messages. 3194 /// this is a formalization for deprecating messages.
3490 /// </summary> 3195 /// </summary>
3491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3492 public bool Deprecated { 3196 public bool Deprecated {
3493 get { return deprecated_; } 3197 get { return deprecated_; }
3494 set { 3198 set {
3495 deprecated_ = value; 3199 deprecated_ = value;
3496 } 3200 }
3497 } 3201 }
3498 3202
3499 /// <summary>Field number for the "map_entry" field.</summary> 3203 /// <summary>Field number for the "map_entry" field.</summary>
3500 public const int MapEntryFieldNumber = 7; 3204 public const int MapEntryFieldNumber = 7;
3501 private bool mapEntry_; 3205 private bool mapEntry_;
3502 /// <summary> 3206 /// <summary>
3503 /// Whether the message is an automatically generated map entry type for the 3207 /// Whether the message is an automatically generated map entry type for th e
3504 /// maps field. 3208 /// maps field.
3505 /// 3209 ///
3506 /// For maps fields: 3210 /// For maps fields:
3507 /// map&lt;KeyType, ValueType> map_field = 1; 3211 /// map&lt;KeyType, ValueType> map_field = 1;
3508 /// The parsed descriptor looks like: 3212 /// The parsed descriptor looks like:
3509 /// message MapFieldEntry { 3213 /// message MapFieldEntry {
3510 /// option map_entry = true; 3214 /// option map_entry = true;
3511 /// optional KeyType key = 1; 3215 /// optional KeyType key = 1;
3512 /// optional ValueType value = 2; 3216 /// optional ValueType value = 2;
3513 /// } 3217 /// }
3514 /// repeated MapFieldEntry map_field = 1; 3218 /// repeated MapFieldEntry map_field = 1;
3515 /// 3219 ///
3516 /// Implementations may choose not to generate the map_entry=true message, b ut 3220 /// Implementations may choose not to generate the map_entry=true message, but
3517 /// use a native map in the target language to hold the keys and values. 3221 /// use a native map in the target language to hold the keys and values.
3518 /// The reflection APIs in such implementions still need to work as 3222 /// The reflection APIs in such implementions still need to work as
3519 /// if the field is a repeated message field. 3223 /// if the field is a repeated message field.
3520 /// 3224 ///
3521 /// NOTE: Do not set the option in .proto files. Always use the maps syntax 3225 /// NOTE: Do not set the option in .proto files. Always use the maps syntax
3522 /// instead. The option should only be implicitly set by the proto compiler 3226 /// instead. The option should only be implicitly set by the proto compiler
3523 /// parser. 3227 /// parser.
3524 /// </summary> 3228 /// </summary>
3525 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3526 public bool MapEntry { 3229 public bool MapEntry {
3527 get { return mapEntry_; } 3230 get { return mapEntry_; }
3528 set { 3231 set {
3529 mapEntry_ = value; 3232 mapEntry_ = value;
3530 } 3233 }
3531 } 3234 }
3532 3235
3533 /// <summary>Field number for the "uninterpreted_option" field.</summary> 3236 /// <summary>Field number for the "uninterpreted_option" field.</summary>
3534 public const int UninterpretedOptionFieldNumber = 999; 3237 public const int UninterpretedOptionFieldNumber = 999;
3535 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec 3238 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
3536 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser); 3239 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
3537 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>(); 3240 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
3538 /// <summary> 3241 /// <summary>
3539 /// The parser stores options it doesn't recognize here. See above. 3242 /// The parser stores options it doesn't recognize here. See above.
3540 /// </summary> 3243 /// </summary>
3541 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3542 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption { 3244 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
3543 get { return uninterpretedOption_; } 3245 get { return uninterpretedOption_; }
3544 } 3246 }
3545 3247
3546 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3547 public override bool Equals(object other) { 3248 public override bool Equals(object other) {
3548 return Equals(other as MessageOptions); 3249 return Equals(other as MessageOptions);
3549 } 3250 }
3550 3251
3551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3552 public bool Equals(MessageOptions other) { 3252 public bool Equals(MessageOptions other) {
3553 if (ReferenceEquals(other, null)) { 3253 if (ReferenceEquals(other, null)) {
3554 return false; 3254 return false;
3555 } 3255 }
3556 if (ReferenceEquals(other, this)) { 3256 if (ReferenceEquals(other, this)) {
3557 return true; 3257 return true;
3558 } 3258 }
3559 if (MessageSetWireFormat != other.MessageSetWireFormat) return false; 3259 if (MessageSetWireFormat != other.MessageSetWireFormat) return false;
3560 if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) re turn false; 3260 if (NoStandardDescriptorAccessor != other.NoStandardDescriptorAccessor) re turn false;
3561 if (Deprecated != other.Deprecated) return false; 3261 if (Deprecated != other.Deprecated) return false;
3562 if (MapEntry != other.MapEntry) return false; 3262 if (MapEntry != other.MapEntry) return false;
3563 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 3263 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
3564 return true; 3264 return true;
3565 } 3265 }
3566 3266
3567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3568 public override int GetHashCode() { 3267 public override int GetHashCode() {
3569 int hash = 1; 3268 int hash = 1;
3570 if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCod e(); 3269 if (MessageSetWireFormat != false) hash ^= MessageSetWireFormat.GetHashCod e();
3571 if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAcc essor.GetHashCode(); 3270 if (NoStandardDescriptorAccessor != false) hash ^= NoStandardDescriptorAcc essor.GetHashCode();
3572 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 3271 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
3573 if (MapEntry != false) hash ^= MapEntry.GetHashCode(); 3272 if (MapEntry != false) hash ^= MapEntry.GetHashCode();
3574 hash ^= uninterpretedOption_.GetHashCode(); 3273 hash ^= uninterpretedOption_.GetHashCode();
3575 return hash; 3274 return hash;
3576 } 3275 }
3577 3276
3578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3579 public override string ToString() { 3277 public override string ToString() {
3580 return pb::JsonFormatter.ToDiagnosticString(this); 3278 return pb::JsonFormatter.ToDiagnosticString(this);
3581 } 3279 }
3582 3280
3583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3584 public void WriteTo(pb::CodedOutputStream output) { 3281 public void WriteTo(pb::CodedOutputStream output) {
3585 if (MessageSetWireFormat != false) { 3282 if (MessageSetWireFormat != false) {
3586 output.WriteRawTag(8); 3283 output.WriteRawTag(8);
3587 output.WriteBool(MessageSetWireFormat); 3284 output.WriteBool(MessageSetWireFormat);
3588 } 3285 }
3589 if (NoStandardDescriptorAccessor != false) { 3286 if (NoStandardDescriptorAccessor != false) {
3590 output.WriteRawTag(16); 3287 output.WriteRawTag(16);
3591 output.WriteBool(NoStandardDescriptorAccessor); 3288 output.WriteBool(NoStandardDescriptorAccessor);
3592 } 3289 }
3593 if (Deprecated != false) { 3290 if (Deprecated != false) {
3594 output.WriteRawTag(24); 3291 output.WriteRawTag(24);
3595 output.WriteBool(Deprecated); 3292 output.WriteBool(Deprecated);
3596 } 3293 }
3597 if (MapEntry != false) { 3294 if (MapEntry != false) {
3598 output.WriteRawTag(56); 3295 output.WriteRawTag(56);
3599 output.WriteBool(MapEntry); 3296 output.WriteBool(MapEntry);
3600 } 3297 }
3601 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 3298 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
3602 } 3299 }
3603 3300
3604 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3605 public int CalculateSize() { 3301 public int CalculateSize() {
3606 int size = 0; 3302 int size = 0;
3607 if (MessageSetWireFormat != false) { 3303 if (MessageSetWireFormat != false) {
3608 size += 1 + 1; 3304 size += 1 + 1;
3609 } 3305 }
3610 if (NoStandardDescriptorAccessor != false) { 3306 if (NoStandardDescriptorAccessor != false) {
3611 size += 1 + 1; 3307 size += 1 + 1;
3612 } 3308 }
3613 if (Deprecated != false) { 3309 if (Deprecated != false) {
3614 size += 1 + 1; 3310 size += 1 + 1;
3615 } 3311 }
3616 if (MapEntry != false) { 3312 if (MapEntry != false) {
3617 size += 1 + 1; 3313 size += 1 + 1;
3618 } 3314 }
3619 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec); 3315 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
3620 return size; 3316 return size;
3621 } 3317 }
3622 3318
3623 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3624 public void MergeFrom(MessageOptions other) { 3319 public void MergeFrom(MessageOptions other) {
3625 if (other == null) { 3320 if (other == null) {
3626 return; 3321 return;
3627 } 3322 }
3628 if (other.MessageSetWireFormat != false) { 3323 if (other.MessageSetWireFormat != false) {
3629 MessageSetWireFormat = other.MessageSetWireFormat; 3324 MessageSetWireFormat = other.MessageSetWireFormat;
3630 } 3325 }
3631 if (other.NoStandardDescriptorAccessor != false) { 3326 if (other.NoStandardDescriptorAccessor != false) {
3632 NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor; 3327 NoStandardDescriptorAccessor = other.NoStandardDescriptorAccessor;
3633 } 3328 }
3634 if (other.Deprecated != false) { 3329 if (other.Deprecated != false) {
3635 Deprecated = other.Deprecated; 3330 Deprecated = other.Deprecated;
3636 } 3331 }
3637 if (other.MapEntry != false) { 3332 if (other.MapEntry != false) {
3638 MapEntry = other.MapEntry; 3333 MapEntry = other.MapEntry;
3639 } 3334 }
3640 uninterpretedOption_.Add(other.uninterpretedOption_); 3335 uninterpretedOption_.Add(other.uninterpretedOption_);
3641 } 3336 }
3642 3337
3643 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3644 public void MergeFrom(pb::CodedInputStream input) { 3338 public void MergeFrom(pb::CodedInputStream input) {
3645 uint tag; 3339 uint tag;
3646 while ((tag = input.ReadTag()) != 0) { 3340 while ((tag = input.ReadTag()) != 0) {
3647 switch(tag) { 3341 switch(tag) {
3648 default: 3342 default:
3649 input.SkipLastField(); 3343 input.SkipLastField();
3650 break; 3344 break;
3651 case 8: { 3345 case 8: {
3652 MessageSetWireFormat = input.ReadBool(); 3346 MessageSetWireFormat = input.ReadBool();
3653 break; 3347 break;
(...skipping 13 matching lines...) Expand all
3667 case 7994: { 3361 case 7994: {
3668 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec); 3362 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
3669 break; 3363 break;
3670 } 3364 }
3671 } 3365 }
3672 } 3366 }
3673 } 3367 }
3674 3368
3675 } 3369 }
3676 3370
3371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
3677 internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> { 3372 internal sealed partial class FieldOptions : pb::IMessage<FieldOptions> {
3678 private static readonly pb::MessageParser<FieldOptions> _parser = new pb::Me ssageParser<FieldOptions>(() => new FieldOptions()); 3373 private static readonly pb::MessageParser<FieldOptions> _parser = new pb::Me ssageParser<FieldOptions>(() => new FieldOptions());
3679 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3680 public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } } 3374 public static pb::MessageParser<FieldOptions> Parser { get { return _parser; } }
3681 3375
3682 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3683 public static pbr::MessageDescriptor Descriptor { 3376 public static pbr::MessageDescriptor Descriptor {
3684 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[11]; } 3377 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[11]; }
3685 } 3378 }
3686 3379
3687 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3688 pbr::MessageDescriptor pb::IMessage.Descriptor { 3380 pbr::MessageDescriptor pb::IMessage.Descriptor {
3689 get { return Descriptor; } 3381 get { return Descriptor; }
3690 } 3382 }
3691 3383
3692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3693 public FieldOptions() { 3384 public FieldOptions() {
3694 OnConstruction(); 3385 OnConstruction();
3695 } 3386 }
3696 3387
3697 partial void OnConstruction(); 3388 partial void OnConstruction();
3698 3389
3699 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3700 public FieldOptions(FieldOptions other) : this() { 3390 public FieldOptions(FieldOptions other) : this() {
3701 ctype_ = other.ctype_; 3391 ctype_ = other.ctype_;
3702 packed_ = other.packed_; 3392 packed_ = other.packed_;
3703 jstype_ = other.jstype_; 3393 jstype_ = other.jstype_;
3704 lazy_ = other.lazy_; 3394 lazy_ = other.lazy_;
3705 deprecated_ = other.deprecated_; 3395 deprecated_ = other.deprecated_;
3706 weak_ = other.weak_; 3396 weak_ = other.weak_;
3707 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 3397 uninterpretedOption_ = other.uninterpretedOption_.Clone();
3708 } 3398 }
3709 3399
3710 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3711 public FieldOptions Clone() { 3400 public FieldOptions Clone() {
3712 return new FieldOptions(this); 3401 return new FieldOptions(this);
3713 } 3402 }
3714 3403
3715 /// <summary>Field number for the "ctype" field.</summary> 3404 /// <summary>Field number for the "ctype" field.</summary>
3716 public const int CtypeFieldNumber = 1; 3405 public const int CtypeFieldNumber = 1;
3717 private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = 0; 3406 private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ = 0;
3718 /// <summary> 3407 /// <summary>
3719 /// The ctype option instructs the C++ code generator to use a different 3408 /// The ctype option instructs the C++ code generator to use a different
3720 /// representation of the field than it normally would. See the specific 3409 /// representation of the field than it normally would. See the specific
3721 /// options below. This option is not yet implemented in the open source 3410 /// options below. This option is not yet implemented in the open source
3722 /// release -- sorry, we'll try to include it in a future version! 3411 /// release -- sorry, we'll try to include it in a future version!
3723 /// </summary> 3412 /// </summary>
3724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3725 public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype { 3413 public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype {
3726 get { return ctype_; } 3414 get { return ctype_; }
3727 set { 3415 set {
3728 ctype_ = value; 3416 ctype_ = value;
3729 } 3417 }
3730 } 3418 }
3731 3419
3732 /// <summary>Field number for the "packed" field.</summary> 3420 /// <summary>Field number for the "packed" field.</summary>
3733 public const int PackedFieldNumber = 2; 3421 public const int PackedFieldNumber = 2;
3734 private bool packed_; 3422 private bool packed_;
3735 /// <summary> 3423 /// <summary>
3736 /// The packed option can be enabled for repeated primitive fields to enable 3424 /// The packed option can be enabled for repeated primitive fields to enabl e
3737 /// a more efficient representation on the wire. Rather than repeatedly 3425 /// a more efficient representation on the wire. Rather than repeatedly
3738 /// writing the tag and type for each element, the entire array is encoded a s 3426 /// writing the tag and type for each element, the entire array is encoded as
3739 /// a single length-delimited blob. In proto3, only explicit setting it to 3427 /// a single length-delimited blob. In proto3, only explicit setting it to
3740 /// false will avoid using packed encoding. 3428 /// false will avoid using packed encoding.
3741 /// </summary> 3429 /// </summary>
3742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3743 public bool Packed { 3430 public bool Packed {
3744 get { return packed_; } 3431 get { return packed_; }
3745 set { 3432 set {
3746 packed_ = value; 3433 packed_ = value;
3747 } 3434 }
3748 } 3435 }
3749 3436
3750 /// <summary>Field number for the "jstype" field.</summary> 3437 /// <summary>Field number for the "jstype" field.</summary>
3751 public const int JstypeFieldNumber = 6; 3438 public const int JstypeFieldNumber = 6;
3752 private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = 0; 3439 private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_ = 0;
3753 /// <summary> 3440 /// <summary>
3754 /// The jstype option determines the JavaScript type used for values of the 3441 /// The jstype option determines the JavaScript type used for values of the
3755 /// field. The option is permitted only for 64 bit integral and fixed types 3442 /// field. The option is permitted only for 64 bit integral and fixed type s
3756 /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are 3443 /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are
3757 /// represented as JavaScript strings. This avoids loss of precision that c an 3444 /// represented as JavaScript strings. This avoids loss of precision that can
3758 /// happen when a large value is converted to a floating point JavaScript 3445 /// happen when a large value is converted to a floating point JavaScript
3759 /// numbers. Specifying JS_NUMBER for the jstype causes the generated 3446 /// numbers. Specifying JS_NUMBER for the jstype causes the generated
3760 /// JavaScript code to use the JavaScript "number" type instead of strings. 3447 /// JavaScript code to use the JavaScript "number" type instead of strings.
3761 /// This option is an enum to permit additional types to be added, 3448 /// This option is an enum to permit additional types to be added,
3762 /// e.g. goog.math.Integer. 3449 /// e.g. goog.math.Integer.
3763 /// </summary> 3450 /// </summary>
3764 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3765 public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype { 3451 public global::Google.Protobuf.Reflection.FieldOptions.Types.JSType Jstype {
3766 get { return jstype_; } 3452 get { return jstype_; }
3767 set { 3453 set {
3768 jstype_ = value; 3454 jstype_ = value;
3769 } 3455 }
3770 } 3456 }
3771 3457
3772 /// <summary>Field number for the "lazy" field.</summary> 3458 /// <summary>Field number for the "lazy" field.</summary>
3773 public const int LazyFieldNumber = 5; 3459 public const int LazyFieldNumber = 5;
3774 private bool lazy_; 3460 private bool lazy_;
3775 /// <summary> 3461 /// <summary>
3776 /// Should this field be parsed lazily? Lazy applies only to message-type 3462 /// Should this field be parsed lazily? Lazy applies only to message-type
3777 /// fields. It means that when the outer message is initially parsed, the 3463 /// fields. It means that when the outer message is initially parsed, the
3778 /// inner message's contents will not be parsed but instead stored in encode d 3464 /// inner message's contents will not be parsed but instead stored in encod ed
3779 /// form. The inner message will actually be parsed when it is first access ed. 3465 /// form. The inner message will actually be parsed when it is first acces sed.
3780 /// 3466 ///
3781 /// This is only a hint. Implementations are free to choose whether to use 3467 /// This is only a hint. Implementations are free to choose whether to use
3782 /// eager or lazy parsing regardless of the value of this option. However, 3468 /// eager or lazy parsing regardless of the value of this option. However,
3783 /// setting this option true suggests that the protocol author believes that 3469 /// setting this option true suggests that the protocol author believes tha t
3784 /// using lazy parsing on this field is worth the additional bookkeeping 3470 /// using lazy parsing on this field is worth the additional bookkeeping
3785 /// overhead typically needed to implement it. 3471 /// overhead typically needed to implement it.
3786 /// 3472 ///
3787 /// This option does not affect the public interface of any generated code; 3473 /// This option does not affect the public interface of any generated code;
3788 /// all method signatures remain the same. Furthermore, thread-safety of th e 3474 /// all method signatures remain the same. Furthermore, thread-safety of t he
3789 /// interface is not affected by this option; const methods remain safe to 3475 /// interface is not affected by this option; const methods remain safe to
3790 /// call from multiple threads concurrently, while non-const methods continu e 3476 /// call from multiple threads concurrently, while non-const methods contin ue
3791 /// to require exclusive access. 3477 /// to require exclusive access.
3792 /// 3478 ///
3793 /// Note that implementations may choose not to check required fields within 3479 /// Note that implementations may choose not to check required fields withi n
3794 /// a lazy sub-message. That is, calling IsInitialized() on the outer messa ge 3480 /// a lazy sub-message. That is, calling IsInitialized() on the outher mes sage
3795 /// may return true even if the inner message has missing required fields. 3481 /// may return true even if the inner message has missing required fields.
3796 /// This is necessary because otherwise the inner message would have to be 3482 /// This is necessary because otherwise the inner message would have to be
3797 /// parsed in order to perform the check, defeating the purpose of lazy 3483 /// parsed in order to perform the check, defeating the purpose of lazy
3798 /// parsing. An implementation which chooses not to check required fields 3484 /// parsing. An implementation which chooses not to check required fields
3799 /// must be consistent about it. That is, for any particular sub-message, t he 3485 /// must be consistent about it. That is, for any particular sub-message, the
3800 /// implementation must either *always* check its required fields, or *never * 3486 /// implementation must either *always* check its required fields, or *neve r*
3801 /// check its required fields, regardless of whether or not the message has 3487 /// check its required fields, regardless of whether or not the message has
3802 /// been parsed. 3488 /// been parsed.
3803 /// </summary> 3489 /// </summary>
3804 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3805 public bool Lazy { 3490 public bool Lazy {
3806 get { return lazy_; } 3491 get { return lazy_; }
3807 set { 3492 set {
3808 lazy_ = value; 3493 lazy_ = value;
3809 } 3494 }
3810 } 3495 }
3811 3496
3812 /// <summary>Field number for the "deprecated" field.</summary> 3497 /// <summary>Field number for the "deprecated" field.</summary>
3813 public const int DeprecatedFieldNumber = 3; 3498 public const int DeprecatedFieldNumber = 3;
3814 private bool deprecated_; 3499 private bool deprecated_;
3815 /// <summary> 3500 /// <summary>
3816 /// Is this field deprecated? 3501 /// Is this field deprecated?
3817 /// Depending on the target platform, this can emit Deprecated annotations 3502 /// Depending on the target platform, this can emit Deprecated annotations
3818 /// for accessors, or it will be completely ignored; in the very least, this 3503 /// for accessors, or it will be completely ignored; in the very least, thi s
3819 /// is a formalization for deprecating fields. 3504 /// is a formalization for deprecating fields.
3820 /// </summary> 3505 /// </summary>
3821 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3822 public bool Deprecated { 3506 public bool Deprecated {
3823 get { return deprecated_; } 3507 get { return deprecated_; }
3824 set { 3508 set {
3825 deprecated_ = value; 3509 deprecated_ = value;
3826 } 3510 }
3827 } 3511 }
3828 3512
3829 /// <summary>Field number for the "weak" field.</summary> 3513 /// <summary>Field number for the "weak" field.</summary>
3830 public const int WeakFieldNumber = 10; 3514 public const int WeakFieldNumber = 10;
3831 private bool weak_; 3515 private bool weak_;
3832 /// <summary> 3516 /// <summary>
3833 /// For Google-internal migration only. Do not use. 3517 /// For Google-internal migration only. Do not use.
3834 /// </summary> 3518 /// </summary>
3835 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3836 public bool Weak { 3519 public bool Weak {
3837 get { return weak_; } 3520 get { return weak_; }
3838 set { 3521 set {
3839 weak_ = value; 3522 weak_ = value;
3840 } 3523 }
3841 } 3524 }
3842 3525
3843 /// <summary>Field number for the "uninterpreted_option" field.</summary> 3526 /// <summary>Field number for the "uninterpreted_option" field.</summary>
3844 public const int UninterpretedOptionFieldNumber = 999; 3527 public const int UninterpretedOptionFieldNumber = 999;
3845 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec 3528 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
3846 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser); 3529 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
3847 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>(); 3530 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
3848 /// <summary> 3531 /// <summary>
3849 /// The parser stores options it doesn't recognize here. See above. 3532 /// The parser stores options it doesn't recognize here. See above.
3850 /// </summary> 3533 /// </summary>
3851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3852 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption { 3534 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
3853 get { return uninterpretedOption_; } 3535 get { return uninterpretedOption_; }
3854 } 3536 }
3855 3537
3856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3857 public override bool Equals(object other) { 3538 public override bool Equals(object other) {
3858 return Equals(other as FieldOptions); 3539 return Equals(other as FieldOptions);
3859 } 3540 }
3860 3541
3861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3862 public bool Equals(FieldOptions other) { 3542 public bool Equals(FieldOptions other) {
3863 if (ReferenceEquals(other, null)) { 3543 if (ReferenceEquals(other, null)) {
3864 return false; 3544 return false;
3865 } 3545 }
3866 if (ReferenceEquals(other, this)) { 3546 if (ReferenceEquals(other, this)) {
3867 return true; 3547 return true;
3868 } 3548 }
3869 if (Ctype != other.Ctype) return false; 3549 if (Ctype != other.Ctype) return false;
3870 if (Packed != other.Packed) return false; 3550 if (Packed != other.Packed) return false;
3871 if (Jstype != other.Jstype) return false; 3551 if (Jstype != other.Jstype) return false;
3872 if (Lazy != other.Lazy) return false; 3552 if (Lazy != other.Lazy) return false;
3873 if (Deprecated != other.Deprecated) return false; 3553 if (Deprecated != other.Deprecated) return false;
3874 if (Weak != other.Weak) return false; 3554 if (Weak != other.Weak) return false;
3875 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 3555 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
3876 return true; 3556 return true;
3877 } 3557 }
3878 3558
3879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3880 public override int GetHashCode() { 3559 public override int GetHashCode() {
3881 int hash = 1; 3560 int hash = 1;
3882 if (Ctype != 0) hash ^= Ctype.GetHashCode(); 3561 if (Ctype != 0) hash ^= Ctype.GetHashCode();
3883 if (Packed != false) hash ^= Packed.GetHashCode(); 3562 if (Packed != false) hash ^= Packed.GetHashCode();
3884 if (Jstype != 0) hash ^= Jstype.GetHashCode(); 3563 if (Jstype != 0) hash ^= Jstype.GetHashCode();
3885 if (Lazy != false) hash ^= Lazy.GetHashCode(); 3564 if (Lazy != false) hash ^= Lazy.GetHashCode();
3886 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 3565 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
3887 if (Weak != false) hash ^= Weak.GetHashCode(); 3566 if (Weak != false) hash ^= Weak.GetHashCode();
3888 hash ^= uninterpretedOption_.GetHashCode(); 3567 hash ^= uninterpretedOption_.GetHashCode();
3889 return hash; 3568 return hash;
3890 } 3569 }
3891 3570
3892 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3893 public override string ToString() { 3571 public override string ToString() {
3894 return pb::JsonFormatter.ToDiagnosticString(this); 3572 return pb::JsonFormatter.ToDiagnosticString(this);
3895 } 3573 }
3896 3574
3897 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3898 public void WriteTo(pb::CodedOutputStream output) { 3575 public void WriteTo(pb::CodedOutputStream output) {
3899 if (Ctype != 0) { 3576 if (Ctype != 0) {
3900 output.WriteRawTag(8); 3577 output.WriteRawTag(8);
3901 output.WriteEnum((int) Ctype); 3578 output.WriteEnum((int) Ctype);
3902 } 3579 }
3903 if (Packed != false) { 3580 if (Packed != false) {
3904 output.WriteRawTag(16); 3581 output.WriteRawTag(16);
3905 output.WriteBool(Packed); 3582 output.WriteBool(Packed);
3906 } 3583 }
3907 if (Deprecated != false) { 3584 if (Deprecated != false) {
3908 output.WriteRawTag(24); 3585 output.WriteRawTag(24);
3909 output.WriteBool(Deprecated); 3586 output.WriteBool(Deprecated);
3910 } 3587 }
3911 if (Lazy != false) { 3588 if (Lazy != false) {
3912 output.WriteRawTag(40); 3589 output.WriteRawTag(40);
3913 output.WriteBool(Lazy); 3590 output.WriteBool(Lazy);
3914 } 3591 }
3915 if (Jstype != 0) { 3592 if (Jstype != 0) {
3916 output.WriteRawTag(48); 3593 output.WriteRawTag(48);
3917 output.WriteEnum((int) Jstype); 3594 output.WriteEnum((int) Jstype);
3918 } 3595 }
3919 if (Weak != false) { 3596 if (Weak != false) {
3920 output.WriteRawTag(80); 3597 output.WriteRawTag(80);
3921 output.WriteBool(Weak); 3598 output.WriteBool(Weak);
3922 } 3599 }
3923 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 3600 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
3924 } 3601 }
3925 3602
3926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3927 public int CalculateSize() { 3603 public int CalculateSize() {
3928 int size = 0; 3604 int size = 0;
3929 if (Ctype != 0) { 3605 if (Ctype != 0) {
3930 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype); 3606 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype);
3931 } 3607 }
3932 if (Packed != false) { 3608 if (Packed != false) {
3933 size += 1 + 1; 3609 size += 1 + 1;
3934 } 3610 }
3935 if (Jstype != 0) { 3611 if (Jstype != 0) {
3936 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype); 3612 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype);
3937 } 3613 }
3938 if (Lazy != false) { 3614 if (Lazy != false) {
3939 size += 1 + 1; 3615 size += 1 + 1;
3940 } 3616 }
3941 if (Deprecated != false) { 3617 if (Deprecated != false) {
3942 size += 1 + 1; 3618 size += 1 + 1;
3943 } 3619 }
3944 if (Weak != false) { 3620 if (Weak != false) {
3945 size += 1 + 1; 3621 size += 1 + 1;
3946 } 3622 }
3947 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec); 3623 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
3948 return size; 3624 return size;
3949 } 3625 }
3950 3626
3951 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3952 public void MergeFrom(FieldOptions other) { 3627 public void MergeFrom(FieldOptions other) {
3953 if (other == null) { 3628 if (other == null) {
3954 return; 3629 return;
3955 } 3630 }
3956 if (other.Ctype != 0) { 3631 if (other.Ctype != 0) {
3957 Ctype = other.Ctype; 3632 Ctype = other.Ctype;
3958 } 3633 }
3959 if (other.Packed != false) { 3634 if (other.Packed != false) {
3960 Packed = other.Packed; 3635 Packed = other.Packed;
3961 } 3636 }
3962 if (other.Jstype != 0) { 3637 if (other.Jstype != 0) {
3963 Jstype = other.Jstype; 3638 Jstype = other.Jstype;
3964 } 3639 }
3965 if (other.Lazy != false) { 3640 if (other.Lazy != false) {
3966 Lazy = other.Lazy; 3641 Lazy = other.Lazy;
3967 } 3642 }
3968 if (other.Deprecated != false) { 3643 if (other.Deprecated != false) {
3969 Deprecated = other.Deprecated; 3644 Deprecated = other.Deprecated;
3970 } 3645 }
3971 if (other.Weak != false) { 3646 if (other.Weak != false) {
3972 Weak = other.Weak; 3647 Weak = other.Weak;
3973 } 3648 }
3974 uninterpretedOption_.Add(other.uninterpretedOption_); 3649 uninterpretedOption_.Add(other.uninterpretedOption_);
3975 } 3650 }
3976 3651
3977 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
3978 public void MergeFrom(pb::CodedInputStream input) { 3652 public void MergeFrom(pb::CodedInputStream input) {
3979 uint tag; 3653 uint tag;
3980 while ((tag = input.ReadTag()) != 0) { 3654 while ((tag = input.ReadTag()) != 0) {
3981 switch(tag) { 3655 switch(tag) {
3982 default: 3656 default:
3983 input.SkipLastField(); 3657 input.SkipLastField();
3984 break; 3658 break;
3985 case 8: { 3659 case 8: {
3986 ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CTyp e) input.ReadEnum(); 3660 ctype_ = (global::Google.Protobuf.Reflection.FieldOptions.Types.CTyp e) input.ReadEnum();
3987 break; 3661 break;
(...skipping 21 matching lines...) Expand all
4009 case 7994: { 3683 case 7994: {
4010 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec); 3684 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
4011 break; 3685 break;
4012 } 3686 }
4013 } 3687 }
4014 } 3688 }
4015 } 3689 }
4016 3690
4017 #region Nested types 3691 #region Nested types
4018 /// <summary>Container for nested types declared in the FieldOptions message type.</summary> 3692 /// <summary>Container for nested types declared in the FieldOptions message type.</summary>
4019 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4020 public static partial class Types { 3694 public static partial class Types {
4021 internal enum CType { 3695 internal enum CType {
4022 /// <summary> 3696 /// <summary>
4023 /// Default mode. 3697 /// Default mode.
4024 /// </summary> 3698 /// </summary>
4025 [pbr::OriginalName("STRING")] String = 0, 3699 [pbr::OriginalName("STRING")] String = 0,
4026 [pbr::OriginalName("CORD")] Cord = 1, 3700 [pbr::OriginalName("CORD")] Cord = 1,
4027 [pbr::OriginalName("STRING_PIECE")] StringPiece = 2, 3701 [pbr::OriginalName("STRING_PIECE")] StringPiece = 2,
4028 } 3702 }
4029 3703
4030 internal enum JSType { 3704 internal enum JSType {
4031 /// <summary> 3705 /// <summary>
4032 /// Use the default type. 3706 /// Use the default type.
4033 /// </summary> 3707 /// </summary>
4034 [pbr::OriginalName("JS_NORMAL")] JsNormal = 0, 3708 [pbr::OriginalName("JS_NORMAL")] JsNormal = 0,
4035 /// <summary> 3709 /// <summary>
4036 /// Use JavaScript strings. 3710 /// Use JavaScript strings.
4037 /// </summary> 3711 /// </summary>
4038 [pbr::OriginalName("JS_STRING")] JsString = 1, 3712 [pbr::OriginalName("JS_STRING")] JsString = 1,
4039 /// <summary> 3713 /// <summary>
4040 /// Use JavaScript numbers. 3714 /// Use JavaScript numbers.
4041 /// </summary> 3715 /// </summary>
4042 [pbr::OriginalName("JS_NUMBER")] JsNumber = 2, 3716 [pbr::OriginalName("JS_NUMBER")] JsNumber = 2,
4043 } 3717 }
4044 3718
4045 } 3719 }
4046 #endregion 3720 #endregion
4047 3721
4048 } 3722 }
4049 3723
4050 internal sealed partial class OneofOptions : pb::IMessage<OneofOptions> { 3724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4051 private static readonly pb::MessageParser<OneofOptions> _parser = new pb::Me ssageParser<OneofOptions>(() => new OneofOptions()); 3725 internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
4052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 3726 private static readonly pb::MessageParser<EnumOptions> _parser = new pb::Mes sageParser<EnumOptions>(() => new EnumOptions());
4053 public static pb::MessageParser<OneofOptions> Parser { get { return _parser; } } 3727 public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
4054 3728
4055 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4056 public static pbr::MessageDescriptor Descriptor { 3729 public static pbr::MessageDescriptor Descriptor {
4057 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[12]; } 3730 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[12]; }
4058 } 3731 }
4059 3732
4060 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4061 pbr::MessageDescriptor pb::IMessage.Descriptor { 3733 pbr::MessageDescriptor pb::IMessage.Descriptor {
4062 get { return Descriptor; } 3734 get { return Descriptor; }
4063 } 3735 }
4064 3736
4065 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4066 public OneofOptions() {
4067 OnConstruction();
4068 }
4069
4070 partial void OnConstruction();
4071
4072 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4073 public OneofOptions(OneofOptions other) : this() {
4074 uninterpretedOption_ = other.uninterpretedOption_.Clone();
4075 }
4076
4077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4078 public OneofOptions Clone() {
4079 return new OneofOptions(this);
4080 }
4081
4082 /// <summary>Field number for the "uninterpreted_option" field.</summary>
4083 public const int UninterpretedOptionFieldNumber = 999;
4084 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
4085 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
4086 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
4087 /// <summary>
4088 /// The parser stores options it doesn't recognize here. See above.
4089 /// </summary>
4090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4091 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
4092 get { return uninterpretedOption_; }
4093 }
4094
4095 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4096 public override bool Equals(object other) {
4097 return Equals(other as OneofOptions);
4098 }
4099
4100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4101 public bool Equals(OneofOptions other) {
4102 if (ReferenceEquals(other, null)) {
4103 return false;
4104 }
4105 if (ReferenceEquals(other, this)) {
4106 return true;
4107 }
4108 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
4109 return true;
4110 }
4111
4112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4113 public override int GetHashCode() {
4114 int hash = 1;
4115 hash ^= uninterpretedOption_.GetHashCode();
4116 return hash;
4117 }
4118
4119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4120 public override string ToString() {
4121 return pb::JsonFormatter.ToDiagnosticString(this);
4122 }
4123
4124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4125 public void WriteTo(pb::CodedOutputStream output) {
4126 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
4127 }
4128
4129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4130 public int CalculateSize() {
4131 int size = 0;
4132 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
4133 return size;
4134 }
4135
4136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4137 public void MergeFrom(OneofOptions other) {
4138 if (other == null) {
4139 return;
4140 }
4141 uninterpretedOption_.Add(other.uninterpretedOption_);
4142 }
4143
4144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4145 public void MergeFrom(pb::CodedInputStream input) {
4146 uint tag;
4147 while ((tag = input.ReadTag()) != 0) {
4148 switch(tag) {
4149 default:
4150 input.SkipLastField();
4151 break;
4152 case 7994: {
4153 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
4154 break;
4155 }
4156 }
4157 }
4158 }
4159
4160 }
4161
4162 internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> {
4163 private static readonly pb::MessageParser<EnumOptions> _parser = new pb::Mes sageParser<EnumOptions>(() => new EnumOptions());
4164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4165 public static pb::MessageParser<EnumOptions> Parser { get { return _parser; } }
4166
4167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4168 public static pbr::MessageDescriptor Descriptor {
4169 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[13]; }
4170 }
4171
4172 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4173 pbr::MessageDescriptor pb::IMessage.Descriptor {
4174 get { return Descriptor; }
4175 }
4176
4177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4178 public EnumOptions() { 3737 public EnumOptions() {
4179 OnConstruction(); 3738 OnConstruction();
4180 } 3739 }
4181 3740
4182 partial void OnConstruction(); 3741 partial void OnConstruction();
4183 3742
4184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4185 public EnumOptions(EnumOptions other) : this() { 3743 public EnumOptions(EnumOptions other) : this() {
4186 allowAlias_ = other.allowAlias_; 3744 allowAlias_ = other.allowAlias_;
4187 deprecated_ = other.deprecated_; 3745 deprecated_ = other.deprecated_;
4188 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 3746 uninterpretedOption_ = other.uninterpretedOption_.Clone();
4189 } 3747 }
4190 3748
4191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4192 public EnumOptions Clone() { 3749 public EnumOptions Clone() {
4193 return new EnumOptions(this); 3750 return new EnumOptions(this);
4194 } 3751 }
4195 3752
4196 /// <summary>Field number for the "allow_alias" field.</summary> 3753 /// <summary>Field number for the "allow_alias" field.</summary>
4197 public const int AllowAliasFieldNumber = 2; 3754 public const int AllowAliasFieldNumber = 2;
4198 private bool allowAlias_; 3755 private bool allowAlias_;
4199 /// <summary> 3756 /// <summary>
4200 /// Set this option to true to allow mapping different tag names to the same 3757 /// Set this option to true to allow mapping different tag names to the sam e
4201 /// value. 3758 /// value.
4202 /// </summary> 3759 /// </summary>
4203 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4204 public bool AllowAlias { 3760 public bool AllowAlias {
4205 get { return allowAlias_; } 3761 get { return allowAlias_; }
4206 set { 3762 set {
4207 allowAlias_ = value; 3763 allowAlias_ = value;
4208 } 3764 }
4209 } 3765 }
4210 3766
4211 /// <summary>Field number for the "deprecated" field.</summary> 3767 /// <summary>Field number for the "deprecated" field.</summary>
4212 public const int DeprecatedFieldNumber = 3; 3768 public const int DeprecatedFieldNumber = 3;
4213 private bool deprecated_; 3769 private bool deprecated_;
4214 /// <summary> 3770 /// <summary>
4215 /// Is this enum deprecated? 3771 /// Is this enum deprecated?
4216 /// Depending on the target platform, this can emit Deprecated annotations 3772 /// Depending on the target platform, this can emit Deprecated annotations
4217 /// for the enum, or it will be completely ignored; in the very least, this 3773 /// for the enum, or it will be completely ignored; in the very least, this
4218 /// is a formalization for deprecating enums. 3774 /// is a formalization for deprecating enums.
4219 /// </summary> 3775 /// </summary>
4220 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4221 public bool Deprecated { 3776 public bool Deprecated {
4222 get { return deprecated_; } 3777 get { return deprecated_; }
4223 set { 3778 set {
4224 deprecated_ = value; 3779 deprecated_ = value;
4225 } 3780 }
4226 } 3781 }
4227 3782
4228 /// <summary>Field number for the "uninterpreted_option" field.</summary> 3783 /// <summary>Field number for the "uninterpreted_option" field.</summary>
4229 public const int UninterpretedOptionFieldNumber = 999; 3784 public const int UninterpretedOptionFieldNumber = 999;
4230 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec 3785 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
4231 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser); 3786 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
4232 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>(); 3787 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
4233 /// <summary> 3788 /// <summary>
4234 /// The parser stores options it doesn't recognize here. See above. 3789 /// The parser stores options it doesn't recognize here. See above.
4235 /// </summary> 3790 /// </summary>
4236 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4237 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption { 3791 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
4238 get { return uninterpretedOption_; } 3792 get { return uninterpretedOption_; }
4239 } 3793 }
4240 3794
4241 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4242 public override bool Equals(object other) { 3795 public override bool Equals(object other) {
4243 return Equals(other as EnumOptions); 3796 return Equals(other as EnumOptions);
4244 } 3797 }
4245 3798
4246 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4247 public bool Equals(EnumOptions other) { 3799 public bool Equals(EnumOptions other) {
4248 if (ReferenceEquals(other, null)) { 3800 if (ReferenceEquals(other, null)) {
4249 return false; 3801 return false;
4250 } 3802 }
4251 if (ReferenceEquals(other, this)) { 3803 if (ReferenceEquals(other, this)) {
4252 return true; 3804 return true;
4253 } 3805 }
4254 if (AllowAlias != other.AllowAlias) return false; 3806 if (AllowAlias != other.AllowAlias) return false;
4255 if (Deprecated != other.Deprecated) return false; 3807 if (Deprecated != other.Deprecated) return false;
4256 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 3808 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
4257 return true; 3809 return true;
4258 } 3810 }
4259 3811
4260 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4261 public override int GetHashCode() { 3812 public override int GetHashCode() {
4262 int hash = 1; 3813 int hash = 1;
4263 if (AllowAlias != false) hash ^= AllowAlias.GetHashCode(); 3814 if (AllowAlias != false) hash ^= AllowAlias.GetHashCode();
4264 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 3815 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
4265 hash ^= uninterpretedOption_.GetHashCode(); 3816 hash ^= uninterpretedOption_.GetHashCode();
4266 return hash; 3817 return hash;
4267 } 3818 }
4268 3819
4269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4270 public override string ToString() { 3820 public override string ToString() {
4271 return pb::JsonFormatter.ToDiagnosticString(this); 3821 return pb::JsonFormatter.ToDiagnosticString(this);
4272 } 3822 }
4273 3823
4274 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4275 public void WriteTo(pb::CodedOutputStream output) { 3824 public void WriteTo(pb::CodedOutputStream output) {
4276 if (AllowAlias != false) { 3825 if (AllowAlias != false) {
4277 output.WriteRawTag(16); 3826 output.WriteRawTag(16);
4278 output.WriteBool(AllowAlias); 3827 output.WriteBool(AllowAlias);
4279 } 3828 }
4280 if (Deprecated != false) { 3829 if (Deprecated != false) {
4281 output.WriteRawTag(24); 3830 output.WriteRawTag(24);
4282 output.WriteBool(Deprecated); 3831 output.WriteBool(Deprecated);
4283 } 3832 }
4284 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 3833 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
4285 } 3834 }
4286 3835
4287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4288 public int CalculateSize() { 3836 public int CalculateSize() {
4289 int size = 0; 3837 int size = 0;
4290 if (AllowAlias != false) { 3838 if (AllowAlias != false) {
4291 size += 1 + 1; 3839 size += 1 + 1;
4292 } 3840 }
4293 if (Deprecated != false) { 3841 if (Deprecated != false) {
4294 size += 1 + 1; 3842 size += 1 + 1;
4295 } 3843 }
4296 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec); 3844 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
4297 return size; 3845 return size;
4298 } 3846 }
4299 3847
4300 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4301 public void MergeFrom(EnumOptions other) { 3848 public void MergeFrom(EnumOptions other) {
4302 if (other == null) { 3849 if (other == null) {
4303 return; 3850 return;
4304 } 3851 }
4305 if (other.AllowAlias != false) { 3852 if (other.AllowAlias != false) {
4306 AllowAlias = other.AllowAlias; 3853 AllowAlias = other.AllowAlias;
4307 } 3854 }
4308 if (other.Deprecated != false) { 3855 if (other.Deprecated != false) {
4309 Deprecated = other.Deprecated; 3856 Deprecated = other.Deprecated;
4310 } 3857 }
4311 uninterpretedOption_.Add(other.uninterpretedOption_); 3858 uninterpretedOption_.Add(other.uninterpretedOption_);
4312 } 3859 }
4313 3860
4314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4315 public void MergeFrom(pb::CodedInputStream input) { 3861 public void MergeFrom(pb::CodedInputStream input) {
4316 uint tag; 3862 uint tag;
4317 while ((tag = input.ReadTag()) != 0) { 3863 while ((tag = input.ReadTag()) != 0) {
4318 switch(tag) { 3864 switch(tag) {
4319 default: 3865 default:
4320 input.SkipLastField(); 3866 input.SkipLastField();
4321 break; 3867 break;
4322 case 16: { 3868 case 16: {
4323 AllowAlias = input.ReadBool(); 3869 AllowAlias = input.ReadBool();
4324 break; 3870 break;
4325 } 3871 }
4326 case 24: { 3872 case 24: {
4327 Deprecated = input.ReadBool(); 3873 Deprecated = input.ReadBool();
4328 break; 3874 break;
4329 } 3875 }
4330 case 7994: { 3876 case 7994: {
4331 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec); 3877 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
4332 break; 3878 break;
4333 } 3879 }
4334 } 3880 }
4335 } 3881 }
4336 } 3882 }
4337 3883
4338 } 3884 }
4339 3885
3886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4340 internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions > { 3887 internal sealed partial class EnumValueOptions : pb::IMessage<EnumValueOptions > {
4341 private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb ::MessageParser<EnumValueOptions>(() => new EnumValueOptions()); 3888 private static readonly pb::MessageParser<EnumValueOptions> _parser = new pb ::MessageParser<EnumValueOptions>(() => new EnumValueOptions());
4342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4343 public static pb::MessageParser<EnumValueOptions> Parser { get { return _par ser; } } 3889 public static pb::MessageParser<EnumValueOptions> Parser { get { return _par ser; } }
4344 3890
4345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4346 public static pbr::MessageDescriptor Descriptor { 3891 public static pbr::MessageDescriptor Descriptor {
4347 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[14]; } 3892 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[13]; }
4348 } 3893 }
4349 3894
4350 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4351 pbr::MessageDescriptor pb::IMessage.Descriptor { 3895 pbr::MessageDescriptor pb::IMessage.Descriptor {
4352 get { return Descriptor; } 3896 get { return Descriptor; }
4353 } 3897 }
4354 3898
4355 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4356 public EnumValueOptions() { 3899 public EnumValueOptions() {
4357 OnConstruction(); 3900 OnConstruction();
4358 } 3901 }
4359 3902
4360 partial void OnConstruction(); 3903 partial void OnConstruction();
4361 3904
4362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4363 public EnumValueOptions(EnumValueOptions other) : this() { 3905 public EnumValueOptions(EnumValueOptions other) : this() {
4364 deprecated_ = other.deprecated_; 3906 deprecated_ = other.deprecated_;
4365 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 3907 uninterpretedOption_ = other.uninterpretedOption_.Clone();
4366 } 3908 }
4367 3909
4368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4369 public EnumValueOptions Clone() { 3910 public EnumValueOptions Clone() {
4370 return new EnumValueOptions(this); 3911 return new EnumValueOptions(this);
4371 } 3912 }
4372 3913
4373 /// <summary>Field number for the "deprecated" field.</summary> 3914 /// <summary>Field number for the "deprecated" field.</summary>
4374 public const int DeprecatedFieldNumber = 1; 3915 public const int DeprecatedFieldNumber = 1;
4375 private bool deprecated_; 3916 private bool deprecated_;
4376 /// <summary> 3917 /// <summary>
4377 /// Is this enum value deprecated? 3918 /// Is this enum value deprecated?
4378 /// Depending on the target platform, this can emit Deprecated annotations 3919 /// Depending on the target platform, this can emit Deprecated annotations
4379 /// for the enum value, or it will be completely ignored; in the very least, 3920 /// for the enum value, or it will be completely ignored; in the very least ,
4380 /// this is a formalization for deprecating enum values. 3921 /// this is a formalization for deprecating enum values.
4381 /// </summary> 3922 /// </summary>
4382 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4383 public bool Deprecated { 3923 public bool Deprecated {
4384 get { return deprecated_; } 3924 get { return deprecated_; }
4385 set { 3925 set {
4386 deprecated_ = value; 3926 deprecated_ = value;
4387 } 3927 }
4388 } 3928 }
4389 3929
4390 /// <summary>Field number for the "uninterpreted_option" field.</summary> 3930 /// <summary>Field number for the "uninterpreted_option" field.</summary>
4391 public const int UninterpretedOptionFieldNumber = 999; 3931 public const int UninterpretedOptionFieldNumber = 999;
4392 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec 3932 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
4393 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser); 3933 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
4394 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>(); 3934 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
4395 /// <summary> 3935 /// <summary>
4396 /// The parser stores options it doesn't recognize here. See above. 3936 /// The parser stores options it doesn't recognize here. See above.
4397 /// </summary> 3937 /// </summary>
4398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4399 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption { 3938 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
4400 get { return uninterpretedOption_; } 3939 get { return uninterpretedOption_; }
4401 } 3940 }
4402 3941
4403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4404 public override bool Equals(object other) { 3942 public override bool Equals(object other) {
4405 return Equals(other as EnumValueOptions); 3943 return Equals(other as EnumValueOptions);
4406 } 3944 }
4407 3945
4408 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4409 public bool Equals(EnumValueOptions other) { 3946 public bool Equals(EnumValueOptions other) {
4410 if (ReferenceEquals(other, null)) { 3947 if (ReferenceEquals(other, null)) {
4411 return false; 3948 return false;
4412 } 3949 }
4413 if (ReferenceEquals(other, this)) { 3950 if (ReferenceEquals(other, this)) {
4414 return true; 3951 return true;
4415 } 3952 }
4416 if (Deprecated != other.Deprecated) return false; 3953 if (Deprecated != other.Deprecated) return false;
4417 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 3954 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
4418 return true; 3955 return true;
4419 } 3956 }
4420 3957
4421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4422 public override int GetHashCode() { 3958 public override int GetHashCode() {
4423 int hash = 1; 3959 int hash = 1;
4424 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 3960 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
4425 hash ^= uninterpretedOption_.GetHashCode(); 3961 hash ^= uninterpretedOption_.GetHashCode();
4426 return hash; 3962 return hash;
4427 } 3963 }
4428 3964
4429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4430 public override string ToString() { 3965 public override string ToString() {
4431 return pb::JsonFormatter.ToDiagnosticString(this); 3966 return pb::JsonFormatter.ToDiagnosticString(this);
4432 } 3967 }
4433 3968
4434 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4435 public void WriteTo(pb::CodedOutputStream output) { 3969 public void WriteTo(pb::CodedOutputStream output) {
4436 if (Deprecated != false) { 3970 if (Deprecated != false) {
4437 output.WriteRawTag(8); 3971 output.WriteRawTag(8);
4438 output.WriteBool(Deprecated); 3972 output.WriteBool(Deprecated);
4439 } 3973 }
4440 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 3974 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
4441 } 3975 }
4442 3976
4443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4444 public int CalculateSize() { 3977 public int CalculateSize() {
4445 int size = 0; 3978 int size = 0;
4446 if (Deprecated != false) { 3979 if (Deprecated != false) {
4447 size += 1 + 1; 3980 size += 1 + 1;
4448 } 3981 }
4449 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec); 3982 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
4450 return size; 3983 return size;
4451 } 3984 }
4452 3985
4453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4454 public void MergeFrom(EnumValueOptions other) { 3986 public void MergeFrom(EnumValueOptions other) {
4455 if (other == null) { 3987 if (other == null) {
4456 return; 3988 return;
4457 } 3989 }
4458 if (other.Deprecated != false) { 3990 if (other.Deprecated != false) {
4459 Deprecated = other.Deprecated; 3991 Deprecated = other.Deprecated;
4460 } 3992 }
4461 uninterpretedOption_.Add(other.uninterpretedOption_); 3993 uninterpretedOption_.Add(other.uninterpretedOption_);
4462 } 3994 }
4463 3995
4464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4465 public void MergeFrom(pb::CodedInputStream input) { 3996 public void MergeFrom(pb::CodedInputStream input) {
4466 uint tag; 3997 uint tag;
4467 while ((tag = input.ReadTag()) != 0) { 3998 while ((tag = input.ReadTag()) != 0) {
4468 switch(tag) { 3999 switch(tag) {
4469 default: 4000 default:
4470 input.SkipLastField(); 4001 input.SkipLastField();
4471 break; 4002 break;
4472 case 8: { 4003 case 8: {
4473 Deprecated = input.ReadBool(); 4004 Deprecated = input.ReadBool();
4474 break; 4005 break;
4475 } 4006 }
4476 case 7994: { 4007 case 7994: {
4477 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec); 4008 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
4478 break; 4009 break;
4479 } 4010 }
4480 } 4011 }
4481 } 4012 }
4482 } 4013 }
4483 4014
4484 } 4015 }
4485 4016
4017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4486 internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> { 4018 internal sealed partial class ServiceOptions : pb::IMessage<ServiceOptions> {
4487 private static readonly pb::MessageParser<ServiceOptions> _parser = new pb:: MessageParser<ServiceOptions>(() => new ServiceOptions()); 4019 private static readonly pb::MessageParser<ServiceOptions> _parser = new pb:: MessageParser<ServiceOptions>(() => new ServiceOptions());
4488 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4489 public static pb::MessageParser<ServiceOptions> Parser { get { return _parse r; } } 4020 public static pb::MessageParser<ServiceOptions> Parser { get { return _parse r; } }
4490 4021
4491 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4492 public static pbr::MessageDescriptor Descriptor { 4022 public static pbr::MessageDescriptor Descriptor {
4493 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[15]; } 4023 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[14]; }
4494 } 4024 }
4495 4025
4496 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4497 pbr::MessageDescriptor pb::IMessage.Descriptor { 4026 pbr::MessageDescriptor pb::IMessage.Descriptor {
4498 get { return Descriptor; } 4027 get { return Descriptor; }
4499 } 4028 }
4500 4029
4501 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4502 public ServiceOptions() { 4030 public ServiceOptions() {
4503 OnConstruction(); 4031 OnConstruction();
4504 } 4032 }
4505 4033
4506 partial void OnConstruction(); 4034 partial void OnConstruction();
4507 4035
4508 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4509 public ServiceOptions(ServiceOptions other) : this() { 4036 public ServiceOptions(ServiceOptions other) : this() {
4510 deprecated_ = other.deprecated_; 4037 deprecated_ = other.deprecated_;
4511 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 4038 uninterpretedOption_ = other.uninterpretedOption_.Clone();
4512 } 4039 }
4513 4040
4514 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4515 public ServiceOptions Clone() { 4041 public ServiceOptions Clone() {
4516 return new ServiceOptions(this); 4042 return new ServiceOptions(this);
4517 } 4043 }
4518 4044
4519 /// <summary>Field number for the "deprecated" field.</summary> 4045 /// <summary>Field number for the "deprecated" field.</summary>
4520 public const int DeprecatedFieldNumber = 33; 4046 public const int DeprecatedFieldNumber = 33;
4521 private bool deprecated_; 4047 private bool deprecated_;
4522 /// <summary> 4048 /// <summary>
4523 /// Is this service deprecated? 4049 /// Is this service deprecated?
4524 /// Depending on the target platform, this can emit Deprecated annotations 4050 /// Depending on the target platform, this can emit Deprecated annotations
4525 /// for the service, or it will be completely ignored; in the very least, 4051 /// for the service, or it will be completely ignored; in the very least,
4526 /// this is a formalization for deprecating services. 4052 /// this is a formalization for deprecating services.
4527 /// </summary> 4053 /// </summary>
4528 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4529 public bool Deprecated { 4054 public bool Deprecated {
4530 get { return deprecated_; } 4055 get { return deprecated_; }
4531 set { 4056 set {
4532 deprecated_ = value; 4057 deprecated_ = value;
4533 } 4058 }
4534 } 4059 }
4535 4060
4536 /// <summary>Field number for the "uninterpreted_option" field.</summary> 4061 /// <summary>Field number for the "uninterpreted_option" field.</summary>
4537 public const int UninterpretedOptionFieldNumber = 999; 4062 public const int UninterpretedOptionFieldNumber = 999;
4538 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec 4063 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
4539 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser); 4064 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
4540 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>(); 4065 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
4541 /// <summary> 4066 /// <summary>
4542 /// The parser stores options it doesn't recognize here. See above. 4067 /// The parser stores options it doesn't recognize here. See above.
4543 /// </summary> 4068 /// </summary>
4544 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4545 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption { 4069 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
4546 get { return uninterpretedOption_; } 4070 get { return uninterpretedOption_; }
4547 } 4071 }
4548 4072
4549 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4550 public override bool Equals(object other) { 4073 public override bool Equals(object other) {
4551 return Equals(other as ServiceOptions); 4074 return Equals(other as ServiceOptions);
4552 } 4075 }
4553 4076
4554 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4555 public bool Equals(ServiceOptions other) { 4077 public bool Equals(ServiceOptions other) {
4556 if (ReferenceEquals(other, null)) { 4078 if (ReferenceEquals(other, null)) {
4557 return false; 4079 return false;
4558 } 4080 }
4559 if (ReferenceEquals(other, this)) { 4081 if (ReferenceEquals(other, this)) {
4560 return true; 4082 return true;
4561 } 4083 }
4562 if (Deprecated != other.Deprecated) return false; 4084 if (Deprecated != other.Deprecated) return false;
4563 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 4085 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
4564 return true; 4086 return true;
4565 } 4087 }
4566 4088
4567 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4568 public override int GetHashCode() { 4089 public override int GetHashCode() {
4569 int hash = 1; 4090 int hash = 1;
4570 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 4091 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
4571 hash ^= uninterpretedOption_.GetHashCode(); 4092 hash ^= uninterpretedOption_.GetHashCode();
4572 return hash; 4093 return hash;
4573 } 4094 }
4574 4095
4575 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4576 public override string ToString() { 4096 public override string ToString() {
4577 return pb::JsonFormatter.ToDiagnosticString(this); 4097 return pb::JsonFormatter.ToDiagnosticString(this);
4578 } 4098 }
4579 4099
4580 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4581 public void WriteTo(pb::CodedOutputStream output) { 4100 public void WriteTo(pb::CodedOutputStream output) {
4582 if (Deprecated != false) { 4101 if (Deprecated != false) {
4583 output.WriteRawTag(136, 2); 4102 output.WriteRawTag(136, 2);
4584 output.WriteBool(Deprecated); 4103 output.WriteBool(Deprecated);
4585 } 4104 }
4586 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 4105 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
4587 } 4106 }
4588 4107
4589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4590 public int CalculateSize() { 4108 public int CalculateSize() {
4591 int size = 0; 4109 int size = 0;
4592 if (Deprecated != false) { 4110 if (Deprecated != false) {
4593 size += 2 + 1; 4111 size += 2 + 1;
4594 } 4112 }
4595 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec); 4113 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
4596 return size; 4114 return size;
4597 } 4115 }
4598 4116
4599 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4600 public void MergeFrom(ServiceOptions other) { 4117 public void MergeFrom(ServiceOptions other) {
4601 if (other == null) { 4118 if (other == null) {
4602 return; 4119 return;
4603 } 4120 }
4604 if (other.Deprecated != false) { 4121 if (other.Deprecated != false) {
4605 Deprecated = other.Deprecated; 4122 Deprecated = other.Deprecated;
4606 } 4123 }
4607 uninterpretedOption_.Add(other.uninterpretedOption_); 4124 uninterpretedOption_.Add(other.uninterpretedOption_);
4608 } 4125 }
4609 4126
4610 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4611 public void MergeFrom(pb::CodedInputStream input) { 4127 public void MergeFrom(pb::CodedInputStream input) {
4612 uint tag; 4128 uint tag;
4613 while ((tag = input.ReadTag()) != 0) { 4129 while ((tag = input.ReadTag()) != 0) {
4614 switch(tag) { 4130 switch(tag) {
4615 default: 4131 default:
4616 input.SkipLastField(); 4132 input.SkipLastField();
4617 break; 4133 break;
4618 case 264: { 4134 case 264: {
4619 Deprecated = input.ReadBool(); 4135 Deprecated = input.ReadBool();
4620 break; 4136 break;
4621 } 4137 }
4622 case 7994: { 4138 case 7994: {
4623 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec); 4139 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
4624 break; 4140 break;
4625 } 4141 }
4626 } 4142 }
4627 } 4143 }
4628 } 4144 }
4629 4145
4630 } 4146 }
4631 4147
4148 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4632 internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> { 4149 internal sealed partial class MethodOptions : pb::IMessage<MethodOptions> {
4633 private static readonly pb::MessageParser<MethodOptions> _parser = new pb::M essageParser<MethodOptions>(() => new MethodOptions()); 4150 private static readonly pb::MessageParser<MethodOptions> _parser = new pb::M essageParser<MethodOptions>(() => new MethodOptions());
4634 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4635 public static pb::MessageParser<MethodOptions> Parser { get { return _parser ; } } 4151 public static pb::MessageParser<MethodOptions> Parser { get { return _parser ; } }
4636 4152
4637 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4638 public static pbr::MessageDescriptor Descriptor { 4153 public static pbr::MessageDescriptor Descriptor {
4639 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[16]; } 4154 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[15]; }
4640 } 4155 }
4641 4156
4642 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4643 pbr::MessageDescriptor pb::IMessage.Descriptor { 4157 pbr::MessageDescriptor pb::IMessage.Descriptor {
4644 get { return Descriptor; } 4158 get { return Descriptor; }
4645 } 4159 }
4646 4160
4647 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4648 public MethodOptions() { 4161 public MethodOptions() {
4649 OnConstruction(); 4162 OnConstruction();
4650 } 4163 }
4651 4164
4652 partial void OnConstruction(); 4165 partial void OnConstruction();
4653 4166
4654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4655 public MethodOptions(MethodOptions other) : this() { 4167 public MethodOptions(MethodOptions other) : this() {
4656 deprecated_ = other.deprecated_; 4168 deprecated_ = other.deprecated_;
4657 idempotencyLevel_ = other.idempotencyLevel_;
4658 uninterpretedOption_ = other.uninterpretedOption_.Clone(); 4169 uninterpretedOption_ = other.uninterpretedOption_.Clone();
4659 } 4170 }
4660 4171
4661 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4662 public MethodOptions Clone() { 4172 public MethodOptions Clone() {
4663 return new MethodOptions(this); 4173 return new MethodOptions(this);
4664 } 4174 }
4665 4175
4666 /// <summary>Field number for the "deprecated" field.</summary> 4176 /// <summary>Field number for the "deprecated" field.</summary>
4667 public const int DeprecatedFieldNumber = 33; 4177 public const int DeprecatedFieldNumber = 33;
4668 private bool deprecated_; 4178 private bool deprecated_;
4669 /// <summary> 4179 /// <summary>
4670 /// Is this method deprecated? 4180 /// Is this method deprecated?
4671 /// Depending on the target platform, this can emit Deprecated annotations 4181 /// Depending on the target platform, this can emit Deprecated annotations
4672 /// for the method, or it will be completely ignored; in the very least, 4182 /// for the method, or it will be completely ignored; in the very least,
4673 /// this is a formalization for deprecating methods. 4183 /// this is a formalization for deprecating methods.
4674 /// </summary> 4184 /// </summary>
4675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4676 public bool Deprecated { 4185 public bool Deprecated {
4677 get { return deprecated_; } 4186 get { return deprecated_; }
4678 set { 4187 set {
4679 deprecated_ = value; 4188 deprecated_ = value;
4680 } 4189 }
4681 } 4190 }
4682 4191
4683 /// <summary>Field number for the "idempotency_level" field.</summary>
4684 public const int IdempotencyLevelFieldNumber = 34;
4685 private global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLe vel idempotencyLevel_ = 0;
4686 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4687 public global::Google.Protobuf.Reflection.MethodOptions.Types.IdempotencyLev el IdempotencyLevel {
4688 get { return idempotencyLevel_; }
4689 set {
4690 idempotencyLevel_ = value;
4691 }
4692 }
4693
4694 /// <summary>Field number for the "uninterpreted_option" field.</summary> 4192 /// <summary>Field number for the "uninterpreted_option" field.</summary>
4695 public const int UninterpretedOptionFieldNumber = 999; 4193 public const int UninterpretedOptionFieldNumber = 999;
4696 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec 4194 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption> _repeated_uninterpretedOption_codec
4697 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser); 4195 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni nterpretedOption.Parser);
4698 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>(); 4196 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption>();
4699 /// <summary> 4197 /// <summary>
4700 /// The parser stores options it doesn't recognize here. See above. 4198 /// The parser stores options it doesn't recognize here. See above.
4701 /// </summary> 4199 /// </summary>
4702 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4703 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption { 4200 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion> UninterpretedOption {
4704 get { return uninterpretedOption_; } 4201 get { return uninterpretedOption_; }
4705 } 4202 }
4706 4203
4707 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4708 public override bool Equals(object other) { 4204 public override bool Equals(object other) {
4709 return Equals(other as MethodOptions); 4205 return Equals(other as MethodOptions);
4710 } 4206 }
4711 4207
4712 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4713 public bool Equals(MethodOptions other) { 4208 public bool Equals(MethodOptions other) {
4714 if (ReferenceEquals(other, null)) { 4209 if (ReferenceEquals(other, null)) {
4715 return false; 4210 return false;
4716 } 4211 }
4717 if (ReferenceEquals(other, this)) { 4212 if (ReferenceEquals(other, this)) {
4718 return true; 4213 return true;
4719 } 4214 }
4720 if (Deprecated != other.Deprecated) return false; 4215 if (Deprecated != other.Deprecated) return false;
4721 if (IdempotencyLevel != other.IdempotencyLevel) return false;
4722 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; 4216 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false;
4723 return true; 4217 return true;
4724 } 4218 }
4725 4219
4726 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4727 public override int GetHashCode() { 4220 public override int GetHashCode() {
4728 int hash = 1; 4221 int hash = 1;
4729 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); 4222 if (Deprecated != false) hash ^= Deprecated.GetHashCode();
4730 if (IdempotencyLevel != 0) hash ^= IdempotencyLevel.GetHashCode();
4731 hash ^= uninterpretedOption_.GetHashCode(); 4223 hash ^= uninterpretedOption_.GetHashCode();
4732 return hash; 4224 return hash;
4733 } 4225 }
4734 4226
4735 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4736 public override string ToString() { 4227 public override string ToString() {
4737 return pb::JsonFormatter.ToDiagnosticString(this); 4228 return pb::JsonFormatter.ToDiagnosticString(this);
4738 } 4229 }
4739 4230
4740 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4741 public void WriteTo(pb::CodedOutputStream output) { 4231 public void WriteTo(pb::CodedOutputStream output) {
4742 if (Deprecated != false) { 4232 if (Deprecated != false) {
4743 output.WriteRawTag(136, 2); 4233 output.WriteRawTag(136, 2);
4744 output.WriteBool(Deprecated); 4234 output.WriteBool(Deprecated);
4745 } 4235 }
4746 if (IdempotencyLevel != 0) {
4747 output.WriteRawTag(144, 2);
4748 output.WriteEnum((int) IdempotencyLevel);
4749 }
4750 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); 4236 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec);
4751 } 4237 }
4752 4238
4753 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4754 public int CalculateSize() { 4239 public int CalculateSize() {
4755 int size = 0; 4240 int size = 0;
4756 if (Deprecated != false) { 4241 if (Deprecated != false) {
4757 size += 2 + 1; 4242 size += 2 + 1;
4758 } 4243 }
4759 if (IdempotencyLevel != 0) {
4760 size += 2 + pb::CodedOutputStream.ComputeEnumSize((int) IdempotencyLevel );
4761 }
4762 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec); 4244 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c odec);
4763 return size; 4245 return size;
4764 } 4246 }
4765 4247
4766 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4767 public void MergeFrom(MethodOptions other) { 4248 public void MergeFrom(MethodOptions other) {
4768 if (other == null) { 4249 if (other == null) {
4769 return; 4250 return;
4770 } 4251 }
4771 if (other.Deprecated != false) { 4252 if (other.Deprecated != false) {
4772 Deprecated = other.Deprecated; 4253 Deprecated = other.Deprecated;
4773 } 4254 }
4774 if (other.IdempotencyLevel != 0) {
4775 IdempotencyLevel = other.IdempotencyLevel;
4776 }
4777 uninterpretedOption_.Add(other.uninterpretedOption_); 4255 uninterpretedOption_.Add(other.uninterpretedOption_);
4778 } 4256 }
4779 4257
4780 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4781 public void MergeFrom(pb::CodedInputStream input) { 4258 public void MergeFrom(pb::CodedInputStream input) {
4782 uint tag; 4259 uint tag;
4783 while ((tag = input.ReadTag()) != 0) { 4260 while ((tag = input.ReadTag()) != 0) {
4784 switch(tag) { 4261 switch(tag) {
4785 default: 4262 default:
4786 input.SkipLastField(); 4263 input.SkipLastField();
4787 break; 4264 break;
4788 case 264: { 4265 case 264: {
4789 Deprecated = input.ReadBool(); 4266 Deprecated = input.ReadBool();
4790 break; 4267 break;
4791 } 4268 }
4792 case 272: {
4793 idempotencyLevel_ = (global::Google.Protobuf.Reflection.MethodOption s.Types.IdempotencyLevel) input.ReadEnum();
4794 break;
4795 }
4796 case 7994: { 4269 case 7994: {
4797 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec); 4270 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp tion_codec);
4798 break; 4271 break;
4799 } 4272 }
4800 } 4273 }
4801 } 4274 }
4802 } 4275 }
4803 4276
4804 #region Nested types
4805 /// <summary>Container for nested types declared in the MethodOptions messag e type.</summary>
4806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4807 public static partial class Types {
4808 /// <summary>
4809 /// Is this method side-effect-free (or safe in HTTP parlance), or idempot ent,
4810 /// or neither? HTTP based RPC implementation may choose GET verb for safe
4811 /// methods, and PUT verb for idempotent methods instead of the default PO ST.
4812 /// </summary>
4813 internal enum IdempotencyLevel {
4814 [pbr::OriginalName("IDEMPOTENCY_UNKNOWN")] IdempotencyUnknown = 0,
4815 /// <summary>
4816 /// implies idempotent
4817 /// </summary>
4818 [pbr::OriginalName("NO_SIDE_EFFECTS")] NoSideEffects = 1,
4819 /// <summary>
4820 /// idempotent, but may have side effects
4821 /// </summary>
4822 [pbr::OriginalName("IDEMPOTENT")] Idempotent = 2,
4823 }
4824
4825 }
4826 #endregion
4827
4828 } 4277 }
4829 4278
4830 /// <summary> 4279 /// <summary>
4831 /// A message representing a option the parser does not recognize. This only 4280 /// A message representing a option the parser does not recognize. This only
4832 /// appears in options protos created by the compiler::Parser class. 4281 /// appears in options protos created by the compiler::Parser class.
4833 /// DescriptorPool resolves these when building Descriptor objects. Therefore, 4282 /// DescriptorPool resolves these when building Descriptor objects. Therefore ,
4834 /// options protos in descriptor objects (e.g. returned by Descriptor::options (), 4283 /// options protos in descriptor objects (e.g. returned by Descriptor::option s(),
4835 /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions 4284 /// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
4836 /// in them. 4285 /// in them.
4837 /// </summary> 4286 /// </summary>
4287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
4838 internal sealed partial class UninterpretedOption : pb::IMessage<Uninterpreted Option> { 4288 internal sealed partial class UninterpretedOption : pb::IMessage<Uninterpreted Option> {
4839 private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption()); 4289 private static readonly pb::MessageParser<UninterpretedOption> _parser = new pb::MessageParser<UninterpretedOption>(() => new UninterpretedOption());
4840 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4841 public static pb::MessageParser<UninterpretedOption> Parser { get { return _ parser; } } 4290 public static pb::MessageParser<UninterpretedOption> Parser { get { return _ parser; } }
4842 4291
4843 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4844 public static pbr::MessageDescriptor Descriptor { 4292 public static pbr::MessageDescriptor Descriptor {
4845 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[17]; } 4293 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[16]; }
4846 } 4294 }
4847 4295
4848 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4849 pbr::MessageDescriptor pb::IMessage.Descriptor { 4296 pbr::MessageDescriptor pb::IMessage.Descriptor {
4850 get { return Descriptor; } 4297 get { return Descriptor; }
4851 } 4298 }
4852 4299
4853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4854 public UninterpretedOption() { 4300 public UninterpretedOption() {
4855 OnConstruction(); 4301 OnConstruction();
4856 } 4302 }
4857 4303
4858 partial void OnConstruction(); 4304 partial void OnConstruction();
4859 4305
4860 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4861 public UninterpretedOption(UninterpretedOption other) : this() { 4306 public UninterpretedOption(UninterpretedOption other) : this() {
4862 name_ = other.name_.Clone(); 4307 name_ = other.name_.Clone();
4863 identifierValue_ = other.identifierValue_; 4308 identifierValue_ = other.identifierValue_;
4864 positiveIntValue_ = other.positiveIntValue_; 4309 positiveIntValue_ = other.positiveIntValue_;
4865 negativeIntValue_ = other.negativeIntValue_; 4310 negativeIntValue_ = other.negativeIntValue_;
4866 doubleValue_ = other.doubleValue_; 4311 doubleValue_ = other.doubleValue_;
4867 stringValue_ = other.stringValue_; 4312 stringValue_ = other.stringValue_;
4868 aggregateValue_ = other.aggregateValue_; 4313 aggregateValue_ = other.aggregateValue_;
4869 } 4314 }
4870 4315
4871 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4872 public UninterpretedOption Clone() { 4316 public UninterpretedOption Clone() {
4873 return new UninterpretedOption(this); 4317 return new UninterpretedOption(this);
4874 } 4318 }
4875 4319
4876 /// <summary>Field number for the "name" field.</summary> 4320 /// <summary>Field number for the "name" field.</summary>
4877 public const int NameFieldNumber = 2; 4321 public const int NameFieldNumber = 2;
4878 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption.Types.NamePart> _repeated_name_codec 4322 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un interpretedOption.Types.NamePart> _repeated_name_codec
4879 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Unint erpretedOption.Types.NamePart.Parser); 4323 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Unint erpretedOption.Types.NamePart.Parser);
4880 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption.Types.NamePart>(); 4324 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint erpretedOption.Types.NamePart> name_ = new pbc::RepeatedField<global::Google.Pro tobuf.Reflection.UninterpretedOption.Types.NamePart>();
4881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4882 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion.Types.NamePart> Name { 4325 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp tion.Types.NamePart> Name {
4883 get { return name_; } 4326 get { return name_; }
4884 } 4327 }
4885 4328
4886 /// <summary>Field number for the "identifier_value" field.</summary> 4329 /// <summary>Field number for the "identifier_value" field.</summary>
4887 public const int IdentifierValueFieldNumber = 3; 4330 public const int IdentifierValueFieldNumber = 3;
4888 private string identifierValue_ = ""; 4331 private string identifierValue_ = "";
4889 /// <summary> 4332 /// <summary>
4890 /// The value of the uninterpreted option, in whatever type the tokenizer 4333 /// The value of the uninterpreted option, in whatever type the tokenizer
4891 /// identified it as during parsing. Exactly one of these should be set. 4334 /// identified it as during parsing. Exactly one of these should be set.
4892 /// </summary> 4335 /// </summary>
4893 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4894 public string IdentifierValue { 4336 public string IdentifierValue {
4895 get { return identifierValue_; } 4337 get { return identifierValue_; }
4896 set { 4338 set {
4897 identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4339 identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4898 } 4340 }
4899 } 4341 }
4900 4342
4901 /// <summary>Field number for the "positive_int_value" field.</summary> 4343 /// <summary>Field number for the "positive_int_value" field.</summary>
4902 public const int PositiveIntValueFieldNumber = 4; 4344 public const int PositiveIntValueFieldNumber = 4;
4903 private ulong positiveIntValue_; 4345 private ulong positiveIntValue_;
4904 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4905 public ulong PositiveIntValue { 4346 public ulong PositiveIntValue {
4906 get { return positiveIntValue_; } 4347 get { return positiveIntValue_; }
4907 set { 4348 set {
4908 positiveIntValue_ = value; 4349 positiveIntValue_ = value;
4909 } 4350 }
4910 } 4351 }
4911 4352
4912 /// <summary>Field number for the "negative_int_value" field.</summary> 4353 /// <summary>Field number for the "negative_int_value" field.</summary>
4913 public const int NegativeIntValueFieldNumber = 5; 4354 public const int NegativeIntValueFieldNumber = 5;
4914 private long negativeIntValue_; 4355 private long negativeIntValue_;
4915 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4916 public long NegativeIntValue { 4356 public long NegativeIntValue {
4917 get { return negativeIntValue_; } 4357 get { return negativeIntValue_; }
4918 set { 4358 set {
4919 negativeIntValue_ = value; 4359 negativeIntValue_ = value;
4920 } 4360 }
4921 } 4361 }
4922 4362
4923 /// <summary>Field number for the "double_value" field.</summary> 4363 /// <summary>Field number for the "double_value" field.</summary>
4924 public const int DoubleValueFieldNumber = 6; 4364 public const int DoubleValueFieldNumber = 6;
4925 private double doubleValue_; 4365 private double doubleValue_;
4926 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4927 public double DoubleValue { 4366 public double DoubleValue {
4928 get { return doubleValue_; } 4367 get { return doubleValue_; }
4929 set { 4368 set {
4930 doubleValue_ = value; 4369 doubleValue_ = value;
4931 } 4370 }
4932 } 4371 }
4933 4372
4934 /// <summary>Field number for the "string_value" field.</summary> 4373 /// <summary>Field number for the "string_value" field.</summary>
4935 public const int StringValueFieldNumber = 7; 4374 public const int StringValueFieldNumber = 7;
4936 private pb::ByteString stringValue_ = pb::ByteString.Empty; 4375 private pb::ByteString stringValue_ = pb::ByteString.Empty;
4937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4938 public pb::ByteString StringValue { 4376 public pb::ByteString StringValue {
4939 get { return stringValue_; } 4377 get { return stringValue_; }
4940 set { 4378 set {
4941 stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4379 stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4942 } 4380 }
4943 } 4381 }
4944 4382
4945 /// <summary>Field number for the "aggregate_value" field.</summary> 4383 /// <summary>Field number for the "aggregate_value" field.</summary>
4946 public const int AggregateValueFieldNumber = 8; 4384 public const int AggregateValueFieldNumber = 8;
4947 private string aggregateValue_ = ""; 4385 private string aggregateValue_ = "";
4948 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4949 public string AggregateValue { 4386 public string AggregateValue {
4950 get { return aggregateValue_; } 4387 get { return aggregateValue_; }
4951 set { 4388 set {
4952 aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4389 aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
4953 } 4390 }
4954 } 4391 }
4955 4392
4956 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4957 public override bool Equals(object other) { 4393 public override bool Equals(object other) {
4958 return Equals(other as UninterpretedOption); 4394 return Equals(other as UninterpretedOption);
4959 } 4395 }
4960 4396
4961 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4962 public bool Equals(UninterpretedOption other) { 4397 public bool Equals(UninterpretedOption other) {
4963 if (ReferenceEquals(other, null)) { 4398 if (ReferenceEquals(other, null)) {
4964 return false; 4399 return false;
4965 } 4400 }
4966 if (ReferenceEquals(other, this)) { 4401 if (ReferenceEquals(other, this)) {
4967 return true; 4402 return true;
4968 } 4403 }
4969 if(!name_.Equals(other.name_)) return false; 4404 if(!name_.Equals(other.name_)) return false;
4970 if (IdentifierValue != other.IdentifierValue) return false; 4405 if (IdentifierValue != other.IdentifierValue) return false;
4971 if (PositiveIntValue != other.PositiveIntValue) return false; 4406 if (PositiveIntValue != other.PositiveIntValue) return false;
4972 if (NegativeIntValue != other.NegativeIntValue) return false; 4407 if (NegativeIntValue != other.NegativeIntValue) return false;
4973 if (DoubleValue != other.DoubleValue) return false; 4408 if (DoubleValue != other.DoubleValue) return false;
4974 if (StringValue != other.StringValue) return false; 4409 if (StringValue != other.StringValue) return false;
4975 if (AggregateValue != other.AggregateValue) return false; 4410 if (AggregateValue != other.AggregateValue) return false;
4976 return true; 4411 return true;
4977 } 4412 }
4978 4413
4979 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4980 public override int GetHashCode() { 4414 public override int GetHashCode() {
4981 int hash = 1; 4415 int hash = 1;
4982 hash ^= name_.GetHashCode(); 4416 hash ^= name_.GetHashCode();
4983 if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode(); 4417 if (IdentifierValue.Length != 0) hash ^= IdentifierValue.GetHashCode();
4984 if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode(); 4418 if (PositiveIntValue != 0UL) hash ^= PositiveIntValue.GetHashCode();
4985 if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode(); 4419 if (NegativeIntValue != 0L) hash ^= NegativeIntValue.GetHashCode();
4986 if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode(); 4420 if (DoubleValue != 0D) hash ^= DoubleValue.GetHashCode();
4987 if (StringValue.Length != 0) hash ^= StringValue.GetHashCode(); 4421 if (StringValue.Length != 0) hash ^= StringValue.GetHashCode();
4988 if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode(); 4422 if (AggregateValue.Length != 0) hash ^= AggregateValue.GetHashCode();
4989 return hash; 4423 return hash;
4990 } 4424 }
4991 4425
4992 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4993 public override string ToString() { 4426 public override string ToString() {
4994 return pb::JsonFormatter.ToDiagnosticString(this); 4427 return pb::JsonFormatter.ToDiagnosticString(this);
4995 } 4428 }
4996 4429
4997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
4998 public void WriteTo(pb::CodedOutputStream output) { 4430 public void WriteTo(pb::CodedOutputStream output) {
4999 name_.WriteTo(output, _repeated_name_codec); 4431 name_.WriteTo(output, _repeated_name_codec);
5000 if (IdentifierValue.Length != 0) { 4432 if (IdentifierValue.Length != 0) {
5001 output.WriteRawTag(26); 4433 output.WriteRawTag(26);
5002 output.WriteString(IdentifierValue); 4434 output.WriteString(IdentifierValue);
5003 } 4435 }
5004 if (PositiveIntValue != 0UL) { 4436 if (PositiveIntValue != 0UL) {
5005 output.WriteRawTag(32); 4437 output.WriteRawTag(32);
5006 output.WriteUInt64(PositiveIntValue); 4438 output.WriteUInt64(PositiveIntValue);
5007 } 4439 }
5008 if (NegativeIntValue != 0L) { 4440 if (NegativeIntValue != 0L) {
5009 output.WriteRawTag(40); 4441 output.WriteRawTag(40);
5010 output.WriteInt64(NegativeIntValue); 4442 output.WriteInt64(NegativeIntValue);
5011 } 4443 }
5012 if (DoubleValue != 0D) { 4444 if (DoubleValue != 0D) {
5013 output.WriteRawTag(49); 4445 output.WriteRawTag(49);
5014 output.WriteDouble(DoubleValue); 4446 output.WriteDouble(DoubleValue);
5015 } 4447 }
5016 if (StringValue.Length != 0) { 4448 if (StringValue.Length != 0) {
5017 output.WriteRawTag(58); 4449 output.WriteRawTag(58);
5018 output.WriteBytes(StringValue); 4450 output.WriteBytes(StringValue);
5019 } 4451 }
5020 if (AggregateValue.Length != 0) { 4452 if (AggregateValue.Length != 0) {
5021 output.WriteRawTag(66); 4453 output.WriteRawTag(66);
5022 output.WriteString(AggregateValue); 4454 output.WriteString(AggregateValue);
5023 } 4455 }
5024 } 4456 }
5025 4457
5026 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5027 public int CalculateSize() { 4458 public int CalculateSize() {
5028 int size = 0; 4459 int size = 0;
5029 size += name_.CalculateSize(_repeated_name_codec); 4460 size += name_.CalculateSize(_repeated_name_codec);
5030 if (IdentifierValue.Length != 0) { 4461 if (IdentifierValue.Length != 0) {
5031 size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue); 4462 size += 1 + pb::CodedOutputStream.ComputeStringSize(IdentifierValue);
5032 } 4463 }
5033 if (PositiveIntValue != 0UL) { 4464 if (PositiveIntValue != 0UL) {
5034 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue); 4465 size += 1 + pb::CodedOutputStream.ComputeUInt64Size(PositiveIntValue);
5035 } 4466 }
5036 if (NegativeIntValue != 0L) { 4467 if (NegativeIntValue != 0L) {
5037 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue); 4468 size += 1 + pb::CodedOutputStream.ComputeInt64Size(NegativeIntValue);
5038 } 4469 }
5039 if (DoubleValue != 0D) { 4470 if (DoubleValue != 0D) {
5040 size += 1 + 8; 4471 size += 1 + 8;
5041 } 4472 }
5042 if (StringValue.Length != 0) { 4473 if (StringValue.Length != 0) {
5043 size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue); 4474 size += 1 + pb::CodedOutputStream.ComputeBytesSize(StringValue);
5044 } 4475 }
5045 if (AggregateValue.Length != 0) { 4476 if (AggregateValue.Length != 0) {
5046 size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue); 4477 size += 1 + pb::CodedOutputStream.ComputeStringSize(AggregateValue);
5047 } 4478 }
5048 return size; 4479 return size;
5049 } 4480 }
5050 4481
5051 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5052 public void MergeFrom(UninterpretedOption other) { 4482 public void MergeFrom(UninterpretedOption other) {
5053 if (other == null) { 4483 if (other == null) {
5054 return; 4484 return;
5055 } 4485 }
5056 name_.Add(other.name_); 4486 name_.Add(other.name_);
5057 if (other.IdentifierValue.Length != 0) { 4487 if (other.IdentifierValue.Length != 0) {
5058 IdentifierValue = other.IdentifierValue; 4488 IdentifierValue = other.IdentifierValue;
5059 } 4489 }
5060 if (other.PositiveIntValue != 0UL) { 4490 if (other.PositiveIntValue != 0UL) {
5061 PositiveIntValue = other.PositiveIntValue; 4491 PositiveIntValue = other.PositiveIntValue;
5062 } 4492 }
5063 if (other.NegativeIntValue != 0L) { 4493 if (other.NegativeIntValue != 0L) {
5064 NegativeIntValue = other.NegativeIntValue; 4494 NegativeIntValue = other.NegativeIntValue;
5065 } 4495 }
5066 if (other.DoubleValue != 0D) { 4496 if (other.DoubleValue != 0D) {
5067 DoubleValue = other.DoubleValue; 4497 DoubleValue = other.DoubleValue;
5068 } 4498 }
5069 if (other.StringValue.Length != 0) { 4499 if (other.StringValue.Length != 0) {
5070 StringValue = other.StringValue; 4500 StringValue = other.StringValue;
5071 } 4501 }
5072 if (other.AggregateValue.Length != 0) { 4502 if (other.AggregateValue.Length != 0) {
5073 AggregateValue = other.AggregateValue; 4503 AggregateValue = other.AggregateValue;
5074 } 4504 }
5075 } 4505 }
5076 4506
5077 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5078 public void MergeFrom(pb::CodedInputStream input) { 4507 public void MergeFrom(pb::CodedInputStream input) {
5079 uint tag; 4508 uint tag;
5080 while ((tag = input.ReadTag()) != 0) { 4509 while ((tag = input.ReadTag()) != 0) {
5081 switch(tag) { 4510 switch(tag) {
5082 default: 4511 default:
5083 input.SkipLastField(); 4512 input.SkipLastField();
5084 break; 4513 break;
5085 case 18: { 4514 case 18: {
5086 name_.AddEntriesFrom(input, _repeated_name_codec); 4515 name_.AddEntriesFrom(input, _repeated_name_codec);
5087 break; 4516 break;
(...skipping 21 matching lines...) Expand all
5109 case 66: { 4538 case 66: {
5110 AggregateValue = input.ReadString(); 4539 AggregateValue = input.ReadString();
5111 break; 4540 break;
5112 } 4541 }
5113 } 4542 }
5114 } 4543 }
5115 } 4544 }
5116 4545
5117 #region Nested types 4546 #region Nested types
5118 /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary> 4547 /// <summary>Container for nested types declared in the UninterpretedOption message type.</summary>
5119 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4548 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5120 public static partial class Types { 4549 public static partial class Types {
5121 /// <summary> 4550 /// <summary>
5122 /// The name of the uninterpreted option. Each string represents a segmen t in 4551 /// The name of the uninterpreted option. Each string represents a segme nt in
5123 /// a dot-separated name. is_extension is true iff a segment represents a n 4552 /// a dot-separated name. is_extension is true iff a segment represents an
5124 /// extension (denoted with parentheses in options specs in .proto files). 4553 /// extension (denoted with parentheses in options specs in .proto files) .
5125 /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents 4554 /// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
5126 /// "foo.(bar.baz).qux". 4555 /// "foo.(bar.baz).qux".
5127 /// </summary> 4556 /// </summary>
4557 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5128 internal sealed partial class NamePart : pb::IMessage<NamePart> { 4558 internal sealed partial class NamePart : pb::IMessage<NamePart> {
5129 private static readonly pb::MessageParser<NamePart> _parser = new pb::Me ssageParser<NamePart>(() => new NamePart()); 4559 private static readonly pb::MessageParser<NamePart> _parser = new pb::Me ssageParser<NamePart>(() => new NamePart());
5130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5131 public static pb::MessageParser<NamePart> Parser { get { return _parser; } } 4560 public static pb::MessageParser<NamePart> Parser { get { return _parser; } }
5132 4561
5133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5134 public static pbr::MessageDescriptor Descriptor { 4562 public static pbr::MessageDescriptor Descriptor {
5135 get { return global::Google.Protobuf.Reflection.UninterpretedOption.De scriptor.NestedTypes[0]; } 4563 get { return global::Google.Protobuf.Reflection.UninterpretedOption.De scriptor.NestedTypes[0]; }
5136 } 4564 }
5137 4565
5138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5139 pbr::MessageDescriptor pb::IMessage.Descriptor { 4566 pbr::MessageDescriptor pb::IMessage.Descriptor {
5140 get { return Descriptor; } 4567 get { return Descriptor; }
5141 } 4568 }
5142 4569
5143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5144 public NamePart() { 4570 public NamePart() {
5145 OnConstruction(); 4571 OnConstruction();
5146 } 4572 }
5147 4573
5148 partial void OnConstruction(); 4574 partial void OnConstruction();
5149 4575
5150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5151 public NamePart(NamePart other) : this() { 4576 public NamePart(NamePart other) : this() {
5152 namePart_ = other.namePart_; 4577 namePart_ = other.namePart_;
5153 isExtension_ = other.isExtension_; 4578 isExtension_ = other.isExtension_;
5154 } 4579 }
5155 4580
5156 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5157 public NamePart Clone() { 4581 public NamePart Clone() {
5158 return new NamePart(this); 4582 return new NamePart(this);
5159 } 4583 }
5160 4584
5161 /// <summary>Field number for the "name_part" field.</summary> 4585 /// <summary>Field number for the "name_part" field.</summary>
5162 public const int NamePart_FieldNumber = 1; 4586 public const int NamePart_FieldNumber = 1;
5163 private string namePart_ = ""; 4587 private string namePart_ = "";
5164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5165 public string NamePart_ { 4588 public string NamePart_ {
5166 get { return namePart_; } 4589 get { return namePart_; }
5167 set { 4590 set {
5168 namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 4591 namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5169 } 4592 }
5170 } 4593 }
5171 4594
5172 /// <summary>Field number for the "is_extension" field.</summary> 4595 /// <summary>Field number for the "is_extension" field.</summary>
5173 public const int IsExtensionFieldNumber = 2; 4596 public const int IsExtensionFieldNumber = 2;
5174 private bool isExtension_; 4597 private bool isExtension_;
5175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5176 public bool IsExtension { 4598 public bool IsExtension {
5177 get { return isExtension_; } 4599 get { return isExtension_; }
5178 set { 4600 set {
5179 isExtension_ = value; 4601 isExtension_ = value;
5180 } 4602 }
5181 } 4603 }
5182 4604
5183 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5184 public override bool Equals(object other) { 4605 public override bool Equals(object other) {
5185 return Equals(other as NamePart); 4606 return Equals(other as NamePart);
5186 } 4607 }
5187 4608
5188 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5189 public bool Equals(NamePart other) { 4609 public bool Equals(NamePart other) {
5190 if (ReferenceEquals(other, null)) { 4610 if (ReferenceEquals(other, null)) {
5191 return false; 4611 return false;
5192 } 4612 }
5193 if (ReferenceEquals(other, this)) { 4613 if (ReferenceEquals(other, this)) {
5194 return true; 4614 return true;
5195 } 4615 }
5196 if (NamePart_ != other.NamePart_) return false; 4616 if (NamePart_ != other.NamePart_) return false;
5197 if (IsExtension != other.IsExtension) return false; 4617 if (IsExtension != other.IsExtension) return false;
5198 return true; 4618 return true;
5199 } 4619 }
5200 4620
5201 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5202 public override int GetHashCode() { 4621 public override int GetHashCode() {
5203 int hash = 1; 4622 int hash = 1;
5204 if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode(); 4623 if (NamePart_.Length != 0) hash ^= NamePart_.GetHashCode();
5205 if (IsExtension != false) hash ^= IsExtension.GetHashCode(); 4624 if (IsExtension != false) hash ^= IsExtension.GetHashCode();
5206 return hash; 4625 return hash;
5207 } 4626 }
5208 4627
5209 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5210 public override string ToString() { 4628 public override string ToString() {
5211 return pb::JsonFormatter.ToDiagnosticString(this); 4629 return pb::JsonFormatter.ToDiagnosticString(this);
5212 } 4630 }
5213 4631
5214 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5215 public void WriteTo(pb::CodedOutputStream output) { 4632 public void WriteTo(pb::CodedOutputStream output) {
5216 if (NamePart_.Length != 0) { 4633 if (NamePart_.Length != 0) {
5217 output.WriteRawTag(10); 4634 output.WriteRawTag(10);
5218 output.WriteString(NamePart_); 4635 output.WriteString(NamePart_);
5219 } 4636 }
5220 if (IsExtension != false) { 4637 if (IsExtension != false) {
5221 output.WriteRawTag(16); 4638 output.WriteRawTag(16);
5222 output.WriteBool(IsExtension); 4639 output.WriteBool(IsExtension);
5223 } 4640 }
5224 } 4641 }
5225 4642
5226 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5227 public int CalculateSize() { 4643 public int CalculateSize() {
5228 int size = 0; 4644 int size = 0;
5229 if (NamePart_.Length != 0) { 4645 if (NamePart_.Length != 0) {
5230 size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_); 4646 size += 1 + pb::CodedOutputStream.ComputeStringSize(NamePart_);
5231 } 4647 }
5232 if (IsExtension != false) { 4648 if (IsExtension != false) {
5233 size += 1 + 1; 4649 size += 1 + 1;
5234 } 4650 }
5235 return size; 4651 return size;
5236 } 4652 }
5237 4653
5238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5239 public void MergeFrom(NamePart other) { 4654 public void MergeFrom(NamePart other) {
5240 if (other == null) { 4655 if (other == null) {
5241 return; 4656 return;
5242 } 4657 }
5243 if (other.NamePart_.Length != 0) { 4658 if (other.NamePart_.Length != 0) {
5244 NamePart_ = other.NamePart_; 4659 NamePart_ = other.NamePart_;
5245 } 4660 }
5246 if (other.IsExtension != false) { 4661 if (other.IsExtension != false) {
5247 IsExtension = other.IsExtension; 4662 IsExtension = other.IsExtension;
5248 } 4663 }
5249 } 4664 }
5250 4665
5251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5252 public void MergeFrom(pb::CodedInputStream input) { 4666 public void MergeFrom(pb::CodedInputStream input) {
5253 uint tag; 4667 uint tag;
5254 while ((tag = input.ReadTag()) != 0) { 4668 while ((tag = input.ReadTag()) != 0) {
5255 switch(tag) { 4669 switch(tag) {
5256 default: 4670 default:
5257 input.SkipLastField(); 4671 input.SkipLastField();
5258 break; 4672 break;
5259 case 10: { 4673 case 10: {
5260 NamePart_ = input.ReadString(); 4674 NamePart_ = input.ReadString();
5261 break; 4675 break;
5262 } 4676 }
5263 case 16: { 4677 case 16: {
5264 IsExtension = input.ReadBool(); 4678 IsExtension = input.ReadBool();
5265 break; 4679 break;
5266 } 4680 }
5267 } 4681 }
5268 } 4682 }
5269 } 4683 }
5270 4684
5271 } 4685 }
5272 4686
5273 } 4687 }
5274 #endregion 4688 #endregion
5275 4689
5276 } 4690 }
5277 4691
5278 /// <summary> 4692 /// <summary>
5279 /// Encapsulates information about the original source file from which a 4693 /// Encapsulates information about the original source file from which a
5280 /// FileDescriptorProto was generated. 4694 /// FileDescriptorProto was generated.
5281 /// </summary> 4695 /// </summary>
4696 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5282 internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> { 4697 internal sealed partial class SourceCodeInfo : pb::IMessage<SourceCodeInfo> {
5283 private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb:: MessageParser<SourceCodeInfo>(() => new SourceCodeInfo()); 4698 private static readonly pb::MessageParser<SourceCodeInfo> _parser = new pb:: MessageParser<SourceCodeInfo>(() => new SourceCodeInfo());
5284 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5285 public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parse r; } } 4699 public static pb::MessageParser<SourceCodeInfo> Parser { get { return _parse r; } }
5286 4700
5287 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5288 public static pbr::MessageDescriptor Descriptor { 4701 public static pbr::MessageDescriptor Descriptor {
5289 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[18]; } 4702 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[17]; }
5290 } 4703 }
5291 4704
5292 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5293 pbr::MessageDescriptor pb::IMessage.Descriptor { 4705 pbr::MessageDescriptor pb::IMessage.Descriptor {
5294 get { return Descriptor; } 4706 get { return Descriptor; }
5295 } 4707 }
5296 4708
5297 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5298 public SourceCodeInfo() { 4709 public SourceCodeInfo() {
5299 OnConstruction(); 4710 OnConstruction();
5300 } 4711 }
5301 4712
5302 partial void OnConstruction(); 4713 partial void OnConstruction();
5303 4714
5304 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5305 public SourceCodeInfo(SourceCodeInfo other) : this() { 4715 public SourceCodeInfo(SourceCodeInfo other) : this() {
5306 location_ = other.location_.Clone(); 4716 location_ = other.location_.Clone();
5307 } 4717 }
5308 4718
5309 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5310 public SourceCodeInfo Clone() { 4719 public SourceCodeInfo Clone() {
5311 return new SourceCodeInfo(this); 4720 return new SourceCodeInfo(this);
5312 } 4721 }
5313 4722
5314 /// <summary>Field number for the "location" field.</summary> 4723 /// <summary>Field number for the "location" field.</summary>
5315 public const int LocationFieldNumber = 1; 4724 public const int LocationFieldNumber = 1;
5316 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.So urceCodeInfo.Types.Location> _repeated_location_codec 4725 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.So urceCodeInfo.Types.Location> _repeated_location_codec
5317 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.Sourc eCodeInfo.Types.Location.Parser); 4726 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.Sourc eCodeInfo.Types.Location.Parser);
5318 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Sourc eCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Prot obuf.Reflection.SourceCodeInfo.Types.Location>(); 4727 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Sourc eCodeInfo.Types.Location> location_ = new pbc::RepeatedField<global::Google.Prot obuf.Reflection.SourceCodeInfo.Types.Location>();
5319 /// <summary> 4728 /// <summary>
5320 /// A Location identifies a piece of source code in a .proto file which 4729 /// A Location identifies a piece of source code in a .proto file which
5321 /// corresponds to a particular definition. This information is intended 4730 /// corresponds to a particular definition. This information is intended
5322 /// to be useful to IDEs, code indexers, documentation generators, and simil ar 4731 /// to be useful to IDEs, code indexers, documentation generators, and simi lar
5323 /// tools. 4732 /// tools.
5324 /// 4733 ///
5325 /// For example, say we have a file like: 4734 /// For example, say we have a file like:
5326 /// message Foo { 4735 /// message Foo {
5327 /// optional string foo = 1; 4736 /// optional string foo = 1;
5328 /// } 4737 /// }
5329 /// Let's look at just the field definition: 4738 /// Let's look at just the field definition:
5330 /// optional string foo = 1; 4739 /// optional string foo = 1;
5331 /// ^ ^^ ^^ ^ ^^^ 4740 /// ^ ^^ ^^ ^ ^^^
5332 /// a bc de f ghi 4741 /// a bc de f ghi
5333 /// We have the following locations: 4742 /// We have the following locations:
5334 /// span path represents 4743 /// span path represents
5335 /// [a,i) [ 4, 0, 2, 0 ] The whole field definition. 4744 /// [a,i) [ 4, 0, 2, 0 ] The whole field definition.
5336 /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional). 4745 /// [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
5337 /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string). 4746 /// [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
5338 /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo). 4747 /// [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
5339 /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1). 4748 /// [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
5340 /// 4749 ///
5341 /// Notes: 4750 /// Notes:
5342 /// - A location may refer to a repeated field itself (i.e. not to any 4751 /// - A location may refer to a repeated field itself (i.e. not to any
5343 /// particular index within it). This is used whenever a set of elements are 4752 /// particular index within it). This is used whenever a set of elements are
5344 /// logically enclosed in a single code segment. For example, an entire 4753 /// logically enclosed in a single code segment. For example, an entire
5345 /// extend block (possibly containing multiple extension definitions) will 4754 /// extend block (possibly containing multiple extension definitions) wil l
5346 /// have an outer location whose path refers to the "extensions" repeated 4755 /// have an outer location whose path refers to the "extensions" repeated
5347 /// field without an index. 4756 /// field without an index.
5348 /// - Multiple locations may have the same path. This happens when a single 4757 /// - Multiple locations may have the same path. This happens when a singl e
5349 /// logical declaration is spread out across multiple places. The most 4758 /// logical declaration is spread out across multiple places. The most
5350 /// obvious example is the "extend" block again -- there may be multiple 4759 /// obvious example is the "extend" block again -- there may be multiple
5351 /// extend blocks in the same scope, each of which will have the same path . 4760 /// extend blocks in the same scope, each of which will have the same pat h.
5352 /// - A location's span is not always a subset of its parent's span. For 4761 /// - A location's span is not always a subset of its parent's span. For
5353 /// example, the "extendee" of an extension declaration appears at the 4762 /// example, the "extendee" of an extension declaration appears at the
5354 /// beginning of the "extend" block and is shared by all extensions within 4763 /// beginning of the "extend" block and is shared by all extensions withi n
5355 /// the block. 4764 /// the block.
5356 /// - Just because a location's span is a subset of some other location's sp an 4765 /// - Just because a location's span is a subset of some other location's s pan
5357 /// does not mean that it is a descendent. For example, a "group" defines 4766 /// does not mean that it is a descendent. For example, a "group" define s
5358 /// both a type and a field in a single declaration. Thus, the locations 4767 /// both a type and a field in a single declaration. Thus, the locations
5359 /// corresponding to the type and field and their components will overlap. 4768 /// corresponding to the type and field and their components will overlap .
5360 /// - Code which tries to interpret locations should probably be designed to 4769 /// - Code which tries to interpret locations should probably be designed t o
5361 /// ignore those that it doesn't understand, as more types of locations co uld 4770 /// ignore those that it doesn't understand, as more types of locations c ould
5362 /// be recorded in the future. 4771 /// be recorded in the future.
5363 /// </summary> 4772 /// </summary>
5364 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5365 public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo. Types.Location> Location { 4773 public pbc::RepeatedField<global::Google.Protobuf.Reflection.SourceCodeInfo. Types.Location> Location {
5366 get { return location_; } 4774 get { return location_; }
5367 } 4775 }
5368 4776
5369 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5370 public override bool Equals(object other) { 4777 public override bool Equals(object other) {
5371 return Equals(other as SourceCodeInfo); 4778 return Equals(other as SourceCodeInfo);
5372 } 4779 }
5373 4780
5374 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5375 public bool Equals(SourceCodeInfo other) { 4781 public bool Equals(SourceCodeInfo other) {
5376 if (ReferenceEquals(other, null)) { 4782 if (ReferenceEquals(other, null)) {
5377 return false; 4783 return false;
5378 } 4784 }
5379 if (ReferenceEquals(other, this)) { 4785 if (ReferenceEquals(other, this)) {
5380 return true; 4786 return true;
5381 } 4787 }
5382 if(!location_.Equals(other.location_)) return false; 4788 if(!location_.Equals(other.location_)) return false;
5383 return true; 4789 return true;
5384 } 4790 }
5385 4791
5386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5387 public override int GetHashCode() { 4792 public override int GetHashCode() {
5388 int hash = 1; 4793 int hash = 1;
5389 hash ^= location_.GetHashCode(); 4794 hash ^= location_.GetHashCode();
5390 return hash; 4795 return hash;
5391 } 4796 }
5392 4797
5393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5394 public override string ToString() { 4798 public override string ToString() {
5395 return pb::JsonFormatter.ToDiagnosticString(this); 4799 return pb::JsonFormatter.ToDiagnosticString(this);
5396 } 4800 }
5397 4801
5398 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5399 public void WriteTo(pb::CodedOutputStream output) { 4802 public void WriteTo(pb::CodedOutputStream output) {
5400 location_.WriteTo(output, _repeated_location_codec); 4803 location_.WriteTo(output, _repeated_location_codec);
5401 } 4804 }
5402 4805
5403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5404 public int CalculateSize() { 4806 public int CalculateSize() {
5405 int size = 0; 4807 int size = 0;
5406 size += location_.CalculateSize(_repeated_location_codec); 4808 size += location_.CalculateSize(_repeated_location_codec);
5407 return size; 4809 return size;
5408 } 4810 }
5409 4811
5410 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5411 public void MergeFrom(SourceCodeInfo other) { 4812 public void MergeFrom(SourceCodeInfo other) {
5412 if (other == null) { 4813 if (other == null) {
5413 return; 4814 return;
5414 } 4815 }
5415 location_.Add(other.location_); 4816 location_.Add(other.location_);
5416 } 4817 }
5417 4818
5418 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5419 public void MergeFrom(pb::CodedInputStream input) { 4819 public void MergeFrom(pb::CodedInputStream input) {
5420 uint tag; 4820 uint tag;
5421 while ((tag = input.ReadTag()) != 0) { 4821 while ((tag = input.ReadTag()) != 0) {
5422 switch(tag) { 4822 switch(tag) {
5423 default: 4823 default:
5424 input.SkipLastField(); 4824 input.SkipLastField();
5425 break; 4825 break;
5426 case 10: { 4826 case 10: {
5427 location_.AddEntriesFrom(input, _repeated_location_codec); 4827 location_.AddEntriesFrom(input, _repeated_location_codec);
5428 break; 4828 break;
5429 } 4829 }
5430 } 4830 }
5431 } 4831 }
5432 } 4832 }
5433 4833
5434 #region Nested types 4834 #region Nested types
5435 /// <summary>Container for nested types declared in the SourceCodeInfo messa ge type.</summary> 4835 /// <summary>Container for nested types declared in the SourceCodeInfo messa ge type.</summary>
5436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 4836 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5437 public static partial class Types { 4837 public static partial class Types {
4838 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5438 internal sealed partial class Location : pb::IMessage<Location> { 4839 internal sealed partial class Location : pb::IMessage<Location> {
5439 private static readonly pb::MessageParser<Location> _parser = new pb::Me ssageParser<Location>(() => new Location()); 4840 private static readonly pb::MessageParser<Location> _parser = new pb::Me ssageParser<Location>(() => new Location());
5440 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5441 public static pb::MessageParser<Location> Parser { get { return _parser; } } 4841 public static pb::MessageParser<Location> Parser { get { return _parser; } }
5442 4842
5443 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5444 public static pbr::MessageDescriptor Descriptor { 4843 public static pbr::MessageDescriptor Descriptor {
5445 get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descrip tor.NestedTypes[0]; } 4844 get { return global::Google.Protobuf.Reflection.SourceCodeInfo.Descrip tor.NestedTypes[0]; }
5446 } 4845 }
5447 4846
5448 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5449 pbr::MessageDescriptor pb::IMessage.Descriptor { 4847 pbr::MessageDescriptor pb::IMessage.Descriptor {
5450 get { return Descriptor; } 4848 get { return Descriptor; }
5451 } 4849 }
5452 4850
5453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5454 public Location() { 4851 public Location() {
5455 OnConstruction(); 4852 OnConstruction();
5456 } 4853 }
5457 4854
5458 partial void OnConstruction(); 4855 partial void OnConstruction();
5459 4856
5460 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5461 public Location(Location other) : this() { 4857 public Location(Location other) : this() {
5462 path_ = other.path_.Clone(); 4858 path_ = other.path_.Clone();
5463 span_ = other.span_.Clone(); 4859 span_ = other.span_.Clone();
5464 leadingComments_ = other.leadingComments_; 4860 leadingComments_ = other.leadingComments_;
5465 trailingComments_ = other.trailingComments_; 4861 trailingComments_ = other.trailingComments_;
5466 leadingDetachedComments_ = other.leadingDetachedComments_.Clone(); 4862 leadingDetachedComments_ = other.leadingDetachedComments_.Clone();
5467 } 4863 }
5468 4864
5469 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5470 public Location Clone() { 4865 public Location Clone() {
5471 return new Location(this); 4866 return new Location(this);
5472 } 4867 }
5473 4868
5474 /// <summary>Field number for the "path" field.</summary> 4869 /// <summary>Field number for the "path" field.</summary>
5475 public const int PathFieldNumber = 1; 4870 public const int PathFieldNumber = 1;
5476 private static readonly pb::FieldCodec<int> _repeated_path_codec 4871 private static readonly pb::FieldCodec<int> _repeated_path_codec
5477 = pb::FieldCodec.ForInt32(10); 4872 = pb::FieldCodec.ForInt32(10);
5478 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField< int>(); 4873 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField< int>();
5479 /// <summary> 4874 /// <summary>
5480 /// Identifies which part of the FileDescriptorProto was defined at this 4875 /// Identifies which part of the FileDescriptorProto was defined at thi s
5481 /// location. 4876 /// location.
5482 /// 4877 ///
5483 /// Each element is a field number or an index. They form a path from 4878 /// Each element is a field number or an index. They form a path from
5484 /// the root FileDescriptorProto to the place where the definition. For 4879 /// the root FileDescriptorProto to the place where the definition. Fo r
5485 /// example, this path: 4880 /// example, this path:
5486 /// [ 4, 3, 2, 7, 1 ] 4881 /// [ 4, 3, 2, 7, 1 ]
5487 /// refers to: 4882 /// refers to:
5488 /// file.message_type(3) // 4, 3 4883 /// file.message_type(3) // 4, 3
5489 /// .field(7) // 2, 7 4884 /// .field(7) // 2, 7
5490 /// .name() // 1 4885 /// .name() // 1
5491 /// This is because FileDescriptorProto.message_type has field number 4: 4886 /// This is because FileDescriptorProto.message_type has field number 4 :
5492 /// repeated DescriptorProto message_type = 4; 4887 /// repeated DescriptorProto message_type = 4;
5493 /// and DescriptorProto.field has field number 2: 4888 /// and DescriptorProto.field has field number 2:
5494 /// repeated FieldDescriptorProto field = 2; 4889 /// repeated FieldDescriptorProto field = 2;
5495 /// and FieldDescriptorProto.name has field number 1: 4890 /// and FieldDescriptorProto.name has field number 1:
5496 /// optional string name = 1; 4891 /// optional string name = 1;
5497 /// 4892 ///
5498 /// Thus, the above path gives the location of a field name. If we remo ved 4893 /// Thus, the above path gives the location of a field name. If we rem oved
5499 /// the last element: 4894 /// the last element:
5500 /// [ 4, 3, 2, 7 ] 4895 /// [ 4, 3, 2, 7 ]
5501 /// this path refers to the whole field declaration (from the beginning 4896 /// this path refers to the whole field declaration (from the beginning
5502 /// of the label to the terminating semicolon). 4897 /// of the label to the terminating semicolon).
5503 /// </summary> 4898 /// </summary>
5504 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5505 public pbc::RepeatedField<int> Path { 4899 public pbc::RepeatedField<int> Path {
5506 get { return path_; } 4900 get { return path_; }
5507 } 4901 }
5508 4902
5509 /// <summary>Field number for the "span" field.</summary> 4903 /// <summary>Field number for the "span" field.</summary>
5510 public const int SpanFieldNumber = 2; 4904 public const int SpanFieldNumber = 2;
5511 private static readonly pb::FieldCodec<int> _repeated_span_codec 4905 private static readonly pb::FieldCodec<int> _repeated_span_codec
5512 = pb::FieldCodec.ForInt32(18); 4906 = pb::FieldCodec.ForInt32(18);
5513 private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField< int>(); 4907 private readonly pbc::RepeatedField<int> span_ = new pbc::RepeatedField< int>();
5514 /// <summary> 4908 /// <summary>
5515 /// Always has exactly three or four elements: start line, start column, 4909 /// Always has exactly three or four elements: start line, start column ,
5516 /// end line (optional, otherwise assumed same as start line), end colum n. 4910 /// end line (optional, otherwise assumed same as start line), end colu mn.
5517 /// These are packed into a single field for efficiency. Note that line 4911 /// These are packed into a single field for efficiency. Note that lin e
5518 /// and column numbers are zero-based -- typically you will want to add 4912 /// and column numbers are zero-based -- typically you will want to add
5519 /// 1 to each before displaying to a user. 4913 /// 1 to each before displaying to a user.
5520 /// </summary> 4914 /// </summary>
5521 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5522 public pbc::RepeatedField<int> Span { 4915 public pbc::RepeatedField<int> Span {
5523 get { return span_; } 4916 get { return span_; }
5524 } 4917 }
5525 4918
5526 /// <summary>Field number for the "leading_comments" field.</summary> 4919 /// <summary>Field number for the "leading_comments" field.</summary>
5527 public const int LeadingCommentsFieldNumber = 3; 4920 public const int LeadingCommentsFieldNumber = 3;
5528 private string leadingComments_ = ""; 4921 private string leadingComments_ = "";
5529 /// <summary> 4922 /// <summary>
5530 /// If this SourceCodeInfo represents a complete declaration, these are any 4923 /// If this SourceCodeInfo represents a complete declaration, these are any
5531 /// comments appearing before and after the declaration which appear to be 4924 /// comments appearing before and after the declaration which appear to be
5532 /// attached to the declaration. 4925 /// attached to the declaration.
5533 /// 4926 ///
5534 /// A series of line comments appearing on consecutive lines, with no ot her 4927 /// A series of line comments appearing on consecutive lines, with no o ther
5535 /// tokens appearing on those lines, will be treated as a single comment . 4928 /// tokens appearing on those lines, will be treated as a single commen t.
5536 /// 4929 ///
5537 /// leading_detached_comments will keep paragraphs of comments that appe ar 4930 /// leading_detached_comments will keep paragraphs of comments that app ear
5538 /// before (but not connected to) the current element. Each paragraph, 4931 /// before (but not connected to) the current element. Each paragraph,
5539 /// separated by empty lines, will be one comment element in the repeate d 4932 /// separated by empty lines, will be one comment element in the repeat ed
5540 /// field. 4933 /// field.
5541 /// 4934 ///
5542 /// Only the comment content is provided; comment markers (e.g. //) are 4935 /// Only the comment content is provided; comment markers (e.g. //) are
5543 /// stripped out. For block comments, leading whitespace and an asteris k 4936 /// stripped out. For block comments, leading whitespace and an asteri sk
5544 /// will be stripped from the beginning of each line other than the firs t. 4937 /// will be stripped from the beginning of each line other than the fir st.
5545 /// Newlines are included in the output. 4938 /// Newlines are included in the output.
5546 /// 4939 ///
5547 /// Examples: 4940 /// Examples:
5548 /// 4941 ///
5549 /// optional int32 foo = 1; // Comment attached to foo. 4942 /// optional int32 foo = 1; // Comment attached to foo.
5550 /// // Comment attached to bar. 4943 /// // Comment attached to bar.
5551 /// optional int32 bar = 2; 4944 /// optional int32 bar = 2;
5552 /// 4945 ///
5553 /// optional string baz = 3; 4946 /// optional string baz = 3;
5554 /// // Comment attached to baz. 4947 /// // Comment attached to baz.
5555 /// // Another line attached to baz. 4948 /// // Another line attached to baz.
5556 /// 4949 ///
5557 /// // Comment attached to qux. 4950 /// // Comment attached to qux.
5558 /// // 4951 /// //
5559 /// // Another line attached to qux. 4952 /// // Another line attached to qux.
5560 /// optional double qux = 4; 4953 /// optional double qux = 4;
5561 /// 4954 ///
5562 /// // Detached comment for corge. This is not leading or trailing com ments 4955 /// // Detached comment for corge. This is not leading or trailing co mments
5563 /// // to qux or corge because there are blank lines separating it fro m 4956 /// // to qux or corge because there are blank lines separating it fr om
5564 /// // both. 4957 /// // both.
5565 /// 4958 ///
5566 /// // Detached comment for corge paragraph 2. 4959 /// // Detached comment for corge paragraph 2.
5567 /// 4960 ///
5568 /// optional string corge = 5; 4961 /// optional string corge = 5;
5569 /// /* Block comment attached 4962 /// /* Block comment attached
5570 /// * to corge. Leading asterisks 4963 /// * to corge. Leading asterisks
5571 /// * will be removed. */ 4964 /// * will be removed. */
5572 /// /* Block comment attached to 4965 /// /* Block comment attached to
5573 /// * grault. */ 4966 /// * grault. */
5574 /// optional int32 grault = 6; 4967 /// optional int32 grault = 6;
5575 /// 4968 ///
5576 /// // ignored detached comments. 4969 /// // ignored detached comments.
5577 /// </summary> 4970 /// </summary>
5578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5579 public string LeadingComments { 4971 public string LeadingComments {
5580 get { return leadingComments_; } 4972 get { return leadingComments_; }
5581 set { 4973 set {
5582 leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value "); 4974 leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value ");
5583 } 4975 }
5584 } 4976 }
5585 4977
5586 /// <summary>Field number for the "trailing_comments" field.</summary> 4978 /// <summary>Field number for the "trailing_comments" field.</summary>
5587 public const int TrailingCommentsFieldNumber = 4; 4979 public const int TrailingCommentsFieldNumber = 4;
5588 private string trailingComments_ = ""; 4980 private string trailingComments_ = "";
5589 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5590 public string TrailingComments { 4981 public string TrailingComments {
5591 get { return trailingComments_; } 4982 get { return trailingComments_; }
5592 set { 4983 set {
5593 trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "valu e"); 4984 trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "valu e");
5594 } 4985 }
5595 } 4986 }
5596 4987
5597 /// <summary>Field number for the "leading_detached_comments" field.</su mmary> 4988 /// <summary>Field number for the "leading_detached_comments" field.</su mmary>
5598 public const int LeadingDetachedCommentsFieldNumber = 6; 4989 public const int LeadingDetachedCommentsFieldNumber = 6;
5599 private static readonly pb::FieldCodec<string> _repeated_leadingDetached Comments_codec 4990 private static readonly pb::FieldCodec<string> _repeated_leadingDetached Comments_codec
5600 = pb::FieldCodec.ForString(50); 4991 = pb::FieldCodec.ForString(50);
5601 private readonly pbc::RepeatedField<string> leadingDetachedComments_ = n ew pbc::RepeatedField<string>(); 4992 private readonly pbc::RepeatedField<string> leadingDetachedComments_ = n ew pbc::RepeatedField<string>();
5602 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5603 public pbc::RepeatedField<string> LeadingDetachedComments { 4993 public pbc::RepeatedField<string> LeadingDetachedComments {
5604 get { return leadingDetachedComments_; } 4994 get { return leadingDetachedComments_; }
5605 } 4995 }
5606 4996
5607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5608 public override bool Equals(object other) { 4997 public override bool Equals(object other) {
5609 return Equals(other as Location); 4998 return Equals(other as Location);
5610 } 4999 }
5611 5000
5612 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5613 public bool Equals(Location other) { 5001 public bool Equals(Location other) {
5614 if (ReferenceEquals(other, null)) { 5002 if (ReferenceEquals(other, null)) {
5615 return false; 5003 return false;
5616 } 5004 }
5617 if (ReferenceEquals(other, this)) { 5005 if (ReferenceEquals(other, this)) {
5618 return true; 5006 return true;
5619 } 5007 }
5620 if(!path_.Equals(other.path_)) return false; 5008 if(!path_.Equals(other.path_)) return false;
5621 if(!span_.Equals(other.span_)) return false; 5009 if(!span_.Equals(other.span_)) return false;
5622 if (LeadingComments != other.LeadingComments) return false; 5010 if (LeadingComments != other.LeadingComments) return false;
5623 if (TrailingComments != other.TrailingComments) return false; 5011 if (TrailingComments != other.TrailingComments) return false;
5624 if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) r eturn false; 5012 if(!leadingDetachedComments_.Equals(other.leadingDetachedComments_)) r eturn false;
5625 return true; 5013 return true;
5626 } 5014 }
5627 5015
5628 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5629 public override int GetHashCode() { 5016 public override int GetHashCode() {
5630 int hash = 1; 5017 int hash = 1;
5631 hash ^= path_.GetHashCode(); 5018 hash ^= path_.GetHashCode();
5632 hash ^= span_.GetHashCode(); 5019 hash ^= span_.GetHashCode();
5633 if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode() ; 5020 if (LeadingComments.Length != 0) hash ^= LeadingComments.GetHashCode() ;
5634 if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode (); 5021 if (TrailingComments.Length != 0) hash ^= TrailingComments.GetHashCode ();
5635 hash ^= leadingDetachedComments_.GetHashCode(); 5022 hash ^= leadingDetachedComments_.GetHashCode();
5636 return hash; 5023 return hash;
5637 } 5024 }
5638 5025
5639 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5640 public override string ToString() { 5026 public override string ToString() {
5641 return pb::JsonFormatter.ToDiagnosticString(this); 5027 return pb::JsonFormatter.ToDiagnosticString(this);
5642 } 5028 }
5643 5029
5644 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5645 public void WriteTo(pb::CodedOutputStream output) { 5030 public void WriteTo(pb::CodedOutputStream output) {
5646 path_.WriteTo(output, _repeated_path_codec); 5031 path_.WriteTo(output, _repeated_path_codec);
5647 span_.WriteTo(output, _repeated_span_codec); 5032 span_.WriteTo(output, _repeated_span_codec);
5648 if (LeadingComments.Length != 0) { 5033 if (LeadingComments.Length != 0) {
5649 output.WriteRawTag(26); 5034 output.WriteRawTag(26);
5650 output.WriteString(LeadingComments); 5035 output.WriteString(LeadingComments);
5651 } 5036 }
5652 if (TrailingComments.Length != 0) { 5037 if (TrailingComments.Length != 0) {
5653 output.WriteRawTag(34); 5038 output.WriteRawTag(34);
5654 output.WriteString(TrailingComments); 5039 output.WriteString(TrailingComments);
5655 } 5040 }
5656 leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComm ents_codec); 5041 leadingDetachedComments_.WriteTo(output, _repeated_leadingDetachedComm ents_codec);
5657 } 5042 }
5658 5043
5659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5660 public int CalculateSize() { 5044 public int CalculateSize() {
5661 int size = 0; 5045 int size = 0;
5662 size += path_.CalculateSize(_repeated_path_codec); 5046 size += path_.CalculateSize(_repeated_path_codec);
5663 size += span_.CalculateSize(_repeated_span_codec); 5047 size += span_.CalculateSize(_repeated_span_codec);
5664 if (LeadingComments.Length != 0) { 5048 if (LeadingComments.Length != 0) {
5665 size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments) ; 5049 size += 1 + pb::CodedOutputStream.ComputeStringSize(LeadingComments) ;
5666 } 5050 }
5667 if (TrailingComments.Length != 0) { 5051 if (TrailingComments.Length != 0) {
5668 size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments ); 5052 size += 1 + pb::CodedOutputStream.ComputeStringSize(TrailingComments );
5669 } 5053 }
5670 size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetach edComments_codec); 5054 size += leadingDetachedComments_.CalculateSize(_repeated_leadingDetach edComments_codec);
5671 return size; 5055 return size;
5672 } 5056 }
5673 5057
5674 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5675 public void MergeFrom(Location other) { 5058 public void MergeFrom(Location other) {
5676 if (other == null) { 5059 if (other == null) {
5677 return; 5060 return;
5678 } 5061 }
5679 path_.Add(other.path_); 5062 path_.Add(other.path_);
5680 span_.Add(other.span_); 5063 span_.Add(other.span_);
5681 if (other.LeadingComments.Length != 0) { 5064 if (other.LeadingComments.Length != 0) {
5682 LeadingComments = other.LeadingComments; 5065 LeadingComments = other.LeadingComments;
5683 } 5066 }
5684 if (other.TrailingComments.Length != 0) { 5067 if (other.TrailingComments.Length != 0) {
5685 TrailingComments = other.TrailingComments; 5068 TrailingComments = other.TrailingComments;
5686 } 5069 }
5687 leadingDetachedComments_.Add(other.leadingDetachedComments_); 5070 leadingDetachedComments_.Add(other.leadingDetachedComments_);
5688 } 5071 }
5689 5072
5690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5691 public void MergeFrom(pb::CodedInputStream input) { 5073 public void MergeFrom(pb::CodedInputStream input) {
5692 uint tag; 5074 uint tag;
5693 while ((tag = input.ReadTag()) != 0) { 5075 while ((tag = input.ReadTag()) != 0) {
5694 switch(tag) { 5076 switch(tag) {
5695 default: 5077 default:
5696 input.SkipLastField(); 5078 input.SkipLastField();
5697 break; 5079 break;
5698 case 10: 5080 case 10:
5699 case 8: { 5081 case 8: {
5700 path_.AddEntriesFrom(input, _repeated_path_codec); 5082 path_.AddEntriesFrom(input, _repeated_path_codec);
(...skipping 21 matching lines...) Expand all
5722 } 5104 }
5723 5105
5724 } 5106 }
5725 5107
5726 } 5108 }
5727 #endregion 5109 #endregion
5728 5110
5729 } 5111 }
5730 5112
5731 /// <summary> 5113 /// <summary>
5732 /// Describes the relationship between generated code and its original source 5114 /// Describes the relationship between generated code and its original source
5733 /// file. A GeneratedCodeInfo message is associated with only one generated 5115 /// file. A GeneratedCodeInfo message is associated with only one generated
5734 /// source file, but may contain references to different source .proto files. 5116 /// source file, but may contain references to different source .proto files.
5735 /// </summary> 5117 /// </summary>
5118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5736 internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeIn fo> { 5119 internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeIn fo> {
5737 private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new p b::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo()); 5120 private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new p b::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo());
5738 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5739 public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _pa rser; } } 5121 public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _pa rser; } }
5740 5122
5741 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5742 public static pbr::MessageDescriptor Descriptor { 5123 public static pbr::MessageDescriptor Descriptor {
5743 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[19]; } 5124 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr iptor.MessageTypes[18]; }
5744 } 5125 }
5745 5126
5746 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5747 pbr::MessageDescriptor pb::IMessage.Descriptor { 5127 pbr::MessageDescriptor pb::IMessage.Descriptor {
5748 get { return Descriptor; } 5128 get { return Descriptor; }
5749 } 5129 }
5750 5130
5751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5752 public GeneratedCodeInfo() { 5131 public GeneratedCodeInfo() {
5753 OnConstruction(); 5132 OnConstruction();
5754 } 5133 }
5755 5134
5756 partial void OnConstruction(); 5135 partial void OnConstruction();
5757 5136
5758 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5759 public GeneratedCodeInfo(GeneratedCodeInfo other) : this() { 5137 public GeneratedCodeInfo(GeneratedCodeInfo other) : this() {
5760 annotation_ = other.annotation_.Clone(); 5138 annotation_ = other.annotation_.Clone();
5761 } 5139 }
5762 5140
5763 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5764 public GeneratedCodeInfo Clone() { 5141 public GeneratedCodeInfo Clone() {
5765 return new GeneratedCodeInfo(this); 5142 return new GeneratedCodeInfo(this);
5766 } 5143 }
5767 5144
5768 /// <summary>Field number for the "annotation" field.</summary> 5145 /// <summary>Field number for the "annotation" field.</summary>
5769 public const int AnnotationFieldNumber = 1; 5146 public const int AnnotationFieldNumber = 1;
5770 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Ge neratedCodeInfo.Types.Annotation> _repeated_annotation_codec 5147 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Ge neratedCodeInfo.Types.Annotation> _repeated_annotation_codec
5771 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.Gener atedCodeInfo.Types.Annotation.Parser); 5148 = pb::FieldCodec.ForMessage(10, global::Google.Protobuf.Reflection.Gener atedCodeInfo.Types.Annotation.Parser);
5772 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Gener atedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Goog le.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>(); 5149 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Gener atedCodeInfo.Types.Annotation> annotation_ = new pbc::RepeatedField<global::Goog le.Protobuf.Reflection.GeneratedCodeInfo.Types.Annotation>();
5773 /// <summary> 5150 /// <summary>
5774 /// An Annotation connects some span of text in generated code to an element 5151 /// An Annotation connects some span of text in generated code to an elemen t
5775 /// of its generating .proto file. 5152 /// of its generating .proto file.
5776 /// </summary> 5153 /// </summary>
5777 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5778 public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeIn fo.Types.Annotation> Annotation { 5154 public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeIn fo.Types.Annotation> Annotation {
5779 get { return annotation_; } 5155 get { return annotation_; }
5780 } 5156 }
5781 5157
5782 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5783 public override bool Equals(object other) { 5158 public override bool Equals(object other) {
5784 return Equals(other as GeneratedCodeInfo); 5159 return Equals(other as GeneratedCodeInfo);
5785 } 5160 }
5786 5161
5787 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5788 public bool Equals(GeneratedCodeInfo other) { 5162 public bool Equals(GeneratedCodeInfo other) {
5789 if (ReferenceEquals(other, null)) { 5163 if (ReferenceEquals(other, null)) {
5790 return false; 5164 return false;
5791 } 5165 }
5792 if (ReferenceEquals(other, this)) { 5166 if (ReferenceEquals(other, this)) {
5793 return true; 5167 return true;
5794 } 5168 }
5795 if(!annotation_.Equals(other.annotation_)) return false; 5169 if(!annotation_.Equals(other.annotation_)) return false;
5796 return true; 5170 return true;
5797 } 5171 }
5798 5172
5799 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5800 public override int GetHashCode() { 5173 public override int GetHashCode() {
5801 int hash = 1; 5174 int hash = 1;
5802 hash ^= annotation_.GetHashCode(); 5175 hash ^= annotation_.GetHashCode();
5803 return hash; 5176 return hash;
5804 } 5177 }
5805 5178
5806 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5807 public override string ToString() { 5179 public override string ToString() {
5808 return pb::JsonFormatter.ToDiagnosticString(this); 5180 return pb::JsonFormatter.ToDiagnosticString(this);
5809 } 5181 }
5810 5182
5811 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5812 public void WriteTo(pb::CodedOutputStream output) { 5183 public void WriteTo(pb::CodedOutputStream output) {
5813 annotation_.WriteTo(output, _repeated_annotation_codec); 5184 annotation_.WriteTo(output, _repeated_annotation_codec);
5814 } 5185 }
5815 5186
5816 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5817 public int CalculateSize() { 5187 public int CalculateSize() {
5818 int size = 0; 5188 int size = 0;
5819 size += annotation_.CalculateSize(_repeated_annotation_codec); 5189 size += annotation_.CalculateSize(_repeated_annotation_codec);
5820 return size; 5190 return size;
5821 } 5191 }
5822 5192
5823 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5824 public void MergeFrom(GeneratedCodeInfo other) { 5193 public void MergeFrom(GeneratedCodeInfo other) {
5825 if (other == null) { 5194 if (other == null) {
5826 return; 5195 return;
5827 } 5196 }
5828 annotation_.Add(other.annotation_); 5197 annotation_.Add(other.annotation_);
5829 } 5198 }
5830 5199
5831 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5832 public void MergeFrom(pb::CodedInputStream input) { 5200 public void MergeFrom(pb::CodedInputStream input) {
5833 uint tag; 5201 uint tag;
5834 while ((tag = input.ReadTag()) != 0) { 5202 while ((tag = input.ReadTag()) != 0) {
5835 switch(tag) { 5203 switch(tag) {
5836 default: 5204 default:
5837 input.SkipLastField(); 5205 input.SkipLastField();
5838 break; 5206 break;
5839 case 10: { 5207 case 10: {
5840 annotation_.AddEntriesFrom(input, _repeated_annotation_codec); 5208 annotation_.AddEntriesFrom(input, _repeated_annotation_codec);
5841 break; 5209 break;
5842 } 5210 }
5843 } 5211 }
5844 } 5212 }
5845 } 5213 }
5846 5214
5847 #region Nested types 5215 #region Nested types
5848 /// <summary>Container for nested types declared in the GeneratedCodeInfo me ssage type.</summary> 5216 /// <summary>Container for nested types declared in the GeneratedCodeInfo me ssage type.</summary>
5849 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 5217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5850 public static partial class Types { 5218 public static partial class Types {
5219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
5851 internal sealed partial class Annotation : pb::IMessage<Annotation> { 5220 internal sealed partial class Annotation : pb::IMessage<Annotation> {
5852 private static readonly pb::MessageParser<Annotation> _parser = new pb:: MessageParser<Annotation>(() => new Annotation()); 5221 private static readonly pb::MessageParser<Annotation> _parser = new pb:: MessageParser<Annotation>(() => new Annotation());
5853 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5854 public static pb::MessageParser<Annotation> Parser { get { return _parse r; } } 5222 public static pb::MessageParser<Annotation> Parser { get { return _parse r; } }
5855 5223
5856 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5857 public static pbr::MessageDescriptor Descriptor { 5224 public static pbr::MessageDescriptor Descriptor {
5858 get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Desc riptor.NestedTypes[0]; } 5225 get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Desc riptor.NestedTypes[0]; }
5859 } 5226 }
5860 5227
5861 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5862 pbr::MessageDescriptor pb::IMessage.Descriptor { 5228 pbr::MessageDescriptor pb::IMessage.Descriptor {
5863 get { return Descriptor; } 5229 get { return Descriptor; }
5864 } 5230 }
5865 5231
5866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5867 public Annotation() { 5232 public Annotation() {
5868 OnConstruction(); 5233 OnConstruction();
5869 } 5234 }
5870 5235
5871 partial void OnConstruction(); 5236 partial void OnConstruction();
5872 5237
5873 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5874 public Annotation(Annotation other) : this() { 5238 public Annotation(Annotation other) : this() {
5875 path_ = other.path_.Clone(); 5239 path_ = other.path_.Clone();
5876 sourceFile_ = other.sourceFile_; 5240 sourceFile_ = other.sourceFile_;
5877 begin_ = other.begin_; 5241 begin_ = other.begin_;
5878 end_ = other.end_; 5242 end_ = other.end_;
5879 } 5243 }
5880 5244
5881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5882 public Annotation Clone() { 5245 public Annotation Clone() {
5883 return new Annotation(this); 5246 return new Annotation(this);
5884 } 5247 }
5885 5248
5886 /// <summary>Field number for the "path" field.</summary> 5249 /// <summary>Field number for the "path" field.</summary>
5887 public const int PathFieldNumber = 1; 5250 public const int PathFieldNumber = 1;
5888 private static readonly pb::FieldCodec<int> _repeated_path_codec 5251 private static readonly pb::FieldCodec<int> _repeated_path_codec
5889 = pb::FieldCodec.ForInt32(10); 5252 = pb::FieldCodec.ForInt32(10);
5890 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField< int>(); 5253 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField< int>();
5891 /// <summary> 5254 /// <summary>
5892 /// Identifies the element in the original source .proto file. This fiel d 5255 /// Identifies the element in the original source .proto file. This fie ld
5893 /// is formatted the same as SourceCodeInfo.Location.path. 5256 /// is formatted the same as SourceCodeInfo.Location.path.
5894 /// </summary> 5257 /// </summary>
5895 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5896 public pbc::RepeatedField<int> Path { 5258 public pbc::RepeatedField<int> Path {
5897 get { return path_; } 5259 get { return path_; }
5898 } 5260 }
5899 5261
5900 /// <summary>Field number for the "source_file" field.</summary> 5262 /// <summary>Field number for the "source_file" field.</summary>
5901 public const int SourceFileFieldNumber = 2; 5263 public const int SourceFileFieldNumber = 2;
5902 private string sourceFile_ = ""; 5264 private string sourceFile_ = "";
5903 /// <summary> 5265 /// <summary>
5904 /// Identifies the filesystem path to the original source .proto. 5266 /// Identifies the filesystem path to the original source .proto.
5905 /// </summary> 5267 /// </summary>
5906 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5907 public string SourceFile { 5268 public string SourceFile {
5908 get { return sourceFile_; } 5269 get { return sourceFile_; }
5909 set { 5270 set {
5910 sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); 5271 sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
5911 } 5272 }
5912 } 5273 }
5913 5274
5914 /// <summary>Field number for the "begin" field.</summary> 5275 /// <summary>Field number for the "begin" field.</summary>
5915 public const int BeginFieldNumber = 3; 5276 public const int BeginFieldNumber = 3;
5916 private int begin_; 5277 private int begin_;
5917 /// <summary> 5278 /// <summary>
5918 /// Identifies the starting offset in bytes in the generated code 5279 /// Identifies the starting offset in bytes in the generated code
5919 /// that relates to the identified object. 5280 /// that relates to the identified object.
5920 /// </summary> 5281 /// </summary>
5921 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5922 public int Begin { 5282 public int Begin {
5923 get { return begin_; } 5283 get { return begin_; }
5924 set { 5284 set {
5925 begin_ = value; 5285 begin_ = value;
5926 } 5286 }
5927 } 5287 }
5928 5288
5929 /// <summary>Field number for the "end" field.</summary> 5289 /// <summary>Field number for the "end" field.</summary>
5930 public const int EndFieldNumber = 4; 5290 public const int EndFieldNumber = 4;
5931 private int end_; 5291 private int end_;
5932 /// <summary> 5292 /// <summary>
5933 /// Identifies the ending offset in bytes in the generated code that 5293 /// Identifies the ending offset in bytes in the generated code that
5934 /// relates to the identified offset. The end offset should be one past 5294 /// relates to the identified offset. The end offset should be one past
5935 /// the last relevant byte (so the length of the text = end - begin). 5295 /// the last relevant byte (so the length of the text = end - begin).
5936 /// </summary> 5296 /// </summary>
5937 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5938 public int End { 5297 public int End {
5939 get { return end_; } 5298 get { return end_; }
5940 set { 5299 set {
5941 end_ = value; 5300 end_ = value;
5942 } 5301 }
5943 } 5302 }
5944 5303
5945 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5946 public override bool Equals(object other) { 5304 public override bool Equals(object other) {
5947 return Equals(other as Annotation); 5305 return Equals(other as Annotation);
5948 } 5306 }
5949 5307
5950 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5951 public bool Equals(Annotation other) { 5308 public bool Equals(Annotation other) {
5952 if (ReferenceEquals(other, null)) { 5309 if (ReferenceEquals(other, null)) {
5953 return false; 5310 return false;
5954 } 5311 }
5955 if (ReferenceEquals(other, this)) { 5312 if (ReferenceEquals(other, this)) {
5956 return true; 5313 return true;
5957 } 5314 }
5958 if(!path_.Equals(other.path_)) return false; 5315 if(!path_.Equals(other.path_)) return false;
5959 if (SourceFile != other.SourceFile) return false; 5316 if (SourceFile != other.SourceFile) return false;
5960 if (Begin != other.Begin) return false; 5317 if (Begin != other.Begin) return false;
5961 if (End != other.End) return false; 5318 if (End != other.End) return false;
5962 return true; 5319 return true;
5963 } 5320 }
5964 5321
5965 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5966 public override int GetHashCode() { 5322 public override int GetHashCode() {
5967 int hash = 1; 5323 int hash = 1;
5968 hash ^= path_.GetHashCode(); 5324 hash ^= path_.GetHashCode();
5969 if (SourceFile.Length != 0) hash ^= SourceFile.GetHashCode(); 5325 if (SourceFile.Length != 0) hash ^= SourceFile.GetHashCode();
5970 if (Begin != 0) hash ^= Begin.GetHashCode(); 5326 if (Begin != 0) hash ^= Begin.GetHashCode();
5971 if (End != 0) hash ^= End.GetHashCode(); 5327 if (End != 0) hash ^= End.GetHashCode();
5972 return hash; 5328 return hash;
5973 } 5329 }
5974 5330
5975 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5976 public override string ToString() { 5331 public override string ToString() {
5977 return pb::JsonFormatter.ToDiagnosticString(this); 5332 return pb::JsonFormatter.ToDiagnosticString(this);
5978 } 5333 }
5979 5334
5980 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5981 public void WriteTo(pb::CodedOutputStream output) { 5335 public void WriteTo(pb::CodedOutputStream output) {
5982 path_.WriteTo(output, _repeated_path_codec); 5336 path_.WriteTo(output, _repeated_path_codec);
5983 if (SourceFile.Length != 0) { 5337 if (SourceFile.Length != 0) {
5984 output.WriteRawTag(18); 5338 output.WriteRawTag(18);
5985 output.WriteString(SourceFile); 5339 output.WriteString(SourceFile);
5986 } 5340 }
5987 if (Begin != 0) { 5341 if (Begin != 0) {
5988 output.WriteRawTag(24); 5342 output.WriteRawTag(24);
5989 output.WriteInt32(Begin); 5343 output.WriteInt32(Begin);
5990 } 5344 }
5991 if (End != 0) { 5345 if (End != 0) {
5992 output.WriteRawTag(32); 5346 output.WriteRawTag(32);
5993 output.WriteInt32(End); 5347 output.WriteInt32(End);
5994 } 5348 }
5995 } 5349 }
5996 5350
5997 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
5998 public int CalculateSize() { 5351 public int CalculateSize() {
5999 int size = 0; 5352 int size = 0;
6000 size += path_.CalculateSize(_repeated_path_codec); 5353 size += path_.CalculateSize(_repeated_path_codec);
6001 if (SourceFile.Length != 0) { 5354 if (SourceFile.Length != 0) {
6002 size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile); 5355 size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile);
6003 } 5356 }
6004 if (Begin != 0) { 5357 if (Begin != 0) {
6005 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin); 5358 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin);
6006 } 5359 }
6007 if (End != 0) { 5360 if (End != 0) {
6008 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); 5361 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End);
6009 } 5362 }
6010 return size; 5363 return size;
6011 } 5364 }
6012 5365
6013 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6014 public void MergeFrom(Annotation other) { 5366 public void MergeFrom(Annotation other) {
6015 if (other == null) { 5367 if (other == null) {
6016 return; 5368 return;
6017 } 5369 }
6018 path_.Add(other.path_); 5370 path_.Add(other.path_);
6019 if (other.SourceFile.Length != 0) { 5371 if (other.SourceFile.Length != 0) {
6020 SourceFile = other.SourceFile; 5372 SourceFile = other.SourceFile;
6021 } 5373 }
6022 if (other.Begin != 0) { 5374 if (other.Begin != 0) {
6023 Begin = other.Begin; 5375 Begin = other.Begin;
6024 } 5376 }
6025 if (other.End != 0) { 5377 if (other.End != 0) {
6026 End = other.End; 5378 End = other.End;
6027 } 5379 }
6028 } 5380 }
6029 5381
6030 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
6031 public void MergeFrom(pb::CodedInputStream input) { 5382 public void MergeFrom(pb::CodedInputStream input) {
6032 uint tag; 5383 uint tag;
6033 while ((tag = input.ReadTag()) != 0) { 5384 while ((tag = input.ReadTag()) != 0) {
6034 switch(tag) { 5385 switch(tag) {
6035 default: 5386 default:
6036 input.SkipLastField(); 5387 input.SkipLastField();
6037 break; 5388 break;
6038 case 10: 5389 case 10:
6039 case 8: { 5390 case 8: {
6040 path_.AddEntriesFrom(input, _repeated_path_codec); 5391 path_.AddEntriesFrom(input, _repeated_path_codec);
(...skipping 20 matching lines...) Expand all
6061 } 5412 }
6062 #endregion 5413 #endregion
6063 5414
6064 } 5415 }
6065 5416
6066 #endregion 5417 #endregion
6067 5418
6068 } 5419 }
6069 5420
6070 #endregion Designer generated code 5421 #endregion Designer generated code
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698