| OLD | NEW |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: unittest_issues.proto | 2 // source: unittest_issues.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 UnitTest.Issues.TestProtos { | 10 namespace UnitTest.Issues.TestProtos { |
| 11 | 11 |
| 12 /// <summary>Holder for reflection information generated from unittest_issues.
proto</summary> | 12 /// <summary>Holder for reflection information generated from unittest_issues.
proto</summary> |
| 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 14 public static partial class UnittestIssuesReflection { | 13 public static partial class UnittestIssuesReflection { |
| 15 | 14 |
| 16 #region Descriptor | 15 #region Descriptor |
| 17 /// <summary>File descriptor for unittest_issues.proto</summary> | 16 /// <summary>File descriptor for unittest_issues.proto</summary> |
| 18 public static pbr::FileDescriptor Descriptor { | 17 public static pbr::FileDescriptor Descriptor { |
| 19 get { return descriptor; } | 18 get { return descriptor; } |
| 20 } | 19 } |
| 21 private static pbr::FileDescriptor descriptor; | 20 private static pbr::FileDescriptor descriptor; |
| 22 | 21 |
| 23 static UnittestIssuesReflection() { | 22 static UnittestIssuesReflection() { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 72 |
| 74 public enum DeprecatedEnum { | 73 public enum DeprecatedEnum { |
| 75 [pbr::OriginalName("DEPRECATED_ZERO")] DeprecatedZero = 0, | 74 [pbr::OriginalName("DEPRECATED_ZERO")] DeprecatedZero = 0, |
| 76 [pbr::OriginalName("one")] One = 1, | 75 [pbr::OriginalName("one")] One = 1, |
| 77 } | 76 } |
| 78 | 77 |
| 79 #endregion | 78 #endregion |
| 80 | 79 |
| 81 #region Messages | 80 #region Messages |
| 82 /// <summary> | 81 /// <summary> |
| 83 /// Issue 307: when generating doubly-nested types, any references | 82 /// Issue 307: when generating doubly-nested types, any references |
| 84 /// should be of the form A.Types.B.Types.C. | 83 /// should be of the form A.Types.B.Types.C. |
| 85 /// </summary> | 84 /// </summary> |
| 86 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 87 public sealed partial class Issue307 : pb::IMessage<Issue307> { | 85 public sealed partial class Issue307 : pb::IMessage<Issue307> { |
| 88 private static readonly pb::MessageParser<Issue307> _parser = new pb::Messag
eParser<Issue307>(() => new Issue307()); | 86 private static readonly pb::MessageParser<Issue307> _parser = new pb::Messag
eParser<Issue307>(() => new Issue307()); |
| 87 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 89 public static pb::MessageParser<Issue307> Parser { get { return _parser; } } | 88 public static pb::MessageParser<Issue307> Parser { get { return _parser; } } |
| 90 | 89 |
| 90 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 91 public static pbr::MessageDescriptor Descriptor { | 91 public static pbr::MessageDescriptor Descriptor { |
| 92 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[0]; } | 92 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[0]; } |
| 93 } | 93 } |
| 94 | 94 |
| 95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 95 pbr::MessageDescriptor pb::IMessage.Descriptor { | 96 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 96 get { return Descriptor; } | 97 get { return Descriptor; } |
| 97 } | 98 } |
| 98 | 99 |
| 100 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 99 public Issue307() { | 101 public Issue307() { |
| 100 OnConstruction(); | 102 OnConstruction(); |
| 101 } | 103 } |
| 102 | 104 |
| 103 partial void OnConstruction(); | 105 partial void OnConstruction(); |
| 104 | 106 |
| 107 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 105 public Issue307(Issue307 other) : this() { | 108 public Issue307(Issue307 other) : this() { |
| 106 } | 109 } |
| 107 | 110 |
| 111 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 108 public Issue307 Clone() { | 112 public Issue307 Clone() { |
| 109 return new Issue307(this); | 113 return new Issue307(this); |
| 110 } | 114 } |
| 111 | 115 |
| 116 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 112 public override bool Equals(object other) { | 117 public override bool Equals(object other) { |
| 113 return Equals(other as Issue307); | 118 return Equals(other as Issue307); |
| 114 } | 119 } |
| 115 | 120 |
| 121 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 116 public bool Equals(Issue307 other) { | 122 public bool Equals(Issue307 other) { |
| 117 if (ReferenceEquals(other, null)) { | 123 if (ReferenceEquals(other, null)) { |
| 118 return false; | 124 return false; |
| 119 } | 125 } |
| 120 if (ReferenceEquals(other, this)) { | 126 if (ReferenceEquals(other, this)) { |
| 121 return true; | 127 return true; |
| 122 } | 128 } |
| 123 return true; | 129 return true; |
| 124 } | 130 } |
| 125 | 131 |
| 132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 126 public override int GetHashCode() { | 133 public override int GetHashCode() { |
| 127 int hash = 1; | 134 int hash = 1; |
| 128 return hash; | 135 return hash; |
| 129 } | 136 } |
| 130 | 137 |
| 138 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 131 public override string ToString() { | 139 public override string ToString() { |
| 132 return pb::JsonFormatter.ToDiagnosticString(this); | 140 return pb::JsonFormatter.ToDiagnosticString(this); |
| 133 } | 141 } |
| 134 | 142 |
| 143 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 135 public void WriteTo(pb::CodedOutputStream output) { | 144 public void WriteTo(pb::CodedOutputStream output) { |
| 136 } | 145 } |
| 137 | 146 |
| 147 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 138 public int CalculateSize() { | 148 public int CalculateSize() { |
| 139 int size = 0; | 149 int size = 0; |
| 140 return size; | 150 return size; |
| 141 } | 151 } |
| 142 | 152 |
| 153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 143 public void MergeFrom(Issue307 other) { | 154 public void MergeFrom(Issue307 other) { |
| 144 if (other == null) { | 155 if (other == null) { |
| 145 return; | 156 return; |
| 146 } | 157 } |
| 147 } | 158 } |
| 148 | 159 |
| 160 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 149 public void MergeFrom(pb::CodedInputStream input) { | 161 public void MergeFrom(pb::CodedInputStream input) { |
| 150 uint tag; | 162 uint tag; |
| 151 while ((tag = input.ReadTag()) != 0) { | 163 while ((tag = input.ReadTag()) != 0) { |
| 152 switch(tag) { | 164 switch(tag) { |
| 153 default: | 165 default: |
| 154 input.SkipLastField(); | 166 input.SkipLastField(); |
| 155 break; | 167 break; |
| 156 } | 168 } |
| 157 } | 169 } |
| 158 } | 170 } |
| 159 | 171 |
| 160 #region Nested types | 172 #region Nested types |
| 161 /// <summary>Container for nested types declared in the Issue307 message typ
e.</summary> | 173 /// <summary>Container for nested types declared in the Issue307 message typ
e.</summary> |
| 162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 163 public static partial class Types { | 175 public static partial class Types { |
| 164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 165 public sealed partial class NestedOnce : pb::IMessage<NestedOnce> { | 176 public sealed partial class NestedOnce : pb::IMessage<NestedOnce> { |
| 166 private static readonly pb::MessageParser<NestedOnce> _parser = new pb::
MessageParser<NestedOnce>(() => new NestedOnce()); | 177 private static readonly pb::MessageParser<NestedOnce> _parser = new pb::
MessageParser<NestedOnce>(() => new NestedOnce()); |
| 178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 167 public static pb::MessageParser<NestedOnce> Parser { get { return _parse
r; } } | 179 public static pb::MessageParser<NestedOnce> Parser { get { return _parse
r; } } |
| 168 | 180 |
| 181 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 169 public static pbr::MessageDescriptor Descriptor { | 182 public static pbr::MessageDescriptor Descriptor { |
| 170 get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.Ne
stedTypes[0]; } | 183 get { return global::UnitTest.Issues.TestProtos.Issue307.Descriptor.Ne
stedTypes[0]; } |
| 171 } | 184 } |
| 172 | 185 |
| 186 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 173 pbr::MessageDescriptor pb::IMessage.Descriptor { | 187 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 174 get { return Descriptor; } | 188 get { return Descriptor; } |
| 175 } | 189 } |
| 176 | 190 |
| 191 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 177 public NestedOnce() { | 192 public NestedOnce() { |
| 178 OnConstruction(); | 193 OnConstruction(); |
| 179 } | 194 } |
| 180 | 195 |
| 181 partial void OnConstruction(); | 196 partial void OnConstruction(); |
| 182 | 197 |
| 198 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 183 public NestedOnce(NestedOnce other) : this() { | 199 public NestedOnce(NestedOnce other) : this() { |
| 184 } | 200 } |
| 185 | 201 |
| 202 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 186 public NestedOnce Clone() { | 203 public NestedOnce Clone() { |
| 187 return new NestedOnce(this); | 204 return new NestedOnce(this); |
| 188 } | 205 } |
| 189 | 206 |
| 207 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 190 public override bool Equals(object other) { | 208 public override bool Equals(object other) { |
| 191 return Equals(other as NestedOnce); | 209 return Equals(other as NestedOnce); |
| 192 } | 210 } |
| 193 | 211 |
| 212 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 194 public bool Equals(NestedOnce other) { | 213 public bool Equals(NestedOnce other) { |
| 195 if (ReferenceEquals(other, null)) { | 214 if (ReferenceEquals(other, null)) { |
| 196 return false; | 215 return false; |
| 197 } | 216 } |
| 198 if (ReferenceEquals(other, this)) { | 217 if (ReferenceEquals(other, this)) { |
| 199 return true; | 218 return true; |
| 200 } | 219 } |
| 201 return true; | 220 return true; |
| 202 } | 221 } |
| 203 | 222 |
| 223 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 204 public override int GetHashCode() { | 224 public override int GetHashCode() { |
| 205 int hash = 1; | 225 int hash = 1; |
| 206 return hash; | 226 return hash; |
| 207 } | 227 } |
| 208 | 228 |
| 229 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 209 public override string ToString() { | 230 public override string ToString() { |
| 210 return pb::JsonFormatter.ToDiagnosticString(this); | 231 return pb::JsonFormatter.ToDiagnosticString(this); |
| 211 } | 232 } |
| 212 | 233 |
| 234 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 213 public void WriteTo(pb::CodedOutputStream output) { | 235 public void WriteTo(pb::CodedOutputStream output) { |
| 214 } | 236 } |
| 215 | 237 |
| 238 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 216 public int CalculateSize() { | 239 public int CalculateSize() { |
| 217 int size = 0; | 240 int size = 0; |
| 218 return size; | 241 return size; |
| 219 } | 242 } |
| 220 | 243 |
| 244 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 221 public void MergeFrom(NestedOnce other) { | 245 public void MergeFrom(NestedOnce other) { |
| 222 if (other == null) { | 246 if (other == null) { |
| 223 return; | 247 return; |
| 224 } | 248 } |
| 225 } | 249 } |
| 226 | 250 |
| 251 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 227 public void MergeFrom(pb::CodedInputStream input) { | 252 public void MergeFrom(pb::CodedInputStream input) { |
| 228 uint tag; | 253 uint tag; |
| 229 while ((tag = input.ReadTag()) != 0) { | 254 while ((tag = input.ReadTag()) != 0) { |
| 230 switch(tag) { | 255 switch(tag) { |
| 231 default: | 256 default: |
| 232 input.SkipLastField(); | 257 input.SkipLastField(); |
| 233 break; | 258 break; |
| 234 } | 259 } |
| 235 } | 260 } |
| 236 } | 261 } |
| 237 | 262 |
| 238 #region Nested types | 263 #region Nested types |
| 239 /// <summary>Container for nested types declared in the NestedOnce messa
ge type.</summary> | 264 /// <summary>Container for nested types declared in the NestedOnce messa
ge type.</summary> |
| 240 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 265 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 241 public static partial class Types { | 266 public static partial class Types { |
| 242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 243 public sealed partial class NestedTwice : pb::IMessage<NestedTwice> { | 267 public sealed partial class NestedTwice : pb::IMessage<NestedTwice> { |
| 244 private static readonly pb::MessageParser<NestedTwice> _parser = new
pb::MessageParser<NestedTwice>(() => new NestedTwice()); | 268 private static readonly pb::MessageParser<NestedTwice> _parser = new
pb::MessageParser<NestedTwice>(() => new NestedTwice()); |
| 269 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 245 public static pb::MessageParser<NestedTwice> Parser { get { return _
parser; } } | 270 public static pb::MessageParser<NestedTwice> Parser { get { return _
parser; } } |
| 246 | 271 |
| 272 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 247 public static pbr::MessageDescriptor Descriptor { | 273 public static pbr::MessageDescriptor Descriptor { |
| 248 get { return global::UnitTest.Issues.TestProtos.Issue307.Types.Nes
tedOnce.Descriptor.NestedTypes[0]; } | 274 get { return global::UnitTest.Issues.TestProtos.Issue307.Types.Nes
tedOnce.Descriptor.NestedTypes[0]; } |
| 249 } | 275 } |
| 250 | 276 |
| 277 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 251 pbr::MessageDescriptor pb::IMessage.Descriptor { | 278 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 252 get { return Descriptor; } | 279 get { return Descriptor; } |
| 253 } | 280 } |
| 254 | 281 |
| 282 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 255 public NestedTwice() { | 283 public NestedTwice() { |
| 256 OnConstruction(); | 284 OnConstruction(); |
| 257 } | 285 } |
| 258 | 286 |
| 259 partial void OnConstruction(); | 287 partial void OnConstruction(); |
| 260 | 288 |
| 289 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 261 public NestedTwice(NestedTwice other) : this() { | 290 public NestedTwice(NestedTwice other) : this() { |
| 262 } | 291 } |
| 263 | 292 |
| 293 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 264 public NestedTwice Clone() { | 294 public NestedTwice Clone() { |
| 265 return new NestedTwice(this); | 295 return new NestedTwice(this); |
| 266 } | 296 } |
| 267 | 297 |
| 298 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 268 public override bool Equals(object other) { | 299 public override bool Equals(object other) { |
| 269 return Equals(other as NestedTwice); | 300 return Equals(other as NestedTwice); |
| 270 } | 301 } |
| 271 | 302 |
| 303 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 272 public bool Equals(NestedTwice other) { | 304 public bool Equals(NestedTwice other) { |
| 273 if (ReferenceEquals(other, null)) { | 305 if (ReferenceEquals(other, null)) { |
| 274 return false; | 306 return false; |
| 275 } | 307 } |
| 276 if (ReferenceEquals(other, this)) { | 308 if (ReferenceEquals(other, this)) { |
| 277 return true; | 309 return true; |
| 278 } | 310 } |
| 279 return true; | 311 return true; |
| 280 } | 312 } |
| 281 | 313 |
| 314 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 282 public override int GetHashCode() { | 315 public override int GetHashCode() { |
| 283 int hash = 1; | 316 int hash = 1; |
| 284 return hash; | 317 return hash; |
| 285 } | 318 } |
| 286 | 319 |
| 320 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 287 public override string ToString() { | 321 public override string ToString() { |
| 288 return pb::JsonFormatter.ToDiagnosticString(this); | 322 return pb::JsonFormatter.ToDiagnosticString(this); |
| 289 } | 323 } |
| 290 | 324 |
| 325 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 291 public void WriteTo(pb::CodedOutputStream output) { | 326 public void WriteTo(pb::CodedOutputStream output) { |
| 292 } | 327 } |
| 293 | 328 |
| 329 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 294 public int CalculateSize() { | 330 public int CalculateSize() { |
| 295 int size = 0; | 331 int size = 0; |
| 296 return size; | 332 return size; |
| 297 } | 333 } |
| 298 | 334 |
| 335 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 299 public void MergeFrom(NestedTwice other) { | 336 public void MergeFrom(NestedTwice other) { |
| 300 if (other == null) { | 337 if (other == null) { |
| 301 return; | 338 return; |
| 302 } | 339 } |
| 303 } | 340 } |
| 304 | 341 |
| 342 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 305 public void MergeFrom(pb::CodedInputStream input) { | 343 public void MergeFrom(pb::CodedInputStream input) { |
| 306 uint tag; | 344 uint tag; |
| 307 while ((tag = input.ReadTag()) != 0) { | 345 while ((tag = input.ReadTag()) != 0) { |
| 308 switch(tag) { | 346 switch(tag) { |
| 309 default: | 347 default: |
| 310 input.SkipLastField(); | 348 input.SkipLastField(); |
| 311 break; | 349 break; |
| 312 } | 350 } |
| 313 } | 351 } |
| 314 } | 352 } |
| 315 | 353 |
| 316 } | 354 } |
| 317 | 355 |
| 318 } | 356 } |
| 319 #endregion | 357 #endregion |
| 320 | 358 |
| 321 } | 359 } |
| 322 | 360 |
| 323 } | 361 } |
| 324 #endregion | 362 #endregion |
| 325 | 363 |
| 326 } | 364 } |
| 327 | 365 |
| 328 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 329 public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMes
sage> { | 366 public sealed partial class NegativeEnumMessage : pb::IMessage<NegativeEnumMes
sage> { |
| 330 private static readonly pb::MessageParser<NegativeEnumMessage> _parser = new
pb::MessageParser<NegativeEnumMessage>(() => new NegativeEnumMessage()); | 367 private static readonly pb::MessageParser<NegativeEnumMessage> _parser = new
pb::MessageParser<NegativeEnumMessage>(() => new NegativeEnumMessage()); |
| 368 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 331 public static pb::MessageParser<NegativeEnumMessage> Parser { get { return _
parser; } } | 369 public static pb::MessageParser<NegativeEnumMessage> Parser { get { return _
parser; } } |
| 332 | 370 |
| 371 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 333 public static pbr::MessageDescriptor Descriptor { | 372 public static pbr::MessageDescriptor Descriptor { |
| 334 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[1]; } | 373 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[1]; } |
| 335 } | 374 } |
| 336 | 375 |
| 376 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 337 pbr::MessageDescriptor pb::IMessage.Descriptor { | 377 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 338 get { return Descriptor; } | 378 get { return Descriptor; } |
| 339 } | 379 } |
| 340 | 380 |
| 381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 341 public NegativeEnumMessage() { | 382 public NegativeEnumMessage() { |
| 342 OnConstruction(); | 383 OnConstruction(); |
| 343 } | 384 } |
| 344 | 385 |
| 345 partial void OnConstruction(); | 386 partial void OnConstruction(); |
| 346 | 387 |
| 388 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 347 public NegativeEnumMessage(NegativeEnumMessage other) : this() { | 389 public NegativeEnumMessage(NegativeEnumMessage other) : this() { |
| 348 value_ = other.value_; | 390 value_ = other.value_; |
| 349 values_ = other.values_.Clone(); | 391 values_ = other.values_.Clone(); |
| 350 packedValues_ = other.packedValues_.Clone(); | 392 packedValues_ = other.packedValues_.Clone(); |
| 351 } | 393 } |
| 352 | 394 |
| 395 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 353 public NegativeEnumMessage Clone() { | 396 public NegativeEnumMessage Clone() { |
| 354 return new NegativeEnumMessage(this); | 397 return new NegativeEnumMessage(this); |
| 355 } | 398 } |
| 356 | 399 |
| 357 /// <summary>Field number for the "value" field.</summary> | 400 /// <summary>Field number for the "value" field.</summary> |
| 358 public const int ValueFieldNumber = 1; | 401 public const int ValueFieldNumber = 1; |
| 359 private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = 0; | 402 private global::UnitTest.Issues.TestProtos.NegativeEnum value_ = 0; |
| 403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 360 public global::UnitTest.Issues.TestProtos.NegativeEnum Value { | 404 public global::UnitTest.Issues.TestProtos.NegativeEnum Value { |
| 361 get { return value_; } | 405 get { return value_; } |
| 362 set { | 406 set { |
| 363 value_ = value; | 407 value_ = value; |
| 364 } | 408 } |
| 365 } | 409 } |
| 366 | 410 |
| 367 /// <summary>Field number for the "values" field.</summary> | 411 /// <summary>Field number for the "values" field.</summary> |
| 368 public const int ValuesFieldNumber = 2; | 412 public const int ValuesFieldNumber = 2; |
| 369 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.Ne
gativeEnum> _repeated_values_codec | 413 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.Ne
gativeEnum> _repeated_values_codec |
| 370 = pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues
.TestProtos.NegativeEnum) x); | 414 = pb::FieldCodec.ForEnum(16, x => (int) x, x => (global::UnitTest.Issues
.TestProtos.NegativeEnum) x); |
| 371 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Negat
iveEnum> values_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Neg
ativeEnum>(); | 415 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Negat
iveEnum> values_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Neg
ativeEnum>(); |
| 416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 372 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> V
alues { | 417 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> V
alues { |
| 373 get { return values_; } | 418 get { return values_; } |
| 374 } | 419 } |
| 375 | 420 |
| 376 /// <summary>Field number for the "packed_values" field.</summary> | 421 /// <summary>Field number for the "packed_values" field.</summary> |
| 377 public const int PackedValuesFieldNumber = 3; | 422 public const int PackedValuesFieldNumber = 3; |
| 378 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.Ne
gativeEnum> _repeated_packedValues_codec | 423 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.Ne
gativeEnum> _repeated_packedValues_codec |
| 379 = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues
.TestProtos.NegativeEnum) x); | 424 = pb::FieldCodec.ForEnum(26, x => (int) x, x => (global::UnitTest.Issues
.TestProtos.NegativeEnum) x); |
| 380 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Negat
iveEnum> packedValues_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProt
os.NegativeEnum>(); | 425 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Negat
iveEnum> packedValues_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProt
os.NegativeEnum>(); |
| 426 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 381 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> P
ackedValues { | 427 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.NegativeEnum> P
ackedValues { |
| 382 get { return packedValues_; } | 428 get { return packedValues_; } |
| 383 } | 429 } |
| 384 | 430 |
| 431 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 385 public override bool Equals(object other) { | 432 public override bool Equals(object other) { |
| 386 return Equals(other as NegativeEnumMessage); | 433 return Equals(other as NegativeEnumMessage); |
| 387 } | 434 } |
| 388 | 435 |
| 436 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 389 public bool Equals(NegativeEnumMessage other) { | 437 public bool Equals(NegativeEnumMessage other) { |
| 390 if (ReferenceEquals(other, null)) { | 438 if (ReferenceEquals(other, null)) { |
| 391 return false; | 439 return false; |
| 392 } | 440 } |
| 393 if (ReferenceEquals(other, this)) { | 441 if (ReferenceEquals(other, this)) { |
| 394 return true; | 442 return true; |
| 395 } | 443 } |
| 396 if (Value != other.Value) return false; | 444 if (Value != other.Value) return false; |
| 397 if(!values_.Equals(other.values_)) return false; | 445 if(!values_.Equals(other.values_)) return false; |
| 398 if(!packedValues_.Equals(other.packedValues_)) return false; | 446 if(!packedValues_.Equals(other.packedValues_)) return false; |
| 399 return true; | 447 return true; |
| 400 } | 448 } |
| 401 | 449 |
| 450 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 402 public override int GetHashCode() { | 451 public override int GetHashCode() { |
| 403 int hash = 1; | 452 int hash = 1; |
| 404 if (Value != 0) hash ^= Value.GetHashCode(); | 453 if (Value != 0) hash ^= Value.GetHashCode(); |
| 405 hash ^= values_.GetHashCode(); | 454 hash ^= values_.GetHashCode(); |
| 406 hash ^= packedValues_.GetHashCode(); | 455 hash ^= packedValues_.GetHashCode(); |
| 407 return hash; | 456 return hash; |
| 408 } | 457 } |
| 409 | 458 |
| 459 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 410 public override string ToString() { | 460 public override string ToString() { |
| 411 return pb::JsonFormatter.ToDiagnosticString(this); | 461 return pb::JsonFormatter.ToDiagnosticString(this); |
| 412 } | 462 } |
| 413 | 463 |
| 464 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 414 public void WriteTo(pb::CodedOutputStream output) { | 465 public void WriteTo(pb::CodedOutputStream output) { |
| 415 if (Value != 0) { | 466 if (Value != 0) { |
| 416 output.WriteRawTag(8); | 467 output.WriteRawTag(8); |
| 417 output.WriteEnum((int) Value); | 468 output.WriteEnum((int) Value); |
| 418 } | 469 } |
| 419 values_.WriteTo(output, _repeated_values_codec); | 470 values_.WriteTo(output, _repeated_values_codec); |
| 420 packedValues_.WriteTo(output, _repeated_packedValues_codec); | 471 packedValues_.WriteTo(output, _repeated_packedValues_codec); |
| 421 } | 472 } |
| 422 | 473 |
| 474 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 423 public int CalculateSize() { | 475 public int CalculateSize() { |
| 424 int size = 0; | 476 int size = 0; |
| 425 if (Value != 0) { | 477 if (Value != 0) { |
| 426 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value); | 478 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Value); |
| 427 } | 479 } |
| 428 size += values_.CalculateSize(_repeated_values_codec); | 480 size += values_.CalculateSize(_repeated_values_codec); |
| 429 size += packedValues_.CalculateSize(_repeated_packedValues_codec); | 481 size += packedValues_.CalculateSize(_repeated_packedValues_codec); |
| 430 return size; | 482 return size; |
| 431 } | 483 } |
| 432 | 484 |
| 485 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 433 public void MergeFrom(NegativeEnumMessage other) { | 486 public void MergeFrom(NegativeEnumMessage other) { |
| 434 if (other == null) { | 487 if (other == null) { |
| 435 return; | 488 return; |
| 436 } | 489 } |
| 437 if (other.Value != 0) { | 490 if (other.Value != 0) { |
| 438 Value = other.Value; | 491 Value = other.Value; |
| 439 } | 492 } |
| 440 values_.Add(other.values_); | 493 values_.Add(other.values_); |
| 441 packedValues_.Add(other.packedValues_); | 494 packedValues_.Add(other.packedValues_); |
| 442 } | 495 } |
| 443 | 496 |
| 497 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 444 public void MergeFrom(pb::CodedInputStream input) { | 498 public void MergeFrom(pb::CodedInputStream input) { |
| 445 uint tag; | 499 uint tag; |
| 446 while ((tag = input.ReadTag()) != 0) { | 500 while ((tag = input.ReadTag()) != 0) { |
| 447 switch(tag) { | 501 switch(tag) { |
| 448 default: | 502 default: |
| 449 input.SkipLastField(); | 503 input.SkipLastField(); |
| 450 break; | 504 break; |
| 451 case 8: { | 505 case 8: { |
| 452 value_ = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.Rea
dEnum(); | 506 value_ = (global::UnitTest.Issues.TestProtos.NegativeEnum) input.Rea
dEnum(); |
| 453 break; | 507 break; |
| 454 } | 508 } |
| 455 case 18: | 509 case 18: |
| 456 case 16: { | 510 case 16: { |
| 457 values_.AddEntriesFrom(input, _repeated_values_codec); | 511 values_.AddEntriesFrom(input, _repeated_values_codec); |
| 458 break; | 512 break; |
| 459 } | 513 } |
| 460 case 26: | 514 case 26: |
| 461 case 24: { | 515 case 24: { |
| 462 packedValues_.AddEntriesFrom(input, _repeated_packedValues_codec); | 516 packedValues_.AddEntriesFrom(input, _repeated_packedValues_codec); |
| 463 break; | 517 break; |
| 464 } | 518 } |
| 465 } | 519 } |
| 466 } | 520 } |
| 467 } | 521 } |
| 468 | 522 |
| 469 } | 523 } |
| 470 | 524 |
| 471 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 472 public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> { | 525 public sealed partial class DeprecatedChild : pb::IMessage<DeprecatedChild> { |
| 473 private static readonly pb::MessageParser<DeprecatedChild> _parser = new pb:
:MessageParser<DeprecatedChild>(() => new DeprecatedChild()); | 526 private static readonly pb::MessageParser<DeprecatedChild> _parser = new pb:
:MessageParser<DeprecatedChild>(() => new DeprecatedChild()); |
| 527 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 474 public static pb::MessageParser<DeprecatedChild> Parser { get { return _pars
er; } } | 528 public static pb::MessageParser<DeprecatedChild> Parser { get { return _pars
er; } } |
| 475 | 529 |
| 530 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 476 public static pbr::MessageDescriptor Descriptor { | 531 public static pbr::MessageDescriptor Descriptor { |
| 477 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[2]; } | 532 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[2]; } |
| 478 } | 533 } |
| 479 | 534 |
| 535 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 480 pbr::MessageDescriptor pb::IMessage.Descriptor { | 536 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 481 get { return Descriptor; } | 537 get { return Descriptor; } |
| 482 } | 538 } |
| 483 | 539 |
| 540 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 484 public DeprecatedChild() { | 541 public DeprecatedChild() { |
| 485 OnConstruction(); | 542 OnConstruction(); |
| 486 } | 543 } |
| 487 | 544 |
| 488 partial void OnConstruction(); | 545 partial void OnConstruction(); |
| 489 | 546 |
| 547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 490 public DeprecatedChild(DeprecatedChild other) : this() { | 548 public DeprecatedChild(DeprecatedChild other) : this() { |
| 491 } | 549 } |
| 492 | 550 |
| 551 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 493 public DeprecatedChild Clone() { | 552 public DeprecatedChild Clone() { |
| 494 return new DeprecatedChild(this); | 553 return new DeprecatedChild(this); |
| 495 } | 554 } |
| 496 | 555 |
| 556 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 497 public override bool Equals(object other) { | 557 public override bool Equals(object other) { |
| 498 return Equals(other as DeprecatedChild); | 558 return Equals(other as DeprecatedChild); |
| 499 } | 559 } |
| 500 | 560 |
| 561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 501 public bool Equals(DeprecatedChild other) { | 562 public bool Equals(DeprecatedChild other) { |
| 502 if (ReferenceEquals(other, null)) { | 563 if (ReferenceEquals(other, null)) { |
| 503 return false; | 564 return false; |
| 504 } | 565 } |
| 505 if (ReferenceEquals(other, this)) { | 566 if (ReferenceEquals(other, this)) { |
| 506 return true; | 567 return true; |
| 507 } | 568 } |
| 508 return true; | 569 return true; |
| 509 } | 570 } |
| 510 | 571 |
| 572 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 511 public override int GetHashCode() { | 573 public override int GetHashCode() { |
| 512 int hash = 1; | 574 int hash = 1; |
| 513 return hash; | 575 return hash; |
| 514 } | 576 } |
| 515 | 577 |
| 578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 516 public override string ToString() { | 579 public override string ToString() { |
| 517 return pb::JsonFormatter.ToDiagnosticString(this); | 580 return pb::JsonFormatter.ToDiagnosticString(this); |
| 518 } | 581 } |
| 519 | 582 |
| 583 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 520 public void WriteTo(pb::CodedOutputStream output) { | 584 public void WriteTo(pb::CodedOutputStream output) { |
| 521 } | 585 } |
| 522 | 586 |
| 587 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 523 public int CalculateSize() { | 588 public int CalculateSize() { |
| 524 int size = 0; | 589 int size = 0; |
| 525 return size; | 590 return size; |
| 526 } | 591 } |
| 527 | 592 |
| 593 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 528 public void MergeFrom(DeprecatedChild other) { | 594 public void MergeFrom(DeprecatedChild other) { |
| 529 if (other == null) { | 595 if (other == null) { |
| 530 return; | 596 return; |
| 531 } | 597 } |
| 532 } | 598 } |
| 533 | 599 |
| 600 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 534 public void MergeFrom(pb::CodedInputStream input) { | 601 public void MergeFrom(pb::CodedInputStream input) { |
| 535 uint tag; | 602 uint tag; |
| 536 while ((tag = input.ReadTag()) != 0) { | 603 while ((tag = input.ReadTag()) != 0) { |
| 537 switch(tag) { | 604 switch(tag) { |
| 538 default: | 605 default: |
| 539 input.SkipLastField(); | 606 input.SkipLastField(); |
| 540 break; | 607 break; |
| 541 } | 608 } |
| 542 } | 609 } |
| 543 } | 610 } |
| 544 | 611 |
| 545 } | 612 } |
| 546 | 613 |
| 547 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 548 public sealed partial class DeprecatedFieldsMessage : pb::IMessage<DeprecatedF
ieldsMessage> { | 614 public sealed partial class DeprecatedFieldsMessage : pb::IMessage<DeprecatedF
ieldsMessage> { |
| 549 private static readonly pb::MessageParser<DeprecatedFieldsMessage> _parser =
new pb::MessageParser<DeprecatedFieldsMessage>(() => new DeprecatedFieldsMessag
e()); | 615 private static readonly pb::MessageParser<DeprecatedFieldsMessage> _parser =
new pb::MessageParser<DeprecatedFieldsMessage>(() => new DeprecatedFieldsMessag
e()); |
| 616 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 550 public static pb::MessageParser<DeprecatedFieldsMessage> Parser { get { retu
rn _parser; } } | 617 public static pb::MessageParser<DeprecatedFieldsMessage> Parser { get { retu
rn _parser; } } |
| 551 | 618 |
| 619 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 552 public static pbr::MessageDescriptor Descriptor { | 620 public static pbr::MessageDescriptor Descriptor { |
| 553 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[3]; } | 621 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[3]; } |
| 554 } | 622 } |
| 555 | 623 |
| 624 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 556 pbr::MessageDescriptor pb::IMessage.Descriptor { | 625 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 557 get { return Descriptor; } | 626 get { return Descriptor; } |
| 558 } | 627 } |
| 559 | 628 |
| 629 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 560 public DeprecatedFieldsMessage() { | 630 public DeprecatedFieldsMessage() { |
| 561 OnConstruction(); | 631 OnConstruction(); |
| 562 } | 632 } |
| 563 | 633 |
| 564 partial void OnConstruction(); | 634 partial void OnConstruction(); |
| 565 | 635 |
| 636 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 566 public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() { | 637 public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() { |
| 567 primitiveValue_ = other.primitiveValue_; | 638 primitiveValue_ = other.primitiveValue_; |
| 568 primitiveArray_ = other.primitiveArray_.Clone(); | 639 primitiveArray_ = other.primitiveArray_.Clone(); |
| 569 MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() :
null; | 640 MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() :
null; |
| 570 messageArray_ = other.messageArray_.Clone(); | 641 messageArray_ = other.messageArray_.Clone(); |
| 571 enumValue_ = other.enumValue_; | 642 enumValue_ = other.enumValue_; |
| 572 enumArray_ = other.enumArray_.Clone(); | 643 enumArray_ = other.enumArray_.Clone(); |
| 573 } | 644 } |
| 574 | 645 |
| 646 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 575 public DeprecatedFieldsMessage Clone() { | 647 public DeprecatedFieldsMessage Clone() { |
| 576 return new DeprecatedFieldsMessage(this); | 648 return new DeprecatedFieldsMessage(this); |
| 577 } | 649 } |
| 578 | 650 |
| 579 /// <summary>Field number for the "PrimitiveValue" field.</summary> | 651 /// <summary>Field number for the "PrimitiveValue" field.</summary> |
| 580 public const int PrimitiveValueFieldNumber = 1; | 652 public const int PrimitiveValueFieldNumber = 1; |
| 581 private int primitiveValue_; | 653 private int primitiveValue_; |
| 582 [global::System.ObsoleteAttribute()] | 654 [global::System.ObsoleteAttribute] |
| 655 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 583 public int PrimitiveValue { | 656 public int PrimitiveValue { |
| 584 get { return primitiveValue_; } | 657 get { return primitiveValue_; } |
| 585 set { | 658 set { |
| 586 primitiveValue_ = value; | 659 primitiveValue_ = value; |
| 587 } | 660 } |
| 588 } | 661 } |
| 589 | 662 |
| 590 /// <summary>Field number for the "PrimitiveArray" field.</summary> | 663 /// <summary>Field number for the "PrimitiveArray" field.</summary> |
| 591 public const int PrimitiveArrayFieldNumber = 2; | 664 public const int PrimitiveArrayFieldNumber = 2; |
| 592 private static readonly pb::FieldCodec<int> _repeated_primitiveArray_codec | 665 private static readonly pb::FieldCodec<int> _repeated_primitiveArray_codec |
| 593 = pb::FieldCodec.ForInt32(18); | 666 = pb::FieldCodec.ForInt32(18); |
| 594 private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::Repeated
Field<int>(); | 667 private readonly pbc::RepeatedField<int> primitiveArray_ = new pbc::Repeated
Field<int>(); |
| 595 [global::System.ObsoleteAttribute()] | 668 [global::System.ObsoleteAttribute] |
| 669 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 596 public pbc::RepeatedField<int> PrimitiveArray { | 670 public pbc::RepeatedField<int> PrimitiveArray { |
| 597 get { return primitiveArray_; } | 671 get { return primitiveArray_; } |
| 598 } | 672 } |
| 599 | 673 |
| 600 /// <summary>Field number for the "MessageValue" field.</summary> | 674 /// <summary>Field number for the "MessageValue" field.</summary> |
| 601 public const int MessageValueFieldNumber = 3; | 675 public const int MessageValueFieldNumber = 3; |
| 602 private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_; | 676 private global::UnitTest.Issues.TestProtos.DeprecatedChild messageValue_; |
| 603 [global::System.ObsoleteAttribute()] | 677 [global::System.ObsoleteAttribute] |
| 678 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 604 public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue { | 679 public global::UnitTest.Issues.TestProtos.DeprecatedChild MessageValue { |
| 605 get { return messageValue_; } | 680 get { return messageValue_; } |
| 606 set { | 681 set { |
| 607 messageValue_ = value; | 682 messageValue_ = value; |
| 608 } | 683 } |
| 609 } | 684 } |
| 610 | 685 |
| 611 /// <summary>Field number for the "MessageArray" field.</summary> | 686 /// <summary>Field number for the "MessageArray" field.</summary> |
| 612 public const int MessageArrayFieldNumber = 4; | 687 public const int MessageArrayFieldNumber = 4; |
| 613 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.De
precatedChild> _repeated_messageArray_codec | 688 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.De
precatedChild> _repeated_messageArray_codec |
| 614 = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.Depre
catedChild.Parser); | 689 = pb::FieldCodec.ForMessage(34, global::UnitTest.Issues.TestProtos.Depre
catedChild.Parser); |
| 615 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Depre
catedChild> messageArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestP
rotos.DeprecatedChild>(); | 690 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Depre
catedChild> messageArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestP
rotos.DeprecatedChild>(); |
| 616 [global::System.ObsoleteAttribute()] | 691 [global::System.ObsoleteAttribute] |
| 692 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 617 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild
> MessageArray { | 693 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedChild
> MessageArray { |
| 618 get { return messageArray_; } | 694 get { return messageArray_; } |
| 619 } | 695 } |
| 620 | 696 |
| 621 /// <summary>Field number for the "EnumValue" field.</summary> | 697 /// <summary>Field number for the "EnumValue" field.</summary> |
| 622 public const int EnumValueFieldNumber = 5; | 698 public const int EnumValueFieldNumber = 5; |
| 623 private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = 0; | 699 private global::UnitTest.Issues.TestProtos.DeprecatedEnum enumValue_ = 0; |
| 624 [global::System.ObsoleteAttribute()] | 700 [global::System.ObsoleteAttribute] |
| 701 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 625 public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue { | 702 public global::UnitTest.Issues.TestProtos.DeprecatedEnum EnumValue { |
| 626 get { return enumValue_; } | 703 get { return enumValue_; } |
| 627 set { | 704 set { |
| 628 enumValue_ = value; | 705 enumValue_ = value; |
| 629 } | 706 } |
| 630 } | 707 } |
| 631 | 708 |
| 632 /// <summary>Field number for the "EnumArray" field.</summary> | 709 /// <summary>Field number for the "EnumArray" field.</summary> |
| 633 public const int EnumArrayFieldNumber = 6; | 710 public const int EnumArrayFieldNumber = 6; |
| 634 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.De
precatedEnum> _repeated_enumArray_codec | 711 private static readonly pb::FieldCodec<global::UnitTest.Issues.TestProtos.De
precatedEnum> _repeated_enumArray_codec |
| 635 = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues
.TestProtos.DeprecatedEnum) x); | 712 = pb::FieldCodec.ForEnum(50, x => (int) x, x => (global::UnitTest.Issues
.TestProtos.DeprecatedEnum) x); |
| 636 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Depre
catedEnum> enumArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProto
s.DeprecatedEnum>(); | 713 private readonly pbc::RepeatedField<global::UnitTest.Issues.TestProtos.Depre
catedEnum> enumArray_ = new pbc::RepeatedField<global::UnitTest.Issues.TestProto
s.DeprecatedEnum>(); |
| 637 [global::System.ObsoleteAttribute()] | 714 [global::System.ObsoleteAttribute] |
| 715 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 638 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum>
EnumArray { | 716 public pbc::RepeatedField<global::UnitTest.Issues.TestProtos.DeprecatedEnum>
EnumArray { |
| 639 get { return enumArray_; } | 717 get { return enumArray_; } |
| 640 } | 718 } |
| 641 | 719 |
| 720 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 642 public override bool Equals(object other) { | 721 public override bool Equals(object other) { |
| 643 return Equals(other as DeprecatedFieldsMessage); | 722 return Equals(other as DeprecatedFieldsMessage); |
| 644 } | 723 } |
| 645 | 724 |
| 725 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 646 public bool Equals(DeprecatedFieldsMessage other) { | 726 public bool Equals(DeprecatedFieldsMessage other) { |
| 647 if (ReferenceEquals(other, null)) { | 727 if (ReferenceEquals(other, null)) { |
| 648 return false; | 728 return false; |
| 649 } | 729 } |
| 650 if (ReferenceEquals(other, this)) { | 730 if (ReferenceEquals(other, this)) { |
| 651 return true; | 731 return true; |
| 652 } | 732 } |
| 653 if (PrimitiveValue != other.PrimitiveValue) return false; | 733 if (PrimitiveValue != other.PrimitiveValue) return false; |
| 654 if(!primitiveArray_.Equals(other.primitiveArray_)) return false; | 734 if(!primitiveArray_.Equals(other.primitiveArray_)) return false; |
| 655 if (!object.Equals(MessageValue, other.MessageValue)) return false; | 735 if (!object.Equals(MessageValue, other.MessageValue)) return false; |
| 656 if(!messageArray_.Equals(other.messageArray_)) return false; | 736 if(!messageArray_.Equals(other.messageArray_)) return false; |
| 657 if (EnumValue != other.EnumValue) return false; | 737 if (EnumValue != other.EnumValue) return false; |
| 658 if(!enumArray_.Equals(other.enumArray_)) return false; | 738 if(!enumArray_.Equals(other.enumArray_)) return false; |
| 659 return true; | 739 return true; |
| 660 } | 740 } |
| 661 | 741 |
| 742 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 662 public override int GetHashCode() { | 743 public override int GetHashCode() { |
| 663 int hash = 1; | 744 int hash = 1; |
| 664 if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode(); | 745 if (PrimitiveValue != 0) hash ^= PrimitiveValue.GetHashCode(); |
| 665 hash ^= primitiveArray_.GetHashCode(); | 746 hash ^= primitiveArray_.GetHashCode(); |
| 666 if (messageValue_ != null) hash ^= MessageValue.GetHashCode(); | 747 if (messageValue_ != null) hash ^= MessageValue.GetHashCode(); |
| 667 hash ^= messageArray_.GetHashCode(); | 748 hash ^= messageArray_.GetHashCode(); |
| 668 if (EnumValue != 0) hash ^= EnumValue.GetHashCode(); | 749 if (EnumValue != 0) hash ^= EnumValue.GetHashCode(); |
| 669 hash ^= enumArray_.GetHashCode(); | 750 hash ^= enumArray_.GetHashCode(); |
| 670 return hash; | 751 return hash; |
| 671 } | 752 } |
| 672 | 753 |
| 754 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 673 public override string ToString() { | 755 public override string ToString() { |
| 674 return pb::JsonFormatter.ToDiagnosticString(this); | 756 return pb::JsonFormatter.ToDiagnosticString(this); |
| 675 } | 757 } |
| 676 | 758 |
| 759 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 677 public void WriteTo(pb::CodedOutputStream output) { | 760 public void WriteTo(pb::CodedOutputStream output) { |
| 678 if (PrimitiveValue != 0) { | 761 if (PrimitiveValue != 0) { |
| 679 output.WriteRawTag(8); | 762 output.WriteRawTag(8); |
| 680 output.WriteInt32(PrimitiveValue); | 763 output.WriteInt32(PrimitiveValue); |
| 681 } | 764 } |
| 682 primitiveArray_.WriteTo(output, _repeated_primitiveArray_codec); | 765 primitiveArray_.WriteTo(output, _repeated_primitiveArray_codec); |
| 683 if (messageValue_ != null) { | 766 if (messageValue_ != null) { |
| 684 output.WriteRawTag(26); | 767 output.WriteRawTag(26); |
| 685 output.WriteMessage(MessageValue); | 768 output.WriteMessage(MessageValue); |
| 686 } | 769 } |
| 687 messageArray_.WriteTo(output, _repeated_messageArray_codec); | 770 messageArray_.WriteTo(output, _repeated_messageArray_codec); |
| 688 if (EnumValue != 0) { | 771 if (EnumValue != 0) { |
| 689 output.WriteRawTag(40); | 772 output.WriteRawTag(40); |
| 690 output.WriteEnum((int) EnumValue); | 773 output.WriteEnum((int) EnumValue); |
| 691 } | 774 } |
| 692 enumArray_.WriteTo(output, _repeated_enumArray_codec); | 775 enumArray_.WriteTo(output, _repeated_enumArray_codec); |
| 693 } | 776 } |
| 694 | 777 |
| 778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 695 public int CalculateSize() { | 779 public int CalculateSize() { |
| 696 int size = 0; | 780 int size = 0; |
| 697 if (PrimitiveValue != 0) { | 781 if (PrimitiveValue != 0) { |
| 698 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue); | 782 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PrimitiveValue); |
| 699 } | 783 } |
| 700 size += primitiveArray_.CalculateSize(_repeated_primitiveArray_codec); | 784 size += primitiveArray_.CalculateSize(_repeated_primitiveArray_codec); |
| 701 if (messageValue_ != null) { | 785 if (messageValue_ != null) { |
| 702 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue); | 786 size += 1 + pb::CodedOutputStream.ComputeMessageSize(MessageValue); |
| 703 } | 787 } |
| 704 size += messageArray_.CalculateSize(_repeated_messageArray_codec); | 788 size += messageArray_.CalculateSize(_repeated_messageArray_codec); |
| 705 if (EnumValue != 0) { | 789 if (EnumValue != 0) { |
| 706 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue); | 790 size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) EnumValue); |
| 707 } | 791 } |
| 708 size += enumArray_.CalculateSize(_repeated_enumArray_codec); | 792 size += enumArray_.CalculateSize(_repeated_enumArray_codec); |
| 709 return size; | 793 return size; |
| 710 } | 794 } |
| 711 | 795 |
| 796 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 712 public void MergeFrom(DeprecatedFieldsMessage other) { | 797 public void MergeFrom(DeprecatedFieldsMessage other) { |
| 713 if (other == null) { | 798 if (other == null) { |
| 714 return; | 799 return; |
| 715 } | 800 } |
| 716 if (other.PrimitiveValue != 0) { | 801 if (other.PrimitiveValue != 0) { |
| 717 PrimitiveValue = other.PrimitiveValue; | 802 PrimitiveValue = other.PrimitiveValue; |
| 718 } | 803 } |
| 719 primitiveArray_.Add(other.primitiveArray_); | 804 primitiveArray_.Add(other.primitiveArray_); |
| 720 if (other.messageValue_ != null) { | 805 if (other.messageValue_ != null) { |
| 721 if (messageValue_ == null) { | 806 if (messageValue_ == null) { |
| 722 messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild
(); | 807 messageValue_ = new global::UnitTest.Issues.TestProtos.DeprecatedChild
(); |
| 723 } | 808 } |
| 724 MessageValue.MergeFrom(other.MessageValue); | 809 MessageValue.MergeFrom(other.MessageValue); |
| 725 } | 810 } |
| 726 messageArray_.Add(other.messageArray_); | 811 messageArray_.Add(other.messageArray_); |
| 727 if (other.EnumValue != 0) { | 812 if (other.EnumValue != 0) { |
| 728 EnumValue = other.EnumValue; | 813 EnumValue = other.EnumValue; |
| 729 } | 814 } |
| 730 enumArray_.Add(other.enumArray_); | 815 enumArray_.Add(other.enumArray_); |
| 731 } | 816 } |
| 732 | 817 |
| 818 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 733 public void MergeFrom(pb::CodedInputStream input) { | 819 public void MergeFrom(pb::CodedInputStream input) { |
| 734 uint tag; | 820 uint tag; |
| 735 while ((tag = input.ReadTag()) != 0) { | 821 while ((tag = input.ReadTag()) != 0) { |
| 736 switch(tag) { | 822 switch(tag) { |
| 737 default: | 823 default: |
| 738 input.SkipLastField(); | 824 input.SkipLastField(); |
| 739 break; | 825 break; |
| 740 case 8: { | 826 case 8: { |
| 741 PrimitiveValue = input.ReadInt32(); | 827 PrimitiveValue = input.ReadInt32(); |
| 742 break; | 828 break; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 766 enumArray_.AddEntriesFrom(input, _repeated_enumArray_codec); | 852 enumArray_.AddEntriesFrom(input, _repeated_enumArray_codec); |
| 767 break; | 853 break; |
| 768 } | 854 } |
| 769 } | 855 } |
| 770 } | 856 } |
| 771 } | 857 } |
| 772 | 858 |
| 773 } | 859 } |
| 774 | 860 |
| 775 /// <summary> | 861 /// <summary> |
| 776 /// Issue 45: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=
45 | 862 /// Issue 45: http://code.google.com/p/protobuf-csharp-port/issues/detail?id=4
5 |
| 777 /// </summary> | 863 /// </summary> |
| 778 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 779 public sealed partial class ItemField : pb::IMessage<ItemField> { | 864 public sealed partial class ItemField : pb::IMessage<ItemField> { |
| 780 private static readonly pb::MessageParser<ItemField> _parser = new pb::Messa
geParser<ItemField>(() => new ItemField()); | 865 private static readonly pb::MessageParser<ItemField> _parser = new pb::Messa
geParser<ItemField>(() => new ItemField()); |
| 866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 781 public static pb::MessageParser<ItemField> Parser { get { return _parser; }
} | 867 public static pb::MessageParser<ItemField> Parser { get { return _parser; }
} |
| 782 | 868 |
| 869 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 783 public static pbr::MessageDescriptor Descriptor { | 870 public static pbr::MessageDescriptor Descriptor { |
| 784 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[4]; } | 871 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[4]; } |
| 785 } | 872 } |
| 786 | 873 |
| 874 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 787 pbr::MessageDescriptor pb::IMessage.Descriptor { | 875 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 788 get { return Descriptor; } | 876 get { return Descriptor; } |
| 789 } | 877 } |
| 790 | 878 |
| 879 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 791 public ItemField() { | 880 public ItemField() { |
| 792 OnConstruction(); | 881 OnConstruction(); |
| 793 } | 882 } |
| 794 | 883 |
| 795 partial void OnConstruction(); | 884 partial void OnConstruction(); |
| 796 | 885 |
| 886 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 797 public ItemField(ItemField other) : this() { | 887 public ItemField(ItemField other) : this() { |
| 798 item_ = other.item_; | 888 item_ = other.item_; |
| 799 } | 889 } |
| 800 | 890 |
| 891 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 801 public ItemField Clone() { | 892 public ItemField Clone() { |
| 802 return new ItemField(this); | 893 return new ItemField(this); |
| 803 } | 894 } |
| 804 | 895 |
| 805 /// <summary>Field number for the "item" field.</summary> | 896 /// <summary>Field number for the "item" field.</summary> |
| 806 public const int ItemFieldNumber = 1; | 897 public const int ItemFieldNumber = 1; |
| 807 private int item_; | 898 private int item_; |
| 899 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 808 public int Item { | 900 public int Item { |
| 809 get { return item_; } | 901 get { return item_; } |
| 810 set { | 902 set { |
| 811 item_ = value; | 903 item_ = value; |
| 812 } | 904 } |
| 813 } | 905 } |
| 814 | 906 |
| 907 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 815 public override bool Equals(object other) { | 908 public override bool Equals(object other) { |
| 816 return Equals(other as ItemField); | 909 return Equals(other as ItemField); |
| 817 } | 910 } |
| 818 | 911 |
| 912 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 819 public bool Equals(ItemField other) { | 913 public bool Equals(ItemField other) { |
| 820 if (ReferenceEquals(other, null)) { | 914 if (ReferenceEquals(other, null)) { |
| 821 return false; | 915 return false; |
| 822 } | 916 } |
| 823 if (ReferenceEquals(other, this)) { | 917 if (ReferenceEquals(other, this)) { |
| 824 return true; | 918 return true; |
| 825 } | 919 } |
| 826 if (Item != other.Item) return false; | 920 if (Item != other.Item) return false; |
| 827 return true; | 921 return true; |
| 828 } | 922 } |
| 829 | 923 |
| 924 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 830 public override int GetHashCode() { | 925 public override int GetHashCode() { |
| 831 int hash = 1; | 926 int hash = 1; |
| 832 if (Item != 0) hash ^= Item.GetHashCode(); | 927 if (Item != 0) hash ^= Item.GetHashCode(); |
| 833 return hash; | 928 return hash; |
| 834 } | 929 } |
| 835 | 930 |
| 931 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 836 public override string ToString() { | 932 public override string ToString() { |
| 837 return pb::JsonFormatter.ToDiagnosticString(this); | 933 return pb::JsonFormatter.ToDiagnosticString(this); |
| 838 } | 934 } |
| 839 | 935 |
| 936 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 840 public void WriteTo(pb::CodedOutputStream output) { | 937 public void WriteTo(pb::CodedOutputStream output) { |
| 841 if (Item != 0) { | 938 if (Item != 0) { |
| 842 output.WriteRawTag(8); | 939 output.WriteRawTag(8); |
| 843 output.WriteInt32(Item); | 940 output.WriteInt32(Item); |
| 844 } | 941 } |
| 845 } | 942 } |
| 846 | 943 |
| 944 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 847 public int CalculateSize() { | 945 public int CalculateSize() { |
| 848 int size = 0; | 946 int size = 0; |
| 849 if (Item != 0) { | 947 if (Item != 0) { |
| 850 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item); | 948 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Item); |
| 851 } | 949 } |
| 852 return size; | 950 return size; |
| 853 } | 951 } |
| 854 | 952 |
| 953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 855 public void MergeFrom(ItemField other) { | 954 public void MergeFrom(ItemField other) { |
| 856 if (other == null) { | 955 if (other == null) { |
| 857 return; | 956 return; |
| 858 } | 957 } |
| 859 if (other.Item != 0) { | 958 if (other.Item != 0) { |
| 860 Item = other.Item; | 959 Item = other.Item; |
| 861 } | 960 } |
| 862 } | 961 } |
| 863 | 962 |
| 963 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 864 public void MergeFrom(pb::CodedInputStream input) { | 964 public void MergeFrom(pb::CodedInputStream input) { |
| 865 uint tag; | 965 uint tag; |
| 866 while ((tag = input.ReadTag()) != 0) { | 966 while ((tag = input.ReadTag()) != 0) { |
| 867 switch(tag) { | 967 switch(tag) { |
| 868 default: | 968 default: |
| 869 input.SkipLastField(); | 969 input.SkipLastField(); |
| 870 break; | 970 break; |
| 871 case 8: { | 971 case 8: { |
| 872 Item = input.ReadInt32(); | 972 Item = input.ReadInt32(); |
| 873 break; | 973 break; |
| 874 } | 974 } |
| 875 } | 975 } |
| 876 } | 976 } |
| 877 } | 977 } |
| 878 | 978 |
| 879 } | 979 } |
| 880 | 980 |
| 881 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 882 public sealed partial class ReservedNames : pb::IMessage<ReservedNames> { | 981 public sealed partial class ReservedNames : pb::IMessage<ReservedNames> { |
| 883 private static readonly pb::MessageParser<ReservedNames> _parser = new pb::M
essageParser<ReservedNames>(() => new ReservedNames()); | 982 private static readonly pb::MessageParser<ReservedNames> _parser = new pb::M
essageParser<ReservedNames>(() => new ReservedNames()); |
| 983 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 884 public static pb::MessageParser<ReservedNames> Parser { get { return _parser
; } } | 984 public static pb::MessageParser<ReservedNames> Parser { get { return _parser
; } } |
| 885 | 985 |
| 986 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 886 public static pbr::MessageDescriptor Descriptor { | 987 public static pbr::MessageDescriptor Descriptor { |
| 887 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[5]; } | 988 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[5]; } |
| 888 } | 989 } |
| 889 | 990 |
| 991 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 890 pbr::MessageDescriptor pb::IMessage.Descriptor { | 992 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 891 get { return Descriptor; } | 993 get { return Descriptor; } |
| 892 } | 994 } |
| 893 | 995 |
| 996 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 894 public ReservedNames() { | 997 public ReservedNames() { |
| 895 OnConstruction(); | 998 OnConstruction(); |
| 896 } | 999 } |
| 897 | 1000 |
| 898 partial void OnConstruction(); | 1001 partial void OnConstruction(); |
| 899 | 1002 |
| 1003 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 900 public ReservedNames(ReservedNames other) : this() { | 1004 public ReservedNames(ReservedNames other) : this() { |
| 901 types_ = other.types_; | 1005 types_ = other.types_; |
| 902 descriptor_ = other.descriptor_; | 1006 descriptor_ = other.descriptor_; |
| 903 } | 1007 } |
| 904 | 1008 |
| 1009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 905 public ReservedNames Clone() { | 1010 public ReservedNames Clone() { |
| 906 return new ReservedNames(this); | 1011 return new ReservedNames(this); |
| 907 } | 1012 } |
| 908 | 1013 |
| 909 /// <summary>Field number for the "types" field.</summary> | 1014 /// <summary>Field number for the "types" field.</summary> |
| 910 public const int Types_FieldNumber = 1; | 1015 public const int Types_FieldNumber = 1; |
| 911 private int types_; | 1016 private int types_; |
| 1017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 912 public int Types_ { | 1018 public int Types_ { |
| 913 get { return types_; } | 1019 get { return types_; } |
| 914 set { | 1020 set { |
| 915 types_ = value; | 1021 types_ = value; |
| 916 } | 1022 } |
| 917 } | 1023 } |
| 918 | 1024 |
| 919 /// <summary>Field number for the "descriptor" field.</summary> | 1025 /// <summary>Field number for the "descriptor" field.</summary> |
| 920 public const int Descriptor_FieldNumber = 2; | 1026 public const int Descriptor_FieldNumber = 2; |
| 921 private int descriptor_; | 1027 private int descriptor_; |
| 1028 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 922 public int Descriptor_ { | 1029 public int Descriptor_ { |
| 923 get { return descriptor_; } | 1030 get { return descriptor_; } |
| 924 set { | 1031 set { |
| 925 descriptor_ = value; | 1032 descriptor_ = value; |
| 926 } | 1033 } |
| 927 } | 1034 } |
| 928 | 1035 |
| 1036 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 929 public override bool Equals(object other) { | 1037 public override bool Equals(object other) { |
| 930 return Equals(other as ReservedNames); | 1038 return Equals(other as ReservedNames); |
| 931 } | 1039 } |
| 932 | 1040 |
| 1041 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 933 public bool Equals(ReservedNames other) { | 1042 public bool Equals(ReservedNames other) { |
| 934 if (ReferenceEquals(other, null)) { | 1043 if (ReferenceEquals(other, null)) { |
| 935 return false; | 1044 return false; |
| 936 } | 1045 } |
| 937 if (ReferenceEquals(other, this)) { | 1046 if (ReferenceEquals(other, this)) { |
| 938 return true; | 1047 return true; |
| 939 } | 1048 } |
| 940 if (Types_ != other.Types_) return false; | 1049 if (Types_ != other.Types_) return false; |
| 941 if (Descriptor_ != other.Descriptor_) return false; | 1050 if (Descriptor_ != other.Descriptor_) return false; |
| 942 return true; | 1051 return true; |
| 943 } | 1052 } |
| 944 | 1053 |
| 1054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 945 public override int GetHashCode() { | 1055 public override int GetHashCode() { |
| 946 int hash = 1; | 1056 int hash = 1; |
| 947 if (Types_ != 0) hash ^= Types_.GetHashCode(); | 1057 if (Types_ != 0) hash ^= Types_.GetHashCode(); |
| 948 if (Descriptor_ != 0) hash ^= Descriptor_.GetHashCode(); | 1058 if (Descriptor_ != 0) hash ^= Descriptor_.GetHashCode(); |
| 949 return hash; | 1059 return hash; |
| 950 } | 1060 } |
| 951 | 1061 |
| 1062 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 952 public override string ToString() { | 1063 public override string ToString() { |
| 953 return pb::JsonFormatter.ToDiagnosticString(this); | 1064 return pb::JsonFormatter.ToDiagnosticString(this); |
| 954 } | 1065 } |
| 955 | 1066 |
| 1067 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 956 public void WriteTo(pb::CodedOutputStream output) { | 1068 public void WriteTo(pb::CodedOutputStream output) { |
| 957 if (Types_ != 0) { | 1069 if (Types_ != 0) { |
| 958 output.WriteRawTag(8); | 1070 output.WriteRawTag(8); |
| 959 output.WriteInt32(Types_); | 1071 output.WriteInt32(Types_); |
| 960 } | 1072 } |
| 961 if (Descriptor_ != 0) { | 1073 if (Descriptor_ != 0) { |
| 962 output.WriteRawTag(16); | 1074 output.WriteRawTag(16); |
| 963 output.WriteInt32(Descriptor_); | 1075 output.WriteInt32(Descriptor_); |
| 964 } | 1076 } |
| 965 } | 1077 } |
| 966 | 1078 |
| 1079 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 967 public int CalculateSize() { | 1080 public int CalculateSize() { |
| 968 int size = 0; | 1081 int size = 0; |
| 969 if (Types_ != 0) { | 1082 if (Types_ != 0) { |
| 970 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Types_); | 1083 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Types_); |
| 971 } | 1084 } |
| 972 if (Descriptor_ != 0) { | 1085 if (Descriptor_ != 0) { |
| 973 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Descriptor_); | 1086 size += 1 + pb::CodedOutputStream.ComputeInt32Size(Descriptor_); |
| 974 } | 1087 } |
| 975 return size; | 1088 return size; |
| 976 } | 1089 } |
| 977 | 1090 |
| 1091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 978 public void MergeFrom(ReservedNames other) { | 1092 public void MergeFrom(ReservedNames other) { |
| 979 if (other == null) { | 1093 if (other == null) { |
| 980 return; | 1094 return; |
| 981 } | 1095 } |
| 982 if (other.Types_ != 0) { | 1096 if (other.Types_ != 0) { |
| 983 Types_ = other.Types_; | 1097 Types_ = other.Types_; |
| 984 } | 1098 } |
| 985 if (other.Descriptor_ != 0) { | 1099 if (other.Descriptor_ != 0) { |
| 986 Descriptor_ = other.Descriptor_; | 1100 Descriptor_ = other.Descriptor_; |
| 987 } | 1101 } |
| 988 } | 1102 } |
| 989 | 1103 |
| 1104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 990 public void MergeFrom(pb::CodedInputStream input) { | 1105 public void MergeFrom(pb::CodedInputStream input) { |
| 991 uint tag; | 1106 uint tag; |
| 992 while ((tag = input.ReadTag()) != 0) { | 1107 while ((tag = input.ReadTag()) != 0) { |
| 993 switch(tag) { | 1108 switch(tag) { |
| 994 default: | 1109 default: |
| 995 input.SkipLastField(); | 1110 input.SkipLastField(); |
| 996 break; | 1111 break; |
| 997 case 8: { | 1112 case 8: { |
| 998 Types_ = input.ReadInt32(); | 1113 Types_ = input.ReadInt32(); |
| 999 break; | 1114 break; |
| 1000 } | 1115 } |
| 1001 case 16: { | 1116 case 16: { |
| 1002 Descriptor_ = input.ReadInt32(); | 1117 Descriptor_ = input.ReadInt32(); |
| 1003 break; | 1118 break; |
| 1004 } | 1119 } |
| 1005 } | 1120 } |
| 1006 } | 1121 } |
| 1007 } | 1122 } |
| 1008 | 1123 |
| 1009 #region Nested types | 1124 #region Nested types |
| 1010 /// <summary>Container for nested types declared in the ReservedNames messag
e type.</summary> | 1125 /// <summary>Container for nested types declared in the ReservedNames messag
e type.</summary> |
| 1011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | 1126 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1012 public static partial class Types { | 1127 public static partial class Types { |
| 1013 /// <summary> | 1128 /// <summary> |
| 1014 /// Force a nested type called Types | 1129 /// Force a nested type called Types |
| 1015 /// </summary> | 1130 /// </summary> |
| 1016 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1017 public sealed partial class SomeNestedType : pb::IMessage<SomeNestedType>
{ | 1131 public sealed partial class SomeNestedType : pb::IMessage<SomeNestedType>
{ |
| 1018 private static readonly pb::MessageParser<SomeNestedType> _parser = new
pb::MessageParser<SomeNestedType>(() => new SomeNestedType()); | 1132 private static readonly pb::MessageParser<SomeNestedType> _parser = new
pb::MessageParser<SomeNestedType>(() => new SomeNestedType()); |
| 1133 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1019 public static pb::MessageParser<SomeNestedType> Parser { get { return _p
arser; } } | 1134 public static pb::MessageParser<SomeNestedType> Parser { get { return _p
arser; } } |
| 1020 | 1135 |
| 1136 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1021 public static pbr::MessageDescriptor Descriptor { | 1137 public static pbr::MessageDescriptor Descriptor { |
| 1022 get { return global::UnitTest.Issues.TestProtos.ReservedNames.Descript
or.NestedTypes[0]; } | 1138 get { return global::UnitTest.Issues.TestProtos.ReservedNames.Descript
or.NestedTypes[0]; } |
| 1023 } | 1139 } |
| 1024 | 1140 |
| 1141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1025 pbr::MessageDescriptor pb::IMessage.Descriptor { | 1142 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1026 get { return Descriptor; } | 1143 get { return Descriptor; } |
| 1027 } | 1144 } |
| 1028 | 1145 |
| 1146 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1029 public SomeNestedType() { | 1147 public SomeNestedType() { |
| 1030 OnConstruction(); | 1148 OnConstruction(); |
| 1031 } | 1149 } |
| 1032 | 1150 |
| 1033 partial void OnConstruction(); | 1151 partial void OnConstruction(); |
| 1034 | 1152 |
| 1153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1035 public SomeNestedType(SomeNestedType other) : this() { | 1154 public SomeNestedType(SomeNestedType other) : this() { |
| 1036 } | 1155 } |
| 1037 | 1156 |
| 1157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1038 public SomeNestedType Clone() { | 1158 public SomeNestedType Clone() { |
| 1039 return new SomeNestedType(this); | 1159 return new SomeNestedType(this); |
| 1040 } | 1160 } |
| 1041 | 1161 |
| 1162 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1042 public override bool Equals(object other) { | 1163 public override bool Equals(object other) { |
| 1043 return Equals(other as SomeNestedType); | 1164 return Equals(other as SomeNestedType); |
| 1044 } | 1165 } |
| 1045 | 1166 |
| 1167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1046 public bool Equals(SomeNestedType other) { | 1168 public bool Equals(SomeNestedType other) { |
| 1047 if (ReferenceEquals(other, null)) { | 1169 if (ReferenceEquals(other, null)) { |
| 1048 return false; | 1170 return false; |
| 1049 } | 1171 } |
| 1050 if (ReferenceEquals(other, this)) { | 1172 if (ReferenceEquals(other, this)) { |
| 1051 return true; | 1173 return true; |
| 1052 } | 1174 } |
| 1053 return true; | 1175 return true; |
| 1054 } | 1176 } |
| 1055 | 1177 |
| 1178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1056 public override int GetHashCode() { | 1179 public override int GetHashCode() { |
| 1057 int hash = 1; | 1180 int hash = 1; |
| 1058 return hash; | 1181 return hash; |
| 1059 } | 1182 } |
| 1060 | 1183 |
| 1184 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1061 public override string ToString() { | 1185 public override string ToString() { |
| 1062 return pb::JsonFormatter.ToDiagnosticString(this); | 1186 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1063 } | 1187 } |
| 1064 | 1188 |
| 1189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1065 public void WriteTo(pb::CodedOutputStream output) { | 1190 public void WriteTo(pb::CodedOutputStream output) { |
| 1066 } | 1191 } |
| 1067 | 1192 |
| 1193 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1068 public int CalculateSize() { | 1194 public int CalculateSize() { |
| 1069 int size = 0; | 1195 int size = 0; |
| 1070 return size; | 1196 return size; |
| 1071 } | 1197 } |
| 1072 | 1198 |
| 1199 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1073 public void MergeFrom(SomeNestedType other) { | 1200 public void MergeFrom(SomeNestedType other) { |
| 1074 if (other == null) { | 1201 if (other == null) { |
| 1075 return; | 1202 return; |
| 1076 } | 1203 } |
| 1077 } | 1204 } |
| 1078 | 1205 |
| 1206 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1079 public void MergeFrom(pb::CodedInputStream input) { | 1207 public void MergeFrom(pb::CodedInputStream input) { |
| 1080 uint tag; | 1208 uint tag; |
| 1081 while ((tag = input.ReadTag()) != 0) { | 1209 while ((tag = input.ReadTag()) != 0) { |
| 1082 switch(tag) { | 1210 switch(tag) { |
| 1083 default: | 1211 default: |
| 1084 input.SkipLastField(); | 1212 input.SkipLastField(); |
| 1085 break; | 1213 break; |
| 1086 } | 1214 } |
| 1087 } | 1215 } |
| 1088 } | 1216 } |
| 1089 | 1217 |
| 1090 } | 1218 } |
| 1091 | 1219 |
| 1092 } | 1220 } |
| 1093 #endregion | 1221 #endregion |
| 1094 | 1222 |
| 1095 } | 1223 } |
| 1096 | 1224 |
| 1097 /// <summary> | 1225 /// <summary> |
| 1098 /// These fields are deliberately not declared in numeric | 1226 /// These fields are deliberately not declared in numeric |
| 1099 /// order, and the oneof fields aren't contiguous either. | 1227 /// order, and the oneof fields aren't contiguous either. |
| 1100 /// This allows for reasonably robust tests of JSON output | 1228 /// This allows for reasonably robust tests of JSON output |
| 1101 /// ordering. | 1229 /// ordering. |
| 1102 /// TestFieldOrderings in unittest_proto3.proto is similar, | 1230 /// TestFieldOrderings in unittest_proto3.proto is similar, |
| 1103 /// but doesn't include oneofs. | 1231 /// but doesn't include oneofs. |
| 1104 /// TODO: Consider adding oneofs to TestFieldOrderings, although | 1232 /// TODO: Consider adding oneofs to TestFieldOrderings, although |
| 1105 /// that will require fixing other tests in multiple platforms. | 1233 /// that will require fixing other tests in multiple platforms. |
| 1106 /// Alternatively, consider just adding this to | 1234 /// Alternatively, consider just adding this to |
| 1107 /// unittest_proto3.proto if multiple platforms want it. | 1235 /// unittest_proto3.proto if multiple platforms want it. |
| 1108 /// </summary> | 1236 /// </summary> |
| 1109 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1110 public sealed partial class TestJsonFieldOrdering : pb::IMessage<TestJsonField
Ordering> { | 1237 public sealed partial class TestJsonFieldOrdering : pb::IMessage<TestJsonField
Ordering> { |
| 1111 private static readonly pb::MessageParser<TestJsonFieldOrdering> _parser = n
ew pb::MessageParser<TestJsonFieldOrdering>(() => new TestJsonFieldOrdering()); | 1238 private static readonly pb::MessageParser<TestJsonFieldOrdering> _parser = n
ew pb::MessageParser<TestJsonFieldOrdering>(() => new TestJsonFieldOrdering()); |
| 1239 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1112 public static pb::MessageParser<TestJsonFieldOrdering> Parser { get { return
_parser; } } | 1240 public static pb::MessageParser<TestJsonFieldOrdering> Parser { get { return
_parser; } } |
| 1113 | 1241 |
| 1242 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1114 public static pbr::MessageDescriptor Descriptor { | 1243 public static pbr::MessageDescriptor Descriptor { |
| 1115 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[6]; } | 1244 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[6]; } |
| 1116 } | 1245 } |
| 1117 | 1246 |
| 1247 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1118 pbr::MessageDescriptor pb::IMessage.Descriptor { | 1248 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1119 get { return Descriptor; } | 1249 get { return Descriptor; } |
| 1120 } | 1250 } |
| 1121 | 1251 |
| 1252 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1122 public TestJsonFieldOrdering() { | 1253 public TestJsonFieldOrdering() { |
| 1123 OnConstruction(); | 1254 OnConstruction(); |
| 1124 } | 1255 } |
| 1125 | 1256 |
| 1126 partial void OnConstruction(); | 1257 partial void OnConstruction(); |
| 1127 | 1258 |
| 1259 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1128 public TestJsonFieldOrdering(TestJsonFieldOrdering other) : this() { | 1260 public TestJsonFieldOrdering(TestJsonFieldOrdering other) : this() { |
| 1129 plainInt32_ = other.plainInt32_; | 1261 plainInt32_ = other.plainInt32_; |
| 1130 plainString_ = other.plainString_; | 1262 plainString_ = other.plainString_; |
| 1131 switch (other.O1Case) { | 1263 switch (other.O1Case) { |
| 1132 case O1OneofCase.O1String: | 1264 case O1OneofCase.O1String: |
| 1133 O1String = other.O1String; | 1265 O1String = other.O1String; |
| 1134 break; | 1266 break; |
| 1135 case O1OneofCase.O1Int32: | 1267 case O1OneofCase.O1Int32: |
| 1136 O1Int32 = other.O1Int32; | 1268 O1Int32 = other.O1Int32; |
| 1137 break; | 1269 break; |
| 1138 } | 1270 } |
| 1139 | 1271 |
| 1140 switch (other.O2Case) { | 1272 switch (other.O2Case) { |
| 1141 case O2OneofCase.O2Int32: | 1273 case O2OneofCase.O2Int32: |
| 1142 O2Int32 = other.O2Int32; | 1274 O2Int32 = other.O2Int32; |
| 1143 break; | 1275 break; |
| 1144 case O2OneofCase.O2String: | 1276 case O2OneofCase.O2String: |
| 1145 O2String = other.O2String; | 1277 O2String = other.O2String; |
| 1146 break; | 1278 break; |
| 1147 } | 1279 } |
| 1148 | 1280 |
| 1149 } | 1281 } |
| 1150 | 1282 |
| 1283 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1151 public TestJsonFieldOrdering Clone() { | 1284 public TestJsonFieldOrdering Clone() { |
| 1152 return new TestJsonFieldOrdering(this); | 1285 return new TestJsonFieldOrdering(this); |
| 1153 } | 1286 } |
| 1154 | 1287 |
| 1155 /// <summary>Field number for the "plain_int32" field.</summary> | 1288 /// <summary>Field number for the "plain_int32" field.</summary> |
| 1156 public const int PlainInt32FieldNumber = 4; | 1289 public const int PlainInt32FieldNumber = 4; |
| 1157 private int plainInt32_; | 1290 private int plainInt32_; |
| 1291 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1158 public int PlainInt32 { | 1292 public int PlainInt32 { |
| 1159 get { return plainInt32_; } | 1293 get { return plainInt32_; } |
| 1160 set { | 1294 set { |
| 1161 plainInt32_ = value; | 1295 plainInt32_ = value; |
| 1162 } | 1296 } |
| 1163 } | 1297 } |
| 1164 | 1298 |
| 1165 /// <summary>Field number for the "o1_string" field.</summary> | 1299 /// <summary>Field number for the "o1_string" field.</summary> |
| 1166 public const int O1StringFieldNumber = 2; | 1300 public const int O1StringFieldNumber = 2; |
| 1301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1167 public string O1String { | 1302 public string O1String { |
| 1168 get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; } | 1303 get { return o1Case_ == O1OneofCase.O1String ? (string) o1_ : ""; } |
| 1169 set { | 1304 set { |
| 1170 o1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 1305 o1_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 1171 o1Case_ = O1OneofCase.O1String; | 1306 o1Case_ = O1OneofCase.O1String; |
| 1172 } | 1307 } |
| 1173 } | 1308 } |
| 1174 | 1309 |
| 1175 /// <summary>Field number for the "o1_int32" field.</summary> | 1310 /// <summary>Field number for the "o1_int32" field.</summary> |
| 1176 public const int O1Int32FieldNumber = 5; | 1311 public const int O1Int32FieldNumber = 5; |
| 1312 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1177 public int O1Int32 { | 1313 public int O1Int32 { |
| 1178 get { return o1Case_ == O1OneofCase.O1Int32 ? (int) o1_ : 0; } | 1314 get { return o1Case_ == O1OneofCase.O1Int32 ? (int) o1_ : 0; } |
| 1179 set { | 1315 set { |
| 1180 o1_ = value; | 1316 o1_ = value; |
| 1181 o1Case_ = O1OneofCase.O1Int32; | 1317 o1Case_ = O1OneofCase.O1Int32; |
| 1182 } | 1318 } |
| 1183 } | 1319 } |
| 1184 | 1320 |
| 1185 /// <summary>Field number for the "plain_string" field.</summary> | 1321 /// <summary>Field number for the "plain_string" field.</summary> |
| 1186 public const int PlainStringFieldNumber = 1; | 1322 public const int PlainStringFieldNumber = 1; |
| 1187 private string plainString_ = ""; | 1323 private string plainString_ = ""; |
| 1324 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1188 public string PlainString { | 1325 public string PlainString { |
| 1189 get { return plainString_; } | 1326 get { return plainString_; } |
| 1190 set { | 1327 set { |
| 1191 plainString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 1328 plainString_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 1192 } | 1329 } |
| 1193 } | 1330 } |
| 1194 | 1331 |
| 1195 /// <summary>Field number for the "o2_int32" field.</summary> | 1332 /// <summary>Field number for the "o2_int32" field.</summary> |
| 1196 public const int O2Int32FieldNumber = 6; | 1333 public const int O2Int32FieldNumber = 6; |
| 1334 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1197 public int O2Int32 { | 1335 public int O2Int32 { |
| 1198 get { return o2Case_ == O2OneofCase.O2Int32 ? (int) o2_ : 0; } | 1336 get { return o2Case_ == O2OneofCase.O2Int32 ? (int) o2_ : 0; } |
| 1199 set { | 1337 set { |
| 1200 o2_ = value; | 1338 o2_ = value; |
| 1201 o2Case_ = O2OneofCase.O2Int32; | 1339 o2Case_ = O2OneofCase.O2Int32; |
| 1202 } | 1340 } |
| 1203 } | 1341 } |
| 1204 | 1342 |
| 1205 /// <summary>Field number for the "o2_string" field.</summary> | 1343 /// <summary>Field number for the "o2_string" field.</summary> |
| 1206 public const int O2StringFieldNumber = 3; | 1344 public const int O2StringFieldNumber = 3; |
| 1345 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1207 public string O2String { | 1346 public string O2String { |
| 1208 get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; } | 1347 get { return o2Case_ == O2OneofCase.O2String ? (string) o2_ : ""; } |
| 1209 set { | 1348 set { |
| 1210 o2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 1349 o2_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 1211 o2Case_ = O2OneofCase.O2String; | 1350 o2Case_ = O2OneofCase.O2String; |
| 1212 } | 1351 } |
| 1213 } | 1352 } |
| 1214 | 1353 |
| 1215 private object o1_; | 1354 private object o1_; |
| 1216 /// <summary>Enum of possible cases for the "o1" oneof.</summary> | 1355 /// <summary>Enum of possible cases for the "o1" oneof.</summary> |
| 1217 public enum O1OneofCase { | 1356 public enum O1OneofCase { |
| 1218 None = 0, | 1357 None = 0, |
| 1219 O1String = 2, | 1358 O1String = 2, |
| 1220 O1Int32 = 5, | 1359 O1Int32 = 5, |
| 1221 } | 1360 } |
| 1222 private O1OneofCase o1Case_ = O1OneofCase.None; | 1361 private O1OneofCase o1Case_ = O1OneofCase.None; |
| 1362 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1223 public O1OneofCase O1Case { | 1363 public O1OneofCase O1Case { |
| 1224 get { return o1Case_; } | 1364 get { return o1Case_; } |
| 1225 } | 1365 } |
| 1226 | 1366 |
| 1367 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1227 public void ClearO1() { | 1368 public void ClearO1() { |
| 1228 o1Case_ = O1OneofCase.None; | 1369 o1Case_ = O1OneofCase.None; |
| 1229 o1_ = null; | 1370 o1_ = null; |
| 1230 } | 1371 } |
| 1231 | 1372 |
| 1232 private object o2_; | 1373 private object o2_; |
| 1233 /// <summary>Enum of possible cases for the "o2" oneof.</summary> | 1374 /// <summary>Enum of possible cases for the "o2" oneof.</summary> |
| 1234 public enum O2OneofCase { | 1375 public enum O2OneofCase { |
| 1235 None = 0, | 1376 None = 0, |
| 1236 O2Int32 = 6, | 1377 O2Int32 = 6, |
| 1237 O2String = 3, | 1378 O2String = 3, |
| 1238 } | 1379 } |
| 1239 private O2OneofCase o2Case_ = O2OneofCase.None; | 1380 private O2OneofCase o2Case_ = O2OneofCase.None; |
| 1381 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1240 public O2OneofCase O2Case { | 1382 public O2OneofCase O2Case { |
| 1241 get { return o2Case_; } | 1383 get { return o2Case_; } |
| 1242 } | 1384 } |
| 1243 | 1385 |
| 1386 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1244 public void ClearO2() { | 1387 public void ClearO2() { |
| 1245 o2Case_ = O2OneofCase.None; | 1388 o2Case_ = O2OneofCase.None; |
| 1246 o2_ = null; | 1389 o2_ = null; |
| 1247 } | 1390 } |
| 1248 | 1391 |
| 1392 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1249 public override bool Equals(object other) { | 1393 public override bool Equals(object other) { |
| 1250 return Equals(other as TestJsonFieldOrdering); | 1394 return Equals(other as TestJsonFieldOrdering); |
| 1251 } | 1395 } |
| 1252 | 1396 |
| 1397 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1253 public bool Equals(TestJsonFieldOrdering other) { | 1398 public bool Equals(TestJsonFieldOrdering other) { |
| 1254 if (ReferenceEquals(other, null)) { | 1399 if (ReferenceEquals(other, null)) { |
| 1255 return false; | 1400 return false; |
| 1256 } | 1401 } |
| 1257 if (ReferenceEquals(other, this)) { | 1402 if (ReferenceEquals(other, this)) { |
| 1258 return true; | 1403 return true; |
| 1259 } | 1404 } |
| 1260 if (PlainInt32 != other.PlainInt32) return false; | 1405 if (PlainInt32 != other.PlainInt32) return false; |
| 1261 if (O1String != other.O1String) return false; | 1406 if (O1String != other.O1String) return false; |
| 1262 if (O1Int32 != other.O1Int32) return false; | 1407 if (O1Int32 != other.O1Int32) return false; |
| 1263 if (PlainString != other.PlainString) return false; | 1408 if (PlainString != other.PlainString) return false; |
| 1264 if (O2Int32 != other.O2Int32) return false; | 1409 if (O2Int32 != other.O2Int32) return false; |
| 1265 if (O2String != other.O2String) return false; | 1410 if (O2String != other.O2String) return false; |
| 1266 if (O1Case != other.O1Case) return false; | 1411 if (O1Case != other.O1Case) return false; |
| 1267 if (O2Case != other.O2Case) return false; | 1412 if (O2Case != other.O2Case) return false; |
| 1268 return true; | 1413 return true; |
| 1269 } | 1414 } |
| 1270 | 1415 |
| 1416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1271 public override int GetHashCode() { | 1417 public override int GetHashCode() { |
| 1272 int hash = 1; | 1418 int hash = 1; |
| 1273 if (PlainInt32 != 0) hash ^= PlainInt32.GetHashCode(); | 1419 if (PlainInt32 != 0) hash ^= PlainInt32.GetHashCode(); |
| 1274 if (o1Case_ == O1OneofCase.O1String) hash ^= O1String.GetHashCode(); | 1420 if (o1Case_ == O1OneofCase.O1String) hash ^= O1String.GetHashCode(); |
| 1275 if (o1Case_ == O1OneofCase.O1Int32) hash ^= O1Int32.GetHashCode(); | 1421 if (o1Case_ == O1OneofCase.O1Int32) hash ^= O1Int32.GetHashCode(); |
| 1276 if (PlainString.Length != 0) hash ^= PlainString.GetHashCode(); | 1422 if (PlainString.Length != 0) hash ^= PlainString.GetHashCode(); |
| 1277 if (o2Case_ == O2OneofCase.O2Int32) hash ^= O2Int32.GetHashCode(); | 1423 if (o2Case_ == O2OneofCase.O2Int32) hash ^= O2Int32.GetHashCode(); |
| 1278 if (o2Case_ == O2OneofCase.O2String) hash ^= O2String.GetHashCode(); | 1424 if (o2Case_ == O2OneofCase.O2String) hash ^= O2String.GetHashCode(); |
| 1279 hash ^= (int) o1Case_; | 1425 hash ^= (int) o1Case_; |
| 1280 hash ^= (int) o2Case_; | 1426 hash ^= (int) o2Case_; |
| 1281 return hash; | 1427 return hash; |
| 1282 } | 1428 } |
| 1283 | 1429 |
| 1430 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1284 public override string ToString() { | 1431 public override string ToString() { |
| 1285 return pb::JsonFormatter.ToDiagnosticString(this); | 1432 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1286 } | 1433 } |
| 1287 | 1434 |
| 1435 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1288 public void WriteTo(pb::CodedOutputStream output) { | 1436 public void WriteTo(pb::CodedOutputStream output) { |
| 1289 if (PlainString.Length != 0) { | 1437 if (PlainString.Length != 0) { |
| 1290 output.WriteRawTag(10); | 1438 output.WriteRawTag(10); |
| 1291 output.WriteString(PlainString); | 1439 output.WriteString(PlainString); |
| 1292 } | 1440 } |
| 1293 if (o1Case_ == O1OneofCase.O1String) { | 1441 if (o1Case_ == O1OneofCase.O1String) { |
| 1294 output.WriteRawTag(18); | 1442 output.WriteRawTag(18); |
| 1295 output.WriteString(O1String); | 1443 output.WriteString(O1String); |
| 1296 } | 1444 } |
| 1297 if (o2Case_ == O2OneofCase.O2String) { | 1445 if (o2Case_ == O2OneofCase.O2String) { |
| 1298 output.WriteRawTag(26); | 1446 output.WriteRawTag(26); |
| 1299 output.WriteString(O2String); | 1447 output.WriteString(O2String); |
| 1300 } | 1448 } |
| 1301 if (PlainInt32 != 0) { | 1449 if (PlainInt32 != 0) { |
| 1302 output.WriteRawTag(32); | 1450 output.WriteRawTag(32); |
| 1303 output.WriteInt32(PlainInt32); | 1451 output.WriteInt32(PlainInt32); |
| 1304 } | 1452 } |
| 1305 if (o1Case_ == O1OneofCase.O1Int32) { | 1453 if (o1Case_ == O1OneofCase.O1Int32) { |
| 1306 output.WriteRawTag(40); | 1454 output.WriteRawTag(40); |
| 1307 output.WriteInt32(O1Int32); | 1455 output.WriteInt32(O1Int32); |
| 1308 } | 1456 } |
| 1309 if (o2Case_ == O2OneofCase.O2Int32) { | 1457 if (o2Case_ == O2OneofCase.O2Int32) { |
| 1310 output.WriteRawTag(48); | 1458 output.WriteRawTag(48); |
| 1311 output.WriteInt32(O2Int32); | 1459 output.WriteInt32(O2Int32); |
| 1312 } | 1460 } |
| 1313 } | 1461 } |
| 1314 | 1462 |
| 1463 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1315 public int CalculateSize() { | 1464 public int CalculateSize() { |
| 1316 int size = 0; | 1465 int size = 0; |
| 1317 if (PlainInt32 != 0) { | 1466 if (PlainInt32 != 0) { |
| 1318 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlainInt32); | 1467 size += 1 + pb::CodedOutputStream.ComputeInt32Size(PlainInt32); |
| 1319 } | 1468 } |
| 1320 if (o1Case_ == O1OneofCase.O1String) { | 1469 if (o1Case_ == O1OneofCase.O1String) { |
| 1321 size += 1 + pb::CodedOutputStream.ComputeStringSize(O1String); | 1470 size += 1 + pb::CodedOutputStream.ComputeStringSize(O1String); |
| 1322 } | 1471 } |
| 1323 if (o1Case_ == O1OneofCase.O1Int32) { | 1472 if (o1Case_ == O1OneofCase.O1Int32) { |
| 1324 size += 1 + pb::CodedOutputStream.ComputeInt32Size(O1Int32); | 1473 size += 1 + pb::CodedOutputStream.ComputeInt32Size(O1Int32); |
| 1325 } | 1474 } |
| 1326 if (PlainString.Length != 0) { | 1475 if (PlainString.Length != 0) { |
| 1327 size += 1 + pb::CodedOutputStream.ComputeStringSize(PlainString); | 1476 size += 1 + pb::CodedOutputStream.ComputeStringSize(PlainString); |
| 1328 } | 1477 } |
| 1329 if (o2Case_ == O2OneofCase.O2Int32) { | 1478 if (o2Case_ == O2OneofCase.O2Int32) { |
| 1330 size += 1 + pb::CodedOutputStream.ComputeInt32Size(O2Int32); | 1479 size += 1 + pb::CodedOutputStream.ComputeInt32Size(O2Int32); |
| 1331 } | 1480 } |
| 1332 if (o2Case_ == O2OneofCase.O2String) { | 1481 if (o2Case_ == O2OneofCase.O2String) { |
| 1333 size += 1 + pb::CodedOutputStream.ComputeStringSize(O2String); | 1482 size += 1 + pb::CodedOutputStream.ComputeStringSize(O2String); |
| 1334 } | 1483 } |
| 1335 return size; | 1484 return size; |
| 1336 } | 1485 } |
| 1337 | 1486 |
| 1487 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1338 public void MergeFrom(TestJsonFieldOrdering other) { | 1488 public void MergeFrom(TestJsonFieldOrdering other) { |
| 1339 if (other == null) { | 1489 if (other == null) { |
| 1340 return; | 1490 return; |
| 1341 } | 1491 } |
| 1342 if (other.PlainInt32 != 0) { | 1492 if (other.PlainInt32 != 0) { |
| 1343 PlainInt32 = other.PlainInt32; | 1493 PlainInt32 = other.PlainInt32; |
| 1344 } | 1494 } |
| 1345 if (other.PlainString.Length != 0) { | 1495 if (other.PlainString.Length != 0) { |
| 1346 PlainString = other.PlainString; | 1496 PlainString = other.PlainString; |
| 1347 } | 1497 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1358 case O2OneofCase.O2Int32: | 1508 case O2OneofCase.O2Int32: |
| 1359 O2Int32 = other.O2Int32; | 1509 O2Int32 = other.O2Int32; |
| 1360 break; | 1510 break; |
| 1361 case O2OneofCase.O2String: | 1511 case O2OneofCase.O2String: |
| 1362 O2String = other.O2String; | 1512 O2String = other.O2String; |
| 1363 break; | 1513 break; |
| 1364 } | 1514 } |
| 1365 | 1515 |
| 1366 } | 1516 } |
| 1367 | 1517 |
| 1518 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1368 public void MergeFrom(pb::CodedInputStream input) { | 1519 public void MergeFrom(pb::CodedInputStream input) { |
| 1369 uint tag; | 1520 uint tag; |
| 1370 while ((tag = input.ReadTag()) != 0) { | 1521 while ((tag = input.ReadTag()) != 0) { |
| 1371 switch(tag) { | 1522 switch(tag) { |
| 1372 default: | 1523 default: |
| 1373 input.SkipLastField(); | 1524 input.SkipLastField(); |
| 1374 break; | 1525 break; |
| 1375 case 10: { | 1526 case 10: { |
| 1376 PlainString = input.ReadString(); | 1527 PlainString = input.ReadString(); |
| 1377 break; | 1528 break; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 1395 case 48: { | 1546 case 48: { |
| 1396 O2Int32 = input.ReadInt32(); | 1547 O2Int32 = input.ReadInt32(); |
| 1397 break; | 1548 break; |
| 1398 } | 1549 } |
| 1399 } | 1550 } |
| 1400 } | 1551 } |
| 1401 } | 1552 } |
| 1402 | 1553 |
| 1403 } | 1554 } |
| 1404 | 1555 |
| 1405 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | |
| 1406 public sealed partial class TestJsonName : pb::IMessage<TestJsonName> { | 1556 public sealed partial class TestJsonName : pb::IMessage<TestJsonName> { |
| 1407 private static readonly pb::MessageParser<TestJsonName> _parser = new pb::Me
ssageParser<TestJsonName>(() => new TestJsonName()); | 1557 private static readonly pb::MessageParser<TestJsonName> _parser = new pb::Me
ssageParser<TestJsonName>(() => new TestJsonName()); |
| 1558 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1408 public static pb::MessageParser<TestJsonName> Parser { get { return _parser;
} } | 1559 public static pb::MessageParser<TestJsonName> Parser { get { return _parser;
} } |
| 1409 | 1560 |
| 1561 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1410 public static pbr::MessageDescriptor Descriptor { | 1562 public static pbr::MessageDescriptor Descriptor { |
| 1411 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[7]; } | 1563 get { return global::UnitTest.Issues.TestProtos.UnittestIssuesReflection.D
escriptor.MessageTypes[7]; } |
| 1412 } | 1564 } |
| 1413 | 1565 |
| 1566 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1414 pbr::MessageDescriptor pb::IMessage.Descriptor { | 1567 pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 1415 get { return Descriptor; } | 1568 get { return Descriptor; } |
| 1416 } | 1569 } |
| 1417 | 1570 |
| 1571 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1418 public TestJsonName() { | 1572 public TestJsonName() { |
| 1419 OnConstruction(); | 1573 OnConstruction(); |
| 1420 } | 1574 } |
| 1421 | 1575 |
| 1422 partial void OnConstruction(); | 1576 partial void OnConstruction(); |
| 1423 | 1577 |
| 1578 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1424 public TestJsonName(TestJsonName other) : this() { | 1579 public TestJsonName(TestJsonName other) : this() { |
| 1425 name_ = other.name_; | 1580 name_ = other.name_; |
| 1426 description_ = other.description_; | 1581 description_ = other.description_; |
| 1427 guid_ = other.guid_; | 1582 guid_ = other.guid_; |
| 1428 } | 1583 } |
| 1429 | 1584 |
| 1585 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1430 public TestJsonName Clone() { | 1586 public TestJsonName Clone() { |
| 1431 return new TestJsonName(this); | 1587 return new TestJsonName(this); |
| 1432 } | 1588 } |
| 1433 | 1589 |
| 1434 /// <summary>Field number for the "name" field.</summary> | 1590 /// <summary>Field number for the "name" field.</summary> |
| 1435 public const int NameFieldNumber = 1; | 1591 public const int NameFieldNumber = 1; |
| 1436 private string name_ = ""; | 1592 private string name_ = ""; |
| 1437 /// <summary> | 1593 /// <summary> |
| 1438 /// Message for testing the effects for of the json_name option | 1594 /// Message for testing the effects for of the json_name option |
| 1439 /// </summary> | 1595 /// </summary> |
| 1596 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1440 public string Name { | 1597 public string Name { |
| 1441 get { return name_; } | 1598 get { return name_; } |
| 1442 set { | 1599 set { |
| 1443 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 1600 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 1444 } | 1601 } |
| 1445 } | 1602 } |
| 1446 | 1603 |
| 1447 /// <summary>Field number for the "description" field.</summary> | 1604 /// <summary>Field number for the "description" field.</summary> |
| 1448 public const int DescriptionFieldNumber = 2; | 1605 public const int DescriptionFieldNumber = 2; |
| 1449 private string description_ = ""; | 1606 private string description_ = ""; |
| 1607 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1450 public string Description { | 1608 public string Description { |
| 1451 get { return description_; } | 1609 get { return description_; } |
| 1452 set { | 1610 set { |
| 1453 description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 1611 description_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 1454 } | 1612 } |
| 1455 } | 1613 } |
| 1456 | 1614 |
| 1457 /// <summary>Field number for the "guid" field.</summary> | 1615 /// <summary>Field number for the "guid" field.</summary> |
| 1458 public const int GuidFieldNumber = 3; | 1616 public const int GuidFieldNumber = 3; |
| 1459 private string guid_ = ""; | 1617 private string guid_ = ""; |
| 1618 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1460 public string Guid { | 1619 public string Guid { |
| 1461 get { return guid_; } | 1620 get { return guid_; } |
| 1462 set { | 1621 set { |
| 1463 guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); | 1622 guid_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 1464 } | 1623 } |
| 1465 } | 1624 } |
| 1466 | 1625 |
| 1626 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1467 public override bool Equals(object other) { | 1627 public override bool Equals(object other) { |
| 1468 return Equals(other as TestJsonName); | 1628 return Equals(other as TestJsonName); |
| 1469 } | 1629 } |
| 1470 | 1630 |
| 1631 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1471 public bool Equals(TestJsonName other) { | 1632 public bool Equals(TestJsonName other) { |
| 1472 if (ReferenceEquals(other, null)) { | 1633 if (ReferenceEquals(other, null)) { |
| 1473 return false; | 1634 return false; |
| 1474 } | 1635 } |
| 1475 if (ReferenceEquals(other, this)) { | 1636 if (ReferenceEquals(other, this)) { |
| 1476 return true; | 1637 return true; |
| 1477 } | 1638 } |
| 1478 if (Name != other.Name) return false; | 1639 if (Name != other.Name) return false; |
| 1479 if (Description != other.Description) return false; | 1640 if (Description != other.Description) return false; |
| 1480 if (Guid != other.Guid) return false; | 1641 if (Guid != other.Guid) return false; |
| 1481 return true; | 1642 return true; |
| 1482 } | 1643 } |
| 1483 | 1644 |
| 1645 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1484 public override int GetHashCode() { | 1646 public override int GetHashCode() { |
| 1485 int hash = 1; | 1647 int hash = 1; |
| 1486 if (Name.Length != 0) hash ^= Name.GetHashCode(); | 1648 if (Name.Length != 0) hash ^= Name.GetHashCode(); |
| 1487 if (Description.Length != 0) hash ^= Description.GetHashCode(); | 1649 if (Description.Length != 0) hash ^= Description.GetHashCode(); |
| 1488 if (Guid.Length != 0) hash ^= Guid.GetHashCode(); | 1650 if (Guid.Length != 0) hash ^= Guid.GetHashCode(); |
| 1489 return hash; | 1651 return hash; |
| 1490 } | 1652 } |
| 1491 | 1653 |
| 1654 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1492 public override string ToString() { | 1655 public override string ToString() { |
| 1493 return pb::JsonFormatter.ToDiagnosticString(this); | 1656 return pb::JsonFormatter.ToDiagnosticString(this); |
| 1494 } | 1657 } |
| 1495 | 1658 |
| 1659 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1496 public void WriteTo(pb::CodedOutputStream output) { | 1660 public void WriteTo(pb::CodedOutputStream output) { |
| 1497 if (Name.Length != 0) { | 1661 if (Name.Length != 0) { |
| 1498 output.WriteRawTag(10); | 1662 output.WriteRawTag(10); |
| 1499 output.WriteString(Name); | 1663 output.WriteString(Name); |
| 1500 } | 1664 } |
| 1501 if (Description.Length != 0) { | 1665 if (Description.Length != 0) { |
| 1502 output.WriteRawTag(18); | 1666 output.WriteRawTag(18); |
| 1503 output.WriteString(Description); | 1667 output.WriteString(Description); |
| 1504 } | 1668 } |
| 1505 if (Guid.Length != 0) { | 1669 if (Guid.Length != 0) { |
| 1506 output.WriteRawTag(26); | 1670 output.WriteRawTag(26); |
| 1507 output.WriteString(Guid); | 1671 output.WriteString(Guid); |
| 1508 } | 1672 } |
| 1509 } | 1673 } |
| 1510 | 1674 |
| 1675 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1511 public int CalculateSize() { | 1676 public int CalculateSize() { |
| 1512 int size = 0; | 1677 int size = 0; |
| 1513 if (Name.Length != 0) { | 1678 if (Name.Length != 0) { |
| 1514 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); | 1679 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
| 1515 } | 1680 } |
| 1516 if (Description.Length != 0) { | 1681 if (Description.Length != 0) { |
| 1517 size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); | 1682 size += 1 + pb::CodedOutputStream.ComputeStringSize(Description); |
| 1518 } | 1683 } |
| 1519 if (Guid.Length != 0) { | 1684 if (Guid.Length != 0) { |
| 1520 size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid); | 1685 size += 1 + pb::CodedOutputStream.ComputeStringSize(Guid); |
| 1521 } | 1686 } |
| 1522 return size; | 1687 return size; |
| 1523 } | 1688 } |
| 1524 | 1689 |
| 1690 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1525 public void MergeFrom(TestJsonName other) { | 1691 public void MergeFrom(TestJsonName other) { |
| 1526 if (other == null) { | 1692 if (other == null) { |
| 1527 return; | 1693 return; |
| 1528 } | 1694 } |
| 1529 if (other.Name.Length != 0) { | 1695 if (other.Name.Length != 0) { |
| 1530 Name = other.Name; | 1696 Name = other.Name; |
| 1531 } | 1697 } |
| 1532 if (other.Description.Length != 0) { | 1698 if (other.Description.Length != 0) { |
| 1533 Description = other.Description; | 1699 Description = other.Description; |
| 1534 } | 1700 } |
| 1535 if (other.Guid.Length != 0) { | 1701 if (other.Guid.Length != 0) { |
| 1536 Guid = other.Guid; | 1702 Guid = other.Guid; |
| 1537 } | 1703 } |
| 1538 } | 1704 } |
| 1539 | 1705 |
| 1706 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1540 public void MergeFrom(pb::CodedInputStream input) { | 1707 public void MergeFrom(pb::CodedInputStream input) { |
| 1541 uint tag; | 1708 uint tag; |
| 1542 while ((tag = input.ReadTag()) != 0) { | 1709 while ((tag = input.ReadTag()) != 0) { |
| 1543 switch(tag) { | 1710 switch(tag) { |
| 1544 default: | 1711 default: |
| 1545 input.SkipLastField(); | 1712 input.SkipLastField(); |
| 1546 break; | 1713 break; |
| 1547 case 10: { | 1714 case 10: { |
| 1548 Name = input.ReadString(); | 1715 Name = input.ReadString(); |
| 1549 break; | 1716 break; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1560 } | 1727 } |
| 1561 } | 1728 } |
| 1562 | 1729 |
| 1563 } | 1730 } |
| 1564 | 1731 |
| 1565 #endregion | 1732 #endregion |
| 1566 | 1733 |
| 1567 } | 1734 } |
| 1568 | 1735 |
| 1569 #endregion Designer generated code | 1736 #endregion Designer generated code |
| OLD | NEW |