blob: 056eb9824fb46ddcafca815cf36018df2479f9ba [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!
csharptest2d887332011-08-12 20:13:44 -05002#pragma warning disable 1591
3#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> {
129 private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
csharptest3c6e9322011-09-09 18:14:40 -0500130 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" };
131 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 -0500132 public static CSharpFileOptions DefaultInstance {
133 get { return defaultInstance; }
134 }
135
136 public override CSharpFileOptions DefaultInstanceForType {
137 get { return defaultInstance; }
138 }
139
140 protected override CSharpFileOptions ThisMessage {
141 get { return this; }
142 }
143
144 public static pbd::MessageDescriptor Descriptor {
145 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
146 }
147
148 protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
149 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
150 }
151
152 public const int NamespaceFieldNumber = 1;
153 private bool hasNamespace;
154 private string namespace_ = "";
155 public bool HasNamespace {
156 get { return hasNamespace; }
157 }
158 public string Namespace {
159 get { return namespace_; }
160 }
161
162 public const int UmbrellaClassnameFieldNumber = 2;
163 private bool hasUmbrellaClassname;
164 private string umbrellaClassname_ = "";
165 public bool HasUmbrellaClassname {
166 get { return hasUmbrellaClassname; }
167 }
168 public string UmbrellaClassname {
169 get { return umbrellaClassname_; }
170 }
171
172 public const int PublicClassesFieldNumber = 3;
173 private bool hasPublicClasses;
174 private bool publicClasses_ = true;
175 public bool HasPublicClasses {
176 get { return hasPublicClasses; }
177 }
178 public bool PublicClasses {
179 get { return publicClasses_; }
180 }
181
182 public const int MultipleFilesFieldNumber = 4;
183 private bool hasMultipleFiles;
csharptestced18e12011-06-09 19:47:56 -0500184 private bool multipleFiles_;
csharptest714b8692011-05-20 15:23:36 -0500185 public bool HasMultipleFiles {
186 get { return hasMultipleFiles; }
187 }
188 public bool MultipleFiles {
189 get { return multipleFiles_; }
190 }
191
192 public const int NestClassesFieldNumber = 5;
193 private bool hasNestClasses;
csharptestced18e12011-06-09 19:47:56 -0500194 private bool nestClasses_;
csharptest714b8692011-05-20 15:23:36 -0500195 public bool HasNestClasses {
196 get { return hasNestClasses; }
197 }
198 public bool NestClasses {
199 get { return nestClasses_; }
200 }
201
202 public const int CodeContractsFieldNumber = 6;
203 private bool hasCodeContracts;
csharptestced18e12011-06-09 19:47:56 -0500204 private bool codeContracts_;
csharptest714b8692011-05-20 15:23:36 -0500205 public bool HasCodeContracts {
206 get { return hasCodeContracts; }
207 }
208 public bool CodeContracts {
209 get { return codeContracts_; }
210 }
211
212 public const int ExpandNamespaceDirectoriesFieldNumber = 7;
213 private bool hasExpandNamespaceDirectories;
csharptestced18e12011-06-09 19:47:56 -0500214 private bool expandNamespaceDirectories_;
csharptest714b8692011-05-20 15:23:36 -0500215 public bool HasExpandNamespaceDirectories {
216 get { return hasExpandNamespaceDirectories; }
217 }
218 public bool ExpandNamespaceDirectories {
219 get { return expandNamespaceDirectories_; }
220 }
221
222 public const int ClsComplianceFieldNumber = 8;
223 private bool hasClsCompliance;
224 private bool clsCompliance_ = true;
225 public bool HasClsCompliance {
226 get { return hasClsCompliance; }
227 }
228 public bool ClsCompliance {
229 get { return clsCompliance_; }
230 }
231
csharptest3c6e9322011-09-09 18:14:40 -0500232 public const int AddSerializableFieldNumber = 9;
233 private bool hasAddSerializable;
234 private bool addSerializable_;
235 public bool HasAddSerializable {
236 get { return hasAddSerializable; }
237 }
238 public bool AddSerializable {
239 get { return addSerializable_; }
240 }
241
csharptest714b8692011-05-20 15:23:36 -0500242 public const int FileExtensionFieldNumber = 221;
243 private bool hasFileExtension;
244 private string fileExtension_ = ".cs";
245 public bool HasFileExtension {
246 get { return hasFileExtension; }
247 }
248 public string FileExtension {
249 get { return fileExtension_; }
250 }
251
252 public const int UmbrellaNamespaceFieldNumber = 222;
253 private bool hasUmbrellaNamespace;
254 private string umbrellaNamespace_ = "";
255 public bool HasUmbrellaNamespace {
256 get { return hasUmbrellaNamespace; }
257 }
258 public string UmbrellaNamespace {
259 get { return umbrellaNamespace_; }
260 }
261
262 public const int OutputDirectoryFieldNumber = 223;
263 private bool hasOutputDirectory;
264 private string outputDirectory_ = ".";
265 public bool HasOutputDirectory {
266 get { return hasOutputDirectory; }
267 }
268 public string OutputDirectory {
269 get { return outputDirectory_; }
270 }
271
272 public const int IgnoreGoogleProtobufFieldNumber = 224;
273 private bool hasIgnoreGoogleProtobuf;
csharptestced18e12011-06-09 19:47:56 -0500274 private bool ignoreGoogleProtobuf_;
csharptest714b8692011-05-20 15:23:36 -0500275 public bool HasIgnoreGoogleProtobuf {
276 get { return hasIgnoreGoogleProtobuf; }
277 }
278 public bool IgnoreGoogleProtobuf {
279 get { return ignoreGoogleProtobuf_; }
280 }
281
282 public const int ServiceGeneratorTypeFieldNumber = 225;
283 private bool hasServiceGeneratorType;
284 private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
285 public bool HasServiceGeneratorType {
286 get { return hasServiceGeneratorType; }
287 }
288 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
289 get { return serviceGeneratorType_; }
290 }
291
292 public override bool IsInitialized {
293 get {
294 return true;
295 }
296 }
297
csharptestffafdaa2011-06-03 12:58:14 -0500298 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500299 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500300 string[] field_names = _cSharpFileOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500301 if (hasNamespace) {
csharptest3c6e9322011-09-09 18:14:40 -0500302 output.WriteString(1, field_names[7], Namespace);
csharptest714b8692011-05-20 15:23:36 -0500303 }
csharptestc671a4b2011-06-08 11:51:24 -0500304 if (hasUmbrellaClassname) {
csharptest3c6e9322011-09-09 18:14:40 -0500305 output.WriteString(2, field_names[12], UmbrellaClassname);
csharptest714b8692011-05-20 15:23:36 -0500306 }
csharptestc671a4b2011-06-08 11:51:24 -0500307 if (hasPublicClasses) {
csharptest3c6e9322011-09-09 18:14:40 -0500308 output.WriteBool(3, field_names[10], PublicClasses);
csharptest714b8692011-05-20 15:23:36 -0500309 }
csharptestc671a4b2011-06-08 11:51:24 -0500310 if (hasMultipleFiles) {
csharptest3c6e9322011-09-09 18:14:40 -0500311 output.WriteBool(4, field_names[6], MultipleFiles);
csharptest714b8692011-05-20 15:23:36 -0500312 }
csharptestc671a4b2011-06-08 11:51:24 -0500313 if (hasNestClasses) {
csharptest3c6e9322011-09-09 18:14:40 -0500314 output.WriteBool(5, field_names[8], NestClasses);
csharptest714b8692011-05-20 15:23:36 -0500315 }
csharptestc671a4b2011-06-08 11:51:24 -0500316 if (hasCodeContracts) {
csharptest3c6e9322011-09-09 18:14:40 -0500317 output.WriteBool(6, field_names[2], CodeContracts);
csharptest714b8692011-05-20 15:23:36 -0500318 }
csharptestc671a4b2011-06-08 11:51:24 -0500319 if (hasExpandNamespaceDirectories) {
csharptest3c6e9322011-09-09 18:14:40 -0500320 output.WriteBool(7, field_names[3], ExpandNamespaceDirectories);
csharptest714b8692011-05-20 15:23:36 -0500321 }
csharptestc671a4b2011-06-08 11:51:24 -0500322 if (hasClsCompliance) {
csharptest3c6e9322011-09-09 18:14:40 -0500323 output.WriteBool(8, field_names[1], ClsCompliance);
324 }
325 if (hasAddSerializable) {
326 output.WriteBool(9, field_names[0], AddSerializable);
csharptest714b8692011-05-20 15:23:36 -0500327 }
csharptestc671a4b2011-06-08 11:51:24 -0500328 if (hasFileExtension) {
csharptest3c6e9322011-09-09 18:14:40 -0500329 output.WriteString(221, field_names[4], FileExtension);
csharptest714b8692011-05-20 15:23:36 -0500330 }
csharptestc671a4b2011-06-08 11:51:24 -0500331 if (hasUmbrellaNamespace) {
csharptest3c6e9322011-09-09 18:14:40 -0500332 output.WriteString(222, field_names[13], UmbrellaNamespace);
csharptest714b8692011-05-20 15:23:36 -0500333 }
csharptestc671a4b2011-06-08 11:51:24 -0500334 if (hasOutputDirectory) {
csharptest3c6e9322011-09-09 18:14:40 -0500335 output.WriteString(223, field_names[9], OutputDirectory);
csharptest714b8692011-05-20 15:23:36 -0500336 }
csharptestc671a4b2011-06-08 11:51:24 -0500337 if (hasIgnoreGoogleProtobuf) {
csharptest3c6e9322011-09-09 18:14:40 -0500338 output.WriteBool(224, field_names[5], IgnoreGoogleProtobuf);
csharptest714b8692011-05-20 15:23:36 -0500339 }
csharptestc671a4b2011-06-08 11:51:24 -0500340 if (hasServiceGeneratorType) {
csharptest3c6e9322011-09-09 18:14:40 -0500341 output.WriteEnum(225, field_names[11], (int) ServiceGeneratorType, ServiceGeneratorType);
csharptest714b8692011-05-20 15:23:36 -0500342 }
343 UnknownFields.WriteTo(output);
344 }
345
346 private int memoizedSerializedSize = -1;
347 public override int SerializedSize {
348 get {
349 int size = memoizedSerializedSize;
350 if (size != -1) return size;
351
352 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500353 if (hasNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500354 size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
355 }
csharptestc671a4b2011-06-08 11:51:24 -0500356 if (hasUmbrellaClassname) {
csharptest714b8692011-05-20 15:23:36 -0500357 size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
358 }
csharptestc671a4b2011-06-08 11:51:24 -0500359 if (hasPublicClasses) {
csharptest714b8692011-05-20 15:23:36 -0500360 size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
361 }
csharptestc671a4b2011-06-08 11:51:24 -0500362 if (hasMultipleFiles) {
csharptest714b8692011-05-20 15:23:36 -0500363 size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
364 }
csharptestc671a4b2011-06-08 11:51:24 -0500365 if (hasNestClasses) {
csharptest714b8692011-05-20 15:23:36 -0500366 size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
367 }
csharptestc671a4b2011-06-08 11:51:24 -0500368 if (hasCodeContracts) {
csharptest714b8692011-05-20 15:23:36 -0500369 size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
370 }
csharptestc671a4b2011-06-08 11:51:24 -0500371 if (hasExpandNamespaceDirectories) {
csharptest714b8692011-05-20 15:23:36 -0500372 size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
373 }
csharptestc671a4b2011-06-08 11:51:24 -0500374 if (hasClsCompliance) {
csharptest714b8692011-05-20 15:23:36 -0500375 size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
376 }
csharptest3c6e9322011-09-09 18:14:40 -0500377 if (hasAddSerializable) {
378 size += pb::CodedOutputStream.ComputeBoolSize(9, AddSerializable);
379 }
csharptestc671a4b2011-06-08 11:51:24 -0500380 if (hasFileExtension) {
csharptest714b8692011-05-20 15:23:36 -0500381 size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
382 }
csharptestc671a4b2011-06-08 11:51:24 -0500383 if (hasUmbrellaNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500384 size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
385 }
csharptestc671a4b2011-06-08 11:51:24 -0500386 if (hasOutputDirectory) {
csharptest714b8692011-05-20 15:23:36 -0500387 size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
388 }
csharptestc671a4b2011-06-08 11:51:24 -0500389 if (hasIgnoreGoogleProtobuf) {
csharptest714b8692011-05-20 15:23:36 -0500390 size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
391 }
csharptestc671a4b2011-06-08 11:51:24 -0500392 if (hasServiceGeneratorType) {
csharptest714b8692011-05-20 15:23:36 -0500393 size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
394 }
395 size += UnknownFields.SerializedSize;
396 memoizedSerializedSize = size;
397 return size;
398 }
399 }
400
401 public static CSharpFileOptions ParseFrom(pb::ByteString data) {
402 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
403 }
404 public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
405 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
406 }
407 public static CSharpFileOptions ParseFrom(byte[] data) {
408 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
409 }
410 public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
411 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
412 }
413 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
414 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
415 }
416 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
417 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
418 }
419 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
420 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
421 }
422 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
423 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
424 }
csharptest17699c22011-06-03 21:57:15 -0500425 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500426 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
427 }
csharptest17699c22011-06-03 21:57:15 -0500428 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500429 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
430 }
431 public static Builder CreateBuilder() { return new Builder(); }
432 public override Builder ToBuilder() { return CreateBuilder(this); }
433 public override Builder CreateBuilderForType() { return new Builder(); }
434 public static Builder CreateBuilder(CSharpFileOptions prototype) {
435 return (Builder) new Builder().MergeFrom(prototype);
436 }
437
csharptest445bdce2011-05-20 15:50:54 -0500438 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
439 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
440 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500441 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
442 protected override Builder ThisBuilder {
443 get { return this; }
444 }
445 public Builder() {}
446
447 CSharpFileOptions result = new CSharpFileOptions();
448
449 protected override CSharpFileOptions MessageBeingBuilt {
450 get { return result; }
451 }
452
453 public override Builder Clear() {
454 result = new CSharpFileOptions();
455 return this;
456 }
457
458 public override Builder Clone() {
459 return new Builder().MergeFrom(result);
460 }
461
462 public override pbd::MessageDescriptor DescriptorForType {
463 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
464 }
465
466 public override CSharpFileOptions DefaultInstanceForType {
467 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
468 }
469
470 public override CSharpFileOptions BuildPartial() {
471 if (result == null) {
472 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
473 }
474 CSharpFileOptions returnMe = result;
475 result = null;
476 return returnMe;
477 }
478
479 public override Builder MergeFrom(pb::IMessage other) {
480 if (other is CSharpFileOptions) {
481 return MergeFrom((CSharpFileOptions) other);
482 } else {
483 base.MergeFrom(other);
484 return this;
485 }
486 }
487
488 public override Builder MergeFrom(CSharpFileOptions other) {
489 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
490 if (other.HasNamespace) {
491 Namespace = other.Namespace;
492 }
493 if (other.HasUmbrellaClassname) {
494 UmbrellaClassname = other.UmbrellaClassname;
495 }
496 if (other.HasPublicClasses) {
497 PublicClasses = other.PublicClasses;
498 }
499 if (other.HasMultipleFiles) {
500 MultipleFiles = other.MultipleFiles;
501 }
502 if (other.HasNestClasses) {
503 NestClasses = other.NestClasses;
504 }
505 if (other.HasCodeContracts) {
506 CodeContracts = other.CodeContracts;
507 }
508 if (other.HasExpandNamespaceDirectories) {
509 ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
510 }
511 if (other.HasClsCompliance) {
512 ClsCompliance = other.ClsCompliance;
513 }
csharptest3c6e9322011-09-09 18:14:40 -0500514 if (other.HasAddSerializable) {
515 AddSerializable = other.AddSerializable;
516 }
csharptest714b8692011-05-20 15:23:36 -0500517 if (other.HasFileExtension) {
518 FileExtension = other.FileExtension;
519 }
520 if (other.HasUmbrellaNamespace) {
521 UmbrellaNamespace = other.UmbrellaNamespace;
522 }
523 if (other.HasOutputDirectory) {
524 OutputDirectory = other.OutputDirectory;
525 }
526 if (other.HasIgnoreGoogleProtobuf) {
527 IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
528 }
529 if (other.HasServiceGeneratorType) {
530 ServiceGeneratorType = other.ServiceGeneratorType;
531 }
532 this.MergeUnknownFields(other.UnknownFields);
533 return this;
534 }
535
csharptest17699c22011-06-03 21:57:15 -0500536 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500537 return MergeFrom(input, pb::ExtensionRegistry.Empty);
538 }
539
csharptest17699c22011-06-03 21:57:15 -0500540 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500541 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -0500542 uint tag;
543 string field_name;
544 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -0500545 if(tag == 0 && field_name != null) {
546 int field_ordinal = global::System.Array.BinarySearch(_cSharpFileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
547 if(field_ordinal >= 0)
548 tag = _cSharpFileOptionsFieldTags[field_ordinal];
549 else {
550 if (unknownFields == null) {
551 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
552 }
553 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
554 continue;
555 }
556 }
csharptest714b8692011-05-20 15:23:36 -0500557 switch (tag) {
558 case 0: {
csharptest99284412011-06-03 14:51:06 -0500559 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -0500560 }
561 default: {
562 if (pb::WireFormat.IsEndGroupTag(tag)) {
563 if (unknownFields != null) {
564 this.UnknownFields = unknownFields.Build();
565 }
566 return this;
567 }
568 if (unknownFields == null) {
569 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
570 }
csharptestd2af9e92011-06-03 21:35:02 -0500571 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -0500572 break;
573 }
574 case 10: {
csharptest920b09a2011-06-08 20:13:29 -0500575 result.hasNamespace = input.ReadString(ref result.namespace_);
csharptest714b8692011-05-20 15:23:36 -0500576 break;
577 }
578 case 18: {
csharptest920b09a2011-06-08 20:13:29 -0500579 result.hasUmbrellaClassname = input.ReadString(ref result.umbrellaClassname_);
csharptest714b8692011-05-20 15:23:36 -0500580 break;
581 }
582 case 24: {
csharptest920b09a2011-06-08 20:13:29 -0500583 result.hasPublicClasses = input.ReadBool(ref result.publicClasses_);
csharptest714b8692011-05-20 15:23:36 -0500584 break;
585 }
586 case 32: {
csharptest920b09a2011-06-08 20:13:29 -0500587 result.hasMultipleFiles = input.ReadBool(ref result.multipleFiles_);
csharptest714b8692011-05-20 15:23:36 -0500588 break;
589 }
590 case 40: {
csharptest920b09a2011-06-08 20:13:29 -0500591 result.hasNestClasses = input.ReadBool(ref result.nestClasses_);
csharptest714b8692011-05-20 15:23:36 -0500592 break;
593 }
594 case 48: {
csharptest920b09a2011-06-08 20:13:29 -0500595 result.hasCodeContracts = input.ReadBool(ref result.codeContracts_);
csharptest714b8692011-05-20 15:23:36 -0500596 break;
597 }
598 case 56: {
csharptest920b09a2011-06-08 20:13:29 -0500599 result.hasExpandNamespaceDirectories = input.ReadBool(ref result.expandNamespaceDirectories_);
csharptest714b8692011-05-20 15:23:36 -0500600 break;
601 }
602 case 64: {
csharptest920b09a2011-06-08 20:13:29 -0500603 result.hasClsCompliance = input.ReadBool(ref result.clsCompliance_);
csharptest714b8692011-05-20 15:23:36 -0500604 break;
605 }
csharptest3c6e9322011-09-09 18:14:40 -0500606 case 72: {
607 result.hasAddSerializable = input.ReadBool(ref result.addSerializable_);
608 break;
609 }
csharptest714b8692011-05-20 15:23:36 -0500610 case 1770: {
csharptest920b09a2011-06-08 20:13:29 -0500611 result.hasFileExtension = input.ReadString(ref result.fileExtension_);
csharptest714b8692011-05-20 15:23:36 -0500612 break;
613 }
614 case 1778: {
csharptest920b09a2011-06-08 20:13:29 -0500615 result.hasUmbrellaNamespace = input.ReadString(ref result.umbrellaNamespace_);
csharptest714b8692011-05-20 15:23:36 -0500616 break;
617 }
618 case 1786: {
csharptest920b09a2011-06-08 20:13:29 -0500619 result.hasOutputDirectory = input.ReadString(ref result.outputDirectory_);
csharptest714b8692011-05-20 15:23:36 -0500620 break;
621 }
622 case 1792: {
csharptest920b09a2011-06-08 20:13:29 -0500623 result.hasIgnoreGoogleProtobuf = input.ReadBool(ref result.ignoreGoogleProtobuf_);
csharptest714b8692011-05-20 15:23:36 -0500624 break;
625 }
626 case 1800: {
csharptestd2af9e92011-06-03 21:35:02 -0500627 object unknown;
628 if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
629 result.hasServiceGeneratorType = true;
630 } else if(unknown is int) {
csharptest714b8692011-05-20 15:23:36 -0500631 if (unknownFields == null) {
632 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
633 }
csharptestd2af9e92011-06-03 21:35:02 -0500634 unknownFields.MergeVarintField(225, (ulong)(int)unknown);
csharptest714b8692011-05-20 15:23:36 -0500635 }
636 break;
637 }
638 }
639 }
csharptest123e5342011-06-03 14:15:21 -0500640
641 if (unknownFields != null) {
642 this.UnknownFields = unknownFields.Build();
643 }
644 return this;
csharptest714b8692011-05-20 15:23:36 -0500645 }
646
647
648 public bool HasNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500649 get { return result.hasNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500650 }
651 public string Namespace {
652 get { return result.Namespace; }
653 set { SetNamespace(value); }
654 }
655 public Builder SetNamespace(string value) {
656 pb::ThrowHelper.ThrowIfNull(value, "value");
657 result.hasNamespace = true;
658 result.namespace_ = value;
659 return this;
660 }
661 public Builder ClearNamespace() {
662 result.hasNamespace = false;
663 result.namespace_ = "";
664 return this;
665 }
666
667 public bool HasUmbrellaClassname {
csharptestc671a4b2011-06-08 11:51:24 -0500668 get { return result.hasUmbrellaClassname; }
csharptest714b8692011-05-20 15:23:36 -0500669 }
670 public string UmbrellaClassname {
671 get { return result.UmbrellaClassname; }
672 set { SetUmbrellaClassname(value); }
673 }
674 public Builder SetUmbrellaClassname(string value) {
675 pb::ThrowHelper.ThrowIfNull(value, "value");
676 result.hasUmbrellaClassname = true;
677 result.umbrellaClassname_ = value;
678 return this;
679 }
680 public Builder ClearUmbrellaClassname() {
681 result.hasUmbrellaClassname = false;
682 result.umbrellaClassname_ = "";
683 return this;
684 }
685
686 public bool HasPublicClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500687 get { return result.hasPublicClasses; }
csharptest714b8692011-05-20 15:23:36 -0500688 }
689 public bool PublicClasses {
690 get { return result.PublicClasses; }
691 set { SetPublicClasses(value); }
692 }
693 public Builder SetPublicClasses(bool value) {
694 result.hasPublicClasses = true;
695 result.publicClasses_ = value;
696 return this;
697 }
698 public Builder ClearPublicClasses() {
699 result.hasPublicClasses = false;
700 result.publicClasses_ = true;
701 return this;
702 }
703
704 public bool HasMultipleFiles {
csharptestc671a4b2011-06-08 11:51:24 -0500705 get { return result.hasMultipleFiles; }
csharptest714b8692011-05-20 15:23:36 -0500706 }
707 public bool MultipleFiles {
708 get { return result.MultipleFiles; }
709 set { SetMultipleFiles(value); }
710 }
711 public Builder SetMultipleFiles(bool value) {
712 result.hasMultipleFiles = true;
713 result.multipleFiles_ = value;
714 return this;
715 }
716 public Builder ClearMultipleFiles() {
717 result.hasMultipleFiles = false;
718 result.multipleFiles_ = false;
719 return this;
720 }
721
722 public bool HasNestClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500723 get { return result.hasNestClasses; }
csharptest714b8692011-05-20 15:23:36 -0500724 }
725 public bool NestClasses {
726 get { return result.NestClasses; }
727 set { SetNestClasses(value); }
728 }
729 public Builder SetNestClasses(bool value) {
730 result.hasNestClasses = true;
731 result.nestClasses_ = value;
732 return this;
733 }
734 public Builder ClearNestClasses() {
735 result.hasNestClasses = false;
736 result.nestClasses_ = false;
737 return this;
738 }
739
740 public bool HasCodeContracts {
csharptestc671a4b2011-06-08 11:51:24 -0500741 get { return result.hasCodeContracts; }
csharptest714b8692011-05-20 15:23:36 -0500742 }
743 public bool CodeContracts {
744 get { return result.CodeContracts; }
745 set { SetCodeContracts(value); }
746 }
747 public Builder SetCodeContracts(bool value) {
748 result.hasCodeContracts = true;
749 result.codeContracts_ = value;
750 return this;
751 }
752 public Builder ClearCodeContracts() {
753 result.hasCodeContracts = false;
754 result.codeContracts_ = false;
755 return this;
756 }
757
758 public bool HasExpandNamespaceDirectories {
csharptestc671a4b2011-06-08 11:51:24 -0500759 get { return result.hasExpandNamespaceDirectories; }
csharptest714b8692011-05-20 15:23:36 -0500760 }
761 public bool ExpandNamespaceDirectories {
762 get { return result.ExpandNamespaceDirectories; }
763 set { SetExpandNamespaceDirectories(value); }
764 }
765 public Builder SetExpandNamespaceDirectories(bool value) {
766 result.hasExpandNamespaceDirectories = true;
767 result.expandNamespaceDirectories_ = value;
768 return this;
769 }
770 public Builder ClearExpandNamespaceDirectories() {
771 result.hasExpandNamespaceDirectories = false;
772 result.expandNamespaceDirectories_ = false;
773 return this;
774 }
775
776 public bool HasClsCompliance {
csharptestc671a4b2011-06-08 11:51:24 -0500777 get { return result.hasClsCompliance; }
csharptest714b8692011-05-20 15:23:36 -0500778 }
779 public bool ClsCompliance {
780 get { return result.ClsCompliance; }
781 set { SetClsCompliance(value); }
782 }
783 public Builder SetClsCompliance(bool value) {
784 result.hasClsCompliance = true;
785 result.clsCompliance_ = value;
786 return this;
787 }
788 public Builder ClearClsCompliance() {
789 result.hasClsCompliance = false;
790 result.clsCompliance_ = true;
791 return this;
792 }
793
csharptest3c6e9322011-09-09 18:14:40 -0500794 public bool HasAddSerializable {
795 get { return result.hasAddSerializable; }
796 }
797 public bool AddSerializable {
798 get { return result.AddSerializable; }
799 set { SetAddSerializable(value); }
800 }
801 public Builder SetAddSerializable(bool value) {
802 result.hasAddSerializable = true;
803 result.addSerializable_ = value;
804 return this;
805 }
806 public Builder ClearAddSerializable() {
807 result.hasAddSerializable = false;
808 result.addSerializable_ = false;
809 return this;
810 }
811
csharptest714b8692011-05-20 15:23:36 -0500812 public bool HasFileExtension {
csharptestc671a4b2011-06-08 11:51:24 -0500813 get { return result.hasFileExtension; }
csharptest714b8692011-05-20 15:23:36 -0500814 }
815 public string FileExtension {
816 get { return result.FileExtension; }
817 set { SetFileExtension(value); }
818 }
819 public Builder SetFileExtension(string value) {
820 pb::ThrowHelper.ThrowIfNull(value, "value");
821 result.hasFileExtension = true;
822 result.fileExtension_ = value;
823 return this;
824 }
825 public Builder ClearFileExtension() {
826 result.hasFileExtension = false;
827 result.fileExtension_ = ".cs";
828 return this;
829 }
830
831 public bool HasUmbrellaNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500832 get { return result.hasUmbrellaNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500833 }
834 public string UmbrellaNamespace {
835 get { return result.UmbrellaNamespace; }
836 set { SetUmbrellaNamespace(value); }
837 }
838 public Builder SetUmbrellaNamespace(string value) {
839 pb::ThrowHelper.ThrowIfNull(value, "value");
840 result.hasUmbrellaNamespace = true;
841 result.umbrellaNamespace_ = value;
842 return this;
843 }
844 public Builder ClearUmbrellaNamespace() {
845 result.hasUmbrellaNamespace = false;
846 result.umbrellaNamespace_ = "";
847 return this;
848 }
849
850 public bool HasOutputDirectory {
csharptestc671a4b2011-06-08 11:51:24 -0500851 get { return result.hasOutputDirectory; }
csharptest714b8692011-05-20 15:23:36 -0500852 }
853 public string OutputDirectory {
854 get { return result.OutputDirectory; }
855 set { SetOutputDirectory(value); }
856 }
857 public Builder SetOutputDirectory(string value) {
858 pb::ThrowHelper.ThrowIfNull(value, "value");
859 result.hasOutputDirectory = true;
860 result.outputDirectory_ = value;
861 return this;
862 }
863 public Builder ClearOutputDirectory() {
864 result.hasOutputDirectory = false;
865 result.outputDirectory_ = ".";
866 return this;
867 }
868
869 public bool HasIgnoreGoogleProtobuf {
csharptestc671a4b2011-06-08 11:51:24 -0500870 get { return result.hasIgnoreGoogleProtobuf; }
csharptest714b8692011-05-20 15:23:36 -0500871 }
872 public bool IgnoreGoogleProtobuf {
873 get { return result.IgnoreGoogleProtobuf; }
874 set { SetIgnoreGoogleProtobuf(value); }
875 }
876 public Builder SetIgnoreGoogleProtobuf(bool value) {
877 result.hasIgnoreGoogleProtobuf = true;
878 result.ignoreGoogleProtobuf_ = value;
879 return this;
880 }
881 public Builder ClearIgnoreGoogleProtobuf() {
882 result.hasIgnoreGoogleProtobuf = false;
883 result.ignoreGoogleProtobuf_ = false;
884 return this;
885 }
886
887 public bool HasServiceGeneratorType {
csharptestc671a4b2011-06-08 11:51:24 -0500888 get { return result.hasServiceGeneratorType; }
csharptest714b8692011-05-20 15:23:36 -0500889 }
890 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
891 get { return result.ServiceGeneratorType; }
892 set { SetServiceGeneratorType(value); }
893 }
894 public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
895 result.hasServiceGeneratorType = true;
896 result.serviceGeneratorType_ = value;
897 return this;
898 }
899 public Builder ClearServiceGeneratorType() {
900 result.hasServiceGeneratorType = false;
901 result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
902 return this;
903 }
904 }
905 static CSharpFileOptions() {
906 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
907 }
908 }
909
csharptest445bdce2011-05-20 15:50:54 -0500910 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
911 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
912 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500913 public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
914 private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -0500915 private static readonly string[] _cSharpFieldOptionsFieldNames = new string[] { "property_name" };
916 private static readonly uint[] _cSharpFieldOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -0500917 public static CSharpFieldOptions DefaultInstance {
918 get { return defaultInstance; }
919 }
920
921 public override CSharpFieldOptions DefaultInstanceForType {
922 get { return defaultInstance; }
923 }
924
925 protected override CSharpFieldOptions ThisMessage {
926 get { return this; }
927 }
928
929 public static pbd::MessageDescriptor Descriptor {
930 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
931 }
932
933 protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
934 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
935 }
936
937 public const int PropertyNameFieldNumber = 1;
938 private bool hasPropertyName;
939 private string propertyName_ = "";
940 public bool HasPropertyName {
941 get { return hasPropertyName; }
942 }
943 public string PropertyName {
944 get { return propertyName_; }
945 }
946
947 public override bool IsInitialized {
948 get {
949 return true;
950 }
951 }
952
csharptestffafdaa2011-06-03 12:58:14 -0500953 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500954 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500955 string[] field_names = _cSharpFieldOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500956 if (hasPropertyName) {
csharptest920b09a2011-06-08 20:13:29 -0500957 output.WriteString(1, field_names[0], PropertyName);
csharptest714b8692011-05-20 15:23:36 -0500958 }
959 UnknownFields.WriteTo(output);
960 }
961
962 private int memoizedSerializedSize = -1;
963 public override int SerializedSize {
964 get {
965 int size = memoizedSerializedSize;
966 if (size != -1) return size;
967
968 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500969 if (hasPropertyName) {
csharptest714b8692011-05-20 15:23:36 -0500970 size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
971 }
972 size += UnknownFields.SerializedSize;
973 memoizedSerializedSize = size;
974 return size;
975 }
976 }
977
978 public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
979 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
980 }
981 public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
982 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
983 }
984 public static CSharpFieldOptions ParseFrom(byte[] data) {
985 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
986 }
987 public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
988 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
989 }
990 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
991 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
992 }
993 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
994 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
995 }
996 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
997 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
998 }
999 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1000 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1001 }
csharptest17699c22011-06-03 21:57:15 -05001002 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001003 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1004 }
csharptest17699c22011-06-03 21:57:15 -05001005 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001006 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1007 }
1008 public static Builder CreateBuilder() { return new Builder(); }
1009 public override Builder ToBuilder() { return CreateBuilder(this); }
1010 public override Builder CreateBuilderForType() { return new Builder(); }
1011 public static Builder CreateBuilder(CSharpFieldOptions prototype) {
1012 return (Builder) new Builder().MergeFrom(prototype);
1013 }
1014
csharptest445bdce2011-05-20 15:50:54 -05001015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1016 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1017 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001018 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
1019 protected override Builder ThisBuilder {
1020 get { return this; }
1021 }
1022 public Builder() {}
1023
1024 CSharpFieldOptions result = new CSharpFieldOptions();
1025
1026 protected override CSharpFieldOptions MessageBeingBuilt {
1027 get { return result; }
1028 }
1029
1030 public override Builder Clear() {
1031 result = new CSharpFieldOptions();
1032 return this;
1033 }
1034
1035 public override Builder Clone() {
1036 return new Builder().MergeFrom(result);
1037 }
1038
1039 public override pbd::MessageDescriptor DescriptorForType {
1040 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
1041 }
1042
1043 public override CSharpFieldOptions DefaultInstanceForType {
1044 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
1045 }
1046
1047 public override CSharpFieldOptions BuildPartial() {
1048 if (result == null) {
1049 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1050 }
1051 CSharpFieldOptions returnMe = result;
1052 result = null;
1053 return returnMe;
1054 }
1055
1056 public override Builder MergeFrom(pb::IMessage other) {
1057 if (other is CSharpFieldOptions) {
1058 return MergeFrom((CSharpFieldOptions) other);
1059 } else {
1060 base.MergeFrom(other);
1061 return this;
1062 }
1063 }
1064
1065 public override Builder MergeFrom(CSharpFieldOptions other) {
1066 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
1067 if (other.HasPropertyName) {
1068 PropertyName = other.PropertyName;
1069 }
1070 this.MergeUnknownFields(other.UnknownFields);
1071 return this;
1072 }
1073
csharptest17699c22011-06-03 21:57:15 -05001074 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001075 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1076 }
1077
csharptest17699c22011-06-03 21:57:15 -05001078 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001079 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001080 uint tag;
1081 string field_name;
1082 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001083 if(tag == 0 && field_name != null) {
1084 int field_ordinal = global::System.Array.BinarySearch(_cSharpFieldOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1085 if(field_ordinal >= 0)
1086 tag = _cSharpFieldOptionsFieldTags[field_ordinal];
1087 else {
1088 if (unknownFields == null) {
1089 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1090 }
1091 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1092 continue;
1093 }
1094 }
csharptest714b8692011-05-20 15:23:36 -05001095 switch (tag) {
1096 case 0: {
csharptest99284412011-06-03 14:51:06 -05001097 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001098 }
1099 default: {
1100 if (pb::WireFormat.IsEndGroupTag(tag)) {
1101 if (unknownFields != null) {
1102 this.UnknownFields = unknownFields.Build();
1103 }
1104 return this;
1105 }
1106 if (unknownFields == null) {
1107 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1108 }
csharptestd2af9e92011-06-03 21:35:02 -05001109 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001110 break;
1111 }
1112 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001113 result.hasPropertyName = input.ReadString(ref result.propertyName_);
csharptest714b8692011-05-20 15:23:36 -05001114 break;
1115 }
1116 }
1117 }
csharptest123e5342011-06-03 14:15:21 -05001118
1119 if (unknownFields != null) {
1120 this.UnknownFields = unknownFields.Build();
1121 }
1122 return this;
csharptest714b8692011-05-20 15:23:36 -05001123 }
1124
1125
1126 public bool HasPropertyName {
csharptestc671a4b2011-06-08 11:51:24 -05001127 get { return result.hasPropertyName; }
csharptest714b8692011-05-20 15:23:36 -05001128 }
1129 public string PropertyName {
1130 get { return result.PropertyName; }
1131 set { SetPropertyName(value); }
1132 }
1133 public Builder SetPropertyName(string value) {
1134 pb::ThrowHelper.ThrowIfNull(value, "value");
1135 result.hasPropertyName = true;
1136 result.propertyName_ = value;
1137 return this;
1138 }
1139 public Builder ClearPropertyName() {
1140 result.hasPropertyName = false;
1141 result.propertyName_ = "";
1142 return this;
1143 }
1144 }
1145 static CSharpFieldOptions() {
1146 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1147 }
1148 }
1149
csharptest445bdce2011-05-20 15:50:54 -05001150 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1151 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1152 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001153 public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
1154 private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001155 private static readonly string[] _cSharpServiceOptionsFieldNames = new string[] { "interface_id" };
1156 private static readonly uint[] _cSharpServiceOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -05001157 public static CSharpServiceOptions DefaultInstance {
1158 get { return defaultInstance; }
1159 }
1160
1161 public override CSharpServiceOptions DefaultInstanceForType {
1162 get { return defaultInstance; }
1163 }
1164
1165 protected override CSharpServiceOptions ThisMessage {
1166 get { return this; }
1167 }
1168
1169 public static pbd::MessageDescriptor Descriptor {
1170 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
1171 }
1172
1173 protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
1174 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
1175 }
1176
1177 public const int InterfaceIdFieldNumber = 1;
1178 private bool hasInterfaceId;
1179 private string interfaceId_ = "";
1180 public bool HasInterfaceId {
1181 get { return hasInterfaceId; }
1182 }
1183 public string InterfaceId {
1184 get { return interfaceId_; }
1185 }
1186
1187 public override bool IsInitialized {
1188 get {
1189 return true;
1190 }
1191 }
1192
csharptestffafdaa2011-06-03 12:58:14 -05001193 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001194 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001195 string[] field_names = _cSharpServiceOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001196 if (hasInterfaceId) {
csharptest920b09a2011-06-08 20:13:29 -05001197 output.WriteString(1, field_names[0], InterfaceId);
csharptest714b8692011-05-20 15:23:36 -05001198 }
1199 UnknownFields.WriteTo(output);
1200 }
1201
1202 private int memoizedSerializedSize = -1;
1203 public override int SerializedSize {
1204 get {
1205 int size = memoizedSerializedSize;
1206 if (size != -1) return size;
1207
1208 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001209 if (hasInterfaceId) {
csharptest714b8692011-05-20 15:23:36 -05001210 size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
1211 }
1212 size += UnknownFields.SerializedSize;
1213 memoizedSerializedSize = size;
1214 return size;
1215 }
1216 }
1217
1218 public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
1219 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1220 }
1221 public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1222 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1223 }
1224 public static CSharpServiceOptions ParseFrom(byte[] data) {
1225 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1226 }
1227 public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1228 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1229 }
1230 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
1231 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1232 }
1233 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1234 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1235 }
1236 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1237 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1238 }
1239 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1240 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1241 }
csharptest17699c22011-06-03 21:57:15 -05001242 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001243 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1244 }
csharptest17699c22011-06-03 21:57:15 -05001245 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001246 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1247 }
1248 public static Builder CreateBuilder() { return new Builder(); }
1249 public override Builder ToBuilder() { return CreateBuilder(this); }
1250 public override Builder CreateBuilderForType() { return new Builder(); }
1251 public static Builder CreateBuilder(CSharpServiceOptions prototype) {
1252 return (Builder) new Builder().MergeFrom(prototype);
1253 }
1254
csharptest445bdce2011-05-20 15:50:54 -05001255 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1256 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1257 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001258 public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
1259 protected override Builder ThisBuilder {
1260 get { return this; }
1261 }
1262 public Builder() {}
1263
1264 CSharpServiceOptions result = new CSharpServiceOptions();
1265
1266 protected override CSharpServiceOptions MessageBeingBuilt {
1267 get { return result; }
1268 }
1269
1270 public override Builder Clear() {
1271 result = new CSharpServiceOptions();
1272 return this;
1273 }
1274
1275 public override Builder Clone() {
1276 return new Builder().MergeFrom(result);
1277 }
1278
1279 public override pbd::MessageDescriptor DescriptorForType {
1280 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
1281 }
1282
1283 public override CSharpServiceOptions DefaultInstanceForType {
1284 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
1285 }
1286
1287 public override CSharpServiceOptions BuildPartial() {
1288 if (result == null) {
1289 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1290 }
1291 CSharpServiceOptions returnMe = result;
1292 result = null;
1293 return returnMe;
1294 }
1295
1296 public override Builder MergeFrom(pb::IMessage other) {
1297 if (other is CSharpServiceOptions) {
1298 return MergeFrom((CSharpServiceOptions) other);
1299 } else {
1300 base.MergeFrom(other);
1301 return this;
1302 }
1303 }
1304
1305 public override Builder MergeFrom(CSharpServiceOptions other) {
1306 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
1307 if (other.HasInterfaceId) {
1308 InterfaceId = other.InterfaceId;
1309 }
1310 this.MergeUnknownFields(other.UnknownFields);
1311 return this;
1312 }
1313
csharptest17699c22011-06-03 21:57:15 -05001314 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001315 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1316 }
1317
csharptest17699c22011-06-03 21:57:15 -05001318 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001319 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001320 uint tag;
1321 string field_name;
1322 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001323 if(tag == 0 && field_name != null) {
1324 int field_ordinal = global::System.Array.BinarySearch(_cSharpServiceOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1325 if(field_ordinal >= 0)
1326 tag = _cSharpServiceOptionsFieldTags[field_ordinal];
1327 else {
1328 if (unknownFields == null) {
1329 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1330 }
1331 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1332 continue;
1333 }
1334 }
csharptest714b8692011-05-20 15:23:36 -05001335 switch (tag) {
1336 case 0: {
csharptest99284412011-06-03 14:51:06 -05001337 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001338 }
1339 default: {
1340 if (pb::WireFormat.IsEndGroupTag(tag)) {
1341 if (unknownFields != null) {
1342 this.UnknownFields = unknownFields.Build();
1343 }
1344 return this;
1345 }
1346 if (unknownFields == null) {
1347 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1348 }
csharptestd2af9e92011-06-03 21:35:02 -05001349 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001350 break;
1351 }
1352 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001353 result.hasInterfaceId = input.ReadString(ref result.interfaceId_);
csharptest714b8692011-05-20 15:23:36 -05001354 break;
1355 }
1356 }
1357 }
csharptest123e5342011-06-03 14:15:21 -05001358
1359 if (unknownFields != null) {
1360 this.UnknownFields = unknownFields.Build();
1361 }
1362 return this;
csharptest714b8692011-05-20 15:23:36 -05001363 }
1364
1365
1366 public bool HasInterfaceId {
csharptestc671a4b2011-06-08 11:51:24 -05001367 get { return result.hasInterfaceId; }
csharptest714b8692011-05-20 15:23:36 -05001368 }
1369 public string InterfaceId {
1370 get { return result.InterfaceId; }
1371 set { SetInterfaceId(value); }
1372 }
1373 public Builder SetInterfaceId(string value) {
1374 pb::ThrowHelper.ThrowIfNull(value, "value");
1375 result.hasInterfaceId = true;
1376 result.interfaceId_ = value;
1377 return this;
1378 }
1379 public Builder ClearInterfaceId() {
1380 result.hasInterfaceId = false;
1381 result.interfaceId_ = "";
1382 return this;
1383 }
1384 }
1385 static CSharpServiceOptions() {
1386 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1387 }
1388 }
1389
csharptest445bdce2011-05-20 15:50:54 -05001390 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1391 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1392 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001393 public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
1394 private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001395 private static readonly string[] _cSharpMethodOptionsFieldNames = new string[] { "dispatch_id" };
1396 private static readonly uint[] _cSharpMethodOptionsFieldTags = new uint[] { 8 };
csharptest714b8692011-05-20 15:23:36 -05001397 public static CSharpMethodOptions DefaultInstance {
1398 get { return defaultInstance; }
1399 }
1400
1401 public override CSharpMethodOptions DefaultInstanceForType {
1402 get { return defaultInstance; }
1403 }
1404
1405 protected override CSharpMethodOptions ThisMessage {
1406 get { return this; }
1407 }
1408
1409 public static pbd::MessageDescriptor Descriptor {
1410 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
1411 }
1412
1413 protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
1414 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
1415 }
1416
1417 public const int DispatchIdFieldNumber = 1;
1418 private bool hasDispatchId;
csharptestced18e12011-06-09 19:47:56 -05001419 private int dispatchId_;
csharptest714b8692011-05-20 15:23:36 -05001420 public bool HasDispatchId {
1421 get { return hasDispatchId; }
1422 }
1423 public int DispatchId {
1424 get { return dispatchId_; }
1425 }
1426
1427 public override bool IsInitialized {
1428 get {
1429 return true;
1430 }
1431 }
1432
csharptestffafdaa2011-06-03 12:58:14 -05001433 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001434 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001435 string[] field_names = _cSharpMethodOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001436 if (hasDispatchId) {
csharptest920b09a2011-06-08 20:13:29 -05001437 output.WriteInt32(1, field_names[0], DispatchId);
csharptest714b8692011-05-20 15:23:36 -05001438 }
1439 UnknownFields.WriteTo(output);
1440 }
1441
1442 private int memoizedSerializedSize = -1;
1443 public override int SerializedSize {
1444 get {
1445 int size = memoizedSerializedSize;
1446 if (size != -1) return size;
1447
1448 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001449 if (hasDispatchId) {
csharptest714b8692011-05-20 15:23:36 -05001450 size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
1451 }
1452 size += UnknownFields.SerializedSize;
1453 memoizedSerializedSize = size;
1454 return size;
1455 }
1456 }
1457
1458 public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
1459 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1460 }
1461 public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1462 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1463 }
1464 public static CSharpMethodOptions ParseFrom(byte[] data) {
1465 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1466 }
1467 public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1468 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1469 }
1470 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
1471 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1472 }
1473 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1474 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1475 }
1476 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1477 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1478 }
1479 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1480 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1481 }
csharptest17699c22011-06-03 21:57:15 -05001482 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001483 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1484 }
csharptest17699c22011-06-03 21:57:15 -05001485 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001486 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1487 }
1488 public static Builder CreateBuilder() { return new Builder(); }
1489 public override Builder ToBuilder() { return CreateBuilder(this); }
1490 public override Builder CreateBuilderForType() { return new Builder(); }
1491 public static Builder CreateBuilder(CSharpMethodOptions prototype) {
1492 return (Builder) new Builder().MergeFrom(prototype);
1493 }
1494
csharptest445bdce2011-05-20 15:50:54 -05001495 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1496 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1497 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001498 public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
1499 protected override Builder ThisBuilder {
1500 get { return this; }
1501 }
1502 public Builder() {}
1503
1504 CSharpMethodOptions result = new CSharpMethodOptions();
1505
1506 protected override CSharpMethodOptions MessageBeingBuilt {
1507 get { return result; }
1508 }
1509
1510 public override Builder Clear() {
1511 result = new CSharpMethodOptions();
1512 return this;
1513 }
1514
1515 public override Builder Clone() {
1516 return new Builder().MergeFrom(result);
1517 }
1518
1519 public override pbd::MessageDescriptor DescriptorForType {
1520 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
1521 }
1522
1523 public override CSharpMethodOptions DefaultInstanceForType {
1524 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
1525 }
1526
1527 public override CSharpMethodOptions BuildPartial() {
1528 if (result == null) {
1529 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1530 }
1531 CSharpMethodOptions returnMe = result;
1532 result = null;
1533 return returnMe;
1534 }
1535
1536 public override Builder MergeFrom(pb::IMessage other) {
1537 if (other is CSharpMethodOptions) {
1538 return MergeFrom((CSharpMethodOptions) other);
1539 } else {
1540 base.MergeFrom(other);
1541 return this;
1542 }
1543 }
1544
1545 public override Builder MergeFrom(CSharpMethodOptions other) {
1546 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
1547 if (other.HasDispatchId) {
1548 DispatchId = other.DispatchId;
1549 }
1550 this.MergeUnknownFields(other.UnknownFields);
1551 return this;
1552 }
1553
csharptest17699c22011-06-03 21:57:15 -05001554 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001555 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1556 }
1557
csharptest17699c22011-06-03 21:57:15 -05001558 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001559 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001560 uint tag;
1561 string field_name;
1562 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001563 if(tag == 0 && field_name != null) {
1564 int field_ordinal = global::System.Array.BinarySearch(_cSharpMethodOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1565 if(field_ordinal >= 0)
1566 tag = _cSharpMethodOptionsFieldTags[field_ordinal];
1567 else {
1568 if (unknownFields == null) {
1569 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1570 }
1571 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1572 continue;
1573 }
1574 }
csharptest714b8692011-05-20 15:23:36 -05001575 switch (tag) {
1576 case 0: {
csharptest99284412011-06-03 14:51:06 -05001577 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001578 }
1579 default: {
1580 if (pb::WireFormat.IsEndGroupTag(tag)) {
1581 if (unknownFields != null) {
1582 this.UnknownFields = unknownFields.Build();
1583 }
1584 return this;
1585 }
1586 if (unknownFields == null) {
1587 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1588 }
csharptestd2af9e92011-06-03 21:35:02 -05001589 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001590 break;
1591 }
1592 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05001593 result.hasDispatchId = input.ReadInt32(ref result.dispatchId_);
csharptest714b8692011-05-20 15:23:36 -05001594 break;
1595 }
1596 }
1597 }
csharptest123e5342011-06-03 14:15:21 -05001598
1599 if (unknownFields != null) {
1600 this.UnknownFields = unknownFields.Build();
1601 }
1602 return this;
csharptest714b8692011-05-20 15:23:36 -05001603 }
1604
1605
1606 public bool HasDispatchId {
csharptestc671a4b2011-06-08 11:51:24 -05001607 get { return result.hasDispatchId; }
csharptest714b8692011-05-20 15:23:36 -05001608 }
1609 public int DispatchId {
1610 get { return result.DispatchId; }
1611 set { SetDispatchId(value); }
1612 }
1613 public Builder SetDispatchId(int value) {
1614 result.hasDispatchId = true;
1615 result.dispatchId_ = value;
1616 return this;
1617 }
1618 public Builder ClearDispatchId() {
1619 result.hasDispatchId = false;
1620 result.dispatchId_ = 0;
1621 return this;
1622 }
1623 }
1624 static CSharpMethodOptions() {
1625 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1626 }
1627 }
1628
1629 #endregion
1630
1631}
csharptest2d887332011-08-12 20:13:44 -05001632
1633#endregion Designer generated code