blob: 24196160431e3c11b202a225a074b144656a4b2d [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" +
55 "tgMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
56 "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
57 "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
58 "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
59 "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
60 "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
61 "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
62 "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
63 "ZmFsc2USSQoWc2VydmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29n" +
64 "bGUucHJvdG9idWYuQ1NoYXJwU2VydmljZVR5cGU6BE5PTkUiKwoSQ1NoYXJw" +
65 "RmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1NoYXJw" +
66 "U2VydmljZU9wdGlvbnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NTaGFy" +
67 "cE1ldGhvZE9wdGlvbnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqSwoRQ1NoYXJw" +
68 "U2VydmljZVR5cGUSCAoETk9ORRAAEgsKB0dFTkVSSUMQARINCglJTlRFUkZB" +
69 "Q0UQAhIQCgxJUlBDRElTUEFUQ0gQAzpeChNjc2hhcnBfZmlsZV9vcHRpb25z" +
70 "EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGOgHIAEoCzIiLmdvb2ds" +
71 "ZS5wcm90b2J1Zi5DU2hhcnBGaWxlT3B0aW9uczphChRjc2hhcnBfZmllbGRf" +
72 "b3B0aW9ucxIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6AcgASgL" +
73 "MiMuZ29vZ2xlLnByb3RvYnVmLkNTaGFycEZpZWxkT3B0aW9uczpnChZjc2hh" +
74 "cnBfc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP" +
75 "cHRpb25zGOgHIAEoCzIlLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBTZXJ2aWNl" +
76 "T3B0aW9uczpkChVjc2hhcnBfbWV0aG9kX29wdGlvbnMSHi5nb29nbGUucHJv" +
77 "dG9idWYuTWV0aG9kT3B0aW9ucxjoByABKAsyJC5nb29nbGUucHJvdG9idWYu" +
78 "Q1NoYXJwTWV0aG9kT3B0aW9ucw==");
79 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
80 descriptor = root;
81 internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
82 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
83 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
84 new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", "ServiceGeneratorType", });
85 internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
86 internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
87 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
88 new string[] { "PropertyName", });
89 internal__static_google_protobuf_CSharpServiceOptions__Descriptor = Descriptor.MessageTypes[2];
90 internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable =
91 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>(internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
92 new string[] { "InterfaceId", });
93 internal__static_google_protobuf_CSharpMethodOptions__Descriptor = Descriptor.MessageTypes[3];
94 internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable =
95 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>(internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
96 new string[] { "DispatchId", });
97 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
98 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
99 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[2]);
100 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[3]);
101 return null;
102 };
103 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
104 new pbd::FileDescriptor[] {
105 global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
106 }, assigner);
107 }
108 #endregion
109
110 }
111 #region Enums
csharptest445bdce2011-05-20 15:50:54 -0500112 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
113 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500114 public enum CSharpServiceType {
115 NONE = 0,
116 GENERIC = 1,
117 INTERFACE = 2,
118 IRPCDISPATCH = 3,
119 }
120
121 #endregion
122
123 #region Messages
csharptest445bdce2011-05-20 15:50:54 -0500124 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
125 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
126 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500127 public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
128 private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -0500129 private static readonly string[] _cSharpFileOptionsFieldNames = new string[] { "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" };
130 private static readonly uint[] _cSharpFileOptionsFieldTags = new uint[] { 64, 48, 56, 1770, 1792, 32, 10, 40, 1786, 24, 1800, 18, 1778 };
csharptest714b8692011-05-20 15:23:36 -0500131 public static CSharpFileOptions DefaultInstance {
132 get { return defaultInstance; }
133 }
134
135 public override CSharpFileOptions DefaultInstanceForType {
136 get { return defaultInstance; }
137 }
138
139 protected override CSharpFileOptions ThisMessage {
140 get { return this; }
141 }
142
143 public static pbd::MessageDescriptor Descriptor {
144 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
145 }
146
147 protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
148 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
149 }
150
151 public const int NamespaceFieldNumber = 1;
152 private bool hasNamespace;
153 private string namespace_ = "";
154 public bool HasNamespace {
155 get { return hasNamespace; }
156 }
157 public string Namespace {
158 get { return namespace_; }
159 }
160
161 public const int UmbrellaClassnameFieldNumber = 2;
162 private bool hasUmbrellaClassname;
163 private string umbrellaClassname_ = "";
164 public bool HasUmbrellaClassname {
165 get { return hasUmbrellaClassname; }
166 }
167 public string UmbrellaClassname {
168 get { return umbrellaClassname_; }
169 }
170
171 public const int PublicClassesFieldNumber = 3;
172 private bool hasPublicClasses;
173 private bool publicClasses_ = true;
174 public bool HasPublicClasses {
175 get { return hasPublicClasses; }
176 }
177 public bool PublicClasses {
178 get { return publicClasses_; }
179 }
180
181 public const int MultipleFilesFieldNumber = 4;
182 private bool hasMultipleFiles;
csharptestced18e12011-06-09 19:47:56 -0500183 private bool multipleFiles_;
csharptest714b8692011-05-20 15:23:36 -0500184 public bool HasMultipleFiles {
185 get { return hasMultipleFiles; }
186 }
187 public bool MultipleFiles {
188 get { return multipleFiles_; }
189 }
190
191 public const int NestClassesFieldNumber = 5;
192 private bool hasNestClasses;
csharptestced18e12011-06-09 19:47:56 -0500193 private bool nestClasses_;
csharptest714b8692011-05-20 15:23:36 -0500194 public bool HasNestClasses {
195 get { return hasNestClasses; }
196 }
197 public bool NestClasses {
198 get { return nestClasses_; }
199 }
200
201 public const int CodeContractsFieldNumber = 6;
202 private bool hasCodeContracts;
csharptestced18e12011-06-09 19:47:56 -0500203 private bool codeContracts_;
csharptest714b8692011-05-20 15:23:36 -0500204 public bool HasCodeContracts {
205 get { return hasCodeContracts; }
206 }
207 public bool CodeContracts {
208 get { return codeContracts_; }
209 }
210
211 public const int ExpandNamespaceDirectoriesFieldNumber = 7;
212 private bool hasExpandNamespaceDirectories;
csharptestced18e12011-06-09 19:47:56 -0500213 private bool expandNamespaceDirectories_;
csharptest714b8692011-05-20 15:23:36 -0500214 public bool HasExpandNamespaceDirectories {
215 get { return hasExpandNamespaceDirectories; }
216 }
217 public bool ExpandNamespaceDirectories {
218 get { return expandNamespaceDirectories_; }
219 }
220
221 public const int ClsComplianceFieldNumber = 8;
222 private bool hasClsCompliance;
223 private bool clsCompliance_ = true;
224 public bool HasClsCompliance {
225 get { return hasClsCompliance; }
226 }
227 public bool ClsCompliance {
228 get { return clsCompliance_; }
229 }
230
231 public const int FileExtensionFieldNumber = 221;
232 private bool hasFileExtension;
233 private string fileExtension_ = ".cs";
234 public bool HasFileExtension {
235 get { return hasFileExtension; }
236 }
237 public string FileExtension {
238 get { return fileExtension_; }
239 }
240
241 public const int UmbrellaNamespaceFieldNumber = 222;
242 private bool hasUmbrellaNamespace;
243 private string umbrellaNamespace_ = "";
244 public bool HasUmbrellaNamespace {
245 get { return hasUmbrellaNamespace; }
246 }
247 public string UmbrellaNamespace {
248 get { return umbrellaNamespace_; }
249 }
250
251 public const int OutputDirectoryFieldNumber = 223;
252 private bool hasOutputDirectory;
253 private string outputDirectory_ = ".";
254 public bool HasOutputDirectory {
255 get { return hasOutputDirectory; }
256 }
257 public string OutputDirectory {
258 get { return outputDirectory_; }
259 }
260
261 public const int IgnoreGoogleProtobufFieldNumber = 224;
262 private bool hasIgnoreGoogleProtobuf;
csharptestced18e12011-06-09 19:47:56 -0500263 private bool ignoreGoogleProtobuf_;
csharptest714b8692011-05-20 15:23:36 -0500264 public bool HasIgnoreGoogleProtobuf {
265 get { return hasIgnoreGoogleProtobuf; }
266 }
267 public bool IgnoreGoogleProtobuf {
268 get { return ignoreGoogleProtobuf_; }
269 }
270
271 public const int ServiceGeneratorTypeFieldNumber = 225;
272 private bool hasServiceGeneratorType;
273 private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
274 public bool HasServiceGeneratorType {
275 get { return hasServiceGeneratorType; }
276 }
277 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
278 get { return serviceGeneratorType_; }
279 }
280
281 public override bool IsInitialized {
282 get {
283 return true;
284 }
285 }
286
csharptestffafdaa2011-06-03 12:58:14 -0500287 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500288 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500289 string[] field_names = _cSharpFileOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500290 if (hasNamespace) {
csharptest920b09a2011-06-08 20:13:29 -0500291 output.WriteString(1, field_names[6], Namespace);
csharptest714b8692011-05-20 15:23:36 -0500292 }
csharptestc671a4b2011-06-08 11:51:24 -0500293 if (hasUmbrellaClassname) {
csharptest920b09a2011-06-08 20:13:29 -0500294 output.WriteString(2, field_names[11], UmbrellaClassname);
csharptest714b8692011-05-20 15:23:36 -0500295 }
csharptestc671a4b2011-06-08 11:51:24 -0500296 if (hasPublicClasses) {
csharptest920b09a2011-06-08 20:13:29 -0500297 output.WriteBool(3, field_names[9], PublicClasses);
csharptest714b8692011-05-20 15:23:36 -0500298 }
csharptestc671a4b2011-06-08 11:51:24 -0500299 if (hasMultipleFiles) {
csharptest920b09a2011-06-08 20:13:29 -0500300 output.WriteBool(4, field_names[5], MultipleFiles);
csharptest714b8692011-05-20 15:23:36 -0500301 }
csharptestc671a4b2011-06-08 11:51:24 -0500302 if (hasNestClasses) {
csharptest920b09a2011-06-08 20:13:29 -0500303 output.WriteBool(5, field_names[7], NestClasses);
csharptest714b8692011-05-20 15:23:36 -0500304 }
csharptestc671a4b2011-06-08 11:51:24 -0500305 if (hasCodeContracts) {
csharptest920b09a2011-06-08 20:13:29 -0500306 output.WriteBool(6, field_names[1], CodeContracts);
csharptest714b8692011-05-20 15:23:36 -0500307 }
csharptestc671a4b2011-06-08 11:51:24 -0500308 if (hasExpandNamespaceDirectories) {
csharptest920b09a2011-06-08 20:13:29 -0500309 output.WriteBool(7, field_names[2], ExpandNamespaceDirectories);
csharptest714b8692011-05-20 15:23:36 -0500310 }
csharptestc671a4b2011-06-08 11:51:24 -0500311 if (hasClsCompliance) {
csharptest920b09a2011-06-08 20:13:29 -0500312 output.WriteBool(8, field_names[0], ClsCompliance);
csharptest714b8692011-05-20 15:23:36 -0500313 }
csharptestc671a4b2011-06-08 11:51:24 -0500314 if (hasFileExtension) {
csharptest920b09a2011-06-08 20:13:29 -0500315 output.WriteString(221, field_names[3], FileExtension);
csharptest714b8692011-05-20 15:23:36 -0500316 }
csharptestc671a4b2011-06-08 11:51:24 -0500317 if (hasUmbrellaNamespace) {
csharptest920b09a2011-06-08 20:13:29 -0500318 output.WriteString(222, field_names[12], UmbrellaNamespace);
csharptest714b8692011-05-20 15:23:36 -0500319 }
csharptestc671a4b2011-06-08 11:51:24 -0500320 if (hasOutputDirectory) {
csharptest920b09a2011-06-08 20:13:29 -0500321 output.WriteString(223, field_names[8], OutputDirectory);
csharptest714b8692011-05-20 15:23:36 -0500322 }
csharptestc671a4b2011-06-08 11:51:24 -0500323 if (hasIgnoreGoogleProtobuf) {
csharptest920b09a2011-06-08 20:13:29 -0500324 output.WriteBool(224, field_names[4], IgnoreGoogleProtobuf);
csharptest714b8692011-05-20 15:23:36 -0500325 }
csharptestc671a4b2011-06-08 11:51:24 -0500326 if (hasServiceGeneratorType) {
csharptestced18e12011-06-09 19:47:56 -0500327 output.WriteEnum(225, field_names[10], (int) ServiceGeneratorType, ServiceGeneratorType);
csharptest714b8692011-05-20 15:23:36 -0500328 }
329 UnknownFields.WriteTo(output);
330 }
331
332 private int memoizedSerializedSize = -1;
333 public override int SerializedSize {
334 get {
335 int size = memoizedSerializedSize;
336 if (size != -1) return size;
337
338 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500339 if (hasNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500340 size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
341 }
csharptestc671a4b2011-06-08 11:51:24 -0500342 if (hasUmbrellaClassname) {
csharptest714b8692011-05-20 15:23:36 -0500343 size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
344 }
csharptestc671a4b2011-06-08 11:51:24 -0500345 if (hasPublicClasses) {
csharptest714b8692011-05-20 15:23:36 -0500346 size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
347 }
csharptestc671a4b2011-06-08 11:51:24 -0500348 if (hasMultipleFiles) {
csharptest714b8692011-05-20 15:23:36 -0500349 size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
350 }
csharptestc671a4b2011-06-08 11:51:24 -0500351 if (hasNestClasses) {
csharptest714b8692011-05-20 15:23:36 -0500352 size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
353 }
csharptestc671a4b2011-06-08 11:51:24 -0500354 if (hasCodeContracts) {
csharptest714b8692011-05-20 15:23:36 -0500355 size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
356 }
csharptestc671a4b2011-06-08 11:51:24 -0500357 if (hasExpandNamespaceDirectories) {
csharptest714b8692011-05-20 15:23:36 -0500358 size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
359 }
csharptestc671a4b2011-06-08 11:51:24 -0500360 if (hasClsCompliance) {
csharptest714b8692011-05-20 15:23:36 -0500361 size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
362 }
csharptestc671a4b2011-06-08 11:51:24 -0500363 if (hasFileExtension) {
csharptest714b8692011-05-20 15:23:36 -0500364 size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
365 }
csharptestc671a4b2011-06-08 11:51:24 -0500366 if (hasUmbrellaNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500367 size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
368 }
csharptestc671a4b2011-06-08 11:51:24 -0500369 if (hasOutputDirectory) {
csharptest714b8692011-05-20 15:23:36 -0500370 size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
371 }
csharptestc671a4b2011-06-08 11:51:24 -0500372 if (hasIgnoreGoogleProtobuf) {
csharptest714b8692011-05-20 15:23:36 -0500373 size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
374 }
csharptestc671a4b2011-06-08 11:51:24 -0500375 if (hasServiceGeneratorType) {
csharptest714b8692011-05-20 15:23:36 -0500376 size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
377 }
378 size += UnknownFields.SerializedSize;
379 memoizedSerializedSize = size;
380 return size;
381 }
382 }
383
384 public static CSharpFileOptions ParseFrom(pb::ByteString data) {
385 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
386 }
387 public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
388 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
389 }
390 public static CSharpFileOptions ParseFrom(byte[] data) {
391 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
392 }
393 public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
394 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
395 }
396 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
397 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
398 }
399 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
400 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
401 }
402 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
403 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
404 }
405 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
406 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
407 }
csharptest17699c22011-06-03 21:57:15 -0500408 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500409 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
410 }
csharptest17699c22011-06-03 21:57:15 -0500411 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500412 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
413 }
414 public static Builder CreateBuilder() { return new Builder(); }
415 public override Builder ToBuilder() { return CreateBuilder(this); }
416 public override Builder CreateBuilderForType() { return new Builder(); }
417 public static Builder CreateBuilder(CSharpFileOptions prototype) {
418 return (Builder) new Builder().MergeFrom(prototype);
419 }
420
csharptest445bdce2011-05-20 15:50:54 -0500421 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
422 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
423 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500424 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
425 protected override Builder ThisBuilder {
426 get { return this; }
427 }
428 public Builder() {}
429
430 CSharpFileOptions result = new CSharpFileOptions();
431
432 protected override CSharpFileOptions MessageBeingBuilt {
433 get { return result; }
434 }
435
436 public override Builder Clear() {
437 result = new CSharpFileOptions();
438 return this;
439 }
440
441 public override Builder Clone() {
442 return new Builder().MergeFrom(result);
443 }
444
445 public override pbd::MessageDescriptor DescriptorForType {
446 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
447 }
448
449 public override CSharpFileOptions DefaultInstanceForType {
450 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
451 }
452
453 public override CSharpFileOptions BuildPartial() {
454 if (result == null) {
455 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
456 }
457 CSharpFileOptions returnMe = result;
458 result = null;
459 return returnMe;
460 }
461
462 public override Builder MergeFrom(pb::IMessage other) {
463 if (other is CSharpFileOptions) {
464 return MergeFrom((CSharpFileOptions) other);
465 } else {
466 base.MergeFrom(other);
467 return this;
468 }
469 }
470
471 public override Builder MergeFrom(CSharpFileOptions other) {
472 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
473 if (other.HasNamespace) {
474 Namespace = other.Namespace;
475 }
476 if (other.HasUmbrellaClassname) {
477 UmbrellaClassname = other.UmbrellaClassname;
478 }
479 if (other.HasPublicClasses) {
480 PublicClasses = other.PublicClasses;
481 }
482 if (other.HasMultipleFiles) {
483 MultipleFiles = other.MultipleFiles;
484 }
485 if (other.HasNestClasses) {
486 NestClasses = other.NestClasses;
487 }
488 if (other.HasCodeContracts) {
489 CodeContracts = other.CodeContracts;
490 }
491 if (other.HasExpandNamespaceDirectories) {
492 ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
493 }
494 if (other.HasClsCompliance) {
495 ClsCompliance = other.ClsCompliance;
496 }
497 if (other.HasFileExtension) {
498 FileExtension = other.FileExtension;
499 }
500 if (other.HasUmbrellaNamespace) {
501 UmbrellaNamespace = other.UmbrellaNamespace;
502 }
503 if (other.HasOutputDirectory) {
504 OutputDirectory = other.OutputDirectory;
505 }
506 if (other.HasIgnoreGoogleProtobuf) {
507 IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
508 }
509 if (other.HasServiceGeneratorType) {
510 ServiceGeneratorType = other.ServiceGeneratorType;
511 }
512 this.MergeUnknownFields(other.UnknownFields);
513 return this;
514 }
515
csharptest17699c22011-06-03 21:57:15 -0500516 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500517 return MergeFrom(input, pb::ExtensionRegistry.Empty);
518 }
519
csharptest17699c22011-06-03 21:57:15 -0500520 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500521 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -0500522 uint tag;
523 string field_name;
524 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -0500525 if(tag == 0 && field_name != null) {
526 int field_ordinal = global::System.Array.BinarySearch(_cSharpFileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
527 if(field_ordinal >= 0)
528 tag = _cSharpFileOptionsFieldTags[field_ordinal];
529 else {
530 if (unknownFields == null) {
531 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
532 }
533 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
534 continue;
535 }
536 }
csharptest714b8692011-05-20 15:23:36 -0500537 switch (tag) {
538 case 0: {
csharptest99284412011-06-03 14:51:06 -0500539 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -0500540 }
541 default: {
542 if (pb::WireFormat.IsEndGroupTag(tag)) {
543 if (unknownFields != null) {
544 this.UnknownFields = unknownFields.Build();
545 }
546 return this;
547 }
548 if (unknownFields == null) {
549 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
550 }
csharptestd2af9e92011-06-03 21:35:02 -0500551 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -0500552 break;
553 }
554 case 10: {
csharptest920b09a2011-06-08 20:13:29 -0500555 result.hasNamespace = input.ReadString(ref result.namespace_);
csharptest714b8692011-05-20 15:23:36 -0500556 break;
557 }
558 case 18: {
csharptest920b09a2011-06-08 20:13:29 -0500559 result.hasUmbrellaClassname = input.ReadString(ref result.umbrellaClassname_);
csharptest714b8692011-05-20 15:23:36 -0500560 break;
561 }
562 case 24: {
csharptest920b09a2011-06-08 20:13:29 -0500563 result.hasPublicClasses = input.ReadBool(ref result.publicClasses_);
csharptest714b8692011-05-20 15:23:36 -0500564 break;
565 }
566 case 32: {
csharptest920b09a2011-06-08 20:13:29 -0500567 result.hasMultipleFiles = input.ReadBool(ref result.multipleFiles_);
csharptest714b8692011-05-20 15:23:36 -0500568 break;
569 }
570 case 40: {
csharptest920b09a2011-06-08 20:13:29 -0500571 result.hasNestClasses = input.ReadBool(ref result.nestClasses_);
csharptest714b8692011-05-20 15:23:36 -0500572 break;
573 }
574 case 48: {
csharptest920b09a2011-06-08 20:13:29 -0500575 result.hasCodeContracts = input.ReadBool(ref result.codeContracts_);
csharptest714b8692011-05-20 15:23:36 -0500576 break;
577 }
578 case 56: {
csharptest920b09a2011-06-08 20:13:29 -0500579 result.hasExpandNamespaceDirectories = input.ReadBool(ref result.expandNamespaceDirectories_);
csharptest714b8692011-05-20 15:23:36 -0500580 break;
581 }
582 case 64: {
csharptest920b09a2011-06-08 20:13:29 -0500583 result.hasClsCompliance = input.ReadBool(ref result.clsCompliance_);
csharptest714b8692011-05-20 15:23:36 -0500584 break;
585 }
586 case 1770: {
csharptest920b09a2011-06-08 20:13:29 -0500587 result.hasFileExtension = input.ReadString(ref result.fileExtension_);
csharptest714b8692011-05-20 15:23:36 -0500588 break;
589 }
590 case 1778: {
csharptest920b09a2011-06-08 20:13:29 -0500591 result.hasUmbrellaNamespace = input.ReadString(ref result.umbrellaNamespace_);
csharptest714b8692011-05-20 15:23:36 -0500592 break;
593 }
594 case 1786: {
csharptest920b09a2011-06-08 20:13:29 -0500595 result.hasOutputDirectory = input.ReadString(ref result.outputDirectory_);
csharptest714b8692011-05-20 15:23:36 -0500596 break;
597 }
598 case 1792: {
csharptest920b09a2011-06-08 20:13:29 -0500599 result.hasIgnoreGoogleProtobuf = input.ReadBool(ref result.ignoreGoogleProtobuf_);
csharptest714b8692011-05-20 15:23:36 -0500600 break;
601 }
602 case 1800: {
csharptestd2af9e92011-06-03 21:35:02 -0500603 object unknown;
604 if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
605 result.hasServiceGeneratorType = true;
606 } else if(unknown is int) {
csharptest714b8692011-05-20 15:23:36 -0500607 if (unknownFields == null) {
608 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
609 }
csharptestd2af9e92011-06-03 21:35:02 -0500610 unknownFields.MergeVarintField(225, (ulong)(int)unknown);
csharptest714b8692011-05-20 15:23:36 -0500611 }
612 break;
613 }
614 }
615 }
csharptest123e5342011-06-03 14:15:21 -0500616
617 if (unknownFields != null) {
618 this.UnknownFields = unknownFields.Build();
619 }
620 return this;
csharptest714b8692011-05-20 15:23:36 -0500621 }
622
623
624 public bool HasNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500625 get { return result.hasNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500626 }
627 public string Namespace {
628 get { return result.Namespace; }
629 set { SetNamespace(value); }
630 }
631 public Builder SetNamespace(string value) {
632 pb::ThrowHelper.ThrowIfNull(value, "value");
633 result.hasNamespace = true;
634 result.namespace_ = value;
635 return this;
636 }
637 public Builder ClearNamespace() {
638 result.hasNamespace = false;
639 result.namespace_ = "";
640 return this;
641 }
642
643 public bool HasUmbrellaClassname {
csharptestc671a4b2011-06-08 11:51:24 -0500644 get { return result.hasUmbrellaClassname; }
csharptest714b8692011-05-20 15:23:36 -0500645 }
646 public string UmbrellaClassname {
647 get { return result.UmbrellaClassname; }
648 set { SetUmbrellaClassname(value); }
649 }
650 public Builder SetUmbrellaClassname(string value) {
651 pb::ThrowHelper.ThrowIfNull(value, "value");
652 result.hasUmbrellaClassname = true;
653 result.umbrellaClassname_ = value;
654 return this;
655 }
656 public Builder ClearUmbrellaClassname() {
657 result.hasUmbrellaClassname = false;
658 result.umbrellaClassname_ = "";
659 return this;
660 }
661
662 public bool HasPublicClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500663 get { return result.hasPublicClasses; }
csharptest714b8692011-05-20 15:23:36 -0500664 }
665 public bool PublicClasses {
666 get { return result.PublicClasses; }
667 set { SetPublicClasses(value); }
668 }
669 public Builder SetPublicClasses(bool value) {
670 result.hasPublicClasses = true;
671 result.publicClasses_ = value;
672 return this;
673 }
674 public Builder ClearPublicClasses() {
675 result.hasPublicClasses = false;
676 result.publicClasses_ = true;
677 return this;
678 }
679
680 public bool HasMultipleFiles {
csharptestc671a4b2011-06-08 11:51:24 -0500681 get { return result.hasMultipleFiles; }
csharptest714b8692011-05-20 15:23:36 -0500682 }
683 public bool MultipleFiles {
684 get { return result.MultipleFiles; }
685 set { SetMultipleFiles(value); }
686 }
687 public Builder SetMultipleFiles(bool value) {
688 result.hasMultipleFiles = true;
689 result.multipleFiles_ = value;
690 return this;
691 }
692 public Builder ClearMultipleFiles() {
693 result.hasMultipleFiles = false;
694 result.multipleFiles_ = false;
695 return this;
696 }
697
698 public bool HasNestClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500699 get { return result.hasNestClasses; }
csharptest714b8692011-05-20 15:23:36 -0500700 }
701 public bool NestClasses {
702 get { return result.NestClasses; }
703 set { SetNestClasses(value); }
704 }
705 public Builder SetNestClasses(bool value) {
706 result.hasNestClasses = true;
707 result.nestClasses_ = value;
708 return this;
709 }
710 public Builder ClearNestClasses() {
711 result.hasNestClasses = false;
712 result.nestClasses_ = false;
713 return this;
714 }
715
716 public bool HasCodeContracts {
csharptestc671a4b2011-06-08 11:51:24 -0500717 get { return result.hasCodeContracts; }
csharptest714b8692011-05-20 15:23:36 -0500718 }
719 public bool CodeContracts {
720 get { return result.CodeContracts; }
721 set { SetCodeContracts(value); }
722 }
723 public Builder SetCodeContracts(bool value) {
724 result.hasCodeContracts = true;
725 result.codeContracts_ = value;
726 return this;
727 }
728 public Builder ClearCodeContracts() {
729 result.hasCodeContracts = false;
730 result.codeContracts_ = false;
731 return this;
732 }
733
734 public bool HasExpandNamespaceDirectories {
csharptestc671a4b2011-06-08 11:51:24 -0500735 get { return result.hasExpandNamespaceDirectories; }
csharptest714b8692011-05-20 15:23:36 -0500736 }
737 public bool ExpandNamespaceDirectories {
738 get { return result.ExpandNamespaceDirectories; }
739 set { SetExpandNamespaceDirectories(value); }
740 }
741 public Builder SetExpandNamespaceDirectories(bool value) {
742 result.hasExpandNamespaceDirectories = true;
743 result.expandNamespaceDirectories_ = value;
744 return this;
745 }
746 public Builder ClearExpandNamespaceDirectories() {
747 result.hasExpandNamespaceDirectories = false;
748 result.expandNamespaceDirectories_ = false;
749 return this;
750 }
751
752 public bool HasClsCompliance {
csharptestc671a4b2011-06-08 11:51:24 -0500753 get { return result.hasClsCompliance; }
csharptest714b8692011-05-20 15:23:36 -0500754 }
755 public bool ClsCompliance {
756 get { return result.ClsCompliance; }
757 set { SetClsCompliance(value); }
758 }
759 public Builder SetClsCompliance(bool value) {
760 result.hasClsCompliance = true;
761 result.clsCompliance_ = value;
762 return this;
763 }
764 public Builder ClearClsCompliance() {
765 result.hasClsCompliance = false;
766 result.clsCompliance_ = true;
767 return this;
768 }
769
770 public bool HasFileExtension {
csharptestc671a4b2011-06-08 11:51:24 -0500771 get { return result.hasFileExtension; }
csharptest714b8692011-05-20 15:23:36 -0500772 }
773 public string FileExtension {
774 get { return result.FileExtension; }
775 set { SetFileExtension(value); }
776 }
777 public Builder SetFileExtension(string value) {
778 pb::ThrowHelper.ThrowIfNull(value, "value");
779 result.hasFileExtension = true;
780 result.fileExtension_ = value;
781 return this;
782 }
783 public Builder ClearFileExtension() {
784 result.hasFileExtension = false;
785 result.fileExtension_ = ".cs";
786 return this;
787 }
788
789 public bool HasUmbrellaNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500790 get { return result.hasUmbrellaNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500791 }
792 public string UmbrellaNamespace {
793 get { return result.UmbrellaNamespace; }
794 set { SetUmbrellaNamespace(value); }
795 }
796 public Builder SetUmbrellaNamespace(string value) {
797 pb::ThrowHelper.ThrowIfNull(value, "value");
798 result.hasUmbrellaNamespace = true;
799 result.umbrellaNamespace_ = value;
800 return this;
801 }
802 public Builder ClearUmbrellaNamespace() {
803 result.hasUmbrellaNamespace = false;
804 result.umbrellaNamespace_ = "";
805 return this;
806 }
807
808 public bool HasOutputDirectory {
csharptestc671a4b2011-06-08 11:51:24 -0500809 get { return result.hasOutputDirectory; }
csharptest714b8692011-05-20 15:23:36 -0500810 }
811 public string OutputDirectory {
812 get { return result.OutputDirectory; }
813 set { SetOutputDirectory(value); }
814 }
815 public Builder SetOutputDirectory(string value) {
816 pb::ThrowHelper.ThrowIfNull(value, "value");
817 result.hasOutputDirectory = true;
818 result.outputDirectory_ = value;
819 return this;
820 }
821 public Builder ClearOutputDirectory() {
822 result.hasOutputDirectory = false;
823 result.outputDirectory_ = ".";
824 return this;
825 }
826
827 public bool HasIgnoreGoogleProtobuf {
csharptestc671a4b2011-06-08 11:51:24 -0500828 get { return result.hasIgnoreGoogleProtobuf; }
csharptest714b8692011-05-20 15:23:36 -0500829 }
830 public bool IgnoreGoogleProtobuf {
831 get { return result.IgnoreGoogleProtobuf; }
832 set { SetIgnoreGoogleProtobuf(value); }
833 }
834 public Builder SetIgnoreGoogleProtobuf(bool value) {
835 result.hasIgnoreGoogleProtobuf = true;
836 result.ignoreGoogleProtobuf_ = value;
837 return this;
838 }
839 public Builder ClearIgnoreGoogleProtobuf() {
840 result.hasIgnoreGoogleProtobuf = false;
841 result.ignoreGoogleProtobuf_ = false;
842 return this;
843 }
844
845 public bool HasServiceGeneratorType {
csharptestc671a4b2011-06-08 11:51:24 -0500846 get { return result.hasServiceGeneratorType; }
csharptest714b8692011-05-20 15:23:36 -0500847 }
848 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
849 get { return result.ServiceGeneratorType; }
850 set { SetServiceGeneratorType(value); }
851 }
852 public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
853 result.hasServiceGeneratorType = true;
854 result.serviceGeneratorType_ = value;
855 return this;
856 }
857 public Builder ClearServiceGeneratorType() {
858 result.hasServiceGeneratorType = false;
859 result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
860 return this;
861 }
862 }
863 static CSharpFileOptions() {
864 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
865 }
866 }
867
csharptest445bdce2011-05-20 15:50:54 -0500868 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
869 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
870 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500871 public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
872 private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -0500873 private static readonly string[] _cSharpFieldOptionsFieldNames = new string[] { "property_name" };
874 private static readonly uint[] _cSharpFieldOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -0500875 public static CSharpFieldOptions DefaultInstance {
876 get { return defaultInstance; }
877 }
878
879 public override CSharpFieldOptions DefaultInstanceForType {
880 get { return defaultInstance; }
881 }
882
883 protected override CSharpFieldOptions ThisMessage {
884 get { return this; }
885 }
886
887 public static pbd::MessageDescriptor Descriptor {
888 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
889 }
890
891 protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
892 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
893 }
894
895 public const int PropertyNameFieldNumber = 1;
896 private bool hasPropertyName;
897 private string propertyName_ = "";
898 public bool HasPropertyName {
899 get { return hasPropertyName; }
900 }
901 public string PropertyName {
902 get { return propertyName_; }
903 }
904
905 public override bool IsInitialized {
906 get {
907 return true;
908 }
909 }
910
csharptestffafdaa2011-06-03 12:58:14 -0500911 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500912 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500913 string[] field_names = _cSharpFieldOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500914 if (hasPropertyName) {
csharptest920b09a2011-06-08 20:13:29 -0500915 output.WriteString(1, field_names[0], PropertyName);
csharptest714b8692011-05-20 15:23:36 -0500916 }
917 UnknownFields.WriteTo(output);
918 }
919
920 private int memoizedSerializedSize = -1;
921 public override int SerializedSize {
922 get {
923 int size = memoizedSerializedSize;
924 if (size != -1) return size;
925
926 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500927 if (hasPropertyName) {
csharptest714b8692011-05-20 15:23:36 -0500928 size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
929 }
930 size += UnknownFields.SerializedSize;
931 memoizedSerializedSize = size;
932 return size;
933 }
934 }
935
936 public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
937 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
938 }
939 public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
940 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
941 }
942 public static CSharpFieldOptions ParseFrom(byte[] data) {
943 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
944 }
945 public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
946 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
947 }
948 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
949 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
950 }
951 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
952 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
953 }
954 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
955 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
956 }
957 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
958 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
959 }
csharptest17699c22011-06-03 21:57:15 -0500960 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500961 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
962 }
csharptest17699c22011-06-03 21:57:15 -0500963 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500964 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
965 }
966 public static Builder CreateBuilder() { return new Builder(); }
967 public override Builder ToBuilder() { return CreateBuilder(this); }
968 public override Builder CreateBuilderForType() { return new Builder(); }
969 public static Builder CreateBuilder(CSharpFieldOptions prototype) {
970 return (Builder) new Builder().MergeFrom(prototype);
971 }
972
csharptest445bdce2011-05-20 15:50:54 -0500973 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
974 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
975 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500976 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
977 protected override Builder ThisBuilder {
978 get { return this; }
979 }
980 public Builder() {}
981
982 CSharpFieldOptions result = new CSharpFieldOptions();
983
984 protected override CSharpFieldOptions MessageBeingBuilt {
985 get { return result; }
986 }
987
988 public override Builder Clear() {
989 result = new CSharpFieldOptions();
990 return this;
991 }
992
993 public override Builder Clone() {
994 return new Builder().MergeFrom(result);
995 }
996
997 public override pbd::MessageDescriptor DescriptorForType {
998 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
999 }
1000
1001 public override CSharpFieldOptions DefaultInstanceForType {
1002 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
1003 }
1004
1005 public override CSharpFieldOptions BuildPartial() {
1006 if (result == null) {
1007 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1008 }
1009 CSharpFieldOptions returnMe = result;
1010 result = null;
1011 return returnMe;
1012 }
1013
1014 public override Builder MergeFrom(pb::IMessage other) {
1015 if (other is CSharpFieldOptions) {
1016 return MergeFrom((CSharpFieldOptions) other);
1017 } else {
1018 base.MergeFrom(other);
1019 return this;
1020 }
1021 }
1022
1023 public override Builder MergeFrom(CSharpFieldOptions other) {
1024 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
1025 if (other.HasPropertyName) {
1026 PropertyName = other.PropertyName;
1027 }
1028 this.MergeUnknownFields(other.UnknownFields);
1029 return this;
1030 }
1031
csharptest17699c22011-06-03 21:57:15 -05001032 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001033 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1034 }
1035
csharptest17699c22011-06-03 21:57:15 -05001036 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001037 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001038 uint tag;
1039 string field_name;
1040 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001041 if(tag == 0 && field_name != null) {
1042 int field_ordinal = global::System.Array.BinarySearch(_cSharpFieldOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1043 if(field_ordinal >= 0)
1044 tag = _cSharpFieldOptionsFieldTags[field_ordinal];
1045 else {
1046 if (unknownFields == null) {
1047 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1048 }
1049 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1050 continue;
1051 }
1052 }
csharptest714b8692011-05-20 15:23:36 -05001053 switch (tag) {
1054 case 0: {
csharptest99284412011-06-03 14:51:06 -05001055 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001056 }
1057 default: {
1058 if (pb::WireFormat.IsEndGroupTag(tag)) {
1059 if (unknownFields != null) {
1060 this.UnknownFields = unknownFields.Build();
1061 }
1062 return this;
1063 }
1064 if (unknownFields == null) {
1065 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1066 }
csharptestd2af9e92011-06-03 21:35:02 -05001067 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001068 break;
1069 }
1070 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001071 result.hasPropertyName = input.ReadString(ref result.propertyName_);
csharptest714b8692011-05-20 15:23:36 -05001072 break;
1073 }
1074 }
1075 }
csharptest123e5342011-06-03 14:15:21 -05001076
1077 if (unknownFields != null) {
1078 this.UnknownFields = unknownFields.Build();
1079 }
1080 return this;
csharptest714b8692011-05-20 15:23:36 -05001081 }
1082
1083
1084 public bool HasPropertyName {
csharptestc671a4b2011-06-08 11:51:24 -05001085 get { return result.hasPropertyName; }
csharptest714b8692011-05-20 15:23:36 -05001086 }
1087 public string PropertyName {
1088 get { return result.PropertyName; }
1089 set { SetPropertyName(value); }
1090 }
1091 public Builder SetPropertyName(string value) {
1092 pb::ThrowHelper.ThrowIfNull(value, "value");
1093 result.hasPropertyName = true;
1094 result.propertyName_ = value;
1095 return this;
1096 }
1097 public Builder ClearPropertyName() {
1098 result.hasPropertyName = false;
1099 result.propertyName_ = "";
1100 return this;
1101 }
1102 }
1103 static CSharpFieldOptions() {
1104 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1105 }
1106 }
1107
csharptest445bdce2011-05-20 15:50:54 -05001108 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1109 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1110 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001111 public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
1112 private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001113 private static readonly string[] _cSharpServiceOptionsFieldNames = new string[] { "interface_id" };
1114 private static readonly uint[] _cSharpServiceOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -05001115 public static CSharpServiceOptions DefaultInstance {
1116 get { return defaultInstance; }
1117 }
1118
1119 public override CSharpServiceOptions DefaultInstanceForType {
1120 get { return defaultInstance; }
1121 }
1122
1123 protected override CSharpServiceOptions ThisMessage {
1124 get { return this; }
1125 }
1126
1127 public static pbd::MessageDescriptor Descriptor {
1128 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
1129 }
1130
1131 protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
1132 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
1133 }
1134
1135 public const int InterfaceIdFieldNumber = 1;
1136 private bool hasInterfaceId;
1137 private string interfaceId_ = "";
1138 public bool HasInterfaceId {
1139 get { return hasInterfaceId; }
1140 }
1141 public string InterfaceId {
1142 get { return interfaceId_; }
1143 }
1144
1145 public override bool IsInitialized {
1146 get {
1147 return true;
1148 }
1149 }
1150
csharptestffafdaa2011-06-03 12:58:14 -05001151 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001152 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001153 string[] field_names = _cSharpServiceOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001154 if (hasInterfaceId) {
csharptest920b09a2011-06-08 20:13:29 -05001155 output.WriteString(1, field_names[0], InterfaceId);
csharptest714b8692011-05-20 15:23:36 -05001156 }
1157 UnknownFields.WriteTo(output);
1158 }
1159
1160 private int memoizedSerializedSize = -1;
1161 public override int SerializedSize {
1162 get {
1163 int size = memoizedSerializedSize;
1164 if (size != -1) return size;
1165
1166 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001167 if (hasInterfaceId) {
csharptest714b8692011-05-20 15:23:36 -05001168 size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
1169 }
1170 size += UnknownFields.SerializedSize;
1171 memoizedSerializedSize = size;
1172 return size;
1173 }
1174 }
1175
1176 public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
1177 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1178 }
1179 public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1180 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1181 }
1182 public static CSharpServiceOptions ParseFrom(byte[] data) {
1183 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1184 }
1185 public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1186 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1187 }
1188 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
1189 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1190 }
1191 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1192 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1193 }
1194 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1195 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1196 }
1197 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1198 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1199 }
csharptest17699c22011-06-03 21:57:15 -05001200 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001201 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1202 }
csharptest17699c22011-06-03 21:57:15 -05001203 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001204 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1205 }
1206 public static Builder CreateBuilder() { return new Builder(); }
1207 public override Builder ToBuilder() { return CreateBuilder(this); }
1208 public override Builder CreateBuilderForType() { return new Builder(); }
1209 public static Builder CreateBuilder(CSharpServiceOptions prototype) {
1210 return (Builder) new Builder().MergeFrom(prototype);
1211 }
1212
csharptest445bdce2011-05-20 15:50:54 -05001213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1214 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1215 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001216 public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
1217 protected override Builder ThisBuilder {
1218 get { return this; }
1219 }
1220 public Builder() {}
1221
1222 CSharpServiceOptions result = new CSharpServiceOptions();
1223
1224 protected override CSharpServiceOptions MessageBeingBuilt {
1225 get { return result; }
1226 }
1227
1228 public override Builder Clear() {
1229 result = new CSharpServiceOptions();
1230 return this;
1231 }
1232
1233 public override Builder Clone() {
1234 return new Builder().MergeFrom(result);
1235 }
1236
1237 public override pbd::MessageDescriptor DescriptorForType {
1238 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
1239 }
1240
1241 public override CSharpServiceOptions DefaultInstanceForType {
1242 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
1243 }
1244
1245 public override CSharpServiceOptions BuildPartial() {
1246 if (result == null) {
1247 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1248 }
1249 CSharpServiceOptions returnMe = result;
1250 result = null;
1251 return returnMe;
1252 }
1253
1254 public override Builder MergeFrom(pb::IMessage other) {
1255 if (other is CSharpServiceOptions) {
1256 return MergeFrom((CSharpServiceOptions) other);
1257 } else {
1258 base.MergeFrom(other);
1259 return this;
1260 }
1261 }
1262
1263 public override Builder MergeFrom(CSharpServiceOptions other) {
1264 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
1265 if (other.HasInterfaceId) {
1266 InterfaceId = other.InterfaceId;
1267 }
1268 this.MergeUnknownFields(other.UnknownFields);
1269 return this;
1270 }
1271
csharptest17699c22011-06-03 21:57:15 -05001272 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001273 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1274 }
1275
csharptest17699c22011-06-03 21:57:15 -05001276 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001277 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001278 uint tag;
1279 string field_name;
1280 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001281 if(tag == 0 && field_name != null) {
1282 int field_ordinal = global::System.Array.BinarySearch(_cSharpServiceOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1283 if(field_ordinal >= 0)
1284 tag = _cSharpServiceOptionsFieldTags[field_ordinal];
1285 else {
1286 if (unknownFields == null) {
1287 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1288 }
1289 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1290 continue;
1291 }
1292 }
csharptest714b8692011-05-20 15:23:36 -05001293 switch (tag) {
1294 case 0: {
csharptest99284412011-06-03 14:51:06 -05001295 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001296 }
1297 default: {
1298 if (pb::WireFormat.IsEndGroupTag(tag)) {
1299 if (unknownFields != null) {
1300 this.UnknownFields = unknownFields.Build();
1301 }
1302 return this;
1303 }
1304 if (unknownFields == null) {
1305 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1306 }
csharptestd2af9e92011-06-03 21:35:02 -05001307 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001308 break;
1309 }
1310 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001311 result.hasInterfaceId = input.ReadString(ref result.interfaceId_);
csharptest714b8692011-05-20 15:23:36 -05001312 break;
1313 }
1314 }
1315 }
csharptest123e5342011-06-03 14:15:21 -05001316
1317 if (unknownFields != null) {
1318 this.UnknownFields = unknownFields.Build();
1319 }
1320 return this;
csharptest714b8692011-05-20 15:23:36 -05001321 }
1322
1323
1324 public bool HasInterfaceId {
csharptestc671a4b2011-06-08 11:51:24 -05001325 get { return result.hasInterfaceId; }
csharptest714b8692011-05-20 15:23:36 -05001326 }
1327 public string InterfaceId {
1328 get { return result.InterfaceId; }
1329 set { SetInterfaceId(value); }
1330 }
1331 public Builder SetInterfaceId(string value) {
1332 pb::ThrowHelper.ThrowIfNull(value, "value");
1333 result.hasInterfaceId = true;
1334 result.interfaceId_ = value;
1335 return this;
1336 }
1337 public Builder ClearInterfaceId() {
1338 result.hasInterfaceId = false;
1339 result.interfaceId_ = "";
1340 return this;
1341 }
1342 }
1343 static CSharpServiceOptions() {
1344 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1345 }
1346 }
1347
csharptest445bdce2011-05-20 15:50:54 -05001348 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1349 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1350 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001351 public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
1352 private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001353 private static readonly string[] _cSharpMethodOptionsFieldNames = new string[] { "dispatch_id" };
1354 private static readonly uint[] _cSharpMethodOptionsFieldTags = new uint[] { 8 };
csharptest714b8692011-05-20 15:23:36 -05001355 public static CSharpMethodOptions DefaultInstance {
1356 get { return defaultInstance; }
1357 }
1358
1359 public override CSharpMethodOptions DefaultInstanceForType {
1360 get { return defaultInstance; }
1361 }
1362
1363 protected override CSharpMethodOptions ThisMessage {
1364 get { return this; }
1365 }
1366
1367 public static pbd::MessageDescriptor Descriptor {
1368 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
1369 }
1370
1371 protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
1372 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
1373 }
1374
1375 public const int DispatchIdFieldNumber = 1;
1376 private bool hasDispatchId;
csharptestced18e12011-06-09 19:47:56 -05001377 private int dispatchId_;
csharptest714b8692011-05-20 15:23:36 -05001378 public bool HasDispatchId {
1379 get { return hasDispatchId; }
1380 }
1381 public int DispatchId {
1382 get { return dispatchId_; }
1383 }
1384
1385 public override bool IsInitialized {
1386 get {
1387 return true;
1388 }
1389 }
1390
csharptestffafdaa2011-06-03 12:58:14 -05001391 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001392 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001393 string[] field_names = _cSharpMethodOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001394 if (hasDispatchId) {
csharptest920b09a2011-06-08 20:13:29 -05001395 output.WriteInt32(1, field_names[0], DispatchId);
csharptest714b8692011-05-20 15:23:36 -05001396 }
1397 UnknownFields.WriteTo(output);
1398 }
1399
1400 private int memoizedSerializedSize = -1;
1401 public override int SerializedSize {
1402 get {
1403 int size = memoizedSerializedSize;
1404 if (size != -1) return size;
1405
1406 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001407 if (hasDispatchId) {
csharptest714b8692011-05-20 15:23:36 -05001408 size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
1409 }
1410 size += UnknownFields.SerializedSize;
1411 memoizedSerializedSize = size;
1412 return size;
1413 }
1414 }
1415
1416 public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
1417 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1418 }
1419 public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1420 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1421 }
1422 public static CSharpMethodOptions ParseFrom(byte[] data) {
1423 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1424 }
1425 public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1426 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1427 }
1428 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
1429 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1430 }
1431 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1432 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1433 }
1434 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1435 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1436 }
1437 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1438 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1439 }
csharptest17699c22011-06-03 21:57:15 -05001440 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001441 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1442 }
csharptest17699c22011-06-03 21:57:15 -05001443 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001444 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1445 }
1446 public static Builder CreateBuilder() { return new Builder(); }
1447 public override Builder ToBuilder() { return CreateBuilder(this); }
1448 public override Builder CreateBuilderForType() { return new Builder(); }
1449 public static Builder CreateBuilder(CSharpMethodOptions prototype) {
1450 return (Builder) new Builder().MergeFrom(prototype);
1451 }
1452
csharptest445bdce2011-05-20 15:50:54 -05001453 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1454 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1455 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001456 public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
1457 protected override Builder ThisBuilder {
1458 get { return this; }
1459 }
1460 public Builder() {}
1461
1462 CSharpMethodOptions result = new CSharpMethodOptions();
1463
1464 protected override CSharpMethodOptions MessageBeingBuilt {
1465 get { return result; }
1466 }
1467
1468 public override Builder Clear() {
1469 result = new CSharpMethodOptions();
1470 return this;
1471 }
1472
1473 public override Builder Clone() {
1474 return new Builder().MergeFrom(result);
1475 }
1476
1477 public override pbd::MessageDescriptor DescriptorForType {
1478 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
1479 }
1480
1481 public override CSharpMethodOptions DefaultInstanceForType {
1482 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
1483 }
1484
1485 public override CSharpMethodOptions BuildPartial() {
1486 if (result == null) {
1487 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1488 }
1489 CSharpMethodOptions returnMe = result;
1490 result = null;
1491 return returnMe;
1492 }
1493
1494 public override Builder MergeFrom(pb::IMessage other) {
1495 if (other is CSharpMethodOptions) {
1496 return MergeFrom((CSharpMethodOptions) other);
1497 } else {
1498 base.MergeFrom(other);
1499 return this;
1500 }
1501 }
1502
1503 public override Builder MergeFrom(CSharpMethodOptions other) {
1504 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
1505 if (other.HasDispatchId) {
1506 DispatchId = other.DispatchId;
1507 }
1508 this.MergeUnknownFields(other.UnknownFields);
1509 return this;
1510 }
1511
csharptest17699c22011-06-03 21:57:15 -05001512 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001513 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1514 }
1515
csharptest17699c22011-06-03 21:57:15 -05001516 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001517 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001518 uint tag;
1519 string field_name;
1520 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001521 if(tag == 0 && field_name != null) {
1522 int field_ordinal = global::System.Array.BinarySearch(_cSharpMethodOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1523 if(field_ordinal >= 0)
1524 tag = _cSharpMethodOptionsFieldTags[field_ordinal];
1525 else {
1526 if (unknownFields == null) {
1527 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1528 }
1529 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1530 continue;
1531 }
1532 }
csharptest714b8692011-05-20 15:23:36 -05001533 switch (tag) {
1534 case 0: {
csharptest99284412011-06-03 14:51:06 -05001535 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001536 }
1537 default: {
1538 if (pb::WireFormat.IsEndGroupTag(tag)) {
1539 if (unknownFields != null) {
1540 this.UnknownFields = unknownFields.Build();
1541 }
1542 return this;
1543 }
1544 if (unknownFields == null) {
1545 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1546 }
csharptestd2af9e92011-06-03 21:35:02 -05001547 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001548 break;
1549 }
1550 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05001551 result.hasDispatchId = input.ReadInt32(ref result.dispatchId_);
csharptest714b8692011-05-20 15:23:36 -05001552 break;
1553 }
1554 }
1555 }
csharptest123e5342011-06-03 14:15:21 -05001556
1557 if (unknownFields != null) {
1558 this.UnknownFields = unknownFields.Build();
1559 }
1560 return this;
csharptest714b8692011-05-20 15:23:36 -05001561 }
1562
1563
1564 public bool HasDispatchId {
csharptestc671a4b2011-06-08 11:51:24 -05001565 get { return result.hasDispatchId; }
csharptest714b8692011-05-20 15:23:36 -05001566 }
1567 public int DispatchId {
1568 get { return result.DispatchId; }
1569 set { SetDispatchId(value); }
1570 }
1571 public Builder SetDispatchId(int value) {
1572 result.hasDispatchId = true;
1573 result.dispatchId_ = value;
1574 return this;
1575 }
1576 public Builder ClearDispatchId() {
1577 result.hasDispatchId = false;
1578 result.dispatchId_ = 0;
1579 return this;
1580 }
1581 }
1582 static CSharpMethodOptions() {
1583 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1584 }
1585 }
1586
1587 #endregion
1588
1589}
csharptest2d887332011-08-12 20:13:44 -05001590
1591#endregion Designer generated code