blob: 76cb1fee7d5ef44c732e0f1a6d16950c442a9ba0 [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!
csharptest4a594ca2011-09-09 15:53:10 -05002#pragma warning disable 1591, 0612
csharptest2d887332011-08-12 20:13:44 -05003#region Designer generated code
Jon Skeet82bb0f12011-04-03 20:17:12 +01004
5using pb = global::Google.ProtocolBuffers;
6using pbc = global::Google.ProtocolBuffers.Collections;
7using pbd = global::Google.ProtocolBuffers.Descriptors;
8using scg = global::System.Collections.Generic;
csharptest714b8692011-05-20 15:23:36 -05009namespace Google.ProtocolBuffers.DescriptorProtos {
10
csharptest445bdce2011-05-20 15:50:54 -050011 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
12 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
13 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -050014 public static partial class CSharpOptions {
15
16 #region Extension registration
17 public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
18 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
19 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
20 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions);
21 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions);
Jon Skeet82bb0f12011-04-03 20:17:12 +010022 }
23 #endregion
csharptest714b8692011-05-20 15:23:36 -050024 #region Extensions
25 public const int CSharpFileOptionsFieldNumber = 1000;
26 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
27 public const int CSharpFieldOptionsFieldNumber = 1000;
28 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
29 public const int CsharpServiceOptionsFieldNumber = 1000;
30 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions> CsharpServiceOptions;
31 public const int CsharpMethodOptionsFieldNumber = 1000;
32 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions> CsharpMethodOptions;
Jon Skeet82bb0f12011-04-03 20:17:12 +010033 #endregion
csharptest714b8692011-05-20 15:23:36 -050034
35 #region Static variables
36 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
37 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
38 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
39 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
40 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
41 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
42 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
43 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder> internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
44 #endregion
45 #region Descriptor
46 public static pbd::FileDescriptor Descriptor {
47 get { return descriptor; }
48 }
49 private static pbd::FileDescriptor descriptor;
50
51 static CSharpOptions() {
52 byte[] descriptorData = global::System.Convert.FromBase64String(
53 "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
54 "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
csharptest3c6e9322011-09-09 18:14:40 -050055 "1wMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
csharptest714b8692011-05-20 15:23:36 -050056 "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
57 "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
58 "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
59 "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
csharptest3c6e9322011-09-09 18:14:40 -050060 "CCABKAg6BHRydWUSHwoQYWRkX3NlcmlhbGl6YWJsZRgJIAEoCDoFZmFsc2US" +
61 "HAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoSdW1icmVsbGFfbmFt" +
62 "ZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5GN8BIAEoCToBLhIm" +
63 "ChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoFZmFsc2USSQoWc2Vy" +
64 "dmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29nbGUucHJvdG9idWYu" +
65 "Q1NoYXJwU2VydmljZVR5cGU6BE5PTkUiKwoSQ1NoYXJwRmllbGRPcHRpb25z" +
66 "EhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1NoYXJwU2VydmljZU9wdGlv" +
67 "bnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NTaGFycE1ldGhvZE9wdGlv" +
68 "bnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqSwoRQ1NoYXJwU2VydmljZVR5cGUS" +
69 "CAoETk9ORRAAEgsKB0dFTkVSSUMQARINCglJTlRFUkZBQ0UQAhIQCgxJUlBD" +
70 "RElTUEFUQ0gQAzpeChNjc2hhcnBfZmlsZV9vcHRpb25zEhwuZ29vZ2xlLnBy" +
71 "b3RvYnVmLkZpbGVPcHRpb25zGOgHIAEoCzIiLmdvb2dsZS5wcm90b2J1Zi5D" +
72 "U2hhcnBGaWxlT3B0aW9uczphChRjc2hhcnBfZmllbGRfb3B0aW9ucxIdLmdv" +
73 "b2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6AcgASgLMiMuZ29vZ2xlLnBy" +
74 "b3RvYnVmLkNTaGFycEZpZWxkT3B0aW9uczpnChZjc2hhcnBfc2VydmljZV9v" +
75 "cHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zGOgHIAEo" +
76 "CzIlLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBTZXJ2aWNlT3B0aW9uczpkChVj" +
77 "c2hhcnBfbWV0aG9kX29wdGlvbnMSHi5nb29nbGUucHJvdG9idWYuTWV0aG9k" +
78 "T3B0aW9ucxjoByABKAsyJC5nb29nbGUucHJvdG9idWYuQ1NoYXJwTWV0aG9k" +
79 "T3B0aW9ucw==");
csharptest714b8692011-05-20 15:23:36 -050080 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
81 descriptor = root;
82 internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
83 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
84 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
csharptest3c6e9322011-09-09 18:14:40 -050085 new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "AddSerializable", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", "ServiceGeneratorType", });
csharptest714b8692011-05-20 15:23:36 -050086 internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
87 internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
88 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
89 new string[] { "PropertyName", });
90 internal__static_google_protobuf_CSharpServiceOptions__Descriptor = Descriptor.MessageTypes[2];
91 internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable =
92 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>(internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
93 new string[] { "InterfaceId", });
94 internal__static_google_protobuf_CSharpMethodOptions__Descriptor = Descriptor.MessageTypes[3];
95 internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable =
96 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>(internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
97 new string[] { "DispatchId", });
98 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
99 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
100 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[2]);
101 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[3]);
102 return null;
103 };
104 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
105 new pbd::FileDescriptor[] {
106 global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
107 }, assigner);
108 }
109 #endregion
110
111 }
112 #region Enums
csharptest445bdce2011-05-20 15:50:54 -0500113 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
114 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500115 public enum CSharpServiceType {
116 NONE = 0,
117 GENERIC = 1,
118 INTERFACE = 2,
119 IRPCDISPATCH = 3,
120 }
121
122 #endregion
123
124 #region Messages
csharptest445bdce2011-05-20 15:50:54 -0500125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
126 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
127 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500128 public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -0500129 private CSharpFileOptions() { }
csharptest714b8692011-05-20 15:23:36 -0500130 private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
csharptest3c6e9322011-09-09 18:14:40 -0500131 private static readonly string[] _cSharpFileOptionsFieldNames = new string[] { "add_serializable", "cls_compliance", "code_contracts", "expand_namespace_directories", "file_extension", "ignore_google_protobuf", "multiple_files", "namespace", "nest_classes", "output_directory", "public_classes", "service_generator_type", "umbrella_classname", "umbrella_namespace" };
132 private static readonly uint[] _cSharpFileOptionsFieldTags = new uint[] { 72, 64, 48, 56, 1770, 1792, 32, 10, 40, 1786, 24, 1800, 18, 1778 };
csharptest714b8692011-05-20 15:23:36 -0500133 public static CSharpFileOptions DefaultInstance {
134 get { return defaultInstance; }
135 }
136
137 public override CSharpFileOptions DefaultInstanceForType {
138 get { return defaultInstance; }
139 }
140
141 protected override CSharpFileOptions ThisMessage {
142 get { return this; }
143 }
144
145 public static pbd::MessageDescriptor Descriptor {
146 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
147 }
148
149 protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
150 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
151 }
152
153 public const int NamespaceFieldNumber = 1;
154 private bool hasNamespace;
155 private string namespace_ = "";
156 public bool HasNamespace {
157 get { return hasNamespace; }
158 }
159 public string Namespace {
160 get { return namespace_; }
161 }
162
163 public const int UmbrellaClassnameFieldNumber = 2;
164 private bool hasUmbrellaClassname;
165 private string umbrellaClassname_ = "";
166 public bool HasUmbrellaClassname {
167 get { return hasUmbrellaClassname; }
168 }
169 public string UmbrellaClassname {
170 get { return umbrellaClassname_; }
171 }
172
173 public const int PublicClassesFieldNumber = 3;
174 private bool hasPublicClasses;
175 private bool publicClasses_ = true;
176 public bool HasPublicClasses {
177 get { return hasPublicClasses; }
178 }
179 public bool PublicClasses {
180 get { return publicClasses_; }
181 }
182
183 public const int MultipleFilesFieldNumber = 4;
184 private bool hasMultipleFiles;
csharptestced18e12011-06-09 19:47:56 -0500185 private bool multipleFiles_;
csharptest714b8692011-05-20 15:23:36 -0500186 public bool HasMultipleFiles {
187 get { return hasMultipleFiles; }
188 }
189 public bool MultipleFiles {
190 get { return multipleFiles_; }
191 }
192
193 public const int NestClassesFieldNumber = 5;
194 private bool hasNestClasses;
csharptestced18e12011-06-09 19:47:56 -0500195 private bool nestClasses_;
csharptest714b8692011-05-20 15:23:36 -0500196 public bool HasNestClasses {
197 get { return hasNestClasses; }
198 }
199 public bool NestClasses {
200 get { return nestClasses_; }
201 }
202
203 public const int CodeContractsFieldNumber = 6;
204 private bool hasCodeContracts;
csharptestced18e12011-06-09 19:47:56 -0500205 private bool codeContracts_;
csharptest714b8692011-05-20 15:23:36 -0500206 public bool HasCodeContracts {
207 get { return hasCodeContracts; }
208 }
209 public bool CodeContracts {
210 get { return codeContracts_; }
211 }
212
213 public const int ExpandNamespaceDirectoriesFieldNumber = 7;
214 private bool hasExpandNamespaceDirectories;
csharptestced18e12011-06-09 19:47:56 -0500215 private bool expandNamespaceDirectories_;
csharptest714b8692011-05-20 15:23:36 -0500216 public bool HasExpandNamespaceDirectories {
217 get { return hasExpandNamespaceDirectories; }
218 }
219 public bool ExpandNamespaceDirectories {
220 get { return expandNamespaceDirectories_; }
221 }
222
223 public const int ClsComplianceFieldNumber = 8;
224 private bool hasClsCompliance;
225 private bool clsCompliance_ = true;
226 public bool HasClsCompliance {
227 get { return hasClsCompliance; }
228 }
229 public bool ClsCompliance {
230 get { return clsCompliance_; }
231 }
232
csharptest3c6e9322011-09-09 18:14:40 -0500233 public const int AddSerializableFieldNumber = 9;
234 private bool hasAddSerializable;
235 private bool addSerializable_;
236 public bool HasAddSerializable {
237 get { return hasAddSerializable; }
238 }
239 public bool AddSerializable {
240 get { return addSerializable_; }
241 }
242
csharptest714b8692011-05-20 15:23:36 -0500243 public const int FileExtensionFieldNumber = 221;
244 private bool hasFileExtension;
245 private string fileExtension_ = ".cs";
246 public bool HasFileExtension {
247 get { return hasFileExtension; }
248 }
249 public string FileExtension {
250 get { return fileExtension_; }
251 }
252
253 public const int UmbrellaNamespaceFieldNumber = 222;
254 private bool hasUmbrellaNamespace;
255 private string umbrellaNamespace_ = "";
256 public bool HasUmbrellaNamespace {
257 get { return hasUmbrellaNamespace; }
258 }
259 public string UmbrellaNamespace {
260 get { return umbrellaNamespace_; }
261 }
262
263 public const int OutputDirectoryFieldNumber = 223;
264 private bool hasOutputDirectory;
265 private string outputDirectory_ = ".";
266 public bool HasOutputDirectory {
267 get { return hasOutputDirectory; }
268 }
269 public string OutputDirectory {
270 get { return outputDirectory_; }
271 }
272
273 public const int IgnoreGoogleProtobufFieldNumber = 224;
274 private bool hasIgnoreGoogleProtobuf;
csharptestced18e12011-06-09 19:47:56 -0500275 private bool ignoreGoogleProtobuf_;
csharptest714b8692011-05-20 15:23:36 -0500276 public bool HasIgnoreGoogleProtobuf {
277 get { return hasIgnoreGoogleProtobuf; }
278 }
279 public bool IgnoreGoogleProtobuf {
280 get { return ignoreGoogleProtobuf_; }
281 }
282
283 public const int ServiceGeneratorTypeFieldNumber = 225;
284 private bool hasServiceGeneratorType;
285 private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
286 public bool HasServiceGeneratorType {
287 get { return hasServiceGeneratorType; }
288 }
289 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
290 get { return serviceGeneratorType_; }
291 }
292
293 public override bool IsInitialized {
294 get {
295 return true;
296 }
297 }
298
csharptestffafdaa2011-06-03 12:58:14 -0500299 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500300 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500301 string[] field_names = _cSharpFileOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500302 if (hasNamespace) {
csharptest3c6e9322011-09-09 18:14:40 -0500303 output.WriteString(1, field_names[7], Namespace);
csharptest714b8692011-05-20 15:23:36 -0500304 }
csharptestc671a4b2011-06-08 11:51:24 -0500305 if (hasUmbrellaClassname) {
csharptest3c6e9322011-09-09 18:14:40 -0500306 output.WriteString(2, field_names[12], UmbrellaClassname);
csharptest714b8692011-05-20 15:23:36 -0500307 }
csharptestc671a4b2011-06-08 11:51:24 -0500308 if (hasPublicClasses) {
csharptest3c6e9322011-09-09 18:14:40 -0500309 output.WriteBool(3, field_names[10], PublicClasses);
csharptest714b8692011-05-20 15:23:36 -0500310 }
csharptestc671a4b2011-06-08 11:51:24 -0500311 if (hasMultipleFiles) {
csharptest3c6e9322011-09-09 18:14:40 -0500312 output.WriteBool(4, field_names[6], MultipleFiles);
csharptest714b8692011-05-20 15:23:36 -0500313 }
csharptestc671a4b2011-06-08 11:51:24 -0500314 if (hasNestClasses) {
csharptest3c6e9322011-09-09 18:14:40 -0500315 output.WriteBool(5, field_names[8], NestClasses);
csharptest714b8692011-05-20 15:23:36 -0500316 }
csharptestc671a4b2011-06-08 11:51:24 -0500317 if (hasCodeContracts) {
csharptest3c6e9322011-09-09 18:14:40 -0500318 output.WriteBool(6, field_names[2], CodeContracts);
csharptest714b8692011-05-20 15:23:36 -0500319 }
csharptestc671a4b2011-06-08 11:51:24 -0500320 if (hasExpandNamespaceDirectories) {
csharptest3c6e9322011-09-09 18:14:40 -0500321 output.WriteBool(7, field_names[3], ExpandNamespaceDirectories);
csharptest714b8692011-05-20 15:23:36 -0500322 }
csharptestc671a4b2011-06-08 11:51:24 -0500323 if (hasClsCompliance) {
csharptest3c6e9322011-09-09 18:14:40 -0500324 output.WriteBool(8, field_names[1], ClsCompliance);
325 }
326 if (hasAddSerializable) {
327 output.WriteBool(9, field_names[0], AddSerializable);
csharptest714b8692011-05-20 15:23:36 -0500328 }
csharptestc671a4b2011-06-08 11:51:24 -0500329 if (hasFileExtension) {
csharptest3c6e9322011-09-09 18:14:40 -0500330 output.WriteString(221, field_names[4], FileExtension);
csharptest714b8692011-05-20 15:23:36 -0500331 }
csharptestc671a4b2011-06-08 11:51:24 -0500332 if (hasUmbrellaNamespace) {
csharptest3c6e9322011-09-09 18:14:40 -0500333 output.WriteString(222, field_names[13], UmbrellaNamespace);
csharptest714b8692011-05-20 15:23:36 -0500334 }
csharptestc671a4b2011-06-08 11:51:24 -0500335 if (hasOutputDirectory) {
csharptest3c6e9322011-09-09 18:14:40 -0500336 output.WriteString(223, field_names[9], OutputDirectory);
csharptest714b8692011-05-20 15:23:36 -0500337 }
csharptestc671a4b2011-06-08 11:51:24 -0500338 if (hasIgnoreGoogleProtobuf) {
csharptest3c6e9322011-09-09 18:14:40 -0500339 output.WriteBool(224, field_names[5], IgnoreGoogleProtobuf);
csharptest714b8692011-05-20 15:23:36 -0500340 }
csharptestc671a4b2011-06-08 11:51:24 -0500341 if (hasServiceGeneratorType) {
csharptest3c6e9322011-09-09 18:14:40 -0500342 output.WriteEnum(225, field_names[11], (int) ServiceGeneratorType, ServiceGeneratorType);
csharptest714b8692011-05-20 15:23:36 -0500343 }
344 UnknownFields.WriteTo(output);
345 }
346
347 private int memoizedSerializedSize = -1;
348 public override int SerializedSize {
349 get {
350 int size = memoizedSerializedSize;
351 if (size != -1) return size;
352
353 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500354 if (hasNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500355 size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
356 }
csharptestc671a4b2011-06-08 11:51:24 -0500357 if (hasUmbrellaClassname) {
csharptest714b8692011-05-20 15:23:36 -0500358 size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
359 }
csharptestc671a4b2011-06-08 11:51:24 -0500360 if (hasPublicClasses) {
csharptest714b8692011-05-20 15:23:36 -0500361 size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
362 }
csharptestc671a4b2011-06-08 11:51:24 -0500363 if (hasMultipleFiles) {
csharptest714b8692011-05-20 15:23:36 -0500364 size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
365 }
csharptestc671a4b2011-06-08 11:51:24 -0500366 if (hasNestClasses) {
csharptest714b8692011-05-20 15:23:36 -0500367 size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
368 }
csharptestc671a4b2011-06-08 11:51:24 -0500369 if (hasCodeContracts) {
csharptest714b8692011-05-20 15:23:36 -0500370 size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
371 }
csharptestc671a4b2011-06-08 11:51:24 -0500372 if (hasExpandNamespaceDirectories) {
csharptest714b8692011-05-20 15:23:36 -0500373 size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
374 }
csharptestc671a4b2011-06-08 11:51:24 -0500375 if (hasClsCompliance) {
csharptest714b8692011-05-20 15:23:36 -0500376 size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
377 }
csharptest3c6e9322011-09-09 18:14:40 -0500378 if (hasAddSerializable) {
379 size += pb::CodedOutputStream.ComputeBoolSize(9, AddSerializable);
380 }
csharptestc671a4b2011-06-08 11:51:24 -0500381 if (hasFileExtension) {
csharptest714b8692011-05-20 15:23:36 -0500382 size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
383 }
csharptestc671a4b2011-06-08 11:51:24 -0500384 if (hasUmbrellaNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500385 size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
386 }
csharptestc671a4b2011-06-08 11:51:24 -0500387 if (hasOutputDirectory) {
csharptest714b8692011-05-20 15:23:36 -0500388 size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
389 }
csharptestc671a4b2011-06-08 11:51:24 -0500390 if (hasIgnoreGoogleProtobuf) {
csharptest714b8692011-05-20 15:23:36 -0500391 size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
392 }
csharptestc671a4b2011-06-08 11:51:24 -0500393 if (hasServiceGeneratorType) {
csharptest714b8692011-05-20 15:23:36 -0500394 size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
395 }
396 size += UnknownFields.SerializedSize;
397 memoizedSerializedSize = size;
398 return size;
399 }
400 }
401
402 public static CSharpFileOptions ParseFrom(pb::ByteString data) {
403 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
404 }
405 public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
406 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
407 }
408 public static CSharpFileOptions ParseFrom(byte[] data) {
409 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
410 }
411 public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
412 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
413 }
414 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
415 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
416 }
417 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
418 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
419 }
420 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
421 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
422 }
423 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
424 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
425 }
csharptest17699c22011-06-03 21:57:15 -0500426 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500427 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
428 }
csharptest17699c22011-06-03 21:57:15 -0500429 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500430 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
431 }
432 public static Builder CreateBuilder() { return new Builder(); }
433 public override Builder ToBuilder() { return CreateBuilder(this); }
434 public override Builder CreateBuilderForType() { return new Builder(); }
435 public static Builder CreateBuilder(CSharpFileOptions prototype) {
436 return (Builder) new Builder().MergeFrom(prototype);
437 }
438
csharptest445bdce2011-05-20 15:50:54 -0500439 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
440 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
441 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500442 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
443 protected override Builder ThisBuilder {
444 get { return this; }
445 }
446 public Builder() {}
447
448 CSharpFileOptions result = new CSharpFileOptions();
449
450 protected override CSharpFileOptions MessageBeingBuilt {
451 get { return result; }
452 }
453
454 public override Builder Clear() {
455 result = new CSharpFileOptions();
456 return this;
457 }
458
459 public override Builder Clone() {
460 return new Builder().MergeFrom(result);
461 }
462
463 public override pbd::MessageDescriptor DescriptorForType {
464 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
465 }
466
467 public override CSharpFileOptions DefaultInstanceForType {
468 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
469 }
470
471 public override CSharpFileOptions BuildPartial() {
472 if (result == null) {
473 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
474 }
475 CSharpFileOptions returnMe = result;
476 result = null;
477 return returnMe;
478 }
479
480 public override Builder MergeFrom(pb::IMessage other) {
481 if (other is CSharpFileOptions) {
482 return MergeFrom((CSharpFileOptions) other);
483 } else {
484 base.MergeFrom(other);
485 return this;
486 }
487 }
488
489 public override Builder MergeFrom(CSharpFileOptions other) {
490 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
491 if (other.HasNamespace) {
492 Namespace = other.Namespace;
493 }
494 if (other.HasUmbrellaClassname) {
495 UmbrellaClassname = other.UmbrellaClassname;
496 }
497 if (other.HasPublicClasses) {
498 PublicClasses = other.PublicClasses;
499 }
500 if (other.HasMultipleFiles) {
501 MultipleFiles = other.MultipleFiles;
502 }
503 if (other.HasNestClasses) {
504 NestClasses = other.NestClasses;
505 }
506 if (other.HasCodeContracts) {
507 CodeContracts = other.CodeContracts;
508 }
509 if (other.HasExpandNamespaceDirectories) {
510 ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
511 }
512 if (other.HasClsCompliance) {
513 ClsCompliance = other.ClsCompliance;
514 }
csharptest3c6e9322011-09-09 18:14:40 -0500515 if (other.HasAddSerializable) {
516 AddSerializable = other.AddSerializable;
517 }
csharptest714b8692011-05-20 15:23:36 -0500518 if (other.HasFileExtension) {
519 FileExtension = other.FileExtension;
520 }
521 if (other.HasUmbrellaNamespace) {
522 UmbrellaNamespace = other.UmbrellaNamespace;
523 }
524 if (other.HasOutputDirectory) {
525 OutputDirectory = other.OutputDirectory;
526 }
527 if (other.HasIgnoreGoogleProtobuf) {
528 IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
529 }
530 if (other.HasServiceGeneratorType) {
531 ServiceGeneratorType = other.ServiceGeneratorType;
532 }
533 this.MergeUnknownFields(other.UnknownFields);
534 return this;
535 }
536
csharptest17699c22011-06-03 21:57:15 -0500537 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500538 return MergeFrom(input, pb::ExtensionRegistry.Empty);
539 }
540
csharptest17699c22011-06-03 21:57:15 -0500541 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500542 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -0500543 uint tag;
544 string field_name;
545 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -0500546 if(tag == 0 && field_name != null) {
547 int field_ordinal = global::System.Array.BinarySearch(_cSharpFileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
548 if(field_ordinal >= 0)
549 tag = _cSharpFileOptionsFieldTags[field_ordinal];
550 else {
551 if (unknownFields == null) {
552 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
553 }
554 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
555 continue;
556 }
557 }
csharptest714b8692011-05-20 15:23:36 -0500558 switch (tag) {
559 case 0: {
csharptest99284412011-06-03 14:51:06 -0500560 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -0500561 }
562 default: {
563 if (pb::WireFormat.IsEndGroupTag(tag)) {
564 if (unknownFields != null) {
565 this.UnknownFields = unknownFields.Build();
566 }
567 return this;
568 }
569 if (unknownFields == null) {
570 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
571 }
csharptestd2af9e92011-06-03 21:35:02 -0500572 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -0500573 break;
574 }
575 case 10: {
csharptest920b09a2011-06-08 20:13:29 -0500576 result.hasNamespace = input.ReadString(ref result.namespace_);
csharptest714b8692011-05-20 15:23:36 -0500577 break;
578 }
579 case 18: {
csharptest920b09a2011-06-08 20:13:29 -0500580 result.hasUmbrellaClassname = input.ReadString(ref result.umbrellaClassname_);
csharptest714b8692011-05-20 15:23:36 -0500581 break;
582 }
583 case 24: {
csharptest920b09a2011-06-08 20:13:29 -0500584 result.hasPublicClasses = input.ReadBool(ref result.publicClasses_);
csharptest714b8692011-05-20 15:23:36 -0500585 break;
586 }
587 case 32: {
csharptest920b09a2011-06-08 20:13:29 -0500588 result.hasMultipleFiles = input.ReadBool(ref result.multipleFiles_);
csharptest714b8692011-05-20 15:23:36 -0500589 break;
590 }
591 case 40: {
csharptest920b09a2011-06-08 20:13:29 -0500592 result.hasNestClasses = input.ReadBool(ref result.nestClasses_);
csharptest714b8692011-05-20 15:23:36 -0500593 break;
594 }
595 case 48: {
csharptest920b09a2011-06-08 20:13:29 -0500596 result.hasCodeContracts = input.ReadBool(ref result.codeContracts_);
csharptest714b8692011-05-20 15:23:36 -0500597 break;
598 }
599 case 56: {
csharptest920b09a2011-06-08 20:13:29 -0500600 result.hasExpandNamespaceDirectories = input.ReadBool(ref result.expandNamespaceDirectories_);
csharptest714b8692011-05-20 15:23:36 -0500601 break;
602 }
603 case 64: {
csharptest920b09a2011-06-08 20:13:29 -0500604 result.hasClsCompliance = input.ReadBool(ref result.clsCompliance_);
csharptest714b8692011-05-20 15:23:36 -0500605 break;
606 }
csharptest3c6e9322011-09-09 18:14:40 -0500607 case 72: {
608 result.hasAddSerializable = input.ReadBool(ref result.addSerializable_);
609 break;
610 }
csharptest714b8692011-05-20 15:23:36 -0500611 case 1770: {
csharptest920b09a2011-06-08 20:13:29 -0500612 result.hasFileExtension = input.ReadString(ref result.fileExtension_);
csharptest714b8692011-05-20 15:23:36 -0500613 break;
614 }
615 case 1778: {
csharptest920b09a2011-06-08 20:13:29 -0500616 result.hasUmbrellaNamespace = input.ReadString(ref result.umbrellaNamespace_);
csharptest714b8692011-05-20 15:23:36 -0500617 break;
618 }
619 case 1786: {
csharptest920b09a2011-06-08 20:13:29 -0500620 result.hasOutputDirectory = input.ReadString(ref result.outputDirectory_);
csharptest714b8692011-05-20 15:23:36 -0500621 break;
622 }
623 case 1792: {
csharptest920b09a2011-06-08 20:13:29 -0500624 result.hasIgnoreGoogleProtobuf = input.ReadBool(ref result.ignoreGoogleProtobuf_);
csharptest714b8692011-05-20 15:23:36 -0500625 break;
626 }
627 case 1800: {
csharptestd2af9e92011-06-03 21:35:02 -0500628 object unknown;
629 if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
630 result.hasServiceGeneratorType = true;
631 } else if(unknown is int) {
csharptest714b8692011-05-20 15:23:36 -0500632 if (unknownFields == null) {
633 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
634 }
csharptestd2af9e92011-06-03 21:35:02 -0500635 unknownFields.MergeVarintField(225, (ulong)(int)unknown);
csharptest714b8692011-05-20 15:23:36 -0500636 }
637 break;
638 }
639 }
640 }
csharptest123e5342011-06-03 14:15:21 -0500641
642 if (unknownFields != null) {
643 this.UnknownFields = unknownFields.Build();
644 }
645 return this;
csharptest714b8692011-05-20 15:23:36 -0500646 }
647
648
649 public bool HasNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500650 get { return result.hasNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500651 }
652 public string Namespace {
653 get { return result.Namespace; }
654 set { SetNamespace(value); }
655 }
656 public Builder SetNamespace(string value) {
657 pb::ThrowHelper.ThrowIfNull(value, "value");
658 result.hasNamespace = true;
659 result.namespace_ = value;
660 return this;
661 }
662 public Builder ClearNamespace() {
663 result.hasNamespace = false;
664 result.namespace_ = "";
665 return this;
666 }
667
668 public bool HasUmbrellaClassname {
csharptestc671a4b2011-06-08 11:51:24 -0500669 get { return result.hasUmbrellaClassname; }
csharptest714b8692011-05-20 15:23:36 -0500670 }
671 public string UmbrellaClassname {
672 get { return result.UmbrellaClassname; }
673 set { SetUmbrellaClassname(value); }
674 }
675 public Builder SetUmbrellaClassname(string value) {
676 pb::ThrowHelper.ThrowIfNull(value, "value");
677 result.hasUmbrellaClassname = true;
678 result.umbrellaClassname_ = value;
679 return this;
680 }
681 public Builder ClearUmbrellaClassname() {
682 result.hasUmbrellaClassname = false;
683 result.umbrellaClassname_ = "";
684 return this;
685 }
686
687 public bool HasPublicClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500688 get { return result.hasPublicClasses; }
csharptest714b8692011-05-20 15:23:36 -0500689 }
690 public bool PublicClasses {
691 get { return result.PublicClasses; }
692 set { SetPublicClasses(value); }
693 }
694 public Builder SetPublicClasses(bool value) {
695 result.hasPublicClasses = true;
696 result.publicClasses_ = value;
697 return this;
698 }
699 public Builder ClearPublicClasses() {
700 result.hasPublicClasses = false;
701 result.publicClasses_ = true;
702 return this;
703 }
704
705 public bool HasMultipleFiles {
csharptestc671a4b2011-06-08 11:51:24 -0500706 get { return result.hasMultipleFiles; }
csharptest714b8692011-05-20 15:23:36 -0500707 }
708 public bool MultipleFiles {
709 get { return result.MultipleFiles; }
710 set { SetMultipleFiles(value); }
711 }
712 public Builder SetMultipleFiles(bool value) {
713 result.hasMultipleFiles = true;
714 result.multipleFiles_ = value;
715 return this;
716 }
717 public Builder ClearMultipleFiles() {
718 result.hasMultipleFiles = false;
719 result.multipleFiles_ = false;
720 return this;
721 }
722
723 public bool HasNestClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500724 get { return result.hasNestClasses; }
csharptest714b8692011-05-20 15:23:36 -0500725 }
726 public bool NestClasses {
727 get { return result.NestClasses; }
728 set { SetNestClasses(value); }
729 }
730 public Builder SetNestClasses(bool value) {
731 result.hasNestClasses = true;
732 result.nestClasses_ = value;
733 return this;
734 }
735 public Builder ClearNestClasses() {
736 result.hasNestClasses = false;
737 result.nestClasses_ = false;
738 return this;
739 }
740
741 public bool HasCodeContracts {
csharptestc671a4b2011-06-08 11:51:24 -0500742 get { return result.hasCodeContracts; }
csharptest714b8692011-05-20 15:23:36 -0500743 }
744 public bool CodeContracts {
745 get { return result.CodeContracts; }
746 set { SetCodeContracts(value); }
747 }
748 public Builder SetCodeContracts(bool value) {
749 result.hasCodeContracts = true;
750 result.codeContracts_ = value;
751 return this;
752 }
753 public Builder ClearCodeContracts() {
754 result.hasCodeContracts = false;
755 result.codeContracts_ = false;
756 return this;
757 }
758
759 public bool HasExpandNamespaceDirectories {
csharptestc671a4b2011-06-08 11:51:24 -0500760 get { return result.hasExpandNamespaceDirectories; }
csharptest714b8692011-05-20 15:23:36 -0500761 }
762 public bool ExpandNamespaceDirectories {
763 get { return result.ExpandNamespaceDirectories; }
764 set { SetExpandNamespaceDirectories(value); }
765 }
766 public Builder SetExpandNamespaceDirectories(bool value) {
767 result.hasExpandNamespaceDirectories = true;
768 result.expandNamespaceDirectories_ = value;
769 return this;
770 }
771 public Builder ClearExpandNamespaceDirectories() {
772 result.hasExpandNamespaceDirectories = false;
773 result.expandNamespaceDirectories_ = false;
774 return this;
775 }
776
777 public bool HasClsCompliance {
csharptestc671a4b2011-06-08 11:51:24 -0500778 get { return result.hasClsCompliance; }
csharptest714b8692011-05-20 15:23:36 -0500779 }
780 public bool ClsCompliance {
781 get { return result.ClsCompliance; }
782 set { SetClsCompliance(value); }
783 }
784 public Builder SetClsCompliance(bool value) {
785 result.hasClsCompliance = true;
786 result.clsCompliance_ = value;
787 return this;
788 }
789 public Builder ClearClsCompliance() {
790 result.hasClsCompliance = false;
791 result.clsCompliance_ = true;
792 return this;
793 }
794
csharptest3c6e9322011-09-09 18:14:40 -0500795 public bool HasAddSerializable {
796 get { return result.hasAddSerializable; }
797 }
798 public bool AddSerializable {
799 get { return result.AddSerializable; }
800 set { SetAddSerializable(value); }
801 }
802 public Builder SetAddSerializable(bool value) {
803 result.hasAddSerializable = true;
804 result.addSerializable_ = value;
805 return this;
806 }
807 public Builder ClearAddSerializable() {
808 result.hasAddSerializable = false;
809 result.addSerializable_ = false;
810 return this;
811 }
812
csharptest714b8692011-05-20 15:23:36 -0500813 public bool HasFileExtension {
csharptestc671a4b2011-06-08 11:51:24 -0500814 get { return result.hasFileExtension; }
csharptest714b8692011-05-20 15:23:36 -0500815 }
816 public string FileExtension {
817 get { return result.FileExtension; }
818 set { SetFileExtension(value); }
819 }
820 public Builder SetFileExtension(string value) {
821 pb::ThrowHelper.ThrowIfNull(value, "value");
822 result.hasFileExtension = true;
823 result.fileExtension_ = value;
824 return this;
825 }
826 public Builder ClearFileExtension() {
827 result.hasFileExtension = false;
828 result.fileExtension_ = ".cs";
829 return this;
830 }
831
832 public bool HasUmbrellaNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500833 get { return result.hasUmbrellaNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500834 }
835 public string UmbrellaNamespace {
836 get { return result.UmbrellaNamespace; }
837 set { SetUmbrellaNamespace(value); }
838 }
839 public Builder SetUmbrellaNamespace(string value) {
840 pb::ThrowHelper.ThrowIfNull(value, "value");
841 result.hasUmbrellaNamespace = true;
842 result.umbrellaNamespace_ = value;
843 return this;
844 }
845 public Builder ClearUmbrellaNamespace() {
846 result.hasUmbrellaNamespace = false;
847 result.umbrellaNamespace_ = "";
848 return this;
849 }
850
851 public bool HasOutputDirectory {
csharptestc671a4b2011-06-08 11:51:24 -0500852 get { return result.hasOutputDirectory; }
csharptest714b8692011-05-20 15:23:36 -0500853 }
854 public string OutputDirectory {
855 get { return result.OutputDirectory; }
856 set { SetOutputDirectory(value); }
857 }
858 public Builder SetOutputDirectory(string value) {
859 pb::ThrowHelper.ThrowIfNull(value, "value");
860 result.hasOutputDirectory = true;
861 result.outputDirectory_ = value;
862 return this;
863 }
864 public Builder ClearOutputDirectory() {
865 result.hasOutputDirectory = false;
866 result.outputDirectory_ = ".";
867 return this;
868 }
869
870 public bool HasIgnoreGoogleProtobuf {
csharptestc671a4b2011-06-08 11:51:24 -0500871 get { return result.hasIgnoreGoogleProtobuf; }
csharptest714b8692011-05-20 15:23:36 -0500872 }
873 public bool IgnoreGoogleProtobuf {
874 get { return result.IgnoreGoogleProtobuf; }
875 set { SetIgnoreGoogleProtobuf(value); }
876 }
877 public Builder SetIgnoreGoogleProtobuf(bool value) {
878 result.hasIgnoreGoogleProtobuf = true;
879 result.ignoreGoogleProtobuf_ = value;
880 return this;
881 }
882 public Builder ClearIgnoreGoogleProtobuf() {
883 result.hasIgnoreGoogleProtobuf = false;
884 result.ignoreGoogleProtobuf_ = false;
885 return this;
886 }
887
888 public bool HasServiceGeneratorType {
csharptestc671a4b2011-06-08 11:51:24 -0500889 get { return result.hasServiceGeneratorType; }
csharptest714b8692011-05-20 15:23:36 -0500890 }
891 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
892 get { return result.ServiceGeneratorType; }
893 set { SetServiceGeneratorType(value); }
894 }
895 public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
896 result.hasServiceGeneratorType = true;
897 result.serviceGeneratorType_ = value;
898 return this;
899 }
900 public Builder ClearServiceGeneratorType() {
901 result.hasServiceGeneratorType = false;
902 result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
903 return this;
904 }
905 }
906 static CSharpFileOptions() {
907 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
908 }
909 }
910
csharptest445bdce2011-05-20 15:50:54 -0500911 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
912 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
913 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500914 public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -0500915 private CSharpFieldOptions() { }
csharptest714b8692011-05-20 15:23:36 -0500916 private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -0500917 private static readonly string[] _cSharpFieldOptionsFieldNames = new string[] { "property_name" };
918 private static readonly uint[] _cSharpFieldOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -0500919 public static CSharpFieldOptions DefaultInstance {
920 get { return defaultInstance; }
921 }
922
923 public override CSharpFieldOptions DefaultInstanceForType {
924 get { return defaultInstance; }
925 }
926
927 protected override CSharpFieldOptions ThisMessage {
928 get { return this; }
929 }
930
931 public static pbd::MessageDescriptor Descriptor {
932 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
933 }
934
935 protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
936 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
937 }
938
939 public const int PropertyNameFieldNumber = 1;
940 private bool hasPropertyName;
941 private string propertyName_ = "";
942 public bool HasPropertyName {
943 get { return hasPropertyName; }
944 }
945 public string PropertyName {
946 get { return propertyName_; }
947 }
948
949 public override bool IsInitialized {
950 get {
951 return true;
952 }
953 }
954
csharptestffafdaa2011-06-03 12:58:14 -0500955 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500956 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500957 string[] field_names = _cSharpFieldOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500958 if (hasPropertyName) {
csharptest920b09a2011-06-08 20:13:29 -0500959 output.WriteString(1, field_names[0], PropertyName);
csharptest714b8692011-05-20 15:23:36 -0500960 }
961 UnknownFields.WriteTo(output);
962 }
963
964 private int memoizedSerializedSize = -1;
965 public override int SerializedSize {
966 get {
967 int size = memoizedSerializedSize;
968 if (size != -1) return size;
969
970 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500971 if (hasPropertyName) {
csharptest714b8692011-05-20 15:23:36 -0500972 size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
973 }
974 size += UnknownFields.SerializedSize;
975 memoizedSerializedSize = size;
976 return size;
977 }
978 }
979
980 public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
981 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
982 }
983 public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
984 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
985 }
986 public static CSharpFieldOptions ParseFrom(byte[] data) {
987 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
988 }
989 public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
990 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
991 }
992 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
993 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
994 }
995 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
996 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
997 }
998 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
999 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1000 }
1001 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1002 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1003 }
csharptest17699c22011-06-03 21:57:15 -05001004 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001005 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1006 }
csharptest17699c22011-06-03 21:57:15 -05001007 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001008 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1009 }
1010 public static Builder CreateBuilder() { return new Builder(); }
1011 public override Builder ToBuilder() { return CreateBuilder(this); }
1012 public override Builder CreateBuilderForType() { return new Builder(); }
1013 public static Builder CreateBuilder(CSharpFieldOptions prototype) {
1014 return (Builder) new Builder().MergeFrom(prototype);
1015 }
1016
csharptest445bdce2011-05-20 15:50:54 -05001017 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1018 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1019 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001020 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
1021 protected override Builder ThisBuilder {
1022 get { return this; }
1023 }
1024 public Builder() {}
1025
1026 CSharpFieldOptions result = new CSharpFieldOptions();
1027
1028 protected override CSharpFieldOptions MessageBeingBuilt {
1029 get { return result; }
1030 }
1031
1032 public override Builder Clear() {
1033 result = new CSharpFieldOptions();
1034 return this;
1035 }
1036
1037 public override Builder Clone() {
1038 return new Builder().MergeFrom(result);
1039 }
1040
1041 public override pbd::MessageDescriptor DescriptorForType {
1042 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
1043 }
1044
1045 public override CSharpFieldOptions DefaultInstanceForType {
1046 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
1047 }
1048
1049 public override CSharpFieldOptions BuildPartial() {
1050 if (result == null) {
1051 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1052 }
1053 CSharpFieldOptions returnMe = result;
1054 result = null;
1055 return returnMe;
1056 }
1057
1058 public override Builder MergeFrom(pb::IMessage other) {
1059 if (other is CSharpFieldOptions) {
1060 return MergeFrom((CSharpFieldOptions) other);
1061 } else {
1062 base.MergeFrom(other);
1063 return this;
1064 }
1065 }
1066
1067 public override Builder MergeFrom(CSharpFieldOptions other) {
1068 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
1069 if (other.HasPropertyName) {
1070 PropertyName = other.PropertyName;
1071 }
1072 this.MergeUnknownFields(other.UnknownFields);
1073 return this;
1074 }
1075
csharptest17699c22011-06-03 21:57:15 -05001076 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001077 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1078 }
1079
csharptest17699c22011-06-03 21:57:15 -05001080 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001081 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001082 uint tag;
1083 string field_name;
1084 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001085 if(tag == 0 && field_name != null) {
1086 int field_ordinal = global::System.Array.BinarySearch(_cSharpFieldOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1087 if(field_ordinal >= 0)
1088 tag = _cSharpFieldOptionsFieldTags[field_ordinal];
1089 else {
1090 if (unknownFields == null) {
1091 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1092 }
1093 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1094 continue;
1095 }
1096 }
csharptest714b8692011-05-20 15:23:36 -05001097 switch (tag) {
1098 case 0: {
csharptest99284412011-06-03 14:51:06 -05001099 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001100 }
1101 default: {
1102 if (pb::WireFormat.IsEndGroupTag(tag)) {
1103 if (unknownFields != null) {
1104 this.UnknownFields = unknownFields.Build();
1105 }
1106 return this;
1107 }
1108 if (unknownFields == null) {
1109 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1110 }
csharptestd2af9e92011-06-03 21:35:02 -05001111 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001112 break;
1113 }
1114 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001115 result.hasPropertyName = input.ReadString(ref result.propertyName_);
csharptest714b8692011-05-20 15:23:36 -05001116 break;
1117 }
1118 }
1119 }
csharptest123e5342011-06-03 14:15:21 -05001120
1121 if (unknownFields != null) {
1122 this.UnknownFields = unknownFields.Build();
1123 }
1124 return this;
csharptest714b8692011-05-20 15:23:36 -05001125 }
1126
1127
1128 public bool HasPropertyName {
csharptestc671a4b2011-06-08 11:51:24 -05001129 get { return result.hasPropertyName; }
csharptest714b8692011-05-20 15:23:36 -05001130 }
1131 public string PropertyName {
1132 get { return result.PropertyName; }
1133 set { SetPropertyName(value); }
1134 }
1135 public Builder SetPropertyName(string value) {
1136 pb::ThrowHelper.ThrowIfNull(value, "value");
1137 result.hasPropertyName = true;
1138 result.propertyName_ = value;
1139 return this;
1140 }
1141 public Builder ClearPropertyName() {
1142 result.hasPropertyName = false;
1143 result.propertyName_ = "";
1144 return this;
1145 }
1146 }
1147 static CSharpFieldOptions() {
1148 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1149 }
1150 }
1151
csharptest445bdce2011-05-20 15:50:54 -05001152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1153 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1154 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001155 public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05001156 private CSharpServiceOptions() { }
csharptest714b8692011-05-20 15:23:36 -05001157 private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001158 private static readonly string[] _cSharpServiceOptionsFieldNames = new string[] { "interface_id" };
1159 private static readonly uint[] _cSharpServiceOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -05001160 public static CSharpServiceOptions DefaultInstance {
1161 get { return defaultInstance; }
1162 }
1163
1164 public override CSharpServiceOptions DefaultInstanceForType {
1165 get { return defaultInstance; }
1166 }
1167
1168 protected override CSharpServiceOptions ThisMessage {
1169 get { return this; }
1170 }
1171
1172 public static pbd::MessageDescriptor Descriptor {
1173 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
1174 }
1175
1176 protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
1177 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
1178 }
1179
1180 public const int InterfaceIdFieldNumber = 1;
1181 private bool hasInterfaceId;
1182 private string interfaceId_ = "";
1183 public bool HasInterfaceId {
1184 get { return hasInterfaceId; }
1185 }
1186 public string InterfaceId {
1187 get { return interfaceId_; }
1188 }
1189
1190 public override bool IsInitialized {
1191 get {
1192 return true;
1193 }
1194 }
1195
csharptestffafdaa2011-06-03 12:58:14 -05001196 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001197 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001198 string[] field_names = _cSharpServiceOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001199 if (hasInterfaceId) {
csharptest920b09a2011-06-08 20:13:29 -05001200 output.WriteString(1, field_names[0], InterfaceId);
csharptest714b8692011-05-20 15:23:36 -05001201 }
1202 UnknownFields.WriteTo(output);
1203 }
1204
1205 private int memoizedSerializedSize = -1;
1206 public override int SerializedSize {
1207 get {
1208 int size = memoizedSerializedSize;
1209 if (size != -1) return size;
1210
1211 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001212 if (hasInterfaceId) {
csharptest714b8692011-05-20 15:23:36 -05001213 size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
1214 }
1215 size += UnknownFields.SerializedSize;
1216 memoizedSerializedSize = size;
1217 return size;
1218 }
1219 }
1220
1221 public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
1222 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1223 }
1224 public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1225 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1226 }
1227 public static CSharpServiceOptions ParseFrom(byte[] data) {
1228 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1229 }
1230 public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1231 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1232 }
1233 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
1234 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1235 }
1236 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1237 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1238 }
1239 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1240 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1241 }
1242 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1243 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1244 }
csharptest17699c22011-06-03 21:57:15 -05001245 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001246 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1247 }
csharptest17699c22011-06-03 21:57:15 -05001248 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001249 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1250 }
1251 public static Builder CreateBuilder() { return new Builder(); }
1252 public override Builder ToBuilder() { return CreateBuilder(this); }
1253 public override Builder CreateBuilderForType() { return new Builder(); }
1254 public static Builder CreateBuilder(CSharpServiceOptions prototype) {
1255 return (Builder) new Builder().MergeFrom(prototype);
1256 }
1257
csharptest445bdce2011-05-20 15:50:54 -05001258 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1259 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1260 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001261 public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
1262 protected override Builder ThisBuilder {
1263 get { return this; }
1264 }
1265 public Builder() {}
1266
1267 CSharpServiceOptions result = new CSharpServiceOptions();
1268
1269 protected override CSharpServiceOptions MessageBeingBuilt {
1270 get { return result; }
1271 }
1272
1273 public override Builder Clear() {
1274 result = new CSharpServiceOptions();
1275 return this;
1276 }
1277
1278 public override Builder Clone() {
1279 return new Builder().MergeFrom(result);
1280 }
1281
1282 public override pbd::MessageDescriptor DescriptorForType {
1283 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
1284 }
1285
1286 public override CSharpServiceOptions DefaultInstanceForType {
1287 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
1288 }
1289
1290 public override CSharpServiceOptions BuildPartial() {
1291 if (result == null) {
1292 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1293 }
1294 CSharpServiceOptions returnMe = result;
1295 result = null;
1296 return returnMe;
1297 }
1298
1299 public override Builder MergeFrom(pb::IMessage other) {
1300 if (other is CSharpServiceOptions) {
1301 return MergeFrom((CSharpServiceOptions) other);
1302 } else {
1303 base.MergeFrom(other);
1304 return this;
1305 }
1306 }
1307
1308 public override Builder MergeFrom(CSharpServiceOptions other) {
1309 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
1310 if (other.HasInterfaceId) {
1311 InterfaceId = other.InterfaceId;
1312 }
1313 this.MergeUnknownFields(other.UnknownFields);
1314 return this;
1315 }
1316
csharptest17699c22011-06-03 21:57:15 -05001317 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001318 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1319 }
1320
csharptest17699c22011-06-03 21:57:15 -05001321 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001322 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001323 uint tag;
1324 string field_name;
1325 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001326 if(tag == 0 && field_name != null) {
1327 int field_ordinal = global::System.Array.BinarySearch(_cSharpServiceOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1328 if(field_ordinal >= 0)
1329 tag = _cSharpServiceOptionsFieldTags[field_ordinal];
1330 else {
1331 if (unknownFields == null) {
1332 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1333 }
1334 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1335 continue;
1336 }
1337 }
csharptest714b8692011-05-20 15:23:36 -05001338 switch (tag) {
1339 case 0: {
csharptest99284412011-06-03 14:51:06 -05001340 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001341 }
1342 default: {
1343 if (pb::WireFormat.IsEndGroupTag(tag)) {
1344 if (unknownFields != null) {
1345 this.UnknownFields = unknownFields.Build();
1346 }
1347 return this;
1348 }
1349 if (unknownFields == null) {
1350 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1351 }
csharptestd2af9e92011-06-03 21:35:02 -05001352 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001353 break;
1354 }
1355 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001356 result.hasInterfaceId = input.ReadString(ref result.interfaceId_);
csharptest714b8692011-05-20 15:23:36 -05001357 break;
1358 }
1359 }
1360 }
csharptest123e5342011-06-03 14:15:21 -05001361
1362 if (unknownFields != null) {
1363 this.UnknownFields = unknownFields.Build();
1364 }
1365 return this;
csharptest714b8692011-05-20 15:23:36 -05001366 }
1367
1368
1369 public bool HasInterfaceId {
csharptestc671a4b2011-06-08 11:51:24 -05001370 get { return result.hasInterfaceId; }
csharptest714b8692011-05-20 15:23:36 -05001371 }
1372 public string InterfaceId {
1373 get { return result.InterfaceId; }
1374 set { SetInterfaceId(value); }
1375 }
1376 public Builder SetInterfaceId(string value) {
1377 pb::ThrowHelper.ThrowIfNull(value, "value");
1378 result.hasInterfaceId = true;
1379 result.interfaceId_ = value;
1380 return this;
1381 }
1382 public Builder ClearInterfaceId() {
1383 result.hasInterfaceId = false;
1384 result.interfaceId_ = "";
1385 return this;
1386 }
1387 }
1388 static CSharpServiceOptions() {
1389 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1390 }
1391 }
1392
csharptest445bdce2011-05-20 15:50:54 -05001393 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1394 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1395 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001396 public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
csharptest17fb8f22011-09-23 11:36:39 -05001397 private CSharpMethodOptions() { }
csharptest714b8692011-05-20 15:23:36 -05001398 private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001399 private static readonly string[] _cSharpMethodOptionsFieldNames = new string[] { "dispatch_id" };
1400 private static readonly uint[] _cSharpMethodOptionsFieldTags = new uint[] { 8 };
csharptest714b8692011-05-20 15:23:36 -05001401 public static CSharpMethodOptions DefaultInstance {
1402 get { return defaultInstance; }
1403 }
1404
1405 public override CSharpMethodOptions DefaultInstanceForType {
1406 get { return defaultInstance; }
1407 }
1408
1409 protected override CSharpMethodOptions ThisMessage {
1410 get { return this; }
1411 }
1412
1413 public static pbd::MessageDescriptor Descriptor {
1414 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
1415 }
1416
1417 protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
1418 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
1419 }
1420
1421 public const int DispatchIdFieldNumber = 1;
1422 private bool hasDispatchId;
csharptestced18e12011-06-09 19:47:56 -05001423 private int dispatchId_;
csharptest714b8692011-05-20 15:23:36 -05001424 public bool HasDispatchId {
1425 get { return hasDispatchId; }
1426 }
1427 public int DispatchId {
1428 get { return dispatchId_; }
1429 }
1430
1431 public override bool IsInitialized {
1432 get {
1433 return true;
1434 }
1435 }
1436
csharptestffafdaa2011-06-03 12:58:14 -05001437 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001438 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001439 string[] field_names = _cSharpMethodOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001440 if (hasDispatchId) {
csharptest920b09a2011-06-08 20:13:29 -05001441 output.WriteInt32(1, field_names[0], DispatchId);
csharptest714b8692011-05-20 15:23:36 -05001442 }
1443 UnknownFields.WriteTo(output);
1444 }
1445
1446 private int memoizedSerializedSize = -1;
1447 public override int SerializedSize {
1448 get {
1449 int size = memoizedSerializedSize;
1450 if (size != -1) return size;
1451
1452 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001453 if (hasDispatchId) {
csharptest714b8692011-05-20 15:23:36 -05001454 size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
1455 }
1456 size += UnknownFields.SerializedSize;
1457 memoizedSerializedSize = size;
1458 return size;
1459 }
1460 }
1461
1462 public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
1463 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1464 }
1465 public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1466 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1467 }
1468 public static CSharpMethodOptions ParseFrom(byte[] data) {
1469 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1470 }
1471 public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1472 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1473 }
1474 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
1475 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1476 }
1477 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1478 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1479 }
1480 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1481 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1482 }
1483 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1484 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1485 }
csharptest17699c22011-06-03 21:57:15 -05001486 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001487 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1488 }
csharptest17699c22011-06-03 21:57:15 -05001489 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001490 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1491 }
1492 public static Builder CreateBuilder() { return new Builder(); }
1493 public override Builder ToBuilder() { return CreateBuilder(this); }
1494 public override Builder CreateBuilderForType() { return new Builder(); }
1495 public static Builder CreateBuilder(CSharpMethodOptions prototype) {
1496 return (Builder) new Builder().MergeFrom(prototype);
1497 }
1498
csharptest445bdce2011-05-20 15:50:54 -05001499 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1500 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1501 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001502 public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
1503 protected override Builder ThisBuilder {
1504 get { return this; }
1505 }
1506 public Builder() {}
1507
1508 CSharpMethodOptions result = new CSharpMethodOptions();
1509
1510 protected override CSharpMethodOptions MessageBeingBuilt {
1511 get { return result; }
1512 }
1513
1514 public override Builder Clear() {
1515 result = new CSharpMethodOptions();
1516 return this;
1517 }
1518
1519 public override Builder Clone() {
1520 return new Builder().MergeFrom(result);
1521 }
1522
1523 public override pbd::MessageDescriptor DescriptorForType {
1524 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
1525 }
1526
1527 public override CSharpMethodOptions DefaultInstanceForType {
1528 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
1529 }
1530
1531 public override CSharpMethodOptions BuildPartial() {
1532 if (result == null) {
1533 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1534 }
1535 CSharpMethodOptions returnMe = result;
1536 result = null;
1537 return returnMe;
1538 }
1539
1540 public override Builder MergeFrom(pb::IMessage other) {
1541 if (other is CSharpMethodOptions) {
1542 return MergeFrom((CSharpMethodOptions) other);
1543 } else {
1544 base.MergeFrom(other);
1545 return this;
1546 }
1547 }
1548
1549 public override Builder MergeFrom(CSharpMethodOptions other) {
1550 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
1551 if (other.HasDispatchId) {
1552 DispatchId = other.DispatchId;
1553 }
1554 this.MergeUnknownFields(other.UnknownFields);
1555 return this;
1556 }
1557
csharptest17699c22011-06-03 21:57:15 -05001558 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001559 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1560 }
1561
csharptest17699c22011-06-03 21:57:15 -05001562 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001563 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001564 uint tag;
1565 string field_name;
1566 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001567 if(tag == 0 && field_name != null) {
1568 int field_ordinal = global::System.Array.BinarySearch(_cSharpMethodOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1569 if(field_ordinal >= 0)
1570 tag = _cSharpMethodOptionsFieldTags[field_ordinal];
1571 else {
1572 if (unknownFields == null) {
1573 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1574 }
1575 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1576 continue;
1577 }
1578 }
csharptest714b8692011-05-20 15:23:36 -05001579 switch (tag) {
1580 case 0: {
csharptest99284412011-06-03 14:51:06 -05001581 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001582 }
1583 default: {
1584 if (pb::WireFormat.IsEndGroupTag(tag)) {
1585 if (unknownFields != null) {
1586 this.UnknownFields = unknownFields.Build();
1587 }
1588 return this;
1589 }
1590 if (unknownFields == null) {
1591 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1592 }
csharptestd2af9e92011-06-03 21:35:02 -05001593 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001594 break;
1595 }
1596 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05001597 result.hasDispatchId = input.ReadInt32(ref result.dispatchId_);
csharptest714b8692011-05-20 15:23:36 -05001598 break;
1599 }
1600 }
1601 }
csharptest123e5342011-06-03 14:15:21 -05001602
1603 if (unknownFields != null) {
1604 this.UnknownFields = unknownFields.Build();
1605 }
1606 return this;
csharptest714b8692011-05-20 15:23:36 -05001607 }
1608
1609
1610 public bool HasDispatchId {
csharptestc671a4b2011-06-08 11:51:24 -05001611 get { return result.hasDispatchId; }
csharptest714b8692011-05-20 15:23:36 -05001612 }
1613 public int DispatchId {
1614 get { return result.DispatchId; }
1615 set { SetDispatchId(value); }
1616 }
1617 public Builder SetDispatchId(int value) {
1618 result.hasDispatchId = true;
1619 result.dispatchId_ = value;
1620 return this;
1621 }
1622 public Builder ClearDispatchId() {
1623 result.hasDispatchId = false;
1624 result.dispatchId_ = 0;
1625 return this;
1626 }
1627 }
1628 static CSharpMethodOptions() {
1629 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1630 }
1631 }
1632
1633 #endregion
1634
1635}
csharptest2d887332011-08-12 20:13:44 -05001636
1637#endregion Designer generated code