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