blob: adfbc9a39715d0521832ab0a17edced8f5b20b1b [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;
csharptest714b8692011-05-20 15:23:36 -05007namespace Google.ProtocolBuffers.DescriptorProtos {
8
9 public static partial class CSharpOptions {
10
11 #region Extension registration
12 public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
13 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
14 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
15 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions);
16 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions);
Jon Skeet82bb0f12011-04-03 20:17:12 +010017 }
18 #endregion
csharptest714b8692011-05-20 15:23:36 -050019 #region Extensions
20 public const int CSharpFileOptionsFieldNumber = 1000;
21 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
22 public const int CSharpFieldOptionsFieldNumber = 1000;
23 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
24 public const int CsharpServiceOptionsFieldNumber = 1000;
25 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions> CsharpServiceOptions;
26 public const int CsharpMethodOptionsFieldNumber = 1000;
27 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions> CsharpMethodOptions;
Jon Skeet82bb0f12011-04-03 20:17:12 +010028 #endregion
csharptest714b8692011-05-20 15:23:36 -050029
30 #region Static variables
31 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
32 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
33 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
34 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
35 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
36 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
37 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
38 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder> internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
39 #endregion
40 #region Descriptor
41 public static pbd::FileDescriptor Descriptor {
42 get { return descriptor; }
43 }
44 private static pbd::FileDescriptor descriptor;
45
46 static CSharpOptions() {
47 byte[] descriptorData = global::System.Convert.FromBase64String(
48 "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
49 "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
50 "tgMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
51 "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
52 "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
53 "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
54 "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
55 "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
56 "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
57 "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
58 "ZmFsc2USSQoWc2VydmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29n" +
59 "bGUucHJvdG9idWYuQ1NoYXJwU2VydmljZVR5cGU6BE5PTkUiKwoSQ1NoYXJw" +
60 "RmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1NoYXJw" +
61 "U2VydmljZU9wdGlvbnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NTaGFy" +
62 "cE1ldGhvZE9wdGlvbnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqSwoRQ1NoYXJw" +
63 "U2VydmljZVR5cGUSCAoETk9ORRAAEgsKB0dFTkVSSUMQARINCglJTlRFUkZB" +
64 "Q0UQAhIQCgxJUlBDRElTUEFUQ0gQAzpeChNjc2hhcnBfZmlsZV9vcHRpb25z" +
65 "EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGOgHIAEoCzIiLmdvb2ds" +
66 "ZS5wcm90b2J1Zi5DU2hhcnBGaWxlT3B0aW9uczphChRjc2hhcnBfZmllbGRf" +
67 "b3B0aW9ucxIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6AcgASgL" +
68 "MiMuZ29vZ2xlLnByb3RvYnVmLkNTaGFycEZpZWxkT3B0aW9uczpnChZjc2hh" +
69 "cnBfc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP" +
70 "cHRpb25zGOgHIAEoCzIlLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBTZXJ2aWNl" +
71 "T3B0aW9uczpkChVjc2hhcnBfbWV0aG9kX29wdGlvbnMSHi5nb29nbGUucHJv" +
72 "dG9idWYuTWV0aG9kT3B0aW9ucxjoByABKAsyJC5nb29nbGUucHJvdG9idWYu" +
73 "Q1NoYXJwTWV0aG9kT3B0aW9ucw==");
74 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
75 descriptor = root;
76 internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
77 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
78 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
79 new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", "ServiceGeneratorType", });
80 internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
81 internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
82 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
83 new string[] { "PropertyName", });
84 internal__static_google_protobuf_CSharpServiceOptions__Descriptor = Descriptor.MessageTypes[2];
85 internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable =
86 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>(internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
87 new string[] { "InterfaceId", });
88 internal__static_google_protobuf_CSharpMethodOptions__Descriptor = Descriptor.MessageTypes[3];
89 internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable =
90 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>(internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
91 new string[] { "DispatchId", });
92 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
93 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
94 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[2]);
95 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[3]);
96 return null;
97 };
98 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
99 new pbd::FileDescriptor[] {
100 global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
101 }, assigner);
102 }
103 #endregion
104
105 }
106 #region Enums
107 public enum CSharpServiceType {
108 NONE = 0,
109 GENERIC = 1,
110 INTERFACE = 2,
111 IRPCDISPATCH = 3,
112 }
113
114 #endregion
115
116 #region Messages
117 public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
118 private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
119 public static CSharpFileOptions DefaultInstance {
120 get { return defaultInstance; }
121 }
122
123 public override CSharpFileOptions DefaultInstanceForType {
124 get { return defaultInstance; }
125 }
126
127 protected override CSharpFileOptions ThisMessage {
128 get { return this; }
129 }
130
131 public static pbd::MessageDescriptor Descriptor {
132 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
133 }
134
135 protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
136 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
137 }
138
139 public const int NamespaceFieldNumber = 1;
140 private bool hasNamespace;
141 private string namespace_ = "";
142 public bool HasNamespace {
143 get { return hasNamespace; }
144 }
145 public string Namespace {
146 get { return namespace_; }
147 }
148
149 public const int UmbrellaClassnameFieldNumber = 2;
150 private bool hasUmbrellaClassname;
151 private string umbrellaClassname_ = "";
152 public bool HasUmbrellaClassname {
153 get { return hasUmbrellaClassname; }
154 }
155 public string UmbrellaClassname {
156 get { return umbrellaClassname_; }
157 }
158
159 public const int PublicClassesFieldNumber = 3;
160 private bool hasPublicClasses;
161 private bool publicClasses_ = true;
162 public bool HasPublicClasses {
163 get { return hasPublicClasses; }
164 }
165 public bool PublicClasses {
166 get { return publicClasses_; }
167 }
168
169 public const int MultipleFilesFieldNumber = 4;
170 private bool hasMultipleFiles;
171 private bool multipleFiles_ = false;
172 public bool HasMultipleFiles {
173 get { return hasMultipleFiles; }
174 }
175 public bool MultipleFiles {
176 get { return multipleFiles_; }
177 }
178
179 public const int NestClassesFieldNumber = 5;
180 private bool hasNestClasses;
181 private bool nestClasses_ = false;
182 public bool HasNestClasses {
183 get { return hasNestClasses; }
184 }
185 public bool NestClasses {
186 get { return nestClasses_; }
187 }
188
189 public const int CodeContractsFieldNumber = 6;
190 private bool hasCodeContracts;
191 private bool codeContracts_ = false;
192 public bool HasCodeContracts {
193 get { return hasCodeContracts; }
194 }
195 public bool CodeContracts {
196 get { return codeContracts_; }
197 }
198
199 public const int ExpandNamespaceDirectoriesFieldNumber = 7;
200 private bool hasExpandNamespaceDirectories;
201 private bool expandNamespaceDirectories_ = false;
202 public bool HasExpandNamespaceDirectories {
203 get { return hasExpandNamespaceDirectories; }
204 }
205 public bool ExpandNamespaceDirectories {
206 get { return expandNamespaceDirectories_; }
207 }
208
209 public const int ClsComplianceFieldNumber = 8;
210 private bool hasClsCompliance;
211 private bool clsCompliance_ = true;
212 public bool HasClsCompliance {
213 get { return hasClsCompliance; }
214 }
215 public bool ClsCompliance {
216 get { return clsCompliance_; }
217 }
218
219 public const int FileExtensionFieldNumber = 221;
220 private bool hasFileExtension;
221 private string fileExtension_ = ".cs";
222 public bool HasFileExtension {
223 get { return hasFileExtension; }
224 }
225 public string FileExtension {
226 get { return fileExtension_; }
227 }
228
229 public const int UmbrellaNamespaceFieldNumber = 222;
230 private bool hasUmbrellaNamespace;
231 private string umbrellaNamespace_ = "";
232 public bool HasUmbrellaNamespace {
233 get { return hasUmbrellaNamespace; }
234 }
235 public string UmbrellaNamespace {
236 get { return umbrellaNamespace_; }
237 }
238
239 public const int OutputDirectoryFieldNumber = 223;
240 private bool hasOutputDirectory;
241 private string outputDirectory_ = ".";
242 public bool HasOutputDirectory {
243 get { return hasOutputDirectory; }
244 }
245 public string OutputDirectory {
246 get { return outputDirectory_; }
247 }
248
249 public const int IgnoreGoogleProtobufFieldNumber = 224;
250 private bool hasIgnoreGoogleProtobuf;
251 private bool ignoreGoogleProtobuf_ = false;
252 public bool HasIgnoreGoogleProtobuf {
253 get { return hasIgnoreGoogleProtobuf; }
254 }
255 public bool IgnoreGoogleProtobuf {
256 get { return ignoreGoogleProtobuf_; }
257 }
258
259 public const int ServiceGeneratorTypeFieldNumber = 225;
260 private bool hasServiceGeneratorType;
261 private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
262 public bool HasServiceGeneratorType {
263 get { return hasServiceGeneratorType; }
264 }
265 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
266 get { return serviceGeneratorType_; }
267 }
268
269 public override bool IsInitialized {
270 get {
271 return true;
272 }
273 }
274
275 public override void WriteTo(pb::CodedOutputStream output) {
276 int size = SerializedSize;
277 if (HasNamespace) {
278 output.WriteString(1, Namespace);
279 }
280 if (HasUmbrellaClassname) {
281 output.WriteString(2, UmbrellaClassname);
282 }
283 if (HasPublicClasses) {
284 output.WriteBool(3, PublicClasses);
285 }
286 if (HasMultipleFiles) {
287 output.WriteBool(4, MultipleFiles);
288 }
289 if (HasNestClasses) {
290 output.WriteBool(5, NestClasses);
291 }
292 if (HasCodeContracts) {
293 output.WriteBool(6, CodeContracts);
294 }
295 if (HasExpandNamespaceDirectories) {
296 output.WriteBool(7, ExpandNamespaceDirectories);
297 }
298 if (HasClsCompliance) {
299 output.WriteBool(8, ClsCompliance);
300 }
301 if (HasFileExtension) {
302 output.WriteString(221, FileExtension);
303 }
304 if (HasUmbrellaNamespace) {
305 output.WriteString(222, UmbrellaNamespace);
306 }
307 if (HasOutputDirectory) {
308 output.WriteString(223, OutputDirectory);
309 }
310 if (HasIgnoreGoogleProtobuf) {
311 output.WriteBool(224, IgnoreGoogleProtobuf);
312 }
313 if (HasServiceGeneratorType) {
314 output.WriteEnum(225, (int) ServiceGeneratorType);
315 }
316 UnknownFields.WriteTo(output);
317 }
318
319 private int memoizedSerializedSize = -1;
320 public override int SerializedSize {
321 get {
322 int size = memoizedSerializedSize;
323 if (size != -1) return size;
324
325 size = 0;
326 if (HasNamespace) {
327 size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
328 }
329 if (HasUmbrellaClassname) {
330 size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
331 }
332 if (HasPublicClasses) {
333 size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
334 }
335 if (HasMultipleFiles) {
336 size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
337 }
338 if (HasNestClasses) {
339 size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
340 }
341 if (HasCodeContracts) {
342 size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
343 }
344 if (HasExpandNamespaceDirectories) {
345 size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
346 }
347 if (HasClsCompliance) {
348 size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
349 }
350 if (HasFileExtension) {
351 size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
352 }
353 if (HasUmbrellaNamespace) {
354 size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
355 }
356 if (HasOutputDirectory) {
357 size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
358 }
359 if (HasIgnoreGoogleProtobuf) {
360 size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
361 }
362 if (HasServiceGeneratorType) {
363 size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
364 }
365 size += UnknownFields.SerializedSize;
366 memoizedSerializedSize = size;
367 return size;
368 }
369 }
370
371 public static CSharpFileOptions ParseFrom(pb::ByteString data) {
372 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
373 }
374 public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
375 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
376 }
377 public static CSharpFileOptions ParseFrom(byte[] data) {
378 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
379 }
380 public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
381 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
382 }
383 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
384 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
385 }
386 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
387 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
388 }
389 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
390 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
391 }
392 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
393 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
394 }
395 public static CSharpFileOptions ParseFrom(pb::CodedInputStream input) {
396 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
397 }
398 public static CSharpFileOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
399 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
400 }
401 public static Builder CreateBuilder() { return new Builder(); }
402 public override Builder ToBuilder() { return CreateBuilder(this); }
403 public override Builder CreateBuilderForType() { return new Builder(); }
404 public static Builder CreateBuilder(CSharpFileOptions prototype) {
405 return (Builder) new Builder().MergeFrom(prototype);
406 }
407
408 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
409 protected override Builder ThisBuilder {
410 get { return this; }
411 }
412 public Builder() {}
413
414 CSharpFileOptions result = new CSharpFileOptions();
415
416 protected override CSharpFileOptions MessageBeingBuilt {
417 get { return result; }
418 }
419
420 public override Builder Clear() {
421 result = new CSharpFileOptions();
422 return this;
423 }
424
425 public override Builder Clone() {
426 return new Builder().MergeFrom(result);
427 }
428
429 public override pbd::MessageDescriptor DescriptorForType {
430 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
431 }
432
433 public override CSharpFileOptions DefaultInstanceForType {
434 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
435 }
436
437 public override CSharpFileOptions BuildPartial() {
438 if (result == null) {
439 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
440 }
441 CSharpFileOptions returnMe = result;
442 result = null;
443 return returnMe;
444 }
445
446 public override Builder MergeFrom(pb::IMessage other) {
447 if (other is CSharpFileOptions) {
448 return MergeFrom((CSharpFileOptions) other);
449 } else {
450 base.MergeFrom(other);
451 return this;
452 }
453 }
454
455 public override Builder MergeFrom(CSharpFileOptions other) {
456 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
457 if (other.HasNamespace) {
458 Namespace = other.Namespace;
459 }
460 if (other.HasUmbrellaClassname) {
461 UmbrellaClassname = other.UmbrellaClassname;
462 }
463 if (other.HasPublicClasses) {
464 PublicClasses = other.PublicClasses;
465 }
466 if (other.HasMultipleFiles) {
467 MultipleFiles = other.MultipleFiles;
468 }
469 if (other.HasNestClasses) {
470 NestClasses = other.NestClasses;
471 }
472 if (other.HasCodeContracts) {
473 CodeContracts = other.CodeContracts;
474 }
475 if (other.HasExpandNamespaceDirectories) {
476 ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
477 }
478 if (other.HasClsCompliance) {
479 ClsCompliance = other.ClsCompliance;
480 }
481 if (other.HasFileExtension) {
482 FileExtension = other.FileExtension;
483 }
484 if (other.HasUmbrellaNamespace) {
485 UmbrellaNamespace = other.UmbrellaNamespace;
486 }
487 if (other.HasOutputDirectory) {
488 OutputDirectory = other.OutputDirectory;
489 }
490 if (other.HasIgnoreGoogleProtobuf) {
491 IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
492 }
493 if (other.HasServiceGeneratorType) {
494 ServiceGeneratorType = other.ServiceGeneratorType;
495 }
496 this.MergeUnknownFields(other.UnknownFields);
497 return this;
498 }
499
500 public override Builder MergeFrom(pb::CodedInputStream input) {
501 return MergeFrom(input, pb::ExtensionRegistry.Empty);
502 }
503
504 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
505 pb::UnknownFieldSet.Builder unknownFields = null;
506 while (true) {
507 uint tag = input.ReadTag();
508 switch (tag) {
509 case 0: {
510 if (unknownFields != null) {
511 this.UnknownFields = unknownFields.Build();
512 }
513 return this;
514 }
515 default: {
516 if (pb::WireFormat.IsEndGroupTag(tag)) {
517 if (unknownFields != null) {
518 this.UnknownFields = unknownFields.Build();
519 }
520 return this;
521 }
522 if (unknownFields == null) {
523 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
524 }
525 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
526 break;
527 }
528 case 10: {
529 Namespace = input.ReadString();
530 break;
531 }
532 case 18: {
533 UmbrellaClassname = input.ReadString();
534 break;
535 }
536 case 24: {
537 PublicClasses = input.ReadBool();
538 break;
539 }
540 case 32: {
541 MultipleFiles = input.ReadBool();
542 break;
543 }
544 case 40: {
545 NestClasses = input.ReadBool();
546 break;
547 }
548 case 48: {
549 CodeContracts = input.ReadBool();
550 break;
551 }
552 case 56: {
553 ExpandNamespaceDirectories = input.ReadBool();
554 break;
555 }
556 case 64: {
557 ClsCompliance = input.ReadBool();
558 break;
559 }
560 case 1770: {
561 FileExtension = input.ReadString();
562 break;
563 }
564 case 1778: {
565 UmbrellaNamespace = input.ReadString();
566 break;
567 }
568 case 1786: {
569 OutputDirectory = input.ReadString();
570 break;
571 }
572 case 1792: {
573 IgnoreGoogleProtobuf = input.ReadBool();
574 break;
575 }
576 case 1800: {
577 int rawValue = input.ReadEnum();
578 if (!global::System.Enum.IsDefined(typeof(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType), rawValue)) {
579 if (unknownFields == null) {
580 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
581 }
582 unknownFields.MergeVarintField(225, (ulong) rawValue);
583 } else {
584 ServiceGeneratorType = (global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType) rawValue;
585 }
586 break;
587 }
588 }
589 }
590 }
591
592
593 public bool HasNamespace {
594 get { return result.HasNamespace; }
595 }
596 public string Namespace {
597 get { return result.Namespace; }
598 set { SetNamespace(value); }
599 }
600 public Builder SetNamespace(string value) {
601 pb::ThrowHelper.ThrowIfNull(value, "value");
602 result.hasNamespace = true;
603 result.namespace_ = value;
604 return this;
605 }
606 public Builder ClearNamespace() {
607 result.hasNamespace = false;
608 result.namespace_ = "";
609 return this;
610 }
611
612 public bool HasUmbrellaClassname {
613 get { return result.HasUmbrellaClassname; }
614 }
615 public string UmbrellaClassname {
616 get { return result.UmbrellaClassname; }
617 set { SetUmbrellaClassname(value); }
618 }
619 public Builder SetUmbrellaClassname(string value) {
620 pb::ThrowHelper.ThrowIfNull(value, "value");
621 result.hasUmbrellaClassname = true;
622 result.umbrellaClassname_ = value;
623 return this;
624 }
625 public Builder ClearUmbrellaClassname() {
626 result.hasUmbrellaClassname = false;
627 result.umbrellaClassname_ = "";
628 return this;
629 }
630
631 public bool HasPublicClasses {
632 get { return result.HasPublicClasses; }
633 }
634 public bool PublicClasses {
635 get { return result.PublicClasses; }
636 set { SetPublicClasses(value); }
637 }
638 public Builder SetPublicClasses(bool value) {
639 result.hasPublicClasses = true;
640 result.publicClasses_ = value;
641 return this;
642 }
643 public Builder ClearPublicClasses() {
644 result.hasPublicClasses = false;
645 result.publicClasses_ = true;
646 return this;
647 }
648
649 public bool HasMultipleFiles {
650 get { return result.HasMultipleFiles; }
651 }
652 public bool MultipleFiles {
653 get { return result.MultipleFiles; }
654 set { SetMultipleFiles(value); }
655 }
656 public Builder SetMultipleFiles(bool value) {
657 result.hasMultipleFiles = true;
658 result.multipleFiles_ = value;
659 return this;
660 }
661 public Builder ClearMultipleFiles() {
662 result.hasMultipleFiles = false;
663 result.multipleFiles_ = false;
664 return this;
665 }
666
667 public bool HasNestClasses {
668 get { return result.HasNestClasses; }
669 }
670 public bool NestClasses {
671 get { return result.NestClasses; }
672 set { SetNestClasses(value); }
673 }
674 public Builder SetNestClasses(bool value) {
675 result.hasNestClasses = true;
676 result.nestClasses_ = value;
677 return this;
678 }
679 public Builder ClearNestClasses() {
680 result.hasNestClasses = false;
681 result.nestClasses_ = false;
682 return this;
683 }
684
685 public bool HasCodeContracts {
686 get { return result.HasCodeContracts; }
687 }
688 public bool CodeContracts {
689 get { return result.CodeContracts; }
690 set { SetCodeContracts(value); }
691 }
692 public Builder SetCodeContracts(bool value) {
693 result.hasCodeContracts = true;
694 result.codeContracts_ = value;
695 return this;
696 }
697 public Builder ClearCodeContracts() {
698 result.hasCodeContracts = false;
699 result.codeContracts_ = false;
700 return this;
701 }
702
703 public bool HasExpandNamespaceDirectories {
704 get { return result.HasExpandNamespaceDirectories; }
705 }
706 public bool ExpandNamespaceDirectories {
707 get { return result.ExpandNamespaceDirectories; }
708 set { SetExpandNamespaceDirectories(value); }
709 }
710 public Builder SetExpandNamespaceDirectories(bool value) {
711 result.hasExpandNamespaceDirectories = true;
712 result.expandNamespaceDirectories_ = value;
713 return this;
714 }
715 public Builder ClearExpandNamespaceDirectories() {
716 result.hasExpandNamespaceDirectories = false;
717 result.expandNamespaceDirectories_ = false;
718 return this;
719 }
720
721 public bool HasClsCompliance {
722 get { return result.HasClsCompliance; }
723 }
724 public bool ClsCompliance {
725 get { return result.ClsCompliance; }
726 set { SetClsCompliance(value); }
727 }
728 public Builder SetClsCompliance(bool value) {
729 result.hasClsCompliance = true;
730 result.clsCompliance_ = value;
731 return this;
732 }
733 public Builder ClearClsCompliance() {
734 result.hasClsCompliance = false;
735 result.clsCompliance_ = true;
736 return this;
737 }
738
739 public bool HasFileExtension {
740 get { return result.HasFileExtension; }
741 }
742 public string FileExtension {
743 get { return result.FileExtension; }
744 set { SetFileExtension(value); }
745 }
746 public Builder SetFileExtension(string value) {
747 pb::ThrowHelper.ThrowIfNull(value, "value");
748 result.hasFileExtension = true;
749 result.fileExtension_ = value;
750 return this;
751 }
752 public Builder ClearFileExtension() {
753 result.hasFileExtension = false;
754 result.fileExtension_ = ".cs";
755 return this;
756 }
757
758 public bool HasUmbrellaNamespace {
759 get { return result.HasUmbrellaNamespace; }
760 }
761 public string UmbrellaNamespace {
762 get { return result.UmbrellaNamespace; }
763 set { SetUmbrellaNamespace(value); }
764 }
765 public Builder SetUmbrellaNamespace(string value) {
766 pb::ThrowHelper.ThrowIfNull(value, "value");
767 result.hasUmbrellaNamespace = true;
768 result.umbrellaNamespace_ = value;
769 return this;
770 }
771 public Builder ClearUmbrellaNamespace() {
772 result.hasUmbrellaNamespace = false;
773 result.umbrellaNamespace_ = "";
774 return this;
775 }
776
777 public bool HasOutputDirectory {
778 get { return result.HasOutputDirectory; }
779 }
780 public string OutputDirectory {
781 get { return result.OutputDirectory; }
782 set { SetOutputDirectory(value); }
783 }
784 public Builder SetOutputDirectory(string value) {
785 pb::ThrowHelper.ThrowIfNull(value, "value");
786 result.hasOutputDirectory = true;
787 result.outputDirectory_ = value;
788 return this;
789 }
790 public Builder ClearOutputDirectory() {
791 result.hasOutputDirectory = false;
792 result.outputDirectory_ = ".";
793 return this;
794 }
795
796 public bool HasIgnoreGoogleProtobuf {
797 get { return result.HasIgnoreGoogleProtobuf; }
798 }
799 public bool IgnoreGoogleProtobuf {
800 get { return result.IgnoreGoogleProtobuf; }
801 set { SetIgnoreGoogleProtobuf(value); }
802 }
803 public Builder SetIgnoreGoogleProtobuf(bool value) {
804 result.hasIgnoreGoogleProtobuf = true;
805 result.ignoreGoogleProtobuf_ = value;
806 return this;
807 }
808 public Builder ClearIgnoreGoogleProtobuf() {
809 result.hasIgnoreGoogleProtobuf = false;
810 result.ignoreGoogleProtobuf_ = false;
811 return this;
812 }
813
814 public bool HasServiceGeneratorType {
815 get { return result.HasServiceGeneratorType; }
816 }
817 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
818 get { return result.ServiceGeneratorType; }
819 set { SetServiceGeneratorType(value); }
820 }
821 public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
822 result.hasServiceGeneratorType = true;
823 result.serviceGeneratorType_ = value;
824 return this;
825 }
826 public Builder ClearServiceGeneratorType() {
827 result.hasServiceGeneratorType = false;
828 result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
829 return this;
830 }
831 }
832 static CSharpFileOptions() {
833 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
834 }
835 }
836
837 public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
838 private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
839 public static CSharpFieldOptions DefaultInstance {
840 get { return defaultInstance; }
841 }
842
843 public override CSharpFieldOptions DefaultInstanceForType {
844 get { return defaultInstance; }
845 }
846
847 protected override CSharpFieldOptions ThisMessage {
848 get { return this; }
849 }
850
851 public static pbd::MessageDescriptor Descriptor {
852 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
853 }
854
855 protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
856 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
857 }
858
859 public const int PropertyNameFieldNumber = 1;
860 private bool hasPropertyName;
861 private string propertyName_ = "";
862 public bool HasPropertyName {
863 get { return hasPropertyName; }
864 }
865 public string PropertyName {
866 get { return propertyName_; }
867 }
868
869 public override bool IsInitialized {
870 get {
871 return true;
872 }
873 }
874
875 public override void WriteTo(pb::CodedOutputStream output) {
876 int size = SerializedSize;
877 if (HasPropertyName) {
878 output.WriteString(1, PropertyName);
879 }
880 UnknownFields.WriteTo(output);
881 }
882
883 private int memoizedSerializedSize = -1;
884 public override int SerializedSize {
885 get {
886 int size = memoizedSerializedSize;
887 if (size != -1) return size;
888
889 size = 0;
890 if (HasPropertyName) {
891 size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
892 }
893 size += UnknownFields.SerializedSize;
894 memoizedSerializedSize = size;
895 return size;
896 }
897 }
898
899 public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
900 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
901 }
902 public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
903 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
904 }
905 public static CSharpFieldOptions ParseFrom(byte[] data) {
906 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
907 }
908 public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
909 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
910 }
911 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
912 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
913 }
914 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
915 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
916 }
917 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
918 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
919 }
920 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
921 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
922 }
923 public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input) {
924 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
925 }
926 public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
927 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
928 }
929 public static Builder CreateBuilder() { return new Builder(); }
930 public override Builder ToBuilder() { return CreateBuilder(this); }
931 public override Builder CreateBuilderForType() { return new Builder(); }
932 public static Builder CreateBuilder(CSharpFieldOptions prototype) {
933 return (Builder) new Builder().MergeFrom(prototype);
934 }
935
936 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
937 protected override Builder ThisBuilder {
938 get { return this; }
939 }
940 public Builder() {}
941
942 CSharpFieldOptions result = new CSharpFieldOptions();
943
944 protected override CSharpFieldOptions MessageBeingBuilt {
945 get { return result; }
946 }
947
948 public override Builder Clear() {
949 result = new CSharpFieldOptions();
950 return this;
951 }
952
953 public override Builder Clone() {
954 return new Builder().MergeFrom(result);
955 }
956
957 public override pbd::MessageDescriptor DescriptorForType {
958 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
959 }
960
961 public override CSharpFieldOptions DefaultInstanceForType {
962 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
963 }
964
965 public override CSharpFieldOptions BuildPartial() {
966 if (result == null) {
967 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
968 }
969 CSharpFieldOptions returnMe = result;
970 result = null;
971 return returnMe;
972 }
973
974 public override Builder MergeFrom(pb::IMessage other) {
975 if (other is CSharpFieldOptions) {
976 return MergeFrom((CSharpFieldOptions) other);
977 } else {
978 base.MergeFrom(other);
979 return this;
980 }
981 }
982
983 public override Builder MergeFrom(CSharpFieldOptions other) {
984 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
985 if (other.HasPropertyName) {
986 PropertyName = other.PropertyName;
987 }
988 this.MergeUnknownFields(other.UnknownFields);
989 return this;
990 }
991
992 public override Builder MergeFrom(pb::CodedInputStream input) {
993 return MergeFrom(input, pb::ExtensionRegistry.Empty);
994 }
995
996 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
997 pb::UnknownFieldSet.Builder unknownFields = null;
998 while (true) {
999 uint tag = input.ReadTag();
1000 switch (tag) {
1001 case 0: {
1002 if (unknownFields != null) {
1003 this.UnknownFields = unknownFields.Build();
1004 }
1005 return this;
1006 }
1007 default: {
1008 if (pb::WireFormat.IsEndGroupTag(tag)) {
1009 if (unknownFields != null) {
1010 this.UnknownFields = unknownFields.Build();
1011 }
1012 return this;
1013 }
1014 if (unknownFields == null) {
1015 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1016 }
1017 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1018 break;
1019 }
1020 case 10: {
1021 PropertyName = input.ReadString();
1022 break;
1023 }
1024 }
1025 }
1026 }
1027
1028
1029 public bool HasPropertyName {
1030 get { return result.HasPropertyName; }
1031 }
1032 public string PropertyName {
1033 get { return result.PropertyName; }
1034 set { SetPropertyName(value); }
1035 }
1036 public Builder SetPropertyName(string value) {
1037 pb::ThrowHelper.ThrowIfNull(value, "value");
1038 result.hasPropertyName = true;
1039 result.propertyName_ = value;
1040 return this;
1041 }
1042 public Builder ClearPropertyName() {
1043 result.hasPropertyName = false;
1044 result.propertyName_ = "";
1045 return this;
1046 }
1047 }
1048 static CSharpFieldOptions() {
1049 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1050 }
1051 }
1052
1053 public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
1054 private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
1055 public static CSharpServiceOptions DefaultInstance {
1056 get { return defaultInstance; }
1057 }
1058
1059 public override CSharpServiceOptions DefaultInstanceForType {
1060 get { return defaultInstance; }
1061 }
1062
1063 protected override CSharpServiceOptions ThisMessage {
1064 get { return this; }
1065 }
1066
1067 public static pbd::MessageDescriptor Descriptor {
1068 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
1069 }
1070
1071 protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
1072 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
1073 }
1074
1075 public const int InterfaceIdFieldNumber = 1;
1076 private bool hasInterfaceId;
1077 private string interfaceId_ = "";
1078 public bool HasInterfaceId {
1079 get { return hasInterfaceId; }
1080 }
1081 public string InterfaceId {
1082 get { return interfaceId_; }
1083 }
1084
1085 public override bool IsInitialized {
1086 get {
1087 return true;
1088 }
1089 }
1090
1091 public override void WriteTo(pb::CodedOutputStream output) {
1092 int size = SerializedSize;
1093 if (HasInterfaceId) {
1094 output.WriteString(1, InterfaceId);
1095 }
1096 UnknownFields.WriteTo(output);
1097 }
1098
1099 private int memoizedSerializedSize = -1;
1100 public override int SerializedSize {
1101 get {
1102 int size = memoizedSerializedSize;
1103 if (size != -1) return size;
1104
1105 size = 0;
1106 if (HasInterfaceId) {
1107 size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
1108 }
1109 size += UnknownFields.SerializedSize;
1110 memoizedSerializedSize = size;
1111 return size;
1112 }
1113 }
1114
1115 public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
1116 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1117 }
1118 public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1119 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1120 }
1121 public static CSharpServiceOptions ParseFrom(byte[] data) {
1122 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1123 }
1124 public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1125 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1126 }
1127 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
1128 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1129 }
1130 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1131 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1132 }
1133 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1134 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1135 }
1136 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1137 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1138 }
1139 public static CSharpServiceOptions ParseFrom(pb::CodedInputStream input) {
1140 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1141 }
1142 public static CSharpServiceOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1143 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1144 }
1145 public static Builder CreateBuilder() { return new Builder(); }
1146 public override Builder ToBuilder() { return CreateBuilder(this); }
1147 public override Builder CreateBuilderForType() { return new Builder(); }
1148 public static Builder CreateBuilder(CSharpServiceOptions prototype) {
1149 return (Builder) new Builder().MergeFrom(prototype);
1150 }
1151
1152 public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
1153 protected override Builder ThisBuilder {
1154 get { return this; }
1155 }
1156 public Builder() {}
1157
1158 CSharpServiceOptions result = new CSharpServiceOptions();
1159
1160 protected override CSharpServiceOptions MessageBeingBuilt {
1161 get { return result; }
1162 }
1163
1164 public override Builder Clear() {
1165 result = new CSharpServiceOptions();
1166 return this;
1167 }
1168
1169 public override Builder Clone() {
1170 return new Builder().MergeFrom(result);
1171 }
1172
1173 public override pbd::MessageDescriptor DescriptorForType {
1174 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
1175 }
1176
1177 public override CSharpServiceOptions DefaultInstanceForType {
1178 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
1179 }
1180
1181 public override CSharpServiceOptions BuildPartial() {
1182 if (result == null) {
1183 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1184 }
1185 CSharpServiceOptions returnMe = result;
1186 result = null;
1187 return returnMe;
1188 }
1189
1190 public override Builder MergeFrom(pb::IMessage other) {
1191 if (other is CSharpServiceOptions) {
1192 return MergeFrom((CSharpServiceOptions) other);
1193 } else {
1194 base.MergeFrom(other);
1195 return this;
1196 }
1197 }
1198
1199 public override Builder MergeFrom(CSharpServiceOptions other) {
1200 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
1201 if (other.HasInterfaceId) {
1202 InterfaceId = other.InterfaceId;
1203 }
1204 this.MergeUnknownFields(other.UnknownFields);
1205 return this;
1206 }
1207
1208 public override Builder MergeFrom(pb::CodedInputStream input) {
1209 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1210 }
1211
1212 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1213 pb::UnknownFieldSet.Builder unknownFields = null;
1214 while (true) {
1215 uint tag = input.ReadTag();
1216 switch (tag) {
1217 case 0: {
1218 if (unknownFields != null) {
1219 this.UnknownFields = unknownFields.Build();
1220 }
1221 return this;
1222 }
1223 default: {
1224 if (pb::WireFormat.IsEndGroupTag(tag)) {
1225 if (unknownFields != null) {
1226 this.UnknownFields = unknownFields.Build();
1227 }
1228 return this;
1229 }
1230 if (unknownFields == null) {
1231 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1232 }
1233 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1234 break;
1235 }
1236 case 10: {
1237 InterfaceId = input.ReadString();
1238 break;
1239 }
1240 }
1241 }
1242 }
1243
1244
1245 public bool HasInterfaceId {
1246 get { return result.HasInterfaceId; }
1247 }
1248 public string InterfaceId {
1249 get { return result.InterfaceId; }
1250 set { SetInterfaceId(value); }
1251 }
1252 public Builder SetInterfaceId(string value) {
1253 pb::ThrowHelper.ThrowIfNull(value, "value");
1254 result.hasInterfaceId = true;
1255 result.interfaceId_ = value;
1256 return this;
1257 }
1258 public Builder ClearInterfaceId() {
1259 result.hasInterfaceId = false;
1260 result.interfaceId_ = "";
1261 return this;
1262 }
1263 }
1264 static CSharpServiceOptions() {
1265 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1266 }
1267 }
1268
1269 public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
1270 private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
1271 public static CSharpMethodOptions DefaultInstance {
1272 get { return defaultInstance; }
1273 }
1274
1275 public override CSharpMethodOptions DefaultInstanceForType {
1276 get { return defaultInstance; }
1277 }
1278
1279 protected override CSharpMethodOptions ThisMessage {
1280 get { return this; }
1281 }
1282
1283 public static pbd::MessageDescriptor Descriptor {
1284 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
1285 }
1286
1287 protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
1288 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
1289 }
1290
1291 public const int DispatchIdFieldNumber = 1;
1292 private bool hasDispatchId;
1293 private int dispatchId_ = 0;
1294 public bool HasDispatchId {
1295 get { return hasDispatchId; }
1296 }
1297 public int DispatchId {
1298 get { return dispatchId_; }
1299 }
1300
1301 public override bool IsInitialized {
1302 get {
1303 return true;
1304 }
1305 }
1306
1307 public override void WriteTo(pb::CodedOutputStream output) {
1308 int size = SerializedSize;
1309 if (HasDispatchId) {
1310 output.WriteInt32(1, DispatchId);
1311 }
1312 UnknownFields.WriteTo(output);
1313 }
1314
1315 private int memoizedSerializedSize = -1;
1316 public override int SerializedSize {
1317 get {
1318 int size = memoizedSerializedSize;
1319 if (size != -1) return size;
1320
1321 size = 0;
1322 if (HasDispatchId) {
1323 size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
1324 }
1325 size += UnknownFields.SerializedSize;
1326 memoizedSerializedSize = size;
1327 return size;
1328 }
1329 }
1330
1331 public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
1332 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1333 }
1334 public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1335 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1336 }
1337 public static CSharpMethodOptions ParseFrom(byte[] data) {
1338 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1339 }
1340 public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1341 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1342 }
1343 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
1344 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1345 }
1346 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1347 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1348 }
1349 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1350 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1351 }
1352 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1353 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1354 }
1355 public static CSharpMethodOptions ParseFrom(pb::CodedInputStream input) {
1356 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1357 }
1358 public static CSharpMethodOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1359 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1360 }
1361 public static Builder CreateBuilder() { return new Builder(); }
1362 public override Builder ToBuilder() { return CreateBuilder(this); }
1363 public override Builder CreateBuilderForType() { return new Builder(); }
1364 public static Builder CreateBuilder(CSharpMethodOptions prototype) {
1365 return (Builder) new Builder().MergeFrom(prototype);
1366 }
1367
1368 public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
1369 protected override Builder ThisBuilder {
1370 get { return this; }
1371 }
1372 public Builder() {}
1373
1374 CSharpMethodOptions result = new CSharpMethodOptions();
1375
1376 protected override CSharpMethodOptions MessageBeingBuilt {
1377 get { return result; }
1378 }
1379
1380 public override Builder Clear() {
1381 result = new CSharpMethodOptions();
1382 return this;
1383 }
1384
1385 public override Builder Clone() {
1386 return new Builder().MergeFrom(result);
1387 }
1388
1389 public override pbd::MessageDescriptor DescriptorForType {
1390 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
1391 }
1392
1393 public override CSharpMethodOptions DefaultInstanceForType {
1394 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
1395 }
1396
1397 public override CSharpMethodOptions BuildPartial() {
1398 if (result == null) {
1399 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1400 }
1401 CSharpMethodOptions returnMe = result;
1402 result = null;
1403 return returnMe;
1404 }
1405
1406 public override Builder MergeFrom(pb::IMessage other) {
1407 if (other is CSharpMethodOptions) {
1408 return MergeFrom((CSharpMethodOptions) other);
1409 } else {
1410 base.MergeFrom(other);
1411 return this;
1412 }
1413 }
1414
1415 public override Builder MergeFrom(CSharpMethodOptions other) {
1416 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
1417 if (other.HasDispatchId) {
1418 DispatchId = other.DispatchId;
1419 }
1420 this.MergeUnknownFields(other.UnknownFields);
1421 return this;
1422 }
1423
1424 public override Builder MergeFrom(pb::CodedInputStream input) {
1425 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1426 }
1427
1428 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
1429 pb::UnknownFieldSet.Builder unknownFields = null;
1430 while (true) {
1431 uint tag = input.ReadTag();
1432 switch (tag) {
1433 case 0: {
1434 if (unknownFields != null) {
1435 this.UnknownFields = unknownFields.Build();
1436 }
1437 return this;
1438 }
1439 default: {
1440 if (pb::WireFormat.IsEndGroupTag(tag)) {
1441 if (unknownFields != null) {
1442 this.UnknownFields = unknownFields.Build();
1443 }
1444 return this;
1445 }
1446 if (unknownFields == null) {
1447 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1448 }
1449 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
1450 break;
1451 }
1452 case 8: {
1453 DispatchId = input.ReadInt32();
1454 break;
1455 }
1456 }
1457 }
1458 }
1459
1460
1461 public bool HasDispatchId {
1462 get { return result.HasDispatchId; }
1463 }
1464 public int DispatchId {
1465 get { return result.DispatchId; }
1466 set { SetDispatchId(value); }
1467 }
1468 public Builder SetDispatchId(int value) {
1469 result.hasDispatchId = true;
1470 result.dispatchId_ = value;
1471 return this;
1472 }
1473 public Builder ClearDispatchId() {
1474 result.hasDispatchId = false;
1475 result.dispatchId_ = 0;
1476 return this;
1477 }
1478 }
1479 static CSharpMethodOptions() {
1480 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1481 }
1482 }
1483
1484 #endregion
1485
1486}