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 { |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 "ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZu", | 73 "ChhFbnVtVmFsdWVEZXNjcmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRIOCgZu", |
74 "dW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90b2J1", | 74 "dW1iZXIYAiABKAUSMgoHb3B0aW9ucxgDIAEoCzIhLmdvb2dsZS5wcm90b2J1", |
75 "Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclByb3Rv", | 75 "Zi5FbnVtVmFsdWVPcHRpb25zIpABChZTZXJ2aWNlRGVzY3JpcHRvclByb3Rv", |
76 "EgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnByb3Rv", | 76 "EgwKBG5hbWUYASABKAkSNgoGbWV0aG9kGAIgAygLMiYuZ29vZ2xlLnByb3Rv", |
77 "YnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgLMh8u", | 77 "YnVmLk1ldGhvZERlc2NyaXB0b3JQcm90bxIwCgdvcHRpb25zGAMgASgLMh8u", |
78 "Z29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2REZXNj", | 78 "Z29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zIsEBChVNZXRob2REZXNj", |
79 "cmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIgASgJ", | 79 "cmlwdG9yUHJvdG8SDAoEbmFtZRgBIAEoCRISCgppbnB1dF90eXBlGAIgASgJ", |
80 "EhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5nb29n", | 80 "EhMKC291dHB1dF90eXBlGAMgASgJEi8KB29wdGlvbnMYBCABKAsyHi5nb29n", |
81 "bGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFtaW5n", | 81 "bGUucHJvdG9idWYuTWV0aG9kT3B0aW9ucxIfChBjbGllbnRfc3RyZWFtaW5n", |
82 "GAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVmYWxz", | 82 "GAUgASgIOgVmYWxzZRIfChBzZXJ2ZXJfc3RyZWFtaW5nGAYgASgIOgVmYWxz", |
83 "ZSKqBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwKFGph", | 83 "ZSKHBQoLRmlsZU9wdGlvbnMSFAoMamF2YV9wYWNrYWdlGAEgASgJEhwKFGph", |
84 "dmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVfZmls", | 84 "dmFfb3V0ZXJfY2xhc3NuYW1lGAggASgJEiIKE2phdmFfbXVsdGlwbGVfZmls", |
85 "ZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2FuZF9o", | 85 "ZXMYCiABKAg6BWZhbHNlEiwKHWphdmFfZ2VuZXJhdGVfZXF1YWxzX2FuZF9o", |
86 "YXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg", | 86 "YXNoGBQgASgIOgVmYWxzZRIlChZqYXZhX3N0cmluZ19jaGVja191dGY4GBsg", |
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 "cGFjZRglIAEoCRInCh9qYXZhbmFub191c2VfZGVwcmVjYXRlZF9wYWNrYWdl", | 94 "cGFjZRglIAEoCRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5n", |
95 "GCYgASgIEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2ds", | 95 "b29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbiI6CgxPcHRpbWl6", |
96 "ZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uIjoKDE9wdGltaXplTW9k", | 96 "ZU1vZGUSCQoFU1BFRUQQARINCglDT0RFX1NJWkUQAhIQCgxMSVRFX1JVTlRJ", |
97 "ZRIJCgVTUEVFRBABEg0KCUNPREVfU0laRRACEhAKDExJVEVfUlVOVElNRRAD", | 97 "TUUQAyoJCOgHEICAgIACSgQIJhAnIuYBCg5NZXNzYWdlT3B0aW9ucxImChdt", |
98 "KgkI6AcQgICAgAIi5gEKDk1lc3NhZ2VPcHRpb25zEiYKF21lc3NhZ2Vfc2V0", | 98 "ZXNzYWdlX3NldF93aXJlX2Zvcm1hdBgBIAEoCDoFZmFsc2USLgofbm9fc3Rh", |
99 "X3dpcmVfZm9ybWF0GAEgASgIOgVmYWxzZRIuCh9ub19zdGFuZGFyZF9kZXNj", | 99 "bmRhcmRfZGVzY3JpcHRvcl9hY2Nlc3NvchgCIAEoCDoFZmFsc2USGQoKZGVw", |
100 "cmlwdG9yX2FjY2Vzc29yGAIgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMg", | 100 "cmVjYXRlZBgDIAEoCDoFZmFsc2USEQoJbWFwX2VudHJ5GAcgASgIEkMKFHVu", |
101 "ASgIOgVmYWxzZRIRCgltYXBfZW50cnkYByABKAgSQwoUdW5pbnRlcnByZXRl", | 101 "aW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5V", |
102 "ZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0", | 102 "bmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIimAMKDEZpZWxkT3B0aW9u", |
103 "ZWRPcHRpb24qCQjoBxCAgICAAiKYAwoMRmllbGRPcHRpb25zEjoKBWN0eXBl", | 103 "cxI6CgVjdHlwZRgBIAEoDjIjLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlv", |
104 "GAEgASgOMiMuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5DVHlwZToG", | 104 "bnMuQ1R5cGU6BlNUUklORxIOCgZwYWNrZWQYAiABKAgSPwoGanN0eXBlGAYg", |
105 "U1RSSU5HEg4KBnBhY2tlZBgCIAEoCBI/CgZqc3R5cGUYBiABKA4yJC5nb29n", | 105 "ASgOMiQuZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucy5KU1R5cGU6CUpT", |
106 "bGUucHJvdG9idWYuRmllbGRPcHRpb25zLkpTVHlwZToJSlNfTk9STUFMEhMK", | 106 "X05PUk1BTBITCgRsYXp5GAUgASgIOgVmYWxzZRIZCgpkZXByZWNhdGVkGAMg", |
107 "BGxhenkYBSABKAg6BWZhbHNlEhkKCmRlcHJlY2F0ZWQYAyABKAg6BWZhbHNl", | 107 "ASgIOgVmYWxzZRITCgR3ZWFrGAogASgIOgVmYWxzZRJDChR1bmludGVycHJl", |
108 "EhMKBHdlYWsYCiABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9u", | 108 "dGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnBy", |
109 "GOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9u", | 109 "ZXRlZE9wdGlvbiIvCgVDVHlwZRIKCgZTVFJJTkcQABIICgRDT1JEEAESEAoM", |
110 "Ii8KBUNUeXBlEgoKBlNUUklORxAAEggKBENPUkQQARIQCgxTVFJJTkdfUElF", | 110 "U1RSSU5HX1BJRUNFEAIiNQoGSlNUeXBlEg0KCUpTX05PUk1BTBAAEg0KCUpT", |
111 "Q0UQAiI1CgZKU1R5cGUSDQoJSlNfTk9STUFMEAASDQoJSlNfU1RSSU5HEAES", | 111 "X1NUUklORxABEg0KCUpTX05VTUJFUhACKgkI6AcQgICAgAIijQEKC0VudW1P", |
112 "DQoJSlNfTlVNQkVSEAIqCQjoBxCAgICAAiKNAQoLRW51bU9wdGlvbnMSEwoL", | 112 "cHRpb25zEhMKC2FsbG93X2FsaWFzGAIgASgIEhkKCmRlcHJlY2F0ZWQYAyAB", |
113 "YWxsb3dfYWxpYXMYAiABKAgSGQoKZGVwcmVjYXRlZBgDIAEoCDoFZmFsc2US", | 113 "KAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdv", |
114 "QwoUdW5pbnRlcnByZXRlZF9vcHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3Rv", | 114 "b2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIi", |
115 "YnVmLlVuaW50ZXJwcmV0ZWRPcHRpb24qCQjoBxCAgICAAiJ9ChBFbnVtVmFs", | 115 "fQoQRW51bVZhbHVlT3B0aW9ucxIZCgpkZXByZWNhdGVkGAEgASgIOgVmYWxz", |
116 "dWVPcHRpb25zEhkKCmRlcHJlY2F0ZWQYASABKAg6BWZhbHNlEkMKFHVuaW50", | 116 "ZRJDChR1bmludGVycHJldGVkX29wdGlvbhjnByADKAsyJC5nb29nbGUucHJv", |
| 117 "dG9idWYuVW5pbnRlcnByZXRlZE9wdGlvbioJCOgHEICAgIACInsKDlNlcnZp", |
| 118 "Y2VPcHRpb25zEhkKCmRlcHJlY2F0ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50", |
117 "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu", | 119 "ZXJwcmV0ZWRfb3B0aW9uGOcHIAMoCzIkLmdvb2dsZS5wcm90b2J1Zi5Vbmlu", |
118 "dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiewoOU2VydmljZU9wdGlvbnMS", | 120 "dGVycHJldGVkT3B0aW9uKgkI6AcQgICAgAIiegoNTWV0aG9kT3B0aW9ucxIZ", |
119 "GQoKZGVwcmVjYXRlZBghIAEoCDoFZmFsc2USQwoUdW5pbnRlcnByZXRlZF9v", | 121 "CgpkZXByZWNhdGVkGCEgASgIOgVmYWxzZRJDChR1bmludGVycHJldGVkX29w", |
120 "cHRpb24Y5wcgAygLMiQuZ29vZ2xlLnByb3RvYnVmLlVuaW50ZXJwcmV0ZWRP", | 122 "dGlvbhjnByADKAsyJC5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9w", |
121 "cHRpb24qCQjoBxCAgICAAiJ6Cg1NZXRob2RPcHRpb25zEhkKCmRlcHJlY2F0", | 123 "dGlvbioJCOgHEICAgIACIp4CChNVbmludGVycHJldGVkT3B0aW9uEjsKBG5h", |
122 "ZWQYISABKAg6BWZhbHNlEkMKFHVuaW50ZXJwcmV0ZWRfb3B0aW9uGOcHIAMo", | 124 "bWUYAiADKAsyLS5nb29nbGUucHJvdG9idWYuVW5pbnRlcnByZXRlZE9wdGlv", |
123 "CzIkLmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uKgkI6AcQ", | 125 "bi5OYW1lUGFydBIYChBpZGVudGlmaWVyX3ZhbHVlGAMgASgJEhoKEnBvc2l0", |
124 "gICAgAIingIKE1VuaW50ZXJwcmV0ZWRPcHRpb24SOwoEbmFtZRgCIAMoCzIt", | 126 "aXZlX2ludF92YWx1ZRgEIAEoBBIaChJuZWdhdGl2ZV9pbnRfdmFsdWUYBSAB", |
125 "Lmdvb2dsZS5wcm90b2J1Zi5VbmludGVycHJldGVkT3B0aW9uLk5hbWVQYXJ0", | 127 "KAMSFAoMZG91YmxlX3ZhbHVlGAYgASgBEhQKDHN0cmluZ192YWx1ZRgHIAEo", |
126 "EhgKEGlkZW50aWZpZXJfdmFsdWUYAyABKAkSGgoScG9zaXRpdmVfaW50X3Zh", | 128 "DBIXCg9hZ2dyZWdhdGVfdmFsdWUYCCABKAkaMwoITmFtZVBhcnQSEQoJbmFt", |
127 "bHVlGAQgASgEEhoKEm5lZ2F0aXZlX2ludF92YWx1ZRgFIAEoAxIUCgxkb3Vi", | 129 "ZV9wYXJ0GAEgAigJEhQKDGlzX2V4dGVuc2lvbhgCIAIoCCLVAQoOU291cmNl", |
128 "bGVfdmFsdWUYBiABKAESFAoMc3RyaW5nX3ZhbHVlGAcgASgMEhcKD2FnZ3Jl", | 130 "Q29kZUluZm8SOgoIbG9jYXRpb24YASADKAsyKC5nb29nbGUucHJvdG9idWYu", |
129 "Z2F0ZV92YWx1ZRgIIAEoCRozCghOYW1lUGFydBIRCgluYW1lX3BhcnQYASAC", | 131 "U291cmNlQ29kZUluZm8uTG9jYXRpb24ahgEKCExvY2F0aW9uEhAKBHBhdGgY", |
130 "KAkSFAoMaXNfZXh0ZW5zaW9uGAIgAigIItUBCg5Tb3VyY2VDb2RlSW5mbxI6", | 132 "ASADKAVCAhABEhAKBHNwYW4YAiADKAVCAhABEhgKEGxlYWRpbmdfY29tbWVu", |
131 "Cghsb2NhdGlvbhgBIAMoCzIoLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb2Rl", | 133 "dHMYAyABKAkSGQoRdHJhaWxpbmdfY29tbWVudHMYBCABKAkSIQoZbGVhZGlu", |
132 "SW5mby5Mb2NhdGlvbhqGAQoITG9jYXRpb24SEAoEcGF0aBgBIAMoBUICEAES", | 134 "Z19kZXRhY2hlZF9jb21tZW50cxgGIAMoCSKnAQoRR2VuZXJhdGVkQ29kZUlu", |
133 "EAoEc3BhbhgCIAMoBUICEAESGAoQbGVhZGluZ19jb21tZW50cxgDIAEoCRIZ", | 135 "Zm8SQQoKYW5ub3RhdGlvbhgBIAMoCzItLmdvb2dsZS5wcm90b2J1Zi5HZW5l", |
134 "ChF0cmFpbGluZ19jb21tZW50cxgEIAEoCRIhChlsZWFkaW5nX2RldGFjaGVk", | 136 "cmF0ZWRDb2RlSW5mby5Bbm5vdGF0aW9uGk8KCkFubm90YXRpb24SEAoEcGF0", |
135 "X2NvbW1lbnRzGAYgAygJQlgKE2NvbS5nb29nbGUucHJvdG9idWZCEERlc2Ny", | 137 "aBgBIAMoBUICEAESEwoLc291cmNlX2ZpbGUYAiABKAkSDQoFYmVnaW4YAyAB", |
| 138 "KAUSCwoDZW5kGAQgASgFQlgKE2NvbS5nb29nbGUucHJvdG9idWZCEERlc2Ny", |
136 "aXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Qcm90", | 139 "aXB0b3JQcm90b3NIAVoKZGVzY3JpcHRvcqICA0dQQqoCGkdvb2dsZS5Qcm90", |
137 "b2J1Zi5SZWZsZWN0aW9u")); | 140 "b2J1Zi5SZWZsZWN0aW9u")); |
138 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, | 141 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
139 new pbr::FileDescriptor[] { }, | 142 new pbr::FileDescriptor[] { }, |
140 new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { | 143 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
141 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Parser
, new[]{ "File" }, null, null, null), | 144 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.FileDescriptorSet), global::Google.Protobuf.Reflection.FileDescriptorSet.Par
ser, new[]{ "File" }, null, null, null), |
142 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto.Pa
rser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDependenc
y", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCodeInf
o", "Syntax" }, null, null, null), | 145 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.FileDescriptorProto), global::Google.Protobuf.Reflection.FileDescriptorProto
.Parser, new[]{ "Name", "Package", "Dependency", "PublicDependency", "WeakDepend
ency", "MessageType", "EnumType", "Service", "Extension", "Options", "SourceCode
Info", "Syntax" }, null, null, null), |
143 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser, ne
w[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange", "
OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr::G
eneratedCodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.R
eflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobuf.Reflect
ion.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End" }, null,
null, null), | 146 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.DescriptorProto), global::Google.Protobuf.Reflection.DescriptorProto.Parser,
new[]{ "Name", "Field", "Extension", "NestedType", "EnumType", "ExtensionRange"
, "OneofDecl", "Options", "ReservedRange", "ReservedName" }, null, null, new pbr
::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.P
rotobuf.Reflection.DescriptorProto.Types.ExtensionRange), global::Google.Protobu
f.Reflection.DescriptorProto.Types.ExtensionRange.Parser, new[]{ "Start", "End"
}, null, null, null), |
144 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.DescriptorProto.Types.ReservedRange), global::Google.Protobuf.Reflection.Descri
ptorProto.Types.ReservedRange.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)}), |
145 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorProto.
Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "Defau
ltValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global::Goo
gle.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Google.
Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null), | 148 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.FieldDescriptorProto), global::Google.Protobuf.Reflection.FieldDescriptorPro
to.Parser, new[]{ "Name", "Number", "Label", "Type", "TypeName", "Extendee", "De
faultValue", "OneofIndex", "JsonName", "Options" }, null, new[]{ typeof(global::
Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type), typeof(global::Goog
le.Protobuf.Reflection.FieldDescriptorProto.Types.Label) }, null), |
146 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorProto.
Parser, new[]{ "Name" }, null, null, null), | 149 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.OneofDescriptorProto), global::Google.Protobuf.Reflection.OneofDescriptorPro
to.Parser, new[]{ "Name" }, null, null, null), |
147 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto.Pa
rser, new[]{ "Name", "Value", "Options" }, null, null, null), | 150 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.EnumDescriptorProto), global::Google.Protobuf.Reflection.EnumDescriptorProto
.Parser, new[]{ "Name", "Value", "Options" }, null, null, null), |
148 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescript
orProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null), | 151 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.EnumValueDescriptorProto), global::Google.Protobuf.Reflection.EnumValueDescr
iptorProto.Parser, new[]{ "Name", "Number", "Options" }, null, null, null), |
149 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescriptorPr
oto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null), | 152 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.ServiceDescriptorProto), global::Google.Protobuf.Reflection.ServiceDescripto
rProto.Parser, new[]{ "Name", "Method", "Options" }, null, null, null), |
150 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorProt
o.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreaming"
, "ServerStreaming" }, null, null, null), | 153 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.MethodDescriptorProto), global::Google.Protobuf.Reflection.MethodDescriptorP
roto.Parser, new[]{ "Name", "InputType", "OutputType", "Options", "ClientStreami
ng", "ServerStreaming" }, null, null, null), |
151 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{ "Ja
vaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAndHas
h", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "Jav
aGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "ObjcCla
ssPrefix", "CsharpNamespace", "JavananoUseDeprecatedPackage", "UninterpretedOpti
on" }, null, new[]{ typeof(global::Google.Protobuf.Reflection.FileOptions.Types.
OptimizeMode) }, null), | 154 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.FileOptions), global::Google.Protobuf.Reflection.FileOptions.Parser, new[]{
"JavaPackage", "JavaOuterClassname", "JavaMultipleFiles", "JavaGenerateEqualsAnd
Hash", "JavaStringCheckUtf8", "OptimizeFor", "GoPackage", "CcGenericServices", "
JavaGenericServices", "PyGenericServices", "Deprecated", "CcEnableArenas", "Objc
ClassPrefix", "CsharpNamespace", "UninterpretedOption" }, null, new[]{ typeof(gl
obal::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode) }, null), |
152 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, new[
]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "MapEnt
ry", "UninterpretedOption" }, null, null, null), | 155 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.MessageOptions), global::Google.Protobuf.Reflection.MessageOptions.Parser, n
ew[]{ "MessageSetWireFormat", "NoStandardDescriptorAccessor", "Deprecated", "Map
Entry", "UninterpretedOption" }, null, null, null), |
153 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.FieldOptions), global::Google.Protobuf.Reflection.FieldOptions.Parser, new[]{ "
Ctype", "Packed", "Jstype", "Lazy", "Deprecated", "Weak", "UninterpretedOption"
}, null, new[]{ typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.CTy
pe), typeof(global::Google.Protobuf.Reflection.FieldOptions.Types.JSType) }, nul
l), | 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), |
154 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{ "Al
lowAlias", "Deprecated", "UninterpretedOption" }, null, null, null), | 157 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.EnumOptions), global::Google.Protobuf.Reflection.EnumOptions.Parser, new[]{
"AllowAlias", "Deprecated", "UninterpretedOption" }, null, null, null), |
155 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parser,
new[]{ "Deprecated", "UninterpretedOption" }, null, null, null), | 158 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.EnumValueOptions), global::Google.Protobuf.Reflection.EnumValueOptions.Parse
r, new[]{ "Deprecated", "UninterpretedOption" }, null, null, null), |
156 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.ServiceOptions), global::Google.Protobuf.Reflection.ServiceOptions.Parser, 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), |
157 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.MethodOptions), global::Google.Protobuf.Reflection.MethodOptions.Parser, new[]{
"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), |
158 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption.Pa
rser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue",
"DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::Generated
CodeInfo[] { new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflectio
n.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflection.Uninte
rpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension" }, null,
null, null)}), | 161 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.Reflect
ion.UninterpretedOption), global::Google.Protobuf.Reflection.UninterpretedOption
.Parser, new[]{ "Name", "IdentifierValue", "PositiveIntValue", "NegativeIntValue
", "DoubleValue", "StringValue", "AggregateValue" }, null, null, new pbr::Genera
tedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.
Reflection.UninterpretedOption.Types.NamePart), global::Google.Protobuf.Reflecti
on.UninterpretedOption.Types.NamePart.Parser, new[]{ "NamePart_", "IsExtension"
}, null, null, null)}), |
159 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.Reflection
.SourceCodeInfo), global::Google.Protobuf.Reflection.SourceCodeInfo.Parser, new[
]{ "Location" }, null, null, new pbr::GeneratedCodeInfo[] { new pbr::GeneratedCo
deInfo(typeof(global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location),
global::Google.Protobuf.Reflection.SourceCodeInfo.Types.Location.Parser, new[]{
"Path", "Span", "LeadingComments", "TrailingComments", "LeadingDetachedComments
" }, 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)}), |
| 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)}) |
160 })); | 164 })); |
161 } | 165 } |
162 #endregion | 166 #endregion |
163 | 167 |
164 } | 168 } |
165 #region Messages | 169 #region Messages |
166 /// <summary> | 170 /// <summary> |
167 /// The protocol compiler can output a FileDescriptorSet containing the .prot
o | 171 /// The protocol compiler can output a FileDescriptorSet containing the .prot
o |
168 /// files it parses. | 172 /// files it parses. |
169 /// </summary> | 173 /// </summary> |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 309 |
306 /// <summary>Field number for the "name" field.</summary> | 310 /// <summary>Field number for the "name" field.</summary> |
307 public const int NameFieldNumber = 1; | 311 public const int NameFieldNumber = 1; |
308 private string name_ = ""; | 312 private string name_ = ""; |
309 /// <summary> | 313 /// <summary> |
310 /// file name, relative to root of source tree | 314 /// file name, relative to root of source tree |
311 /// </summary> | 315 /// </summary> |
312 public string Name { | 316 public string Name { |
313 get { return name_; } | 317 get { return name_; } |
314 set { | 318 set { |
315 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 319 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
316 } | 320 } |
317 } | 321 } |
318 | 322 |
319 /// <summary>Field number for the "package" field.</summary> | 323 /// <summary>Field number for the "package" field.</summary> |
320 public const int PackageFieldNumber = 2; | 324 public const int PackageFieldNumber = 2; |
321 private string package_ = ""; | 325 private string package_ = ""; |
322 /// <summary> | 326 /// <summary> |
323 /// e.g. "foo", "foo.bar", etc. | 327 /// e.g. "foo", "foo.bar", etc. |
324 /// </summary> | 328 /// </summary> |
325 public string Package { | 329 public string Package { |
326 get { return package_; } | 330 get { return package_; } |
327 set { | 331 set { |
328 package_ = pb::Preconditions.CheckNotNull(value, "value"); | 332 package_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
329 } | 333 } |
330 } | 334 } |
331 | 335 |
332 /// <summary>Field number for the "dependency" field.</summary> | 336 /// <summary>Field number for the "dependency" field.</summary> |
333 public const int DependencyFieldNumber = 3; | 337 public const int DependencyFieldNumber = 3; |
334 private static readonly pb::FieldCodec<string> _repeated_dependency_codec | 338 private static readonly pb::FieldCodec<string> _repeated_dependency_codec |
335 = pb::FieldCodec.ForString(26); | 339 = pb::FieldCodec.ForString(26); |
336 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedF
ield<string>(); | 340 private readonly pbc::RepeatedField<string> dependency_ = new pbc::RepeatedF
ield<string>(); |
337 /// <summary> | 341 /// <summary> |
338 /// Names of files imported by this file. | 342 /// Names of files imported by this file. |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 /// <summary>Field number for the "syntax" field.</summary> | 438 /// <summary>Field number for the "syntax" field.</summary> |
435 public const int SyntaxFieldNumber = 12; | 439 public const int SyntaxFieldNumber = 12; |
436 private string syntax_ = ""; | 440 private string syntax_ = ""; |
437 /// <summary> | 441 /// <summary> |
438 /// The syntax of the proto file. | 442 /// The syntax of the proto file. |
439 /// The supported values are "proto2" and "proto3". | 443 /// The supported values are "proto2" and "proto3". |
440 /// </summary> | 444 /// </summary> |
441 public string Syntax { | 445 public string Syntax { |
442 get { return syntax_; } | 446 get { return syntax_; } |
443 set { | 447 set { |
444 syntax_ = pb::Preconditions.CheckNotNull(value, "value"); | 448 syntax_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
445 } | 449 } |
446 } | 450 } |
447 | 451 |
448 public override bool Equals(object other) { | 452 public override bool Equals(object other) { |
449 return Equals(other as FileDescriptorProto); | 453 return Equals(other as FileDescriptorProto); |
450 } | 454 } |
451 | 455 |
452 public bool Equals(FileDescriptorProto other) { | 456 public bool Equals(FileDescriptorProto other) { |
453 if (ReferenceEquals(other, null)) { | 457 if (ReferenceEquals(other, null)) { |
454 return false; | 458 return false; |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
690 public DescriptorProto Clone() { | 694 public DescriptorProto Clone() { |
691 return new DescriptorProto(this); | 695 return new DescriptorProto(this); |
692 } | 696 } |
693 | 697 |
694 /// <summary>Field number for the "name" field.</summary> | 698 /// <summary>Field number for the "name" field.</summary> |
695 public const int NameFieldNumber = 1; | 699 public const int NameFieldNumber = 1; |
696 private string name_ = ""; | 700 private string name_ = ""; |
697 public string Name { | 701 public string Name { |
698 get { return name_; } | 702 get { return name_; } |
699 set { | 703 set { |
700 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 704 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
701 } | 705 } |
702 } | 706 } |
703 | 707 |
704 /// <summary>Field number for the "field" field.</summary> | 708 /// <summary>Field number for the "field" field.</summary> |
705 public const int FieldFieldNumber = 2; | 709 public const int FieldFieldNumber = 2; |
706 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi
eldDescriptorProto> _repeated_field_codec | 710 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Fi
eldDescriptorProto> _repeated_field_codec |
707 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Field
DescriptorProto.Parser); | 711 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Field
DescriptorProto.Parser); |
708 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field
DescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect
ion.FieldDescriptorProto>(); | 712 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Field
DescriptorProto> field_ = new pbc::RepeatedField<global::Google.Protobuf.Reflect
ion.FieldDescriptorProto>(); |
709 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor
Proto> Field { | 713 public pbc::RepeatedField<global::Google.Protobuf.Reflection.FieldDescriptor
Proto> Field { |
710 get { return field_; } | 714 get { return field_; } |
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 public FieldDescriptorProto Clone() { | 1267 public FieldDescriptorProto Clone() { |
1264 return new FieldDescriptorProto(this); | 1268 return new FieldDescriptorProto(this); |
1265 } | 1269 } |
1266 | 1270 |
1267 /// <summary>Field number for the "name" field.</summary> | 1271 /// <summary>Field number for the "name" field.</summary> |
1268 public const int NameFieldNumber = 1; | 1272 public const int NameFieldNumber = 1; |
1269 private string name_ = ""; | 1273 private string name_ = ""; |
1270 public string Name { | 1274 public string Name { |
1271 get { return name_; } | 1275 get { return name_; } |
1272 set { | 1276 set { |
1273 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 1277 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1274 } | 1278 } |
1275 } | 1279 } |
1276 | 1280 |
1277 /// <summary>Field number for the "number" field.</summary> | 1281 /// <summary>Field number for the "number" field.</summary> |
1278 public const int NumberFieldNumber = 3; | 1282 public const int NumberFieldNumber = 3; |
1279 private int number_; | 1283 private int number_; |
1280 public int Number { | 1284 public int Number { |
1281 get { return number_; } | 1285 get { return number_; } |
1282 set { | 1286 set { |
1283 number_ = value; | 1287 number_ = value; |
1284 } | 1288 } |
1285 } | 1289 } |
1286 | 1290 |
1287 /// <summary>Field number for the "label" field.</summary> | 1291 /// <summary>Field number for the "label" field.</summary> |
1288 public const int LabelFieldNumber = 4; | 1292 public const int LabelFieldNumber = 4; |
1289 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label
label_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label.LAB
EL_OPTIONAL; | 1293 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label
label_ = 0; |
1290 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label L
abel { | 1294 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Label L
abel { |
1291 get { return label_; } | 1295 get { return label_; } |
1292 set { | 1296 set { |
1293 label_ = value; | 1297 label_ = value; |
1294 } | 1298 } |
1295 } | 1299 } |
1296 | 1300 |
1297 /// <summary>Field number for the "type" field.</summary> | 1301 /// <summary>Field number for the "type" field.</summary> |
1298 public const int TypeFieldNumber = 5; | 1302 public const int TypeFieldNumber = 5; |
1299 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type t
ype_ = global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type.TYPE_D
OUBLE; | 1303 private global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type t
ype_ = 0; |
1300 /// <summary> | 1304 /// <summary> |
1301 /// If type_name is set, this need not be set. If both this and type_name | 1305 /// If type_name is set, this need not be set. If both this and type_name |
1302 /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. | 1306 /// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP. |
1303 /// </summary> | 1307 /// </summary> |
1304 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Ty
pe { | 1308 public global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.Type Ty
pe { |
1305 get { return type_; } | 1309 get { return type_; } |
1306 set { | 1310 set { |
1307 type_ = value; | 1311 type_ = value; |
1308 } | 1312 } |
1309 } | 1313 } |
1310 | 1314 |
1311 /// <summary>Field number for the "type_name" field.</summary> | 1315 /// <summary>Field number for the "type_name" field.</summary> |
1312 public const int TypeNameFieldNumber = 6; | 1316 public const int TypeNameFieldNumber = 6; |
1313 private string typeName_ = ""; | 1317 private string typeName_ = ""; |
1314 /// <summary> | 1318 /// <summary> |
1315 /// For message and enum types, this is the name of the type. If the name | 1319 /// For message and enum types, this is the name of the type. If the name |
1316 /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping | 1320 /// starts with a '.', it is fully-qualified. Otherwise, C++-like scoping |
1317 /// rules are used to find the type (i.e. first the nested types within thi
s | 1321 /// rules are used to find the type (i.e. first the nested types within thi
s |
1318 /// message are searched, then within the parent, on up to the root | 1322 /// message are searched, then within the parent, on up to the root |
1319 /// namespace). | 1323 /// namespace). |
1320 /// </summary> | 1324 /// </summary> |
1321 public string TypeName { | 1325 public string TypeName { |
1322 get { return typeName_; } | 1326 get { return typeName_; } |
1323 set { | 1327 set { |
1324 typeName_ = pb::Preconditions.CheckNotNull(value, "value"); | 1328 typeName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1325 } | 1329 } |
1326 } | 1330 } |
1327 | 1331 |
1328 /// <summary>Field number for the "extendee" field.</summary> | 1332 /// <summary>Field number for the "extendee" field.</summary> |
1329 public const int ExtendeeFieldNumber = 2; | 1333 public const int ExtendeeFieldNumber = 2; |
1330 private string extendee_ = ""; | 1334 private string extendee_ = ""; |
1331 /// <summary> | 1335 /// <summary> |
1332 /// For extensions, this is the name of the type being extended. It is | 1336 /// For extensions, this is the name of the type being extended. It is |
1333 /// resolved in the same manner as type_name. | 1337 /// resolved in the same manner as type_name. |
1334 /// </summary> | 1338 /// </summary> |
1335 public string Extendee { | 1339 public string Extendee { |
1336 get { return extendee_; } | 1340 get { return extendee_; } |
1337 set { | 1341 set { |
1338 extendee_ = pb::Preconditions.CheckNotNull(value, "value"); | 1342 extendee_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1339 } | 1343 } |
1340 } | 1344 } |
1341 | 1345 |
1342 /// <summary>Field number for the "default_value" field.</summary> | 1346 /// <summary>Field number for the "default_value" field.</summary> |
1343 public const int DefaultValueFieldNumber = 7; | 1347 public const int DefaultValueFieldNumber = 7; |
1344 private string defaultValue_ = ""; | 1348 private string defaultValue_ = ""; |
1345 /// <summary> | 1349 /// <summary> |
1346 /// For numeric types, contains the original text representation of the val
ue. | 1350 /// For numeric types, contains the original text representation of the val
ue. |
1347 /// For booleans, "true" or "false". | 1351 /// For booleans, "true" or "false". |
1348 /// For strings, contains the default text contents (not escaped in any way
). | 1352 /// For strings, contains the default text contents (not escaped in any way
). |
1349 /// For bytes, contains the C escaped value. All bytes >= 128 are escaped. | 1353 /// For bytes, contains the C escaped value. All bytes >= 128 are escaped. |
1350 /// TODO(kenton): Base-64 encode? | 1354 /// TODO(kenton): Base-64 encode? |
1351 /// </summary> | 1355 /// </summary> |
1352 public string DefaultValue { | 1356 public string DefaultValue { |
1353 get { return defaultValue_; } | 1357 get { return defaultValue_; } |
1354 set { | 1358 set { |
1355 defaultValue_ = pb::Preconditions.CheckNotNull(value, "value"); | 1359 defaultValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1356 } | 1360 } |
1357 } | 1361 } |
1358 | 1362 |
1359 /// <summary>Field number for the "oneof_index" field.</summary> | 1363 /// <summary>Field number for the "oneof_index" field.</summary> |
1360 public const int OneofIndexFieldNumber = 9; | 1364 public const int OneofIndexFieldNumber = 9; |
1361 private int oneofIndex_; | 1365 private int oneofIndex_; |
1362 /// <summary> | 1366 /// <summary> |
1363 /// If set, gives the index of a oneof in the containing type's oneof_decl | 1367 /// If set, gives the index of a oneof in the containing type's oneof_decl |
1364 /// list. This field is a member of that oneof. | 1368 /// list. This field is a member of that oneof. |
1365 /// </summary> | 1369 /// </summary> |
1366 public int OneofIndex { | 1370 public int OneofIndex { |
1367 get { return oneofIndex_; } | 1371 get { return oneofIndex_; } |
1368 set { | 1372 set { |
1369 oneofIndex_ = value; | 1373 oneofIndex_ = value; |
1370 } | 1374 } |
1371 } | 1375 } |
1372 | 1376 |
1373 /// <summary>Field number for the "json_name" field.</summary> | 1377 /// <summary>Field number for the "json_name" field.</summary> |
1374 public const int JsonNameFieldNumber = 10; | 1378 public const int JsonNameFieldNumber = 10; |
1375 private string jsonName_ = ""; | 1379 private string jsonName_ = ""; |
1376 /// <summary> | 1380 /// <summary> |
1377 /// JSON name of this field. The value is set by protocol compiler. If the | 1381 /// JSON name of this field. The value is set by protocol compiler. If the |
1378 /// user has set a "json_name" option on this field, that option's value | 1382 /// user has set a "json_name" option on this field, that option's value |
1379 /// will be used. Otherwise, it's deduced from the field's name by converti
ng | 1383 /// will be used. Otherwise, it's deduced from the field's name by converti
ng |
1380 /// it to camelCase. | 1384 /// it to camelCase. |
1381 /// </summary> | 1385 /// </summary> |
1382 public string JsonName { | 1386 public string JsonName { |
1383 get { return jsonName_; } | 1387 get { return jsonName_; } |
1384 set { | 1388 set { |
1385 jsonName_ = pb::Preconditions.CheckNotNull(value, "value"); | 1389 jsonName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1386 } | 1390 } |
1387 } | 1391 } |
1388 | 1392 |
1389 /// <summary>Field number for the "options" field.</summary> | 1393 /// <summary>Field number for the "options" field.</summary> |
1390 public const int OptionsFieldNumber = 8; | 1394 public const int OptionsFieldNumber = 8; |
1391 private global::Google.Protobuf.Reflection.FieldOptions options_; | 1395 private global::Google.Protobuf.Reflection.FieldOptions options_; |
1392 public global::Google.Protobuf.Reflection.FieldOptions Options { | 1396 public global::Google.Protobuf.Reflection.FieldOptions Options { |
1393 get { return options_; } | 1397 get { return options_; } |
1394 set { | 1398 set { |
1395 options_ = value; | 1399 options_ = value; |
(...skipping 21 matching lines...) Expand all Loading... |
1417 if (OneofIndex != other.OneofIndex) return false; | 1421 if (OneofIndex != other.OneofIndex) return false; |
1418 if (JsonName != other.JsonName) return false; | 1422 if (JsonName != other.JsonName) return false; |
1419 if (!object.Equals(Options, other.Options)) return false; | 1423 if (!object.Equals(Options, other.Options)) return false; |
1420 return true; | 1424 return true; |
1421 } | 1425 } |
1422 | 1426 |
1423 public override int GetHashCode() { | 1427 public override int GetHashCode() { |
1424 int hash = 1; | 1428 int hash = 1; |
1425 if (Name.Length != 0) hash ^= Name.GetHashCode(); | 1429 if (Name.Length != 0) hash ^= Name.GetHashCode(); |
1426 if (Number != 0) hash ^= Number.GetHashCode(); | 1430 if (Number != 0) hash ^= Number.GetHashCode(); |
1427 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types
.Label.LABEL_OPTIONAL) hash ^= Label.GetHashCode(); | 1431 if (Label != 0) hash ^= Label.GetHashCode(); |
1428 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.
Type.TYPE_DOUBLE) hash ^= Type.GetHashCode(); | 1432 if (Type != 0) hash ^= Type.GetHashCode(); |
1429 if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); | 1433 if (TypeName.Length != 0) hash ^= TypeName.GetHashCode(); |
1430 if (Extendee.Length != 0) hash ^= Extendee.GetHashCode(); | 1434 if (Extendee.Length != 0) hash ^= Extendee.GetHashCode(); |
1431 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); | 1435 if (DefaultValue.Length != 0) hash ^= DefaultValue.GetHashCode(); |
1432 if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode(); | 1436 if (OneofIndex != 0) hash ^= OneofIndex.GetHashCode(); |
1433 if (JsonName.Length != 0) hash ^= JsonName.GetHashCode(); | 1437 if (JsonName.Length != 0) hash ^= JsonName.GetHashCode(); |
1434 if (options_ != null) hash ^= Options.GetHashCode(); | 1438 if (options_ != null) hash ^= Options.GetHashCode(); |
1435 return hash; | 1439 return hash; |
1436 } | 1440 } |
1437 | 1441 |
1438 public override string ToString() { | 1442 public override string ToString() { |
1439 return pb::JsonFormatter.ToDiagnosticString(this); | 1443 return pb::JsonFormatter.ToDiagnosticString(this); |
1440 } | 1444 } |
1441 | 1445 |
1442 public void WriteTo(pb::CodedOutputStream output) { | 1446 public void WriteTo(pb::CodedOutputStream output) { |
1443 if (Name.Length != 0) { | 1447 if (Name.Length != 0) { |
1444 output.WriteRawTag(10); | 1448 output.WriteRawTag(10); |
1445 output.WriteString(Name); | 1449 output.WriteString(Name); |
1446 } | 1450 } |
1447 if (Extendee.Length != 0) { | 1451 if (Extendee.Length != 0) { |
1448 output.WriteRawTag(18); | 1452 output.WriteRawTag(18); |
1449 output.WriteString(Extendee); | 1453 output.WriteString(Extendee); |
1450 } | 1454 } |
1451 if (Number != 0) { | 1455 if (Number != 0) { |
1452 output.WriteRawTag(24); | 1456 output.WriteRawTag(24); |
1453 output.WriteInt32(Number); | 1457 output.WriteInt32(Number); |
1454 } | 1458 } |
1455 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types
.Label.LABEL_OPTIONAL) { | 1459 if (Label != 0) { |
1456 output.WriteRawTag(32); | 1460 output.WriteRawTag(32); |
1457 output.WriteEnum((int) Label); | 1461 output.WriteEnum((int) Label); |
1458 } | 1462 } |
1459 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.
Type.TYPE_DOUBLE) { | 1463 if (Type != 0) { |
1460 output.WriteRawTag(40); | 1464 output.WriteRawTag(40); |
1461 output.WriteEnum((int) Type); | 1465 output.WriteEnum((int) Type); |
1462 } | 1466 } |
1463 if (TypeName.Length != 0) { | 1467 if (TypeName.Length != 0) { |
1464 output.WriteRawTag(50); | 1468 output.WriteRawTag(50); |
1465 output.WriteString(TypeName); | 1469 output.WriteString(TypeName); |
1466 } | 1470 } |
1467 if (DefaultValue.Length != 0) { | 1471 if (DefaultValue.Length != 0) { |
1468 output.WriteRawTag(58); | 1472 output.WriteRawTag(58); |
1469 output.WriteString(DefaultValue); | 1473 output.WriteString(DefaultValue); |
(...skipping 13 matching lines...) Expand all Loading... |
1483 } | 1487 } |
1484 | 1488 |
1485 public int CalculateSize() { | 1489 public int CalculateSize() { |
1486 int size = 0; | 1490 int size = 0; |
1487 if (Name.Length != 0) { | 1491 if (Name.Length != 0) { |
1488 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | 1492 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
1489 } | 1493 } |
1490 if (Number != 0) { | 1494 if (Number != 0) { |
1491 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); | 1495 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Number); |
1492 } | 1496 } |
1493 if (Label != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types
.Label.LABEL_OPTIONAL) { | 1497 if (Label != 0) { |
1494 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label); | 1498 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Label); |
1495 } | 1499 } |
1496 if (Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.Types.
Type.TYPE_DOUBLE) { | 1500 if (Type != 0) { |
1497 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); | 1501 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Type); |
1498 } | 1502 } |
1499 if (TypeName.Length != 0) { | 1503 if (TypeName.Length != 0) { |
1500 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); | 1504 size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeName); |
1501 } | 1505 } |
1502 if (Extendee.Length != 0) { | 1506 if (Extendee.Length != 0) { |
1503 size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee); | 1507 size += 1 + pb::CodedOutputStream.ComputeStringSize(Extendee); |
1504 } | 1508 } |
1505 if (DefaultValue.Length != 0) { | 1509 if (DefaultValue.Length != 0) { |
1506 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); | 1510 size += 1 + pb::CodedOutputStream.ComputeStringSize(DefaultValue); |
(...skipping 13 matching lines...) Expand all Loading... |
1520 public void MergeFrom(FieldDescriptorProto other) { | 1524 public void MergeFrom(FieldDescriptorProto other) { |
1521 if (other == null) { | 1525 if (other == null) { |
1522 return; | 1526 return; |
1523 } | 1527 } |
1524 if (other.Name.Length != 0) { | 1528 if (other.Name.Length != 0) { |
1525 Name = other.Name; | 1529 Name = other.Name; |
1526 } | 1530 } |
1527 if (other.Number != 0) { | 1531 if (other.Number != 0) { |
1528 Number = other.Number; | 1532 Number = other.Number; |
1529 } | 1533 } |
1530 if (other.Label != global::Google.Protobuf.Reflection.FieldDescriptorProto
.Types.Label.LABEL_OPTIONAL) { | 1534 if (other.Label != 0) { |
1531 Label = other.Label; | 1535 Label = other.Label; |
1532 } | 1536 } |
1533 if (other.Type != global::Google.Protobuf.Reflection.FieldDescriptorProto.
Types.Type.TYPE_DOUBLE) { | 1537 if (other.Type != 0) { |
1534 Type = other.Type; | 1538 Type = other.Type; |
1535 } | 1539 } |
1536 if (other.TypeName.Length != 0) { | 1540 if (other.TypeName.Length != 0) { |
1537 TypeName = other.TypeName; | 1541 TypeName = other.TypeName; |
1538 } | 1542 } |
1539 if (other.Extendee.Length != 0) { | 1543 if (other.Extendee.Length != 0) { |
1540 Extendee = other.Extendee; | 1544 Extendee = other.Extendee; |
1541 } | 1545 } |
1542 if (other.DefaultValue.Length != 0) { | 1546 if (other.DefaultValue.Length != 0) { |
1543 DefaultValue = other.DefaultValue; | 1547 DefaultValue = other.DefaultValue; |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 | 1616 |
1613 #region Nested types | 1617 #region Nested types |
1614 /// <summary>Container for nested types declared in the FieldDescriptorProto
message type.</summary> | 1618 /// <summary>Container for nested types declared in the FieldDescriptorProto
message type.</summary> |
1615 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 1619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
1616 public static partial class Types { | 1620 public static partial class Types { |
1617 internal enum Type { | 1621 internal enum Type { |
1618 /// <summary> | 1622 /// <summary> |
1619 /// 0 is reserved for errors. | 1623 /// 0 is reserved for errors. |
1620 /// Order is weird for historical reasons. | 1624 /// Order is weird for historical reasons. |
1621 /// </summary> | 1625 /// </summary> |
1622 TYPE_DOUBLE = 1, | 1626 [pbr::OriginalName("TYPE_DOUBLE")] Double = 1, |
1623 TYPE_FLOAT = 2, | 1627 [pbr::OriginalName("TYPE_FLOAT")] Float = 2, |
1624 /// <summary> | 1628 /// <summary> |
1625 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT
64 if | 1629 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT
64 if |
1626 /// negative values are likely. | 1630 /// negative values are likely. |
1627 /// </summary> | 1631 /// </summary> |
1628 TYPE_INT64 = 3, | 1632 [pbr::OriginalName("TYPE_INT64")] Int64 = 3, |
1629 TYPE_UINT64 = 4, | 1633 [pbr::OriginalName("TYPE_UINT64")] Uint64 = 4, |
1630 /// <summary> | 1634 /// <summary> |
1631 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT
32 if | 1635 /// Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT
32 if |
1632 /// negative values are likely. | 1636 /// negative values are likely. |
1633 /// </summary> | 1637 /// </summary> |
1634 TYPE_INT32 = 5, | 1638 [pbr::OriginalName("TYPE_INT32")] Int32 = 5, |
1635 TYPE_FIXED64 = 6, | 1639 [pbr::OriginalName("TYPE_FIXED64")] Fixed64 = 6, |
1636 TYPE_FIXED32 = 7, | 1640 [pbr::OriginalName("TYPE_FIXED32")] Fixed32 = 7, |
1637 TYPE_BOOL = 8, | 1641 [pbr::OriginalName("TYPE_BOOL")] Bool = 8, |
1638 TYPE_STRING = 9, | 1642 [pbr::OriginalName("TYPE_STRING")] String = 9, |
1639 /// <summary> | 1643 /// <summary> |
1640 /// Tag-delimited aggregate. | 1644 /// Tag-delimited aggregate. |
1641 /// </summary> | 1645 /// </summary> |
1642 TYPE_GROUP = 10, | 1646 [pbr::OriginalName("TYPE_GROUP")] Group = 10, |
1643 /// <summary> | 1647 /// <summary> |
1644 /// Length-delimited aggregate. | 1648 /// Length-delimited aggregate. |
1645 /// </summary> | 1649 /// </summary> |
1646 TYPE_MESSAGE = 11, | 1650 [pbr::OriginalName("TYPE_MESSAGE")] Message = 11, |
1647 /// <summary> | 1651 /// <summary> |
1648 /// New in version 2. | 1652 /// New in version 2. |
1649 /// </summary> | 1653 /// </summary> |
1650 TYPE_BYTES = 12, | 1654 [pbr::OriginalName("TYPE_BYTES")] Bytes = 12, |
1651 TYPE_UINT32 = 13, | 1655 [pbr::OriginalName("TYPE_UINT32")] Uint32 = 13, |
1652 TYPE_ENUM = 14, | 1656 [pbr::OriginalName("TYPE_ENUM")] Enum = 14, |
1653 TYPE_SFIXED32 = 15, | 1657 [pbr::OriginalName("TYPE_SFIXED32")] Sfixed32 = 15, |
1654 TYPE_SFIXED64 = 16, | 1658 [pbr::OriginalName("TYPE_SFIXED64")] Sfixed64 = 16, |
1655 /// <summary> | 1659 /// <summary> |
1656 /// Uses ZigZag encoding. | 1660 /// Uses ZigZag encoding. |
1657 /// </summary> | 1661 /// </summary> |
1658 TYPE_SINT32 = 17, | 1662 [pbr::OriginalName("TYPE_SINT32")] Sint32 = 17, |
1659 /// <summary> | 1663 /// <summary> |
1660 /// Uses ZigZag encoding. | 1664 /// Uses ZigZag encoding. |
1661 /// </summary> | 1665 /// </summary> |
1662 TYPE_SINT64 = 18, | 1666 [pbr::OriginalName("TYPE_SINT64")] Sint64 = 18, |
1663 } | 1667 } |
1664 | 1668 |
1665 internal enum Label { | 1669 internal enum Label { |
1666 /// <summary> | 1670 /// <summary> |
1667 /// 0 is reserved for errors | 1671 /// 0 is reserved for errors |
1668 /// </summary> | 1672 /// </summary> |
1669 LABEL_OPTIONAL = 1, | 1673 [pbr::OriginalName("LABEL_OPTIONAL")] Optional = 1, |
1670 LABEL_REQUIRED = 2, | 1674 [pbr::OriginalName("LABEL_REQUIRED")] Required = 2, |
1671 /// <summary> | 1675 /// <summary> |
1672 /// TODO(sanjay): Should we add LABEL_MAP? | 1676 /// TODO(sanjay): Should we add LABEL_MAP? |
1673 /// </summary> | 1677 /// </summary> |
1674 LABEL_REPEATED = 3, | 1678 [pbr::OriginalName("LABEL_REPEATED")] Repeated = 3, |
1675 } | 1679 } |
1676 | 1680 |
1677 } | 1681 } |
1678 #endregion | 1682 #endregion |
1679 | 1683 |
1680 } | 1684 } |
1681 | 1685 |
1682 /// <summary> | 1686 /// <summary> |
1683 /// Describes a oneof. | 1687 /// Describes a oneof. |
1684 /// </summary> | 1688 /// </summary> |
(...skipping 23 matching lines...) Expand all Loading... |
1708 public OneofDescriptorProto Clone() { | 1712 public OneofDescriptorProto Clone() { |
1709 return new OneofDescriptorProto(this); | 1713 return new OneofDescriptorProto(this); |
1710 } | 1714 } |
1711 | 1715 |
1712 /// <summary>Field number for the "name" field.</summary> | 1716 /// <summary>Field number for the "name" field.</summary> |
1713 public const int NameFieldNumber = 1; | 1717 public const int NameFieldNumber = 1; |
1714 private string name_ = ""; | 1718 private string name_ = ""; |
1715 public string Name { | 1719 public string Name { |
1716 get { return name_; } | 1720 get { return name_; } |
1717 set { | 1721 set { |
1718 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 1722 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1719 } | 1723 } |
1720 } | 1724 } |
1721 | 1725 |
1722 public override bool Equals(object other) { | 1726 public override bool Equals(object other) { |
1723 return Equals(other as OneofDescriptorProto); | 1727 return Equals(other as OneofDescriptorProto); |
1724 } | 1728 } |
1725 | 1729 |
1726 public bool Equals(OneofDescriptorProto other) { | 1730 public bool Equals(OneofDescriptorProto other) { |
1727 if (ReferenceEquals(other, null)) { | 1731 if (ReferenceEquals(other, null)) { |
1728 return false; | 1732 return false; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 public EnumDescriptorProto Clone() { | 1820 public EnumDescriptorProto Clone() { |
1817 return new EnumDescriptorProto(this); | 1821 return new EnumDescriptorProto(this); |
1818 } | 1822 } |
1819 | 1823 |
1820 /// <summary>Field number for the "name" field.</summary> | 1824 /// <summary>Field number for the "name" field.</summary> |
1821 public const int NameFieldNumber = 1; | 1825 public const int NameFieldNumber = 1; |
1822 private string name_ = ""; | 1826 private string name_ = ""; |
1823 public string Name { | 1827 public string Name { |
1824 get { return name_; } | 1828 get { return name_; } |
1825 set { | 1829 set { |
1826 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 1830 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1827 } | 1831 } |
1828 } | 1832 } |
1829 | 1833 |
1830 /// <summary>Field number for the "value" field.</summary> | 1834 /// <summary>Field number for the "value" field.</summary> |
1831 public const int ValueFieldNumber = 2; | 1835 public const int ValueFieldNumber = 2; |
1832 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En
umValueDescriptorProto> _repeated_value_codec | 1836 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.En
umValueDescriptorProto> _repeated_value_codec |
1833 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumV
alueDescriptorProto.Parser); | 1837 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.EnumV
alueDescriptorProto.Parser); |
1834 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumV
alueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Ref
lection.EnumValueDescriptorProto>(); | 1838 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumV
alueDescriptorProto> value_ = new pbc::RepeatedField<global::Google.Protobuf.Ref
lection.EnumValueDescriptorProto>(); |
1835 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescri
ptorProto> Value { | 1839 public pbc::RepeatedField<global::Google.Protobuf.Reflection.EnumValueDescri
ptorProto> Value { |
1836 get { return value_; } | 1840 get { return value_; } |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1974 public EnumValueDescriptorProto Clone() { | 1978 public EnumValueDescriptorProto Clone() { |
1975 return new EnumValueDescriptorProto(this); | 1979 return new EnumValueDescriptorProto(this); |
1976 } | 1980 } |
1977 | 1981 |
1978 /// <summary>Field number for the "name" field.</summary> | 1982 /// <summary>Field number for the "name" field.</summary> |
1979 public const int NameFieldNumber = 1; | 1983 public const int NameFieldNumber = 1; |
1980 private string name_ = ""; | 1984 private string name_ = ""; |
1981 public string Name { | 1985 public string Name { |
1982 get { return name_; } | 1986 get { return name_; } |
1983 set { | 1987 set { |
1984 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 1988 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
1985 } | 1989 } |
1986 } | 1990 } |
1987 | 1991 |
1988 /// <summary>Field number for the "number" field.</summary> | 1992 /// <summary>Field number for the "number" field.</summary> |
1989 public const int NumberFieldNumber = 2; | 1993 public const int NumberFieldNumber = 2; |
1990 private int number_; | 1994 private int number_; |
1991 public int Number { | 1995 public int Number { |
1992 get { return number_; } | 1996 get { return number_; } |
1993 set { | 1997 set { |
1994 number_ = value; | 1998 number_ = value; |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2140 public ServiceDescriptorProto Clone() { | 2144 public ServiceDescriptorProto Clone() { |
2141 return new ServiceDescriptorProto(this); | 2145 return new ServiceDescriptorProto(this); |
2142 } | 2146 } |
2143 | 2147 |
2144 /// <summary>Field number for the "name" field.</summary> | 2148 /// <summary>Field number for the "name" field.</summary> |
2145 public const int NameFieldNumber = 1; | 2149 public const int NameFieldNumber = 1; |
2146 private string name_ = ""; | 2150 private string name_ = ""; |
2147 public string Name { | 2151 public string Name { |
2148 get { return name_; } | 2152 get { return name_; } |
2149 set { | 2153 set { |
2150 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 2154 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2151 } | 2155 } |
2152 } | 2156 } |
2153 | 2157 |
2154 /// <summary>Field number for the "method" field.</summary> | 2158 /// <summary>Field number for the "method" field.</summary> |
2155 public const int MethodFieldNumber = 2; | 2159 public const int MethodFieldNumber = 2; |
2156 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Me
thodDescriptorProto> _repeated_method_codec | 2160 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Me
thodDescriptorProto> _repeated_method_codec |
2157 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Metho
dDescriptorProto.Parser); | 2161 = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.Reflection.Metho
dDescriptorProto.Parser); |
2158 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Metho
dDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Refle
ction.MethodDescriptorProto>(); | 2162 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Metho
dDescriptorProto> method_ = new pbc::RepeatedField<global::Google.Protobuf.Refle
ction.MethodDescriptorProto>(); |
2159 public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescripto
rProto> Method { | 2163 public pbc::RepeatedField<global::Google.Protobuf.Reflection.MethodDescripto
rProto> Method { |
2160 get { return method_; } | 2164 get { return method_; } |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2301 public MethodDescriptorProto Clone() { | 2305 public MethodDescriptorProto Clone() { |
2302 return new MethodDescriptorProto(this); | 2306 return new MethodDescriptorProto(this); |
2303 } | 2307 } |
2304 | 2308 |
2305 /// <summary>Field number for the "name" field.</summary> | 2309 /// <summary>Field number for the "name" field.</summary> |
2306 public const int NameFieldNumber = 1; | 2310 public const int NameFieldNumber = 1; |
2307 private string name_ = ""; | 2311 private string name_ = ""; |
2308 public string Name { | 2312 public string Name { |
2309 get { return name_; } | 2313 get { return name_; } |
2310 set { | 2314 set { |
2311 name_ = pb::Preconditions.CheckNotNull(value, "value"); | 2315 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2312 } | 2316 } |
2313 } | 2317 } |
2314 | 2318 |
2315 /// <summary>Field number for the "input_type" field.</summary> | 2319 /// <summary>Field number for the "input_type" field.</summary> |
2316 public const int InputTypeFieldNumber = 2; | 2320 public const int InputTypeFieldNumber = 2; |
2317 private string inputType_ = ""; | 2321 private string inputType_ = ""; |
2318 /// <summary> | 2322 /// <summary> |
2319 /// Input and output type names. These are resolved in the same way as | 2323 /// Input and output type names. These are resolved in the same way as |
2320 /// FieldDescriptorProto.type_name, but must refer to a message type. | 2324 /// FieldDescriptorProto.type_name, but must refer to a message type. |
2321 /// </summary> | 2325 /// </summary> |
2322 public string InputType { | 2326 public string InputType { |
2323 get { return inputType_; } | 2327 get { return inputType_; } |
2324 set { | 2328 set { |
2325 inputType_ = pb::Preconditions.CheckNotNull(value, "value"); | 2329 inputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2326 } | 2330 } |
2327 } | 2331 } |
2328 | 2332 |
2329 /// <summary>Field number for the "output_type" field.</summary> | 2333 /// <summary>Field number for the "output_type" field.</summary> |
2330 public const int OutputTypeFieldNumber = 3; | 2334 public const int OutputTypeFieldNumber = 3; |
2331 private string outputType_ = ""; | 2335 private string outputType_ = ""; |
2332 public string OutputType { | 2336 public string OutputType { |
2333 get { return outputType_; } | 2337 get { return outputType_; } |
2334 set { | 2338 set { |
2335 outputType_ = pb::Preconditions.CheckNotNull(value, "value"); | 2339 outputType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2336 } | 2340 } |
2337 } | 2341 } |
2338 | 2342 |
2339 /// <summary>Field number for the "options" field.</summary> | 2343 /// <summary>Field number for the "options" field.</summary> |
2340 public const int OptionsFieldNumber = 4; | 2344 public const int OptionsFieldNumber = 4; |
2341 private global::Google.Protobuf.Reflection.MethodOptions options_; | 2345 private global::Google.Protobuf.Reflection.MethodOptions options_; |
2342 public global::Google.Protobuf.Reflection.MethodOptions Options { | 2346 public global::Google.Protobuf.Reflection.MethodOptions Options { |
2343 get { return options_; } | 2347 get { return options_; } |
2344 set { | 2348 set { |
2345 options_ = value; | 2349 options_ = value; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2551 javaStringCheckUtf8_ = other.javaStringCheckUtf8_; | 2555 javaStringCheckUtf8_ = other.javaStringCheckUtf8_; |
2552 optimizeFor_ = other.optimizeFor_; | 2556 optimizeFor_ = other.optimizeFor_; |
2553 goPackage_ = other.goPackage_; | 2557 goPackage_ = other.goPackage_; |
2554 ccGenericServices_ = other.ccGenericServices_; | 2558 ccGenericServices_ = other.ccGenericServices_; |
2555 javaGenericServices_ = other.javaGenericServices_; | 2559 javaGenericServices_ = other.javaGenericServices_; |
2556 pyGenericServices_ = other.pyGenericServices_; | 2560 pyGenericServices_ = other.pyGenericServices_; |
2557 deprecated_ = other.deprecated_; | 2561 deprecated_ = other.deprecated_; |
2558 ccEnableArenas_ = other.ccEnableArenas_; | 2562 ccEnableArenas_ = other.ccEnableArenas_; |
2559 objcClassPrefix_ = other.objcClassPrefix_; | 2563 objcClassPrefix_ = other.objcClassPrefix_; |
2560 csharpNamespace_ = other.csharpNamespace_; | 2564 csharpNamespace_ = other.csharpNamespace_; |
2561 javananoUseDeprecatedPackage_ = other.javananoUseDeprecatedPackage_; | |
2562 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | 2565 uninterpretedOption_ = other.uninterpretedOption_.Clone(); |
2563 } | 2566 } |
2564 | 2567 |
2565 public FileOptions Clone() { | 2568 public FileOptions Clone() { |
2566 return new FileOptions(this); | 2569 return new FileOptions(this); |
2567 } | 2570 } |
2568 | 2571 |
2569 /// <summary>Field number for the "java_package" field.</summary> | 2572 /// <summary>Field number for the "java_package" field.</summary> |
2570 public const int JavaPackageFieldNumber = 1; | 2573 public const int JavaPackageFieldNumber = 1; |
2571 private string javaPackage_ = ""; | 2574 private string javaPackage_ = ""; |
2572 /// <summary> | 2575 /// <summary> |
2573 /// Sets the Java package where classes generated from this .proto will be | 2576 /// Sets the Java package where classes generated from this .proto will be |
2574 /// placed. By default, the proto package is used, but this is often | 2577 /// placed. By default, the proto package is used, but this is often |
2575 /// inappropriate because proto packages do not normally start with backwar
ds | 2578 /// inappropriate because proto packages do not normally start with backwar
ds |
2576 /// domain names. | 2579 /// domain names. |
2577 /// </summary> | 2580 /// </summary> |
2578 public string JavaPackage { | 2581 public string JavaPackage { |
2579 get { return javaPackage_; } | 2582 get { return javaPackage_; } |
2580 set { | 2583 set { |
2581 javaPackage_ = pb::Preconditions.CheckNotNull(value, "value"); | 2584 javaPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2582 } | 2585 } |
2583 } | 2586 } |
2584 | 2587 |
2585 /// <summary>Field number for the "java_outer_classname" field.</summary> | 2588 /// <summary>Field number for the "java_outer_classname" field.</summary> |
2586 public const int JavaOuterClassnameFieldNumber = 8; | 2589 public const int JavaOuterClassnameFieldNumber = 8; |
2587 private string javaOuterClassname_ = ""; | 2590 private string javaOuterClassname_ = ""; |
2588 /// <summary> | 2591 /// <summary> |
2589 /// If set, all the classes from the .proto file are wrapped in a single | 2592 /// If set, all the classes from the .proto file are wrapped in a single |
2590 /// outer class with the given name. This applies to both Proto1 | 2593 /// outer class with the given name. This applies to both Proto1 |
2591 /// (equivalent to the old "--one_java_file" option) and Proto2 (where | 2594 /// (equivalent to the old "--one_java_file" option) and Proto2 (where |
2592 /// a .proto always translates to a single class, but you may want to | 2595 /// a .proto always translates to a single class, but you may want to |
2593 /// explicitly choose the class name). | 2596 /// explicitly choose the class name). |
2594 /// </summary> | 2597 /// </summary> |
2595 public string JavaOuterClassname { | 2598 public string JavaOuterClassname { |
2596 get { return javaOuterClassname_; } | 2599 get { return javaOuterClassname_; } |
2597 set { | 2600 set { |
2598 javaOuterClassname_ = pb::Preconditions.CheckNotNull(value, "value"); | 2601 javaOuterClassname_ = pb::ProtoPreconditions.CheckNotNull(value, "value"
); |
2599 } | 2602 } |
2600 } | 2603 } |
2601 | 2604 |
2602 /// <summary>Field number for the "java_multiple_files" field.</summary> | 2605 /// <summary>Field number for the "java_multiple_files" field.</summary> |
2603 public const int JavaMultipleFilesFieldNumber = 10; | 2606 public const int JavaMultipleFilesFieldNumber = 10; |
2604 private bool javaMultipleFiles_; | 2607 private bool javaMultipleFiles_; |
2605 /// <summary> | 2608 /// <summary> |
2606 /// If set true, then the Java code generator will generate a separate .jav
a | 2609 /// If set true, then the Java code generator will generate a separate .jav
a |
2607 /// file for each top-level message, enum, and service defined in the .prot
o | 2610 /// file for each top-level message, enum, and service defined in the .prot
o |
2608 /// file. Thus, these types will *not* be nested inside the outer class | 2611 /// file. Thus, these types will *not* be nested inside the outer class |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2654 /// </summary> | 2657 /// </summary> |
2655 public bool JavaStringCheckUtf8 { | 2658 public bool JavaStringCheckUtf8 { |
2656 get { return javaStringCheckUtf8_; } | 2659 get { return javaStringCheckUtf8_; } |
2657 set { | 2660 set { |
2658 javaStringCheckUtf8_ = value; | 2661 javaStringCheckUtf8_ = value; |
2659 } | 2662 } |
2660 } | 2663 } |
2661 | 2664 |
2662 /// <summary>Field number for the "optimize_for" field.</summary> | 2665 /// <summary>Field number for the "optimize_for" field.</summary> |
2663 public const int OptimizeForFieldNumber = 9; | 2666 public const int OptimizeForFieldNumber = 9; |
2664 private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode op
timizeFor_ = global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode.S
PEED; | 2667 private global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode op
timizeFor_ = 0; |
2665 public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode Opt
imizeFor { | 2668 public global::Google.Protobuf.Reflection.FileOptions.Types.OptimizeMode Opt
imizeFor { |
2666 get { return optimizeFor_; } | 2669 get { return optimizeFor_; } |
2667 set { | 2670 set { |
2668 optimizeFor_ = value; | 2671 optimizeFor_ = value; |
2669 } | 2672 } |
2670 } | 2673 } |
2671 | 2674 |
2672 /// <summary>Field number for the "go_package" field.</summary> | 2675 /// <summary>Field number for the "go_package" field.</summary> |
2673 public const int GoPackageFieldNumber = 11; | 2676 public const int GoPackageFieldNumber = 11; |
2674 private string goPackage_ = ""; | 2677 private string goPackage_ = ""; |
2675 /// <summary> | 2678 /// <summary> |
2676 /// Sets the Go package where structs generated from this .proto will be | 2679 /// Sets the Go package where structs generated from this .proto will be |
2677 /// placed. If omitted, the Go package will be derived from the following: | 2680 /// placed. If omitted, the Go package will be derived from the following: |
2678 /// - The basename of the package import path, if provided. | 2681 /// - The basename of the package import path, if provided. |
2679 /// - Otherwise, the package statement in the .proto file, if present. | 2682 /// - Otherwise, the package statement in the .proto file, if present. |
2680 /// - Otherwise, the basename of the .proto file, without extension. | 2683 /// - Otherwise, the basename of the .proto file, without extension. |
2681 /// </summary> | 2684 /// </summary> |
2682 public string GoPackage { | 2685 public string GoPackage { |
2683 get { return goPackage_; } | 2686 get { return goPackage_; } |
2684 set { | 2687 set { |
2685 goPackage_ = pb::Preconditions.CheckNotNull(value, "value"); | 2688 goPackage_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2686 } | 2689 } |
2687 } | 2690 } |
2688 | 2691 |
2689 /// <summary>Field number for the "cc_generic_services" field.</summary> | 2692 /// <summary>Field number for the "cc_generic_services" field.</summary> |
2690 public const int CcGenericServicesFieldNumber = 16; | 2693 public const int CcGenericServicesFieldNumber = 16; |
2691 private bool ccGenericServices_; | 2694 private bool ccGenericServices_; |
2692 /// <summary> | 2695 /// <summary> |
2693 /// Should generic services be generated in each language? "Generic" servi
ces | 2696 /// Should generic services be generated in each language? "Generic" servi
ces |
2694 /// are not specific to any particular RPC system. They are generated by t
he | 2697 /// are not specific to any particular RPC system. They are generated by t
he |
2695 /// main code generators in each language (without additional plugins). | 2698 /// main code generators in each language (without additional plugins). |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2761 /// <summary>Field number for the "objc_class_prefix" field.</summary> | 2764 /// <summary>Field number for the "objc_class_prefix" field.</summary> |
2762 public const int ObjcClassPrefixFieldNumber = 36; | 2765 public const int ObjcClassPrefixFieldNumber = 36; |
2763 private string objcClassPrefix_ = ""; | 2766 private string objcClassPrefix_ = ""; |
2764 /// <summary> | 2767 /// <summary> |
2765 /// Sets the objective c class prefix which is prepended to all objective c | 2768 /// Sets the objective c class prefix which is prepended to all objective c |
2766 /// generated classes from this .proto. There is no default. | 2769 /// generated classes from this .proto. There is no default. |
2767 /// </summary> | 2770 /// </summary> |
2768 public string ObjcClassPrefix { | 2771 public string ObjcClassPrefix { |
2769 get { return objcClassPrefix_; } | 2772 get { return objcClassPrefix_; } |
2770 set { | 2773 set { |
2771 objcClassPrefix_ = pb::Preconditions.CheckNotNull(value, "value"); | 2774 objcClassPrefix_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2772 } | 2775 } |
2773 } | 2776 } |
2774 | 2777 |
2775 /// <summary>Field number for the "csharp_namespace" field.</summary> | 2778 /// <summary>Field number for the "csharp_namespace" field.</summary> |
2776 public const int CsharpNamespaceFieldNumber = 37; | 2779 public const int CsharpNamespaceFieldNumber = 37; |
2777 private string csharpNamespace_ = ""; | 2780 private string csharpNamespace_ = ""; |
2778 /// <summary> | 2781 /// <summary> |
2779 /// Namespace for generated classes; defaults to the package. | 2782 /// Namespace for generated classes; defaults to the package. |
2780 /// </summary> | 2783 /// </summary> |
2781 public string CsharpNamespace { | 2784 public string CsharpNamespace { |
2782 get { return csharpNamespace_; } | 2785 get { return csharpNamespace_; } |
2783 set { | 2786 set { |
2784 csharpNamespace_ = pb::Preconditions.CheckNotNull(value, "value"); | 2787 csharpNamespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
2785 } | 2788 } |
2786 } | 2789 } |
2787 | 2790 |
2788 /// <summary>Field number for the "javanano_use_deprecated_package" field.</
summary> | |
2789 public const int JavananoUseDeprecatedPackageFieldNumber = 38; | |
2790 private bool javananoUseDeprecatedPackage_; | |
2791 /// <summary> | |
2792 /// Whether the nano proto compiler should generate in the deprecated non-n
ano | |
2793 /// suffixed package. | |
2794 /// </summary> | |
2795 public bool JavananoUseDeprecatedPackage { | |
2796 get { return javananoUseDeprecatedPackage_; } | |
2797 set { | |
2798 javananoUseDeprecatedPackage_ = value; | |
2799 } | |
2800 } | |
2801 | |
2802 /// <summary>Field number for the "uninterpreted_option" field.</summary> | 2791 /// <summary>Field number for the "uninterpreted_option" field.</summary> |
2803 public const int UninterpretedOptionFieldNumber = 999; | 2792 public const int UninterpretedOptionFieldNumber = 999; |
2804 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec | 2793 private static readonly pb::FieldCodec<global::Google.Protobuf.Reflection.Un
interpretedOption> _repeated_uninterpretedOption_codec |
2805 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); | 2794 = pb::FieldCodec.ForMessage(7994, global::Google.Protobuf.Reflection.Uni
nterpretedOption.Parser); |
2806 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); | 2795 private readonly pbc::RepeatedField<global::Google.Protobuf.Reflection.Unint
erpretedOption> uninterpretedOption_ = new pbc::RepeatedField<global::Google.Pro
tobuf.Reflection.UninterpretedOption>(); |
2807 /// <summary> | 2796 /// <summary> |
2808 /// The parser stores options it doesn't recognize here. See above. | 2797 /// The parser stores options it doesn't recognize here. See above. |
2809 /// </summary> | 2798 /// </summary> |
2810 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp
tion> UninterpretedOption { | 2799 public pbc::RepeatedField<global::Google.Protobuf.Reflection.UninterpretedOp
tion> UninterpretedOption { |
2811 get { return uninterpretedOption_; } | 2800 get { return uninterpretedOption_; } |
(...skipping 17 matching lines...) Expand all Loading... |
2829 if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false; | 2818 if (JavaStringCheckUtf8 != other.JavaStringCheckUtf8) return false; |
2830 if (OptimizeFor != other.OptimizeFor) return false; | 2819 if (OptimizeFor != other.OptimizeFor) return false; |
2831 if (GoPackage != other.GoPackage) return false; | 2820 if (GoPackage != other.GoPackage) return false; |
2832 if (CcGenericServices != other.CcGenericServices) return false; | 2821 if (CcGenericServices != other.CcGenericServices) return false; |
2833 if (JavaGenericServices != other.JavaGenericServices) return false; | 2822 if (JavaGenericServices != other.JavaGenericServices) return false; |
2834 if (PyGenericServices != other.PyGenericServices) return false; | 2823 if (PyGenericServices != other.PyGenericServices) return false; |
2835 if (Deprecated != other.Deprecated) return false; | 2824 if (Deprecated != other.Deprecated) return false; |
2836 if (CcEnableArenas != other.CcEnableArenas) return false; | 2825 if (CcEnableArenas != other.CcEnableArenas) return false; |
2837 if (ObjcClassPrefix != other.ObjcClassPrefix) return false; | 2826 if (ObjcClassPrefix != other.ObjcClassPrefix) return false; |
2838 if (CsharpNamespace != other.CsharpNamespace) return false; | 2827 if (CsharpNamespace != other.CsharpNamespace) return false; |
2839 if (JavananoUseDeprecatedPackage != other.JavananoUseDeprecatedPackage) re
turn false; | |
2840 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | 2828 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; |
2841 return true; | 2829 return true; |
2842 } | 2830 } |
2843 | 2831 |
2844 public override int GetHashCode() { | 2832 public override int GetHashCode() { |
2845 int hash = 1; | 2833 int hash = 1; |
2846 if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode(); | 2834 if (JavaPackage.Length != 0) hash ^= JavaPackage.GetHashCode(); |
2847 if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode
(); | 2835 if (JavaOuterClassname.Length != 0) hash ^= JavaOuterClassname.GetHashCode
(); |
2848 if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode(); | 2836 if (JavaMultipleFiles != false) hash ^= JavaMultipleFiles.GetHashCode(); |
2849 if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.
GetHashCode(); | 2837 if (JavaGenerateEqualsAndHash != false) hash ^= JavaGenerateEqualsAndHash.
GetHashCode(); |
2850 if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode(
); | 2838 if (JavaStringCheckUtf8 != false) hash ^= JavaStringCheckUtf8.GetHashCode(
); |
2851 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.Op
timizeMode.SPEED) hash ^= OptimizeFor.GetHashCode(); | 2839 if (OptimizeFor != 0) hash ^= OptimizeFor.GetHashCode(); |
2852 if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode(); | 2840 if (GoPackage.Length != 0) hash ^= GoPackage.GetHashCode(); |
2853 if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode(); | 2841 if (CcGenericServices != false) hash ^= CcGenericServices.GetHashCode(); |
2854 if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode(
); | 2842 if (JavaGenericServices != false) hash ^= JavaGenericServices.GetHashCode(
); |
2855 if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode(); | 2843 if (PyGenericServices != false) hash ^= PyGenericServices.GetHashCode(); |
2856 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | 2844 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); |
2857 if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode(); | 2845 if (CcEnableArenas != false) hash ^= CcEnableArenas.GetHashCode(); |
2858 if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode(); | 2846 if (ObjcClassPrefix.Length != 0) hash ^= ObjcClassPrefix.GetHashCode(); |
2859 if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode(); | 2847 if (CsharpNamespace.Length != 0) hash ^= CsharpNamespace.GetHashCode(); |
2860 if (JavananoUseDeprecatedPackage != false) hash ^= JavananoUseDeprecatedPa
ckage.GetHashCode(); | |
2861 hash ^= uninterpretedOption_.GetHashCode(); | 2848 hash ^= uninterpretedOption_.GetHashCode(); |
2862 return hash; | 2849 return hash; |
2863 } | 2850 } |
2864 | 2851 |
2865 public override string ToString() { | 2852 public override string ToString() { |
2866 return pb::JsonFormatter.ToDiagnosticString(this); | 2853 return pb::JsonFormatter.ToDiagnosticString(this); |
2867 } | 2854 } |
2868 | 2855 |
2869 public void WriteTo(pb::CodedOutputStream output) { | 2856 public void WriteTo(pb::CodedOutputStream output) { |
2870 if (JavaPackage.Length != 0) { | 2857 if (JavaPackage.Length != 0) { |
2871 output.WriteRawTag(10); | 2858 output.WriteRawTag(10); |
2872 output.WriteString(JavaPackage); | 2859 output.WriteString(JavaPackage); |
2873 } | 2860 } |
2874 if (JavaOuterClassname.Length != 0) { | 2861 if (JavaOuterClassname.Length != 0) { |
2875 output.WriteRawTag(66); | 2862 output.WriteRawTag(66); |
2876 output.WriteString(JavaOuterClassname); | 2863 output.WriteString(JavaOuterClassname); |
2877 } | 2864 } |
2878 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.Op
timizeMode.SPEED) { | 2865 if (OptimizeFor != 0) { |
2879 output.WriteRawTag(72); | 2866 output.WriteRawTag(72); |
2880 output.WriteEnum((int) OptimizeFor); | 2867 output.WriteEnum((int) OptimizeFor); |
2881 } | 2868 } |
2882 if (JavaMultipleFiles != false) { | 2869 if (JavaMultipleFiles != false) { |
2883 output.WriteRawTag(80); | 2870 output.WriteRawTag(80); |
2884 output.WriteBool(JavaMultipleFiles); | 2871 output.WriteBool(JavaMultipleFiles); |
2885 } | 2872 } |
2886 if (GoPackage.Length != 0) { | 2873 if (GoPackage.Length != 0) { |
2887 output.WriteRawTag(90); | 2874 output.WriteRawTag(90); |
2888 output.WriteString(GoPackage); | 2875 output.WriteString(GoPackage); |
(...skipping 27 matching lines...) Expand all Loading... |
2916 output.WriteBool(CcEnableArenas); | 2903 output.WriteBool(CcEnableArenas); |
2917 } | 2904 } |
2918 if (ObjcClassPrefix.Length != 0) { | 2905 if (ObjcClassPrefix.Length != 0) { |
2919 output.WriteRawTag(162, 2); | 2906 output.WriteRawTag(162, 2); |
2920 output.WriteString(ObjcClassPrefix); | 2907 output.WriteString(ObjcClassPrefix); |
2921 } | 2908 } |
2922 if (CsharpNamespace.Length != 0) { | 2909 if (CsharpNamespace.Length != 0) { |
2923 output.WriteRawTag(170, 2); | 2910 output.WriteRawTag(170, 2); |
2924 output.WriteString(CsharpNamespace); | 2911 output.WriteString(CsharpNamespace); |
2925 } | 2912 } |
2926 if (JavananoUseDeprecatedPackage != false) { | |
2927 output.WriteRawTag(176, 2); | |
2928 output.WriteBool(JavananoUseDeprecatedPackage); | |
2929 } | |
2930 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | 2913 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); |
2931 } | 2914 } |
2932 | 2915 |
2933 public int CalculateSize() { | 2916 public int CalculateSize() { |
2934 int size = 0; | 2917 int size = 0; |
2935 if (JavaPackage.Length != 0) { | 2918 if (JavaPackage.Length != 0) { |
2936 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage); | 2919 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaPackage); |
2937 } | 2920 } |
2938 if (JavaOuterClassname.Length != 0) { | 2921 if (JavaOuterClassname.Length != 0) { |
2939 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname); | 2922 size += 1 + pb::CodedOutputStream.ComputeStringSize(JavaOuterClassname); |
2940 } | 2923 } |
2941 if (JavaMultipleFiles != false) { | 2924 if (JavaMultipleFiles != false) { |
2942 size += 1 + 1; | 2925 size += 1 + 1; |
2943 } | 2926 } |
2944 if (JavaGenerateEqualsAndHash != false) { | 2927 if (JavaGenerateEqualsAndHash != false) { |
2945 size += 2 + 1; | 2928 size += 2 + 1; |
2946 } | 2929 } |
2947 if (JavaStringCheckUtf8 != false) { | 2930 if (JavaStringCheckUtf8 != false) { |
2948 size += 2 + 1; | 2931 size += 2 + 1; |
2949 } | 2932 } |
2950 if (OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Types.Op
timizeMode.SPEED) { | 2933 if (OptimizeFor != 0) { |
2951 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor); | 2934 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OptimizeFor); |
2952 } | 2935 } |
2953 if (GoPackage.Length != 0) { | 2936 if (GoPackage.Length != 0) { |
2954 size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage); | 2937 size += 1 + pb::CodedOutputStream.ComputeStringSize(GoPackage); |
2955 } | 2938 } |
2956 if (CcGenericServices != false) { | 2939 if (CcGenericServices != false) { |
2957 size += 2 + 1; | 2940 size += 2 + 1; |
2958 } | 2941 } |
2959 if (JavaGenericServices != false) { | 2942 if (JavaGenericServices != false) { |
2960 size += 2 + 1; | 2943 size += 2 + 1; |
2961 } | 2944 } |
2962 if (PyGenericServices != false) { | 2945 if (PyGenericServices != false) { |
2963 size += 2 + 1; | 2946 size += 2 + 1; |
2964 } | 2947 } |
2965 if (Deprecated != false) { | 2948 if (Deprecated != false) { |
2966 size += 2 + 1; | 2949 size += 2 + 1; |
2967 } | 2950 } |
2968 if (CcEnableArenas != false) { | 2951 if (CcEnableArenas != false) { |
2969 size += 2 + 1; | 2952 size += 2 + 1; |
2970 } | 2953 } |
2971 if (ObjcClassPrefix.Length != 0) { | 2954 if (ObjcClassPrefix.Length != 0) { |
2972 size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix); | 2955 size += 2 + pb::CodedOutputStream.ComputeStringSize(ObjcClassPrefix); |
2973 } | 2956 } |
2974 if (CsharpNamespace.Length != 0) { | 2957 if (CsharpNamespace.Length != 0) { |
2975 size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace); | 2958 size += 2 + pb::CodedOutputStream.ComputeStringSize(CsharpNamespace); |
2976 } | 2959 } |
2977 if (JavananoUseDeprecatedPackage != false) { | |
2978 size += 2 + 1; | |
2979 } | |
2980 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | 2960 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); |
2981 return size; | 2961 return size; |
2982 } | 2962 } |
2983 | 2963 |
2984 public void MergeFrom(FileOptions other) { | 2964 public void MergeFrom(FileOptions other) { |
2985 if (other == null) { | 2965 if (other == null) { |
2986 return; | 2966 return; |
2987 } | 2967 } |
2988 if (other.JavaPackage.Length != 0) { | 2968 if (other.JavaPackage.Length != 0) { |
2989 JavaPackage = other.JavaPackage; | 2969 JavaPackage = other.JavaPackage; |
2990 } | 2970 } |
2991 if (other.JavaOuterClassname.Length != 0) { | 2971 if (other.JavaOuterClassname.Length != 0) { |
2992 JavaOuterClassname = other.JavaOuterClassname; | 2972 JavaOuterClassname = other.JavaOuterClassname; |
2993 } | 2973 } |
2994 if (other.JavaMultipleFiles != false) { | 2974 if (other.JavaMultipleFiles != false) { |
2995 JavaMultipleFiles = other.JavaMultipleFiles; | 2975 JavaMultipleFiles = other.JavaMultipleFiles; |
2996 } | 2976 } |
2997 if (other.JavaGenerateEqualsAndHash != false) { | 2977 if (other.JavaGenerateEqualsAndHash != false) { |
2998 JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash; | 2978 JavaGenerateEqualsAndHash = other.JavaGenerateEqualsAndHash; |
2999 } | 2979 } |
3000 if (other.JavaStringCheckUtf8 != false) { | 2980 if (other.JavaStringCheckUtf8 != false) { |
3001 JavaStringCheckUtf8 = other.JavaStringCheckUtf8; | 2981 JavaStringCheckUtf8 = other.JavaStringCheckUtf8; |
3002 } | 2982 } |
3003 if (other.OptimizeFor != global::Google.Protobuf.Reflection.FileOptions.Ty
pes.OptimizeMode.SPEED) { | 2983 if (other.OptimizeFor != 0) { |
3004 OptimizeFor = other.OptimizeFor; | 2984 OptimizeFor = other.OptimizeFor; |
3005 } | 2985 } |
3006 if (other.GoPackage.Length != 0) { | 2986 if (other.GoPackage.Length != 0) { |
3007 GoPackage = other.GoPackage; | 2987 GoPackage = other.GoPackage; |
3008 } | 2988 } |
3009 if (other.CcGenericServices != false) { | 2989 if (other.CcGenericServices != false) { |
3010 CcGenericServices = other.CcGenericServices; | 2990 CcGenericServices = other.CcGenericServices; |
3011 } | 2991 } |
3012 if (other.JavaGenericServices != false) { | 2992 if (other.JavaGenericServices != false) { |
3013 JavaGenericServices = other.JavaGenericServices; | 2993 JavaGenericServices = other.JavaGenericServices; |
3014 } | 2994 } |
3015 if (other.PyGenericServices != false) { | 2995 if (other.PyGenericServices != false) { |
3016 PyGenericServices = other.PyGenericServices; | 2996 PyGenericServices = other.PyGenericServices; |
3017 } | 2997 } |
3018 if (other.Deprecated != false) { | 2998 if (other.Deprecated != false) { |
3019 Deprecated = other.Deprecated; | 2999 Deprecated = other.Deprecated; |
3020 } | 3000 } |
3021 if (other.CcEnableArenas != false) { | 3001 if (other.CcEnableArenas != false) { |
3022 CcEnableArenas = other.CcEnableArenas; | 3002 CcEnableArenas = other.CcEnableArenas; |
3023 } | 3003 } |
3024 if (other.ObjcClassPrefix.Length != 0) { | 3004 if (other.ObjcClassPrefix.Length != 0) { |
3025 ObjcClassPrefix = other.ObjcClassPrefix; | 3005 ObjcClassPrefix = other.ObjcClassPrefix; |
3026 } | 3006 } |
3027 if (other.CsharpNamespace.Length != 0) { | 3007 if (other.CsharpNamespace.Length != 0) { |
3028 CsharpNamespace = other.CsharpNamespace; | 3008 CsharpNamespace = other.CsharpNamespace; |
3029 } | 3009 } |
3030 if (other.JavananoUseDeprecatedPackage != false) { | |
3031 JavananoUseDeprecatedPackage = other.JavananoUseDeprecatedPackage; | |
3032 } | |
3033 uninterpretedOption_.Add(other.uninterpretedOption_); | 3010 uninterpretedOption_.Add(other.uninterpretedOption_); |
3034 } | 3011 } |
3035 | 3012 |
3036 public void MergeFrom(pb::CodedInputStream input) { | 3013 public void MergeFrom(pb::CodedInputStream input) { |
3037 uint tag; | 3014 uint tag; |
3038 while ((tag = input.ReadTag()) != 0) { | 3015 while ((tag = input.ReadTag()) != 0) { |
3039 switch(tag) { | 3016 switch(tag) { |
3040 default: | 3017 default: |
3041 input.SkipLastField(); | 3018 input.SkipLastField(); |
3042 break; | 3019 break; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3089 break; | 3066 break; |
3090 } | 3067 } |
3091 case 290: { | 3068 case 290: { |
3092 ObjcClassPrefix = input.ReadString(); | 3069 ObjcClassPrefix = input.ReadString(); |
3093 break; | 3070 break; |
3094 } | 3071 } |
3095 case 298: { | 3072 case 298: { |
3096 CsharpNamespace = input.ReadString(); | 3073 CsharpNamespace = input.ReadString(); |
3097 break; | 3074 break; |
3098 } | 3075 } |
3099 case 304: { | |
3100 JavananoUseDeprecatedPackage = input.ReadBool(); | |
3101 break; | |
3102 } | |
3103 case 7994: { | 3076 case 7994: { |
3104 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); | 3077 uninterpretedOption_.AddEntriesFrom(input, _repeated_uninterpretedOp
tion_codec); |
3105 break; | 3078 break; |
3106 } | 3079 } |
3107 } | 3080 } |
3108 } | 3081 } |
3109 } | 3082 } |
3110 | 3083 |
3111 #region Nested types | 3084 #region Nested types |
3112 /// <summary>Container for nested types declared in the FileOptions message
type.</summary> | 3085 /// <summary>Container for nested types declared in the FileOptions message
type.</summary> |
3113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 3086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
3114 public static partial class Types { | 3087 public static partial class Types { |
3115 /// <summary> | 3088 /// <summary> |
3116 /// Generated classes can be optimized for speed or code size. | 3089 /// Generated classes can be optimized for speed or code size. |
3117 /// </summary> | 3090 /// </summary> |
3118 internal enum OptimizeMode { | 3091 internal enum OptimizeMode { |
3119 /// <summary> | 3092 /// <summary> |
3120 /// Generate complete code for parsing, serialization, | 3093 /// Generate complete code for parsing, serialization, |
3121 /// </summary> | 3094 /// </summary> |
3122 SPEED = 1, | 3095 [pbr::OriginalName("SPEED")] Speed = 1, |
3123 /// <summary> | 3096 /// <summary> |
3124 /// etc. | 3097 /// etc. |
3125 /// </summary> | 3098 /// </summary> |
3126 CODE_SIZE = 2, | 3099 [pbr::OriginalName("CODE_SIZE")] CodeSize = 2, |
3127 /// <summary> | 3100 /// <summary> |
3128 /// Generate code using MessageLite and the lite runtime. | 3101 /// Generate code using MessageLite and the lite runtime. |
3129 /// </summary> | 3102 /// </summary> |
3130 LITE_RUNTIME = 3, | 3103 [pbr::OriginalName("LITE_RUNTIME")] LiteRuntime = 3, |
3131 } | 3104 } |
3132 | 3105 |
3133 } | 3106 } |
3134 #endregion | 3107 #endregion |
3135 | 3108 |
3136 } | 3109 } |
3137 | 3110 |
3138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 3111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
3139 internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> { | 3112 internal sealed partial class MessageOptions : pb::IMessage<MessageOptions> { |
3140 private static readonly pb::MessageParser<MessageOptions> _parser = new pb::
MessageParser<MessageOptions>(() => new MessageOptions()); | 3113 private static readonly pb::MessageParser<MessageOptions> _parser = new pb::
MessageParser<MessageOptions>(() => new MessageOptions()); |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3423 weak_ = other.weak_; | 3396 weak_ = other.weak_; |
3424 uninterpretedOption_ = other.uninterpretedOption_.Clone(); | 3397 uninterpretedOption_ = other.uninterpretedOption_.Clone(); |
3425 } | 3398 } |
3426 | 3399 |
3427 public FieldOptions Clone() { | 3400 public FieldOptions Clone() { |
3428 return new FieldOptions(this); | 3401 return new FieldOptions(this); |
3429 } | 3402 } |
3430 | 3403 |
3431 /// <summary>Field number for the "ctype" field.</summary> | 3404 /// <summary>Field number for the "ctype" field.</summary> |
3432 public const int CtypeFieldNumber = 1; | 3405 public const int CtypeFieldNumber = 1; |
3433 private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ =
global::Google.Protobuf.Reflection.FieldOptions.Types.CType.STRING; | 3406 private global::Google.Protobuf.Reflection.FieldOptions.Types.CType ctype_ =
0; |
3434 /// <summary> | 3407 /// <summary> |
3435 /// The ctype option instructs the C++ code generator to use a different | 3408 /// The ctype option instructs the C++ code generator to use a different |
3436 /// representation of the field than it normally would. See the specific | 3409 /// representation of the field than it normally would. See the specific |
3437 /// options below. This option is not yet implemented in the open source | 3410 /// options below. This option is not yet implemented in the open source |
3438 /// release -- sorry, we'll try to include it in a future version! | 3411 /// release -- sorry, we'll try to include it in a future version! |
3439 /// </summary> | 3412 /// </summary> |
3440 public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype { | 3413 public global::Google.Protobuf.Reflection.FieldOptions.Types.CType Ctype { |
3441 get { return ctype_; } | 3414 get { return ctype_; } |
3442 set { | 3415 set { |
3443 ctype_ = value; | 3416 ctype_ = value; |
(...skipping 12 matching lines...) Expand all Loading... |
3456 /// </summary> | 3429 /// </summary> |
3457 public bool Packed { | 3430 public bool Packed { |
3458 get { return packed_; } | 3431 get { return packed_; } |
3459 set { | 3432 set { |
3460 packed_ = value; | 3433 packed_ = value; |
3461 } | 3434 } |
3462 } | 3435 } |
3463 | 3436 |
3464 /// <summary>Field number for the "jstype" field.</summary> | 3437 /// <summary>Field number for the "jstype" field.</summary> |
3465 public const int JstypeFieldNumber = 6; | 3438 public const int JstypeFieldNumber = 6; |
3466 private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_
= global::Google.Protobuf.Reflection.FieldOptions.Types.JSType.JS_NORMAL; | 3439 private global::Google.Protobuf.Reflection.FieldOptions.Types.JSType jstype_
= 0; |
3467 /// <summary> | 3440 /// <summary> |
3468 /// The jstype option determines the JavaScript type used for values of the | 3441 /// The jstype option determines the JavaScript type used for values of the |
3469 /// field. The option is permitted only for 64 bit integral and fixed type
s | 3442 /// field. The option is permitted only for 64 bit integral and fixed type
s |
3470 /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are | 3443 /// (int64, uint64, sint64, fixed64, sfixed64). By default these types are |
3471 /// represented as JavaScript strings. This avoids loss of precision that
can | 3444 /// represented as JavaScript strings. This avoids loss of precision that
can |
3472 /// happen when a large value is converted to a floating point JavaScript | 3445 /// happen when a large value is converted to a floating point JavaScript |
3473 /// numbers. Specifying JS_NUMBER for the jstype causes the generated | 3446 /// numbers. Specifying JS_NUMBER for the jstype causes the generated |
3474 /// JavaScript code to use the JavaScript "number" type instead of strings. | 3447 /// JavaScript code to use the JavaScript "number" type instead of strings. |
3475 /// This option is an enum to permit additional types to be added, | 3448 /// This option is an enum to permit additional types to be added, |
3476 /// e.g. goog.math.Integer. | 3449 /// e.g. goog.math.Integer. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3578 if (Jstype != other.Jstype) return false; | 3551 if (Jstype != other.Jstype) return false; |
3579 if (Lazy != other.Lazy) return false; | 3552 if (Lazy != other.Lazy) return false; |
3580 if (Deprecated != other.Deprecated) return false; | 3553 if (Deprecated != other.Deprecated) return false; |
3581 if (Weak != other.Weak) return false; | 3554 if (Weak != other.Weak) return false; |
3582 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; | 3555 if(!uninterpretedOption_.Equals(other.uninterpretedOption_)) return false; |
3583 return true; | 3556 return true; |
3584 } | 3557 } |
3585 | 3558 |
3586 public override int GetHashCode() { | 3559 public override int GetHashCode() { |
3587 int hash = 1; | 3560 int hash = 1; |
3588 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.S
TRING) hash ^= Ctype.GetHashCode(); | 3561 if (Ctype != 0) hash ^= Ctype.GetHashCode(); |
3589 if (Packed != false) hash ^= Packed.GetHashCode(); | 3562 if (Packed != false) hash ^= Packed.GetHashCode(); |
3590 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType
.JS_NORMAL) hash ^= Jstype.GetHashCode(); | 3563 if (Jstype != 0) hash ^= Jstype.GetHashCode(); |
3591 if (Lazy != false) hash ^= Lazy.GetHashCode(); | 3564 if (Lazy != false) hash ^= Lazy.GetHashCode(); |
3592 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); | 3565 if (Deprecated != false) hash ^= Deprecated.GetHashCode(); |
3593 if (Weak != false) hash ^= Weak.GetHashCode(); | 3566 if (Weak != false) hash ^= Weak.GetHashCode(); |
3594 hash ^= uninterpretedOption_.GetHashCode(); | 3567 hash ^= uninterpretedOption_.GetHashCode(); |
3595 return hash; | 3568 return hash; |
3596 } | 3569 } |
3597 | 3570 |
3598 public override string ToString() { | 3571 public override string ToString() { |
3599 return pb::JsonFormatter.ToDiagnosticString(this); | 3572 return pb::JsonFormatter.ToDiagnosticString(this); |
3600 } | 3573 } |
3601 | 3574 |
3602 public void WriteTo(pb::CodedOutputStream output) { | 3575 public void WriteTo(pb::CodedOutputStream output) { |
3603 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.S
TRING) { | 3576 if (Ctype != 0) { |
3604 output.WriteRawTag(8); | 3577 output.WriteRawTag(8); |
3605 output.WriteEnum((int) Ctype); | 3578 output.WriteEnum((int) Ctype); |
3606 } | 3579 } |
3607 if (Packed != false) { | 3580 if (Packed != false) { |
3608 output.WriteRawTag(16); | 3581 output.WriteRawTag(16); |
3609 output.WriteBool(Packed); | 3582 output.WriteBool(Packed); |
3610 } | 3583 } |
3611 if (Deprecated != false) { | 3584 if (Deprecated != false) { |
3612 output.WriteRawTag(24); | 3585 output.WriteRawTag(24); |
3613 output.WriteBool(Deprecated); | 3586 output.WriteBool(Deprecated); |
3614 } | 3587 } |
3615 if (Lazy != false) { | 3588 if (Lazy != false) { |
3616 output.WriteRawTag(40); | 3589 output.WriteRawTag(40); |
3617 output.WriteBool(Lazy); | 3590 output.WriteBool(Lazy); |
3618 } | 3591 } |
3619 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType
.JS_NORMAL) { | 3592 if (Jstype != 0) { |
3620 output.WriteRawTag(48); | 3593 output.WriteRawTag(48); |
3621 output.WriteEnum((int) Jstype); | 3594 output.WriteEnum((int) Jstype); |
3622 } | 3595 } |
3623 if (Weak != false) { | 3596 if (Weak != false) { |
3624 output.WriteRawTag(80); | 3597 output.WriteRawTag(80); |
3625 output.WriteBool(Weak); | 3598 output.WriteBool(Weak); |
3626 } | 3599 } |
3627 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); | 3600 uninterpretedOption_.WriteTo(output, _repeated_uninterpretedOption_codec); |
3628 } | 3601 } |
3629 | 3602 |
3630 public int CalculateSize() { | 3603 public int CalculateSize() { |
3631 int size = 0; | 3604 int size = 0; |
3632 if (Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.CType.S
TRING) { | 3605 if (Ctype != 0) { |
3633 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype); | 3606 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Ctype); |
3634 } | 3607 } |
3635 if (Packed != false) { | 3608 if (Packed != false) { |
3636 size += 1 + 1; | 3609 size += 1 + 1; |
3637 } | 3610 } |
3638 if (Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.JSType
.JS_NORMAL) { | 3611 if (Jstype != 0) { |
3639 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype); | 3612 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Jstype); |
3640 } | 3613 } |
3641 if (Lazy != false) { | 3614 if (Lazy != false) { |
3642 size += 1 + 1; | 3615 size += 1 + 1; |
3643 } | 3616 } |
3644 if (Deprecated != false) { | 3617 if (Deprecated != false) { |
3645 size += 1 + 1; | 3618 size += 1 + 1; |
3646 } | 3619 } |
3647 if (Weak != false) { | 3620 if (Weak != false) { |
3648 size += 1 + 1; | 3621 size += 1 + 1; |
3649 } | 3622 } |
3650 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); | 3623 size += uninterpretedOption_.CalculateSize(_repeated_uninterpretedOption_c
odec); |
3651 return size; | 3624 return size; |
3652 } | 3625 } |
3653 | 3626 |
3654 public void MergeFrom(FieldOptions other) { | 3627 public void MergeFrom(FieldOptions other) { |
3655 if (other == null) { | 3628 if (other == null) { |
3656 return; | 3629 return; |
3657 } | 3630 } |
3658 if (other.Ctype != global::Google.Protobuf.Reflection.FieldOptions.Types.C
Type.STRING) { | 3631 if (other.Ctype != 0) { |
3659 Ctype = other.Ctype; | 3632 Ctype = other.Ctype; |
3660 } | 3633 } |
3661 if (other.Packed != false) { | 3634 if (other.Packed != false) { |
3662 Packed = other.Packed; | 3635 Packed = other.Packed; |
3663 } | 3636 } |
3664 if (other.Jstype != global::Google.Protobuf.Reflection.FieldOptions.Types.
JSType.JS_NORMAL) { | 3637 if (other.Jstype != 0) { |
3665 Jstype = other.Jstype; | 3638 Jstype = other.Jstype; |
3666 } | 3639 } |
3667 if (other.Lazy != false) { | 3640 if (other.Lazy != false) { |
3668 Lazy = other.Lazy; | 3641 Lazy = other.Lazy; |
3669 } | 3642 } |
3670 if (other.Deprecated != false) { | 3643 if (other.Deprecated != false) { |
3671 Deprecated = other.Deprecated; | 3644 Deprecated = other.Deprecated; |
3672 } | 3645 } |
3673 if (other.Weak != false) { | 3646 if (other.Weak != false) { |
3674 Weak = other.Weak; | 3647 Weak = other.Weak; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3716 } | 3689 } |
3717 | 3690 |
3718 #region Nested types | 3691 #region Nested types |
3719 /// <summary>Container for nested types declared in the FieldOptions message
type.</summary> | 3692 /// <summary>Container for nested types declared in the FieldOptions message
type.</summary> |
3720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 3693 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
3721 public static partial class Types { | 3694 public static partial class Types { |
3722 internal enum CType { | 3695 internal enum CType { |
3723 /// <summary> | 3696 /// <summary> |
3724 /// Default mode. | 3697 /// Default mode. |
3725 /// </summary> | 3698 /// </summary> |
3726 STRING = 0, | 3699 [pbr::OriginalName("STRING")] String = 0, |
3727 CORD = 1, | 3700 [pbr::OriginalName("CORD")] Cord = 1, |
3728 STRING_PIECE = 2, | 3701 [pbr::OriginalName("STRING_PIECE")] StringPiece = 2, |
3729 } | 3702 } |
3730 | 3703 |
3731 internal enum JSType { | 3704 internal enum JSType { |
3732 /// <summary> | 3705 /// <summary> |
3733 /// Use the default type. | 3706 /// Use the default type. |
3734 /// </summary> | 3707 /// </summary> |
3735 JS_NORMAL = 0, | 3708 [pbr::OriginalName("JS_NORMAL")] JsNormal = 0, |
3736 /// <summary> | 3709 /// <summary> |
3737 /// Use JavaScript strings. | 3710 /// Use JavaScript strings. |
3738 /// </summary> | 3711 /// </summary> |
3739 JS_STRING = 1, | 3712 [pbr::OriginalName("JS_STRING")] JsString = 1, |
3740 /// <summary> | 3713 /// <summary> |
3741 /// Use JavaScript numbers. | 3714 /// Use JavaScript numbers. |
3742 /// </summary> | 3715 /// </summary> |
3743 JS_NUMBER = 2, | 3716 [pbr::OriginalName("JS_NUMBER")] JsNumber = 2, |
3744 } | 3717 } |
3745 | 3718 |
3746 } | 3719 } |
3747 #endregion | 3720 #endregion |
3748 | 3721 |
3749 } | 3722 } |
3750 | 3723 |
3751 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 3724 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
3752 internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> { | 3725 internal sealed partial class EnumOptions : pb::IMessage<EnumOptions> { |
3753 private static readonly pb::MessageParser<EnumOptions> _parser = new pb::Mes
sageParser<EnumOptions>(() => new EnumOptions()); | 3726 private static readonly pb::MessageParser<EnumOptions> _parser = new pb::Mes
sageParser<EnumOptions>(() => new EnumOptions()); |
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4356 /// <summary>Field number for the "identifier_value" field.</summary> | 4329 /// <summary>Field number for the "identifier_value" field.</summary> |
4357 public const int IdentifierValueFieldNumber = 3; | 4330 public const int IdentifierValueFieldNumber = 3; |
4358 private string identifierValue_ = ""; | 4331 private string identifierValue_ = ""; |
4359 /// <summary> | 4332 /// <summary> |
4360 /// The value of the uninterpreted option, in whatever type the tokenizer | 4333 /// The value of the uninterpreted option, in whatever type the tokenizer |
4361 /// identified it as during parsing. Exactly one of these should be set. | 4334 /// identified it as during parsing. Exactly one of these should be set. |
4362 /// </summary> | 4335 /// </summary> |
4363 public string IdentifierValue { | 4336 public string IdentifierValue { |
4364 get { return identifierValue_; } | 4337 get { return identifierValue_; } |
4365 set { | 4338 set { |
4366 identifierValue_ = pb::Preconditions.CheckNotNull(value, "value"); | 4339 identifierValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
4367 } | 4340 } |
4368 } | 4341 } |
4369 | 4342 |
4370 /// <summary>Field number for the "positive_int_value" field.</summary> | 4343 /// <summary>Field number for the "positive_int_value" field.</summary> |
4371 public const int PositiveIntValueFieldNumber = 4; | 4344 public const int PositiveIntValueFieldNumber = 4; |
4372 private ulong positiveIntValue_; | 4345 private ulong positiveIntValue_; |
4373 public ulong PositiveIntValue { | 4346 public ulong PositiveIntValue { |
4374 get { return positiveIntValue_; } | 4347 get { return positiveIntValue_; } |
4375 set { | 4348 set { |
4376 positiveIntValue_ = value; | 4349 positiveIntValue_ = value; |
(...skipping 19 matching lines...) Expand all Loading... |
4396 doubleValue_ = value; | 4369 doubleValue_ = value; |
4397 } | 4370 } |
4398 } | 4371 } |
4399 | 4372 |
4400 /// <summary>Field number for the "string_value" field.</summary> | 4373 /// <summary>Field number for the "string_value" field.</summary> |
4401 public const int StringValueFieldNumber = 7; | 4374 public const int StringValueFieldNumber = 7; |
4402 private pb::ByteString stringValue_ = pb::ByteString.Empty; | 4375 private pb::ByteString stringValue_ = pb::ByteString.Empty; |
4403 public pb::ByteString StringValue { | 4376 public pb::ByteString StringValue { |
4404 get { return stringValue_; } | 4377 get { return stringValue_; } |
4405 set { | 4378 set { |
4406 stringValue_ = pb::Preconditions.CheckNotNull(value, "value"); | 4379 stringValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
4407 } | 4380 } |
4408 } | 4381 } |
4409 | 4382 |
4410 /// <summary>Field number for the "aggregate_value" field.</summary> | 4383 /// <summary>Field number for the "aggregate_value" field.</summary> |
4411 public const int AggregateValueFieldNumber = 8; | 4384 public const int AggregateValueFieldNumber = 8; |
4412 private string aggregateValue_ = ""; | 4385 private string aggregateValue_ = ""; |
4413 public string AggregateValue { | 4386 public string AggregateValue { |
4414 get { return aggregateValue_; } | 4387 get { return aggregateValue_; } |
4415 set { | 4388 set { |
4416 aggregateValue_ = pb::Preconditions.CheckNotNull(value, "value"); | 4389 aggregateValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
4417 } | 4390 } |
4418 } | 4391 } |
4419 | 4392 |
4420 public override bool Equals(object other) { | 4393 public override bool Equals(object other) { |
4421 return Equals(other as UninterpretedOption); | 4394 return Equals(other as UninterpretedOption); |
4422 } | 4395 } |
4423 | 4396 |
4424 public bool Equals(UninterpretedOption other) { | 4397 public bool Equals(UninterpretedOption other) { |
4425 if (ReferenceEquals(other, null)) { | 4398 if (ReferenceEquals(other, null)) { |
4426 return false; | 4399 return false; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4608 public NamePart Clone() { | 4581 public NamePart Clone() { |
4609 return new NamePart(this); | 4582 return new NamePart(this); |
4610 } | 4583 } |
4611 | 4584 |
4612 /// <summary>Field number for the "name_part" field.</summary> | 4585 /// <summary>Field number for the "name_part" field.</summary> |
4613 public const int NamePart_FieldNumber = 1; | 4586 public const int NamePart_FieldNumber = 1; |
4614 private string namePart_ = ""; | 4587 private string namePart_ = ""; |
4615 public string NamePart_ { | 4588 public string NamePart_ { |
4616 get { return namePart_; } | 4589 get { return namePart_; } |
4617 set { | 4590 set { |
4618 namePart_ = pb::Preconditions.CheckNotNull(value, "value"); | 4591 namePart_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
4619 } | 4592 } |
4620 } | 4593 } |
4621 | 4594 |
4622 /// <summary>Field number for the "is_extension" field.</summary> | 4595 /// <summary>Field number for the "is_extension" field.</summary> |
4623 public const int IsExtensionFieldNumber = 2; | 4596 public const int IsExtensionFieldNumber = 2; |
4624 private bool isExtension_; | 4597 private bool isExtension_; |
4625 public bool IsExtension { | 4598 public bool IsExtension { |
4626 get { return isExtension_; } | 4599 get { return isExtension_; } |
4627 set { | 4600 set { |
4628 isExtension_ = value; | 4601 isExtension_ = value; |
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4991 /// * will be removed. */ | 4964 /// * will be removed. */ |
4992 /// /* Block comment attached to | 4965 /// /* Block comment attached to |
4993 /// * grault. */ | 4966 /// * grault. */ |
4994 /// optional int32 grault = 6; | 4967 /// optional int32 grault = 6; |
4995 /// | 4968 /// |
4996 /// // ignored detached comments. | 4969 /// // ignored detached comments. |
4997 /// </summary> | 4970 /// </summary> |
4998 public string LeadingComments { | 4971 public string LeadingComments { |
4999 get { return leadingComments_; } | 4972 get { return leadingComments_; } |
5000 set { | 4973 set { |
5001 leadingComments_ = pb::Preconditions.CheckNotNull(value, "value"); | 4974 leadingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "value
"); |
5002 } | 4975 } |
5003 } | 4976 } |
5004 | 4977 |
5005 /// <summary>Field number for the "trailing_comments" field.</summary> | 4978 /// <summary>Field number for the "trailing_comments" field.</summary> |
5006 public const int TrailingCommentsFieldNumber = 4; | 4979 public const int TrailingCommentsFieldNumber = 4; |
5007 private string trailingComments_ = ""; | 4980 private string trailingComments_ = ""; |
5008 public string TrailingComments { | 4981 public string TrailingComments { |
5009 get { return trailingComments_; } | 4982 get { return trailingComments_; } |
5010 set { | 4983 set { |
5011 trailingComments_ = pb::Preconditions.CheckNotNull(value, "value"); | 4984 trailingComments_ = pb::ProtoPreconditions.CheckNotNull(value, "valu
e"); |
5012 } | 4985 } |
5013 } | 4986 } |
5014 | 4987 |
5015 /// <summary>Field number for the "leading_detached_comments" field.</su
mmary> | 4988 /// <summary>Field number for the "leading_detached_comments" field.</su
mmary> |
5016 public const int LeadingDetachedCommentsFieldNumber = 6; | 4989 public const int LeadingDetachedCommentsFieldNumber = 6; |
5017 private static readonly pb::FieldCodec<string> _repeated_leadingDetached
Comments_codec | 4990 private static readonly pb::FieldCodec<string> _repeated_leadingDetached
Comments_codec |
5018 = pb::FieldCodec.ForString(50); | 4991 = pb::FieldCodec.ForString(50); |
5019 private readonly pbc::RepeatedField<string> leadingDetachedComments_ = n
ew pbc::RepeatedField<string>(); | 4992 private readonly pbc::RepeatedField<string> leadingDetachedComments_ = n
ew pbc::RepeatedField<string>(); |
5020 public pbc::RepeatedField<string> LeadingDetachedComments { | 4993 public pbc::RepeatedField<string> LeadingDetachedComments { |
5021 get { return leadingDetachedComments_; } | 4994 get { return leadingDetachedComments_; } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5130 } | 5103 } |
5131 } | 5104 } |
5132 | 5105 |
5133 } | 5106 } |
5134 | 5107 |
5135 } | 5108 } |
5136 #endregion | 5109 #endregion |
5137 | 5110 |
5138 } | 5111 } |
5139 | 5112 |
| 5113 /// <summary> |
| 5114 /// Describes the relationship between generated code and its original source |
| 5115 /// file. A GeneratedCodeInfo message is associated with only one generated |
| 5116 /// source file, but may contain references to different source .proto files. |
| 5117 /// </summary> |
| 5118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 5119 internal sealed partial class GeneratedCodeInfo : pb::IMessage<GeneratedCodeIn
fo> { |
| 5120 private static readonly pb::MessageParser<GeneratedCodeInfo> _parser = new p
b::MessageParser<GeneratedCodeInfo>(() => new GeneratedCodeInfo()); |
| 5121 public static pb::MessageParser<GeneratedCodeInfo> Parser { get { return _pa
rser; } } |
| 5122 |
| 5123 public static pbr::MessageDescriptor Descriptor { |
| 5124 get { return global::Google.Protobuf.Reflection.DescriptorReflection.Descr
iptor.MessageTypes[18]; } |
| 5125 } |
| 5126 |
| 5127 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 5128 get { return Descriptor; } |
| 5129 } |
| 5130 |
| 5131 public GeneratedCodeInfo() { |
| 5132 OnConstruction(); |
| 5133 } |
| 5134 |
| 5135 partial void OnConstruction(); |
| 5136 |
| 5137 public GeneratedCodeInfo(GeneratedCodeInfo other) : this() { |
| 5138 annotation_ = other.annotation_.Clone(); |
| 5139 } |
| 5140 |
| 5141 public GeneratedCodeInfo Clone() { |
| 5142 return new GeneratedCodeInfo(this); |
| 5143 } |
| 5144 |
| 5145 /// <summary>Field number for the "annotation" field.</summary> |
| 5146 public const int AnnotationFieldNumber = 1; |
| 5147 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); |
| 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>(); |
| 5150 /// <summary> |
| 5151 /// An Annotation connects some span of text in generated code to an elemen
t |
| 5152 /// of its generating .proto file. |
| 5153 /// </summary> |
| 5154 public pbc::RepeatedField<global::Google.Protobuf.Reflection.GeneratedCodeIn
fo.Types.Annotation> Annotation { |
| 5155 get { return annotation_; } |
| 5156 } |
| 5157 |
| 5158 public override bool Equals(object other) { |
| 5159 return Equals(other as GeneratedCodeInfo); |
| 5160 } |
| 5161 |
| 5162 public bool Equals(GeneratedCodeInfo other) { |
| 5163 if (ReferenceEquals(other, null)) { |
| 5164 return false; |
| 5165 } |
| 5166 if (ReferenceEquals(other, this)) { |
| 5167 return true; |
| 5168 } |
| 5169 if(!annotation_.Equals(other.annotation_)) return false; |
| 5170 return true; |
| 5171 } |
| 5172 |
| 5173 public override int GetHashCode() { |
| 5174 int hash = 1; |
| 5175 hash ^= annotation_.GetHashCode(); |
| 5176 return hash; |
| 5177 } |
| 5178 |
| 5179 public override string ToString() { |
| 5180 return pb::JsonFormatter.ToDiagnosticString(this); |
| 5181 } |
| 5182 |
| 5183 public void WriteTo(pb::CodedOutputStream output) { |
| 5184 annotation_.WriteTo(output, _repeated_annotation_codec); |
| 5185 } |
| 5186 |
| 5187 public int CalculateSize() { |
| 5188 int size = 0; |
| 5189 size += annotation_.CalculateSize(_repeated_annotation_codec); |
| 5190 return size; |
| 5191 } |
| 5192 |
| 5193 public void MergeFrom(GeneratedCodeInfo other) { |
| 5194 if (other == null) { |
| 5195 return; |
| 5196 } |
| 5197 annotation_.Add(other.annotation_); |
| 5198 } |
| 5199 |
| 5200 public void MergeFrom(pb::CodedInputStream input) { |
| 5201 uint tag; |
| 5202 while ((tag = input.ReadTag()) != 0) { |
| 5203 switch(tag) { |
| 5204 default: |
| 5205 input.SkipLastField(); |
| 5206 break; |
| 5207 case 10: { |
| 5208 annotation_.AddEntriesFrom(input, _repeated_annotation_codec); |
| 5209 break; |
| 5210 } |
| 5211 } |
| 5212 } |
| 5213 } |
| 5214 |
| 5215 #region Nested types |
| 5216 /// <summary>Container for nested types declared in the GeneratedCodeInfo me
ssage type.</summary> |
| 5217 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 5218 public static partial class Types { |
| 5219 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 5220 internal sealed partial class Annotation : pb::IMessage<Annotation> { |
| 5221 private static readonly pb::MessageParser<Annotation> _parser = new pb::
MessageParser<Annotation>(() => new Annotation()); |
| 5222 public static pb::MessageParser<Annotation> Parser { get { return _parse
r; } } |
| 5223 |
| 5224 public static pbr::MessageDescriptor Descriptor { |
| 5225 get { return global::Google.Protobuf.Reflection.GeneratedCodeInfo.Desc
riptor.NestedTypes[0]; } |
| 5226 } |
| 5227 |
| 5228 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 5229 get { return Descriptor; } |
| 5230 } |
| 5231 |
| 5232 public Annotation() { |
| 5233 OnConstruction(); |
| 5234 } |
| 5235 |
| 5236 partial void OnConstruction(); |
| 5237 |
| 5238 public Annotation(Annotation other) : this() { |
| 5239 path_ = other.path_.Clone(); |
| 5240 sourceFile_ = other.sourceFile_; |
| 5241 begin_ = other.begin_; |
| 5242 end_ = other.end_; |
| 5243 } |
| 5244 |
| 5245 public Annotation Clone() { |
| 5246 return new Annotation(this); |
| 5247 } |
| 5248 |
| 5249 /// <summary>Field number for the "path" field.</summary> |
| 5250 public const int PathFieldNumber = 1; |
| 5251 private static readonly pb::FieldCodec<int> _repeated_path_codec |
| 5252 = pb::FieldCodec.ForInt32(10); |
| 5253 private readonly pbc::RepeatedField<int> path_ = new pbc::RepeatedField<
int>(); |
| 5254 /// <summary> |
| 5255 /// Identifies the element in the original source .proto file. This fie
ld |
| 5256 /// is formatted the same as SourceCodeInfo.Location.path. |
| 5257 /// </summary> |
| 5258 public pbc::RepeatedField<int> Path { |
| 5259 get { return path_; } |
| 5260 } |
| 5261 |
| 5262 /// <summary>Field number for the "source_file" field.</summary> |
| 5263 public const int SourceFileFieldNumber = 2; |
| 5264 private string sourceFile_ = ""; |
| 5265 /// <summary> |
| 5266 /// Identifies the filesystem path to the original source .proto. |
| 5267 /// </summary> |
| 5268 public string SourceFile { |
| 5269 get { return sourceFile_; } |
| 5270 set { |
| 5271 sourceFile_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 5272 } |
| 5273 } |
| 5274 |
| 5275 /// <summary>Field number for the "begin" field.</summary> |
| 5276 public const int BeginFieldNumber = 3; |
| 5277 private int begin_; |
| 5278 /// <summary> |
| 5279 /// Identifies the starting offset in bytes in the generated code |
| 5280 /// that relates to the identified object. |
| 5281 /// </summary> |
| 5282 public int Begin { |
| 5283 get { return begin_; } |
| 5284 set { |
| 5285 begin_ = value; |
| 5286 } |
| 5287 } |
| 5288 |
| 5289 /// <summary>Field number for the "end" field.</summary> |
| 5290 public const int EndFieldNumber = 4; |
| 5291 private int end_; |
| 5292 /// <summary> |
| 5293 /// Identifies the ending offset in bytes in the generated code that |
| 5294 /// 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). |
| 5296 /// </summary> |
| 5297 public int End { |
| 5298 get { return end_; } |
| 5299 set { |
| 5300 end_ = value; |
| 5301 } |
| 5302 } |
| 5303 |
| 5304 public override bool Equals(object other) { |
| 5305 return Equals(other as Annotation); |
| 5306 } |
| 5307 |
| 5308 public bool Equals(Annotation other) { |
| 5309 if (ReferenceEquals(other, null)) { |
| 5310 return false; |
| 5311 } |
| 5312 if (ReferenceEquals(other, this)) { |
| 5313 return true; |
| 5314 } |
| 5315 if(!path_.Equals(other.path_)) return false; |
| 5316 if (SourceFile != other.SourceFile) return false; |
| 5317 if (Begin != other.Begin) return false; |
| 5318 if (End != other.End) return false; |
| 5319 return true; |
| 5320 } |
| 5321 |
| 5322 public override int GetHashCode() { |
| 5323 int hash = 1; |
| 5324 hash ^= path_.GetHashCode(); |
| 5325 if (SourceFile.Length != 0) hash ^= SourceFile.GetHashCode(); |
| 5326 if (Begin != 0) hash ^= Begin.GetHashCode(); |
| 5327 if (End != 0) hash ^= End.GetHashCode(); |
| 5328 return hash; |
| 5329 } |
| 5330 |
| 5331 public override string ToString() { |
| 5332 return pb::JsonFormatter.ToDiagnosticString(this); |
| 5333 } |
| 5334 |
| 5335 public void WriteTo(pb::CodedOutputStream output) { |
| 5336 path_.WriteTo(output, _repeated_path_codec); |
| 5337 if (SourceFile.Length != 0) { |
| 5338 output.WriteRawTag(18); |
| 5339 output.WriteString(SourceFile); |
| 5340 } |
| 5341 if (Begin != 0) { |
| 5342 output.WriteRawTag(24); |
| 5343 output.WriteInt32(Begin); |
| 5344 } |
| 5345 if (End != 0) { |
| 5346 output.WriteRawTag(32); |
| 5347 output.WriteInt32(End); |
| 5348 } |
| 5349 } |
| 5350 |
| 5351 public int CalculateSize() { |
| 5352 int size = 0; |
| 5353 size += path_.CalculateSize(_repeated_path_codec); |
| 5354 if (SourceFile.Length != 0) { |
| 5355 size += 1 + pb::CodedOutputStream.ComputeStringSize(SourceFile); |
| 5356 } |
| 5357 if (Begin != 0) { |
| 5358 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Begin); |
| 5359 } |
| 5360 if (End != 0) { |
| 5361 size += 1 + pb::CodedOutputStream.ComputeInt32Size(End); |
| 5362 } |
| 5363 return size; |
| 5364 } |
| 5365 |
| 5366 public void MergeFrom(Annotation other) { |
| 5367 if (other == null) { |
| 5368 return; |
| 5369 } |
| 5370 path_.Add(other.path_); |
| 5371 if (other.SourceFile.Length != 0) { |
| 5372 SourceFile = other.SourceFile; |
| 5373 } |
| 5374 if (other.Begin != 0) { |
| 5375 Begin = other.Begin; |
| 5376 } |
| 5377 if (other.End != 0) { |
| 5378 End = other.End; |
| 5379 } |
| 5380 } |
| 5381 |
| 5382 public void MergeFrom(pb::CodedInputStream input) { |
| 5383 uint tag; |
| 5384 while ((tag = input.ReadTag()) != 0) { |
| 5385 switch(tag) { |
| 5386 default: |
| 5387 input.SkipLastField(); |
| 5388 break; |
| 5389 case 10: |
| 5390 case 8: { |
| 5391 path_.AddEntriesFrom(input, _repeated_path_codec); |
| 5392 break; |
| 5393 } |
| 5394 case 18: { |
| 5395 SourceFile = input.ReadString(); |
| 5396 break; |
| 5397 } |
| 5398 case 24: { |
| 5399 Begin = input.ReadInt32(); |
| 5400 break; |
| 5401 } |
| 5402 case 32: { |
| 5403 End = input.ReadInt32(); |
| 5404 break; |
| 5405 } |
| 5406 } |
| 5407 } |
| 5408 } |
| 5409 |
| 5410 } |
| 5411 |
| 5412 } |
| 5413 #endregion |
| 5414 |
| 5415 } |
| 5416 |
5140 #endregion | 5417 #endregion |
5141 | 5418 |
5142 } | 5419 } |
5143 | 5420 |
5144 #endregion Designer generated code | 5421 #endregion Designer generated code |
OLD | NEW |