blob: fecebf1b11b538a88fbc6292c326af3b4b59f9a5 [file] [log] [blame]
csharptest35b68522011-05-20 12:22:21 -05001// Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
Jon Skeet82bb0f12011-04-03 20:17:12 +01002
3using pb = global::Google.ProtocolBuffers;
4using pbc = global::Google.ProtocolBuffers.Collections;
5using pbd = global::Google.ProtocolBuffers.Descriptors;
6using scg = global::System.Collections.Generic;
csharptest71f662c2011-05-20 15:15:34 -05007
8namespace Google.ProtocolBuffers.DescriptorProtos
9{
10 public static partial class CSharpOptions
11 {
12 #region Extension registration
13
14 public static void RegisterAllExtensions(pb::ExtensionRegistry registry)
15 {
16 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
17 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
18 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions);
19 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions);
20 }
21
22 #endregion
23
24 #region Extensions
25
26 public const int CSharpFileOptionsFieldNumber = 1000;
27
28 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>
29 CSharpFileOptions;
30
31 public const int CSharpFieldOptionsFieldNumber = 1000;
32
33 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>
34 CSharpFieldOptions;
35
36 public const int CsharpServiceOptionsFieldNumber = 1000;
37
38 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>
39 CsharpServiceOptions;
40
41 public const int CsharpMethodOptionsFieldNumber = 1000;
42
43 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>
44 CsharpMethodOptions;
45
46 #endregion
47
48 #region Static variables
49
50 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
51
52 internal static
53 pb::FieldAccess.FieldAccessorTable
54 <global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions,
55 global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>
56 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
57
58 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
59
60 internal static
61 pb::FieldAccess.FieldAccessorTable
62 <global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions,
63 global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>
64 internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
65
66 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
67
68 internal static
69 pb::FieldAccess.FieldAccessorTable
70 <global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions,
71 global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>
72 internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
73
74 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
75
76 internal static
77 pb::FieldAccess.FieldAccessorTable
78 <global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions,
79 global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>
80 internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
81
82 #endregion
83
84 #region Descriptor
85
86 public static pbd::FileDescriptor Descriptor
87 {
88 get { return descriptor; }
89 }
90
91 private static pbd::FileDescriptor descriptor;
92
93 static CSharpOptions()
94 {
95 byte[] descriptorData = global::System.Convert.FromBase64String(
96 "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
97 "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
98 "tgMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
99 "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
100 "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
101 "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
102 "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
103 "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
104 "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
105 "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
106 "ZmFsc2USSQoWc2VydmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29n" +
107 "bGUucHJvdG9idWYuQ1NoYXJwU2VydmljZVR5cGU6BE5PTkUiKwoSQ1NoYXJw" +
108 "RmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1NoYXJw" +
109 "U2VydmljZU9wdGlvbnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NTaGFy" +
110 "cE1ldGhvZE9wdGlvbnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqSwoRQ1NoYXJw" +
111 "U2VydmljZVR5cGUSCAoETk9ORRAAEgsKB0dFTkVSSUMQARINCglJTlRFUkZB" +
112 "Q0UQAhIQCgxJUlBDRElTUEFUQ0gQAzpeChNjc2hhcnBfZmlsZV9vcHRpb25z" +
113 "EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGOgHIAEoCzIiLmdvb2ds" +
114 "ZS5wcm90b2J1Zi5DU2hhcnBGaWxlT3B0aW9uczphChRjc2hhcnBfZmllbGRf" +
115 "b3B0aW9ucxIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6AcgASgL" +
116 "MiMuZ29vZ2xlLnByb3RvYnVmLkNTaGFycEZpZWxkT3B0aW9uczpnChZjc2hh" +
117 "cnBfc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP" +
118 "cHRpb25zGOgHIAEoCzIlLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBTZXJ2aWNl" +
119 "T3B0aW9uczpkChVjc2hhcnBfbWV0aG9kX29wdGlvbnMSHi5nb29nbGUucHJv" +
120 "dG9idWYuTWV0aG9kT3B0aW9ucxjoByABKAsyJC5nb29nbGUucHJvdG9idWYu" +
121 "Q1NoYXJwTWV0aG9kT3B0aW9ucw==");
122 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root)
123 {
124 descriptor = root;
125 internal__static_google_protobuf_CSharpFileOptions__Descriptor
126 = Descriptor.MessageTypes[0];
127 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable
128 =
129 new pb::FieldAccess.FieldAccessorTable
130 <
131 global::Google.ProtocolBuffers
132 .DescriptorProtos.
133 CSharpFileOptions,
134 global::Google.ProtocolBuffers
135 .DescriptorProtos.
136 CSharpFileOptions.Builder>
137 (internal__static_google_protobuf_CSharpFileOptions__Descriptor,
138 new string[]
139 {
140 "Namespace",
141 "UmbrellaClassname",
142 "PublicClasses",
143 "MultipleFiles",
144 "NestClasses",
145 "CodeContracts",
146 "ExpandNamespaceDirectories"
147 , "ClsCompliance",
148 "FileExtension",
149 "UmbrellaNamespace",
150 "OutputDirectory",
151 "IgnoreGoogleProtobuf",
152 "ServiceGeneratorType",
153 });
154 internal__static_google_protobuf_CSharpFieldOptions__Descriptor
155 = Descriptor.MessageTypes[1];
156 internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable
157 =
158 new pb::FieldAccess.FieldAccessorTable
159 <
160 global::Google.ProtocolBuffers
161 .DescriptorProtos.
162 CSharpFieldOptions,
163 global::Google.ProtocolBuffers
164 .DescriptorProtos.
165 CSharpFieldOptions.Builder
166 >(
167 internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
168 new string[] {"PropertyName",});
169 internal__static_google_protobuf_CSharpServiceOptions__Descriptor
170 = Descriptor.MessageTypes[2];
171 internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable
172 =
173 new pb::FieldAccess.FieldAccessorTable
174 <
175 global::Google.ProtocolBuffers
176 .DescriptorProtos.
177 CSharpServiceOptions,
178 global::Google.ProtocolBuffers
179 .DescriptorProtos.
180 CSharpServiceOptions.
181 Builder>(
182 internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
183 new string[] {"InterfaceId",});
184 internal__static_google_protobuf_CSharpMethodOptions__Descriptor
185 = Descriptor.MessageTypes[3];
186 internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable
187 =
188 new pb::FieldAccess.FieldAccessorTable
189 <
190 global::Google.ProtocolBuffers
191 .DescriptorProtos.
192 CSharpMethodOptions,
193 global::Google.ProtocolBuffers
194 .DescriptorProtos.
195 CSharpMethodOptions.
196 Builder>(
197 internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
198 new string[] {"DispatchId",});
199 global::Google.ProtocolBuffers.
200 DescriptorProtos.CSharpOptions.
201 CSharpFileOptions =
202 pb::GeneratedSingleExtension
203 <
204 global::Google.ProtocolBuffers
205 .DescriptorProtos.
206 CSharpFileOptions>.
207 CreateInstance(
208 global::Google.ProtocolBuffers
209 .DescriptorProtos.
210 CSharpOptions.Descriptor.
211 Extensions[0]);
212 global::Google.ProtocolBuffers.
213 DescriptorProtos.CSharpOptions.
214 CSharpFieldOptions =
215 pb::GeneratedSingleExtension
216 <
217 global::Google.ProtocolBuffers
218 .DescriptorProtos.
219 CSharpFieldOptions>.
220 CreateInstance(
221 global::Google.ProtocolBuffers
222 .DescriptorProtos.
223 CSharpOptions.Descriptor.
224 Extensions[1]);
225 global::Google.ProtocolBuffers.
226 DescriptorProtos.CSharpOptions.
227 CsharpServiceOptions =
228 pb::GeneratedSingleExtension
229 <
230 global::Google.ProtocolBuffers
231 .DescriptorProtos.
232 CSharpServiceOptions>.
233 CreateInstance(
234 global::Google.ProtocolBuffers
235 .DescriptorProtos.
236 CSharpOptions.Descriptor.
237 Extensions[2]);
238 global::Google.ProtocolBuffers.
239 DescriptorProtos.CSharpOptions.
240 CsharpMethodOptions =
241 pb::GeneratedSingleExtension
242 <
243 global::Google.ProtocolBuffers
244 .DescriptorProtos.
245 CSharpMethodOptions>.
246 CreateInstance(
247 global::Google.ProtocolBuffers
248 .DescriptorProtos.
249 CSharpOptions.Descriptor.
250 Extensions[3]);
251 return null;
252 };
253 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
254 new pbd::FileDescriptor[]
255 {
256 global::Google.ProtocolBuffers.DescriptorProtos.
257 DescriptorProtoFile.Descriptor,
258 }, assigner);
259 }
260
261 #endregion
Jon Skeet82bb0f12011-04-03 20:17:12 +0100262 }
csharptest71f662c2011-05-20 15:15:34 -0500263
264 #region Enums
265
266 public enum CSharpServiceType
267 {
268 NONE = 0,
269 GENERIC = 1,
270 INTERFACE = 2,
271 IRPCDISPATCH = 3,
272 }
273
Jon Skeet82bb0f12011-04-03 20:17:12 +0100274 #endregion
csharptest71f662c2011-05-20 15:15:34 -0500275
276 #region Messages
277
278 public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder>
279 {
280 private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
281
282 public static CSharpFileOptions DefaultInstance
283 {
284 get { return defaultInstance; }
285 }
286
287 public override CSharpFileOptions DefaultInstanceForType
288 {
289 get { return defaultInstance; }
290 }
291
292 protected override CSharpFileOptions ThisMessage
293 {
294 get { return this; }
295 }
296
297 public static pbd::MessageDescriptor Descriptor
298 {
299 get
300 {
301 return
302 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
303 internal__static_google_protobuf_CSharpFileOptions__Descriptor;
304 }
305 }
306
307 protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder>
308 InternalFieldAccessors
309 {
310 get
311 {
312 return
313 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
314 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
315 }
316 }
317
318 public const int NamespaceFieldNumber = 1;
319 private bool hasNamespace;
320 private string namespace_ = "";
321
322 public bool HasNamespace
323 {
324 get { return hasNamespace; }
325 }
326
327 public string Namespace
328 {
329 get { return namespace_; }
330 }
331
332 public const int UmbrellaClassnameFieldNumber = 2;
333 private bool hasUmbrellaClassname;
334 private string umbrellaClassname_ = "";
335
336 public bool HasUmbrellaClassname
337 {
338 get { return hasUmbrellaClassname; }
339 }
340
341 public string UmbrellaClassname
342 {
343 get { return umbrellaClassname_; }
344 }
345
346 public const int PublicClassesFieldNumber = 3;
347 private bool hasPublicClasses;
348 private bool publicClasses_ = true;
349
350 public bool HasPublicClasses
351 {
352 get { return hasPublicClasses; }
353 }
354
355 public bool PublicClasses
356 {
357 get { return publicClasses_; }
358 }
359
360 public const int MultipleFilesFieldNumber = 4;
361 private bool hasMultipleFiles;
362 private bool multipleFiles_ = false;
363
364 public bool HasMultipleFiles
365 {
366 get { return hasMultipleFiles; }
367 }
368
369 public bool MultipleFiles
370 {
371 get { return multipleFiles_; }
372 }
373
374 public const int NestClassesFieldNumber = 5;
375 private bool hasNestClasses;
376 private bool nestClasses_ = false;
377
378 public bool HasNestClasses
379 {
380 get { return hasNestClasses; }
381 }
382
383 public bool NestClasses
384 {
385 get { return nestClasses_; }
386 }
387
388 public const int CodeContractsFieldNumber = 6;
389 private bool hasCodeContracts;
390 private bool codeContracts_ = false;
391
392 public bool HasCodeContracts
393 {
394 get { return hasCodeContracts; }
395 }
396
397 public bool CodeContracts
398 {
399 get { return codeContracts_; }
400 }
401
402 public const int ExpandNamespaceDirectoriesFieldNumber = 7;
403 private bool hasExpandNamespaceDirectories;
404 private bool expandNamespaceDirectories_ = false;
405
406 public bool HasExpandNamespaceDirectories
407 {
408 get { return hasExpandNamespaceDirectories; }
409 }
410
411 public bool ExpandNamespaceDirectories
412 {
413 get { return expandNamespaceDirectories_; }
414 }
415
416 public const int ClsComplianceFieldNumber = 8;
417 private bool hasClsCompliance;
418 private bool clsCompliance_ = true;
419
420 public bool HasClsCompliance
421 {
422 get { return hasClsCompliance; }
423 }
424
425 public bool ClsCompliance
426 {
427 get { return clsCompliance_; }
428 }
429
430 public const int FileExtensionFieldNumber = 221;
431 private bool hasFileExtension;
432 private string fileExtension_ = ".cs";
433
434 public bool HasFileExtension
435 {
436 get { return hasFileExtension; }
437 }
438
439 public string FileExtension
440 {
441 get { return fileExtension_; }
442 }
443
444 public const int UmbrellaNamespaceFieldNumber = 222;
445 private bool hasUmbrellaNamespace;
446 private string umbrellaNamespace_ = "";
447
448 public bool HasUmbrellaNamespace
449 {
450 get { return hasUmbrellaNamespace; }
451 }
452
453 public string UmbrellaNamespace
454 {
455 get { return umbrellaNamespace_; }
456 }
457
458 public const int OutputDirectoryFieldNumber = 223;
459 private bool hasOutputDirectory;
460 private string outputDirectory_ = ".";
461
462 public bool HasOutputDirectory
463 {
464 get { return hasOutputDirectory; }
465 }
466
467 public string OutputDirectory
468 {
469 get { return outputDirectory_; }
470 }
471
472 public const int IgnoreGoogleProtobufFieldNumber = 224;
473 private bool hasIgnoreGoogleProtobuf;
474 private bool ignoreGoogleProtobuf_ = false;
475
476 public bool HasIgnoreGoogleProtobuf
477 {
478 get { return hasIgnoreGoogleProtobuf; }
479 }
480
481 public bool IgnoreGoogleProtobuf
482 {
483 get { return ignoreGoogleProtobuf_; }
484 }
485
486 public const int ServiceGeneratorTypeFieldNumber = 225;
487 private bool hasServiceGeneratorType;
488
489 private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ =
490 global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
491
492 public bool HasServiceGeneratorType
493 {
494 get { return hasServiceGeneratorType; }
495 }
496
497 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType
498 {
499 get { return serviceGeneratorType_; }
500 }
501
502 public override bool IsInitialized
503 {
504 get { return true; }
505 }
506
507 public override void WriteTo(pb::CodedOutputStream output)
508 {
509 int size = SerializedSize;
510 if (HasNamespace)
511 {
512 output.WriteString(1, Namespace);
513 }
514 if (HasUmbrellaClassname)
515 {
516 output.WriteString(2, UmbrellaClassname);
517 }
518 if (HasPublicClasses)
519 {
520 output.WriteBool(3, PublicClasses);
521 }
522 if (HasMultipleFiles)
523 {
524 output.WriteBool(4, MultipleFiles);
525 }
526 if (HasNestClasses)
527 {
528 output.WriteBool(5, NestClasses);
529 }
530 if (HasCodeContracts)
531 {
532 output.WriteBool(6, CodeContracts);
533 }
534 if (HasExpandNamespaceDirectories)
535 {
536 output.WriteBool(7, ExpandNamespaceDirectories);
537 }
538 if (HasClsCompliance)
539 {
540 output.WriteBool(8, ClsCompliance);
541 }
542 if (HasFileExtension)
543 {
544 output.WriteString(221, FileExtension);
545 }
546 if (HasUmbrellaNamespace)
547 {
548 output.WriteString(222, UmbrellaNamespace);
549 }
550 if (HasOutputDirectory)
551 {
552 output.WriteString(223, OutputDirectory);
553 }
554 if (HasIgnoreGoogleProtobuf)
555 {
556 output.WriteBool(224, IgnoreGoogleProtobuf);
557 }
558 if (HasServiceGeneratorType)
559 {
560 output.WriteEnum(225, (int) ServiceGeneratorType);
561 }
562 UnknownFields.WriteTo(output);
563 }
564
565 private int memoizedSerializedSize = -1;
566
567 public override int SerializedSize
568 {
569 get
570 {
571 int size = memoizedSerializedSize;
572 if (size != -1) return size;
573
574 size = 0;
575 if (HasNamespace)
576 {
577 size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
578 }
579 if (HasUmbrellaClassname)
580 {
581 size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
582 }
583 if (HasPublicClasses)
584 {
585 size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
586 }
587 if (HasMultipleFiles)
588 {
589 size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
590 }
591 if (HasNestClasses)
592 {
593 size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
594 }
595 if (HasCodeContracts)
596 {
597 size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
598 }
599 if (HasExpandNamespaceDirectories)
600 {
601 size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
602 }
603 if (HasClsCompliance)
604 {
605 size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
606 }
607 if (HasFileExtension)
608 {
609 size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
610 }
611 if (HasUmbrellaNamespace)
612 {
613 size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
614 }
615 if (HasOutputDirectory)
616 {
617 size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
618 }
619 if (HasIgnoreGoogleProtobuf)
620 {
621 size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
622 }
623 if (HasServiceGeneratorType)
624 {
625 size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
626 }
627 size += UnknownFields.SerializedSize;
628 memoizedSerializedSize = size;
629 return size;
630 }
631 }
632
633 public static CSharpFileOptions ParseFrom(pb::ByteString data)
634 {
635 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
636 }
637
638 public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry)
639 {
640 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
641 }
642
643 public static CSharpFileOptions ParseFrom(byte[] data)
644 {
645 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
646 }
647
648 public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry)
649 {
650 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
651 }
652
653 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input)
654 {
655 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
656 }
657
658 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input,
659 pb::ExtensionRegistry extensionRegistry)
660 {
661 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
662 }
663
664 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input)
665 {
666 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
667 }
668
669 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input,
670 pb::ExtensionRegistry extensionRegistry)
671 {
672 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
673 }
674
675 public static CSharpFileOptions ParseFrom(pb::CodedInputStream input)
676 {
677 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
678 }
679
680 public static CSharpFileOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
681 {
682 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
683 }
684
685 public static Builder CreateBuilder()
686 {
687 return new Builder();
688 }
689
690 public override Builder ToBuilder()
691 {
692 return CreateBuilder(this);
693 }
694
695 public override Builder CreateBuilderForType()
696 {
697 return new Builder();
698 }
699
700 public static Builder CreateBuilder(CSharpFileOptions prototype)
701 {
702 return (Builder) new Builder().MergeFrom(prototype);
703 }
704
705 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder>
706 {
707 protected override Builder ThisBuilder
708 {
709 get { return this; }
710 }
711
712 public Builder()
713 {
714 }
715
716 private CSharpFileOptions result = new CSharpFileOptions();
717
718 protected override CSharpFileOptions MessageBeingBuilt
719 {
720 get { return result; }
721 }
722
723 public override Builder Clear()
724 {
725 result = new CSharpFileOptions();
726 return this;
727 }
728
729 public override Builder Clone()
730 {
731 return new Builder().MergeFrom(result);
732 }
733
734 public override pbd::MessageDescriptor DescriptorForType
735 {
736 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
737 }
738
739 public override CSharpFileOptions DefaultInstanceForType
740 {
741 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
742 }
743
744 public override CSharpFileOptions BuildPartial()
745 {
746 if (result == null)
747 {
748 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
749 }
750 CSharpFileOptions returnMe = result;
751 result = null;
752 return returnMe;
753 }
754
755 public override Builder MergeFrom(pb::IMessage other)
756 {
757 if (other is CSharpFileOptions)
758 {
759 return MergeFrom((CSharpFileOptions) other);
760 }
761 else
762 {
763 base.MergeFrom(other);
764 return this;
765 }
766 }
767
768 public override Builder MergeFrom(CSharpFileOptions other)
769 {
770 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance)
771 return this;
772 if (other.HasNamespace)
773 {
774 Namespace = other.Namespace;
775 }
776 if (other.HasUmbrellaClassname)
777 {
778 UmbrellaClassname = other.UmbrellaClassname;
779 }
780 if (other.HasPublicClasses)
781 {
782 PublicClasses = other.PublicClasses;
783 }
784 if (other.HasMultipleFiles)
785 {
786 MultipleFiles = other.MultipleFiles;
787 }
788 if (other.HasNestClasses)
789 {
790 NestClasses = other.NestClasses;
791 }
792 if (other.HasCodeContracts)
793 {
794 CodeContracts = other.CodeContracts;
795 }
796 if (other.HasExpandNamespaceDirectories)
797 {
798 ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
799 }
800 if (other.HasClsCompliance)
801 {
802 ClsCompliance = other.ClsCompliance;
803 }
804 if (other.HasFileExtension)
805 {
806 FileExtension = other.FileExtension;
807 }
808 if (other.HasUmbrellaNamespace)
809 {
810 UmbrellaNamespace = other.UmbrellaNamespace;
811 }
812 if (other.HasOutputDirectory)
813 {
814 OutputDirectory = other.OutputDirectory;
815 }
816 if (other.HasIgnoreGoogleProtobuf)
817 {
818 IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
819 }
820 if (other.HasServiceGeneratorType)
821 {
822 ServiceGeneratorType = other.ServiceGeneratorType;
823 }
824 this.MergeUnknownFields(other.UnknownFields);
825 return this;
826 }
827
828 public override Builder MergeFrom(pb::CodedInputStream input)
829 {
830 return MergeFrom(input, pb::ExtensionRegistry.Empty);
831 }
832
833 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
834 {
835 pb::UnknownFieldSet.Builder unknownFields = null;
836 while (true)
837 {
838 uint tag = input.ReadTag();
839 switch (tag)
840 {
841 case 0:
842 {
843 if (unknownFields != null)
844 {
845 this.UnknownFields = unknownFields.Build();
846 }
847 return this;
848 }
849 default:
850 {
851 if (pb::WireFormat.IsEndGroupTag(tag))
852 {
853 if (unknownFields != null)
854 {
855 this.UnknownFields = unknownFields.Build();
856 }
857 return this;
858 }
859 if (unknownFields == null)
860 {
861 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
862 }
863 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
864 break;
865 }
866 case 10:
867 {
868 Namespace = input.ReadString();
869 break;
870 }
871 case 18:
872 {
873 UmbrellaClassname = input.ReadString();
874 break;
875 }
876 case 24:
877 {
878 PublicClasses = input.ReadBool();
879 break;
880 }
881 case 32:
882 {
883 MultipleFiles = input.ReadBool();
884 break;
885 }
886 case 40:
887 {
888 NestClasses = input.ReadBool();
889 break;
890 }
891 case 48:
892 {
893 CodeContracts = input.ReadBool();
894 break;
895 }
896 case 56:
897 {
898 ExpandNamespaceDirectories = input.ReadBool();
899 break;
900 }
901 case 64:
902 {
903 ClsCompliance = input.ReadBool();
904 break;
905 }
906 case 1770:
907 {
908 FileExtension = input.ReadString();
909 break;
910 }
911 case 1778:
912 {
913 UmbrellaNamespace = input.ReadString();
914 break;
915 }
916 case 1786:
917 {
918 OutputDirectory = input.ReadString();
919 break;
920 }
921 case 1792:
922 {
923 IgnoreGoogleProtobuf = input.ReadBool();
924 break;
925 }
926 case 1800:
927 {
928 int rawValue = input.ReadEnum();
929 if (
930 !global::System.Enum.IsDefined(
931 typeof (global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType),
932 rawValue))
933 {
934 if (unknownFields == null)
935 {
936 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
937 }
938 unknownFields.MergeVarintField(225, (ulong) rawValue);
939 }
940 else
941 {
942 ServiceGeneratorType =
943 (global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType) rawValue;
944 }
945 break;
946 }
947 }
948 }
949 }
950
951
952 public bool HasNamespace
953 {
954 get { return result.HasNamespace; }
955 }
956
957 public string Namespace
958 {
959 get { return result.Namespace; }
960 set { SetNamespace(value); }
961 }
962
963 public Builder SetNamespace(string value)
964 {
965 pb::ThrowHelper.ThrowIfNull(value, "value");
966 result.hasNamespace = true;
967 result.namespace_ = value;
968 return this;
969 }
970
971 public Builder ClearNamespace()
972 {
973 result.hasNamespace = false;
974 result.namespace_ = "";
975 return this;
976 }
977
978 public bool HasUmbrellaClassname
979 {
980 get { return result.HasUmbrellaClassname; }
981 }
982
983 public string UmbrellaClassname
984 {
985 get { return result.UmbrellaClassname; }
986 set { SetUmbrellaClassname(value); }
987 }
988
989 public Builder SetUmbrellaClassname(string value)
990 {
991 pb::ThrowHelper.ThrowIfNull(value, "value");
992 result.hasUmbrellaClassname = true;
993 result.umbrellaClassname_ = value;
994 return this;
995 }
996
997 public Builder ClearUmbrellaClassname()
998 {
999 result.hasUmbrellaClassname = false;
1000 result.umbrellaClassname_ = "";
1001 return this;
1002 }
1003
1004 public bool HasPublicClasses
1005 {
1006 get { return result.HasPublicClasses; }
1007 }
1008
1009 public bool PublicClasses
1010 {
1011 get { return result.PublicClasses; }
1012 set { SetPublicClasses(value); }
1013 }
1014
1015 public Builder SetPublicClasses(bool value)
1016 {
1017 result.hasPublicClasses = true;
1018 result.publicClasses_ = value;
1019 return this;
1020 }
1021
1022 public Builder ClearPublicClasses()
1023 {
1024 result.hasPublicClasses = false;
1025 result.publicClasses_ = true;
1026 return this;
1027 }
1028
1029 public bool HasMultipleFiles
1030 {
1031 get { return result.HasMultipleFiles; }
1032 }
1033
1034 public bool MultipleFiles
1035 {
1036 get { return result.MultipleFiles; }
1037 set { SetMultipleFiles(value); }
1038 }
1039
1040 public Builder SetMultipleFiles(bool value)
1041 {
1042 result.hasMultipleFiles = true;
1043 result.multipleFiles_ = value;
1044 return this;
1045 }
1046
1047 public Builder ClearMultipleFiles()
1048 {
1049 result.hasMultipleFiles = false;
1050 result.multipleFiles_ = false;
1051 return this;
1052 }
1053
1054 public bool HasNestClasses
1055 {
1056 get { return result.HasNestClasses; }
1057 }
1058
1059 public bool NestClasses
1060 {
1061 get { return result.NestClasses; }
1062 set { SetNestClasses(value); }
1063 }
1064
1065 public Builder SetNestClasses(bool value)
1066 {
1067 result.hasNestClasses = true;
1068 result.nestClasses_ = value;
1069 return this;
1070 }
1071
1072 public Builder ClearNestClasses()
1073 {
1074 result.hasNestClasses = false;
1075 result.nestClasses_ = false;
1076 return this;
1077 }
1078
1079 public bool HasCodeContracts
1080 {
1081 get { return result.HasCodeContracts; }
1082 }
1083
1084 public bool CodeContracts
1085 {
1086 get { return result.CodeContracts; }
1087 set { SetCodeContracts(value); }
1088 }
1089
1090 public Builder SetCodeContracts(bool value)
1091 {
1092 result.hasCodeContracts = true;
1093 result.codeContracts_ = value;
1094 return this;
1095 }
1096
1097 public Builder ClearCodeContracts()
1098 {
1099 result.hasCodeContracts = false;
1100 result.codeContracts_ = false;
1101 return this;
1102 }
1103
1104 public bool HasExpandNamespaceDirectories
1105 {
1106 get { return result.HasExpandNamespaceDirectories; }
1107 }
1108
1109 public bool ExpandNamespaceDirectories
1110 {
1111 get { return result.ExpandNamespaceDirectories; }
1112 set { SetExpandNamespaceDirectories(value); }
1113 }
1114
1115 public Builder SetExpandNamespaceDirectories(bool value)
1116 {
1117 result.hasExpandNamespaceDirectories = true;
1118 result.expandNamespaceDirectories_ = value;
1119 return this;
1120 }
1121
1122 public Builder ClearExpandNamespaceDirectories()
1123 {
1124 result.hasExpandNamespaceDirectories = false;
1125 result.expandNamespaceDirectories_ = false;
1126 return this;
1127 }
1128
1129 public bool HasClsCompliance
1130 {
1131 get { return result.HasClsCompliance; }
1132 }
1133
1134 public bool ClsCompliance
1135 {
1136 get { return result.ClsCompliance; }
1137 set { SetClsCompliance(value); }
1138 }
1139
1140 public Builder SetClsCompliance(bool value)
1141 {
1142 result.hasClsCompliance = true;
1143 result.clsCompliance_ = value;
1144 return this;
1145 }
1146
1147 public Builder ClearClsCompliance()
1148 {
1149 result.hasClsCompliance = false;
1150 result.clsCompliance_ = true;
1151 return this;
1152 }
1153
1154 public bool HasFileExtension
1155 {
1156 get { return result.HasFileExtension; }
1157 }
1158
1159 public string FileExtension
1160 {
1161 get { return result.FileExtension; }
1162 set { SetFileExtension(value); }
1163 }
1164
1165 public Builder SetFileExtension(string value)
1166 {
1167 pb::ThrowHelper.ThrowIfNull(value, "value");
1168 result.hasFileExtension = true;
1169 result.fileExtension_ = value;
1170 return this;
1171 }
1172
1173 public Builder ClearFileExtension()
1174 {
1175 result.hasFileExtension = false;
1176 result.fileExtension_ = ".cs";
1177 return this;
1178 }
1179
1180 public bool HasUmbrellaNamespace
1181 {
1182 get { return result.HasUmbrellaNamespace; }
1183 }
1184
1185 public string UmbrellaNamespace
1186 {
1187 get { return result.UmbrellaNamespace; }
1188 set { SetUmbrellaNamespace(value); }
1189 }
1190
1191 public Builder SetUmbrellaNamespace(string value)
1192 {
1193 pb::ThrowHelper.ThrowIfNull(value, "value");
1194 result.hasUmbrellaNamespace = true;
1195 result.umbrellaNamespace_ = value;
1196 return this;
1197 }
1198
1199 public Builder ClearUmbrellaNamespace()
1200 {
1201 result.hasUmbrellaNamespace = false;
1202 result.umbrellaNamespace_ = "";
1203 return this;
1204 }
1205
1206 public bool HasOutputDirectory
1207 {
1208 get { return result.HasOutputDirectory; }
1209 }
1210
1211 public string OutputDirectory
1212 {
1213 get { return result.OutputDirectory; }
1214 set { SetOutputDirectory(value); }
1215 }
1216
1217 public Builder SetOutputDirectory(string value)
1218 {
1219 pb::ThrowHelper.ThrowIfNull(value, "value");
1220 result.hasOutputDirectory = true;
1221 result.outputDirectory_ = value;
1222 return this;
1223 }
1224
1225 public Builder ClearOutputDirectory()
1226 {
1227 result.hasOutputDirectory = false;
1228 result.outputDirectory_ = ".";
1229 return this;
1230 }
1231
1232 public bool HasIgnoreGoogleProtobuf
1233 {
1234 get { return result.HasIgnoreGoogleProtobuf; }
1235 }
1236
1237 public bool IgnoreGoogleProtobuf
1238 {
1239 get { return result.IgnoreGoogleProtobuf; }
1240 set { SetIgnoreGoogleProtobuf(value); }
1241 }
1242
1243 public Builder SetIgnoreGoogleProtobuf(bool value)
1244 {
1245 result.hasIgnoreGoogleProtobuf = true;
1246 result.ignoreGoogleProtobuf_ = value;
1247 return this;
1248 }
1249
1250 public Builder ClearIgnoreGoogleProtobuf()
1251 {
1252 result.hasIgnoreGoogleProtobuf = false;
1253 result.ignoreGoogleProtobuf_ = false;
1254 return this;
1255 }
1256
1257 public bool HasServiceGeneratorType
1258 {
1259 get { return result.HasServiceGeneratorType; }
1260 }
1261
1262 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType
1263 {
1264 get { return result.ServiceGeneratorType; }
1265 set { SetServiceGeneratorType(value); }
1266 }
1267
1268 public Builder SetServiceGeneratorType(
1269 global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value)
1270 {
1271 result.hasServiceGeneratorType = true;
1272 result.serviceGeneratorType_ = value;
1273 return this;
1274 }
1275
1276 public Builder ClearServiceGeneratorType()
1277 {
1278 result.hasServiceGeneratorType = false;
1279 result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
1280 return this;
1281 }
1282 }
1283
1284 static CSharpFileOptions()
1285 {
1286 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1287 }
1288 }
1289
1290 public sealed partial class CSharpFieldOptions :
1291 pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder>
1292 {
1293 private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
1294
1295 public static CSharpFieldOptions DefaultInstance
1296 {
1297 get { return defaultInstance; }
1298 }
1299
1300 public override CSharpFieldOptions DefaultInstanceForType
1301 {
1302 get { return defaultInstance; }
1303 }
1304
1305 protected override CSharpFieldOptions ThisMessage
1306 {
1307 get { return this; }
1308 }
1309
1310 public static pbd::MessageDescriptor Descriptor
1311 {
1312 get
1313 {
1314 return
1315 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
1316 internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
1317 }
1318 }
1319
1320 protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder>
1321 InternalFieldAccessors
1322 {
1323 get
1324 {
1325 return
1326 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
1327 internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
1328 }
1329 }
1330
1331 public const int PropertyNameFieldNumber = 1;
1332 private bool hasPropertyName;
1333 private string propertyName_ = "";
1334
1335 public bool HasPropertyName
1336 {
1337 get { return hasPropertyName; }
1338 }
1339
1340 public string PropertyName
1341 {
1342 get { return propertyName_; }
1343 }
1344
1345 public override bool IsInitialized
1346 {
1347 get { return true; }
1348 }
1349
1350 public override void WriteTo(pb::CodedOutputStream output)
1351 {
1352 int size = SerializedSize;
1353 if (HasPropertyName)
1354 {
1355 output.WriteString(1, PropertyName);
1356 }
1357 UnknownFields.WriteTo(output);
1358 }
1359
1360 private int memoizedSerializedSize = -1;
1361
1362 public override int SerializedSize
1363 {
1364 get
1365 {
1366 int size = memoizedSerializedSize;
1367 if (size != -1) return size;
1368
1369 size = 0;
1370 if (HasPropertyName)
1371 {
1372 size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
1373 }
1374 size += UnknownFields.SerializedSize;
1375 memoizedSerializedSize = size;
1376 return size;
1377 }
1378 }
1379
1380 public static CSharpFieldOptions ParseFrom(pb::ByteString data)
1381 {
1382 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1383 }
1384
1385 public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry)
1386 {
1387 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1388 }
1389
1390 public static CSharpFieldOptions ParseFrom(byte[] data)
1391 {
1392 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1393 }
1394
1395 public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry)
1396 {
1397 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1398 }
1399
1400 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input)
1401 {
1402 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1403 }
1404
1405 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input,
1406 pb::ExtensionRegistry extensionRegistry)
1407 {
1408 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1409 }
1410
1411 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input)
1412 {
1413 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1414 }
1415
1416 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input,
1417 pb::ExtensionRegistry extensionRegistry)
1418 {
1419 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1420 }
1421
1422 public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input)
1423 {
1424 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1425 }
1426
1427 public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
1428 {
1429 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1430 }
1431
1432 public static Builder CreateBuilder()
1433 {
1434 return new Builder();
1435 }
1436
1437 public override Builder ToBuilder()
1438 {
1439 return CreateBuilder(this);
1440 }
1441
1442 public override Builder CreateBuilderForType()
1443 {
1444 return new Builder();
1445 }
1446
1447 public static Builder CreateBuilder(CSharpFieldOptions prototype)
1448 {
1449 return (Builder) new Builder().MergeFrom(prototype);
1450 }
1451
1452 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder>
1453 {
1454 protected override Builder ThisBuilder
1455 {
1456 get { return this; }
1457 }
1458
1459 public Builder()
1460 {
1461 }
1462
1463 private CSharpFieldOptions result = new CSharpFieldOptions();
1464
1465 protected override CSharpFieldOptions MessageBeingBuilt
1466 {
1467 get { return result; }
1468 }
1469
1470 public override Builder Clear()
1471 {
1472 result = new CSharpFieldOptions();
1473 return this;
1474 }
1475
1476 public override Builder Clone()
1477 {
1478 return new Builder().MergeFrom(result);
1479 }
1480
1481 public override pbd::MessageDescriptor DescriptorForType
1482 {
1483 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
1484 }
1485
1486 public override CSharpFieldOptions DefaultInstanceForType
1487 {
1488 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
1489 }
1490
1491 public override CSharpFieldOptions BuildPartial()
1492 {
1493 if (result == null)
1494 {
1495 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1496 }
1497 CSharpFieldOptions returnMe = result;
1498 result = null;
1499 return returnMe;
1500 }
1501
1502 public override Builder MergeFrom(pb::IMessage other)
1503 {
1504 if (other is CSharpFieldOptions)
1505 {
1506 return MergeFrom((CSharpFieldOptions) other);
1507 }
1508 else
1509 {
1510 base.MergeFrom(other);
1511 return this;
1512 }
1513 }
1514
1515 public override Builder MergeFrom(CSharpFieldOptions other)
1516 {
1517 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance)
1518 return this;
1519 if (other.HasPropertyName)
1520 {
1521 PropertyName = other.PropertyName;
1522 }
1523 this.MergeUnknownFields(other.UnknownFields);
1524 return this;
1525 }
1526
1527 public override Builder MergeFrom(pb::CodedInputStream input)
1528 {
1529 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1530 }
1531
1532 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
1533 {
1534 pb::UnknownFieldSet.Builder unknownFields = null;
1535 while (true)
1536 {
1537 uint tag = input.ReadTag();
1538 switch (tag)
1539 {
1540 case 0:
1541 {
1542 if (unknownFields != null)
1543 {
1544 this.UnknownFields = unknownFields.Build();
1545 }
1546 return this;
1547 }
1548 default:
1549 {
1550 if (pb::WireFormat.IsEndGroupTag(tag))
1551 {
1552 if (unknownFields != null)
1553 {
1554 this.UnknownFields = unknownFields.Build();
1555 }
1556 return this;
1557 }
1558 if (unknownFields == null)
1559 {
1560 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1561 }
1562 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1563 break;
1564 }
1565 case 10:
1566 {
1567 PropertyName = input.ReadString();
1568 break;
1569 }
1570 }
1571 }
1572 }
1573
1574
1575 public bool HasPropertyName
1576 {
1577 get { return result.HasPropertyName; }
1578 }
1579
1580 public string PropertyName
1581 {
1582 get { return result.PropertyName; }
1583 set { SetPropertyName(value); }
1584 }
1585
1586 public Builder SetPropertyName(string value)
1587 {
1588 pb::ThrowHelper.ThrowIfNull(value, "value");
1589 result.hasPropertyName = true;
1590 result.propertyName_ = value;
1591 return this;
1592 }
1593
1594 public Builder ClearPropertyName()
1595 {
1596 result.hasPropertyName = false;
1597 result.propertyName_ = "";
1598 return this;
1599 }
1600 }
1601
1602 static CSharpFieldOptions()
1603 {
1604 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1605 }
1606 }
1607
1608 public sealed partial class CSharpServiceOptions :
1609 pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder>
1610 {
1611 private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
1612
1613 public static CSharpServiceOptions DefaultInstance
1614 {
1615 get { return defaultInstance; }
1616 }
1617
1618 public override CSharpServiceOptions DefaultInstanceForType
1619 {
1620 get { return defaultInstance; }
1621 }
1622
1623 protected override CSharpServiceOptions ThisMessage
1624 {
1625 get { return this; }
1626 }
1627
1628 public static pbd::MessageDescriptor Descriptor
1629 {
1630 get
1631 {
1632 return
1633 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
1634 internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
1635 }
1636 }
1637
1638 protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder>
1639 InternalFieldAccessors
1640 {
1641 get
1642 {
1643 return
1644 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
1645 internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
1646 }
1647 }
1648
1649 public const int InterfaceIdFieldNumber = 1;
1650 private bool hasInterfaceId;
1651 private string interfaceId_ = "";
1652
1653 public bool HasInterfaceId
1654 {
1655 get { return hasInterfaceId; }
1656 }
1657
1658 public string InterfaceId
1659 {
1660 get { return interfaceId_; }
1661 }
1662
1663 public override bool IsInitialized
1664 {
1665 get { return true; }
1666 }
1667
1668 public override void WriteTo(pb::CodedOutputStream output)
1669 {
1670 int size = SerializedSize;
1671 if (HasInterfaceId)
1672 {
1673 output.WriteString(1, InterfaceId);
1674 }
1675 UnknownFields.WriteTo(output);
1676 }
1677
1678 private int memoizedSerializedSize = -1;
1679
1680 public override int SerializedSize
1681 {
1682 get
1683 {
1684 int size = memoizedSerializedSize;
1685 if (size != -1) return size;
1686
1687 size = 0;
1688 if (HasInterfaceId)
1689 {
1690 size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
1691 }
1692 size += UnknownFields.SerializedSize;
1693 memoizedSerializedSize = size;
1694 return size;
1695 }
1696 }
1697
1698 public static CSharpServiceOptions ParseFrom(pb::ByteString data)
1699 {
1700 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1701 }
1702
1703 public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry)
1704 {
1705 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1706 }
1707
1708 public static CSharpServiceOptions ParseFrom(byte[] data)
1709 {
1710 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1711 }
1712
1713 public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry)
1714 {
1715 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1716 }
1717
1718 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input)
1719 {
1720 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1721 }
1722
1723 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input,
1724 pb::ExtensionRegistry extensionRegistry)
1725 {
1726 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1727 }
1728
1729 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input)
1730 {
1731 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1732 }
1733
1734 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input,
1735 pb::ExtensionRegistry extensionRegistry)
1736 {
1737 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1738 }
1739
1740 public static CSharpServiceOptions ParseFrom(pb::CodedInputStream input)
1741 {
1742 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1743 }
1744
1745 public static CSharpServiceOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
1746 {
1747 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1748 }
1749
1750 public static Builder CreateBuilder()
1751 {
1752 return new Builder();
1753 }
1754
1755 public override Builder ToBuilder()
1756 {
1757 return CreateBuilder(this);
1758 }
1759
1760 public override Builder CreateBuilderForType()
1761 {
1762 return new Builder();
1763 }
1764
1765 public static Builder CreateBuilder(CSharpServiceOptions prototype)
1766 {
1767 return (Builder) new Builder().MergeFrom(prototype);
1768 }
1769
1770 public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder>
1771 {
1772 protected override Builder ThisBuilder
1773 {
1774 get { return this; }
1775 }
1776
1777 public Builder()
1778 {
1779 }
1780
1781 private CSharpServiceOptions result = new CSharpServiceOptions();
1782
1783 protected override CSharpServiceOptions MessageBeingBuilt
1784 {
1785 get { return result; }
1786 }
1787
1788 public override Builder Clear()
1789 {
1790 result = new CSharpServiceOptions();
1791 return this;
1792 }
1793
1794 public override Builder Clone()
1795 {
1796 return new Builder().MergeFrom(result);
1797 }
1798
1799 public override pbd::MessageDescriptor DescriptorForType
1800 {
1801 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
1802 }
1803
1804 public override CSharpServiceOptions DefaultInstanceForType
1805 {
1806 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
1807 }
1808
1809 public override CSharpServiceOptions BuildPartial()
1810 {
1811 if (result == null)
1812 {
1813 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1814 }
1815 CSharpServiceOptions returnMe = result;
1816 result = null;
1817 return returnMe;
1818 }
1819
1820 public override Builder MergeFrom(pb::IMessage other)
1821 {
1822 if (other is CSharpServiceOptions)
1823 {
1824 return MergeFrom((CSharpServiceOptions) other);
1825 }
1826 else
1827 {
1828 base.MergeFrom(other);
1829 return this;
1830 }
1831 }
1832
1833 public override Builder MergeFrom(CSharpServiceOptions other)
1834 {
1835 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance)
1836 return this;
1837 if (other.HasInterfaceId)
1838 {
1839 InterfaceId = other.InterfaceId;
1840 }
1841 this.MergeUnknownFields(other.UnknownFields);
1842 return this;
1843 }
1844
1845 public override Builder MergeFrom(pb::CodedInputStream input)
1846 {
1847 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1848 }
1849
1850 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
1851 {
1852 pb::UnknownFieldSet.Builder unknownFields = null;
1853 while (true)
1854 {
1855 uint tag = input.ReadTag();
1856 switch (tag)
1857 {
1858 case 0:
1859 {
1860 if (unknownFields != null)
1861 {
1862 this.UnknownFields = unknownFields.Build();
1863 }
1864 return this;
1865 }
1866 default:
1867 {
1868 if (pb::WireFormat.IsEndGroupTag(tag))
1869 {
1870 if (unknownFields != null)
1871 {
1872 this.UnknownFields = unknownFields.Build();
1873 }
1874 return this;
1875 }
1876 if (unknownFields == null)
1877 {
1878 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1879 }
1880 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1881 break;
1882 }
1883 case 10:
1884 {
1885 InterfaceId = input.ReadString();
1886 break;
1887 }
1888 }
1889 }
1890 }
1891
1892
1893 public bool HasInterfaceId
1894 {
1895 get { return result.HasInterfaceId; }
1896 }
1897
1898 public string InterfaceId
1899 {
1900 get { return result.InterfaceId; }
1901 set { SetInterfaceId(value); }
1902 }
1903
1904 public Builder SetInterfaceId(string value)
1905 {
1906 pb::ThrowHelper.ThrowIfNull(value, "value");
1907 result.hasInterfaceId = true;
1908 result.interfaceId_ = value;
1909 return this;
1910 }
1911
1912 public Builder ClearInterfaceId()
1913 {
1914 result.hasInterfaceId = false;
1915 result.interfaceId_ = "";
1916 return this;
1917 }
1918 }
1919
1920 static CSharpServiceOptions()
1921 {
1922 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1923 }
1924 }
1925
1926 public sealed partial class CSharpMethodOptions :
1927 pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder>
1928 {
1929 private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
1930
1931 public static CSharpMethodOptions DefaultInstance
1932 {
1933 get { return defaultInstance; }
1934 }
1935
1936 public override CSharpMethodOptions DefaultInstanceForType
1937 {
1938 get { return defaultInstance; }
1939 }
1940
1941 protected override CSharpMethodOptions ThisMessage
1942 {
1943 get { return this; }
1944 }
1945
1946 public static pbd::MessageDescriptor Descriptor
1947 {
1948 get
1949 {
1950 return
1951 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
1952 internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
1953 }
1954 }
1955
1956 protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder>
1957 InternalFieldAccessors
1958 {
1959 get
1960 {
1961 return
1962 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.
1963 internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
1964 }
1965 }
1966
1967 public const int DispatchIdFieldNumber = 1;
1968 private bool hasDispatchId;
1969 private int dispatchId_ = 0;
1970
1971 public bool HasDispatchId
1972 {
1973 get { return hasDispatchId; }
1974 }
1975
1976 public int DispatchId
1977 {
1978 get { return dispatchId_; }
1979 }
1980
1981 public override bool IsInitialized
1982 {
1983 get { return true; }
1984 }
1985
1986 public override void WriteTo(pb::CodedOutputStream output)
1987 {
1988 int size = SerializedSize;
1989 if (HasDispatchId)
1990 {
1991 output.WriteInt32(1, DispatchId);
1992 }
1993 UnknownFields.WriteTo(output);
1994 }
1995
1996 private int memoizedSerializedSize = -1;
1997
1998 public override int SerializedSize
1999 {
2000 get
2001 {
2002 int size = memoizedSerializedSize;
2003 if (size != -1) return size;
2004
2005 size = 0;
2006 if (HasDispatchId)
2007 {
2008 size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
2009 }
2010 size += UnknownFields.SerializedSize;
2011 memoizedSerializedSize = size;
2012 return size;
2013 }
2014 }
2015
2016 public static CSharpMethodOptions ParseFrom(pb::ByteString data)
2017 {
2018 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
2019 }
2020
2021 public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry)
2022 {
2023 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
2024 }
2025
2026 public static CSharpMethodOptions ParseFrom(byte[] data)
2027 {
2028 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
2029 }
2030
2031 public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry)
2032 {
2033 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
2034 }
2035
2036 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input)
2037 {
2038 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
2039 }
2040
2041 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input,
2042 pb::ExtensionRegistry extensionRegistry)
2043 {
2044 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
2045 }
2046
2047 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input)
2048 {
2049 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
2050 }
2051
2052 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input,
2053 pb::ExtensionRegistry extensionRegistry)
2054 {
2055 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
2056 }
2057
2058 public static CSharpMethodOptions ParseFrom(pb::CodedInputStream input)
2059 {
2060 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
2061 }
2062
2063 public static CSharpMethodOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
2064 {
2065 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
2066 }
2067
2068 public static Builder CreateBuilder()
2069 {
2070 return new Builder();
2071 }
2072
2073 public override Builder ToBuilder()
2074 {
2075 return CreateBuilder(this);
2076 }
2077
2078 public override Builder CreateBuilderForType()
2079 {
2080 return new Builder();
2081 }
2082
2083 public static Builder CreateBuilder(CSharpMethodOptions prototype)
2084 {
2085 return (Builder) new Builder().MergeFrom(prototype);
2086 }
2087
2088 public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder>
2089 {
2090 protected override Builder ThisBuilder
2091 {
2092 get { return this; }
2093 }
2094
2095 public Builder()
2096 {
2097 }
2098
2099 private CSharpMethodOptions result = new CSharpMethodOptions();
2100
2101 protected override CSharpMethodOptions MessageBeingBuilt
2102 {
2103 get { return result; }
2104 }
2105
2106 public override Builder Clear()
2107 {
2108 result = new CSharpMethodOptions();
2109 return this;
2110 }
2111
2112 public override Builder Clone()
2113 {
2114 return new Builder().MergeFrom(result);
2115 }
2116
2117 public override pbd::MessageDescriptor DescriptorForType
2118 {
2119 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
2120 }
2121
2122 public override CSharpMethodOptions DefaultInstanceForType
2123 {
2124 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
2125 }
2126
2127 public override CSharpMethodOptions BuildPartial()
2128 {
2129 if (result == null)
2130 {
2131 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
2132 }
2133 CSharpMethodOptions returnMe = result;
2134 result = null;
2135 return returnMe;
2136 }
2137
2138 public override Builder MergeFrom(pb::IMessage other)
2139 {
2140 if (other is CSharpMethodOptions)
2141 {
2142 return MergeFrom((CSharpMethodOptions) other);
2143 }
2144 else
2145 {
2146 base.MergeFrom(other);
2147 return this;
2148 }
2149 }
2150
2151 public override Builder MergeFrom(CSharpMethodOptions other)
2152 {
2153 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance)
2154 return this;
2155 if (other.HasDispatchId)
2156 {
2157 DispatchId = other.DispatchId;
2158 }
2159 this.MergeUnknownFields(other.UnknownFields);
2160 return this;
2161 }
2162
2163 public override Builder MergeFrom(pb::CodedInputStream input)
2164 {
2165 return MergeFrom(input, pb::ExtensionRegistry.Empty);
2166 }
2167
2168 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry)
2169 {
2170 pb::UnknownFieldSet.Builder unknownFields = null;
2171 while (true)
2172 {
2173 uint tag = input.ReadTag();
2174 switch (tag)
2175 {
2176 case 0:
2177 {
2178 if (unknownFields != null)
2179 {
2180 this.UnknownFields = unknownFields.Build();
2181 }
2182 return this;
2183 }
2184 default:
2185 {
2186 if (pb::WireFormat.IsEndGroupTag(tag))
2187 {
2188 if (unknownFields != null)
2189 {
2190 this.UnknownFields = unknownFields.Build();
2191 }
2192 return this;
2193 }
2194 if (unknownFields == null)
2195 {
2196 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
2197 }
2198 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
2199 break;
2200 }
2201 case 8:
2202 {
2203 DispatchId = input.ReadInt32();
2204 break;
2205 }
2206 }
2207 }
2208 }
2209
2210
2211 public bool HasDispatchId
2212 {
2213 get { return result.HasDispatchId; }
2214 }
2215
2216 public int DispatchId
2217 {
2218 get { return result.DispatchId; }
2219 set { SetDispatchId(value); }
2220 }
2221
2222 public Builder SetDispatchId(int value)
2223 {
2224 result.hasDispatchId = true;
2225 result.dispatchId_ = value;
2226 return this;
2227 }
2228
2229 public Builder ClearDispatchId()
2230 {
2231 result.hasDispatchId = false;
2232 result.dispatchId_ = 0;
2233 return this;
2234 }
2235 }
2236
2237 static CSharpMethodOptions()
2238 {
2239 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
2240 }
2241 }
2242
Jon Skeet82bb0f12011-04-03 20:17:12 +01002243 #endregion
csharptest71f662c2011-05-20 15:15:34 -05002244}