blob: 164e6c60b2d2c9df4df0364a72b83000f272af68 [file] [log] [blame]
csharptest35b68522011-05-20 12:22:21 -05001// Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
Jon Skeet82bb0f12011-04-03 20:17:12 +01002
3using pb = global::Google.ProtocolBuffers;
4using pbc = global::Google.ProtocolBuffers.Collections;
5using pbd = global::Google.ProtocolBuffers.Descriptors;
6using scg = global::System.Collections.Generic;
csharptest714b8692011-05-20 15:23:36 -05007namespace Google.ProtocolBuffers.DescriptorProtos {
8
csharptest445bdce2011-05-20 15:50:54 -05009 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
10 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
11 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -050012 public static partial class CSharpOptions {
13
14 #region Extension registration
15 public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
16 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
17 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
18 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions);
19 registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions);
Jon Skeet82bb0f12011-04-03 20:17:12 +010020 }
21 #endregion
csharptest714b8692011-05-20 15:23:36 -050022 #region Extensions
23 public const int CSharpFileOptionsFieldNumber = 1000;
24 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
25 public const int CSharpFieldOptionsFieldNumber = 1000;
26 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
27 public const int CsharpServiceOptionsFieldNumber = 1000;
28 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions> CsharpServiceOptions;
29 public const int CsharpMethodOptionsFieldNumber = 1000;
30 public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions> CsharpMethodOptions;
Jon Skeet82bb0f12011-04-03 20:17:12 +010031 #endregion
csharptest714b8692011-05-20 15:23:36 -050032
33 #region Static variables
34 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
35 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
36 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
37 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
38 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
39 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
40 internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
41 internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder> internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
42 #endregion
43 #region Descriptor
44 public static pbd::FileDescriptor Descriptor {
45 get { return descriptor; }
46 }
47 private static pbd::FileDescriptor descriptor;
48
49 static CSharpOptions() {
50 byte[] descriptorData = global::System.Convert.FromBase64String(
51 "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
52 "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
53 "tgMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
54 "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
55 "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
56 "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
57 "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
58 "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
59 "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
60 "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
61 "ZmFsc2USSQoWc2VydmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29n" +
62 "bGUucHJvdG9idWYuQ1NoYXJwU2VydmljZVR5cGU6BE5PTkUiKwoSQ1NoYXJw" +
63 "RmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1NoYXJw" +
64 "U2VydmljZU9wdGlvbnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NTaGFy" +
65 "cE1ldGhvZE9wdGlvbnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqSwoRQ1NoYXJw" +
66 "U2VydmljZVR5cGUSCAoETk9ORRAAEgsKB0dFTkVSSUMQARINCglJTlRFUkZB" +
67 "Q0UQAhIQCgxJUlBDRElTUEFUQ0gQAzpeChNjc2hhcnBfZmlsZV9vcHRpb25z" +
68 "EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGOgHIAEoCzIiLmdvb2ds" +
69 "ZS5wcm90b2J1Zi5DU2hhcnBGaWxlT3B0aW9uczphChRjc2hhcnBfZmllbGRf" +
70 "b3B0aW9ucxIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6AcgASgL" +
71 "MiMuZ29vZ2xlLnByb3RvYnVmLkNTaGFycEZpZWxkT3B0aW9uczpnChZjc2hh" +
72 "cnBfc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP" +
73 "cHRpb25zGOgHIAEoCzIlLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBTZXJ2aWNl" +
74 "T3B0aW9uczpkChVjc2hhcnBfbWV0aG9kX29wdGlvbnMSHi5nb29nbGUucHJv" +
75 "dG9idWYuTWV0aG9kT3B0aW9ucxjoByABKAsyJC5nb29nbGUucHJvdG9idWYu" +
76 "Q1NoYXJwTWV0aG9kT3B0aW9ucw==");
77 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
78 descriptor = root;
79 internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
80 internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
81 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
82 new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", "ServiceGeneratorType", });
83 internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
84 internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
85 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
86 new string[] { "PropertyName", });
87 internal__static_google_protobuf_CSharpServiceOptions__Descriptor = Descriptor.MessageTypes[2];
88 internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable =
89 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>(internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
90 new string[] { "InterfaceId", });
91 internal__static_google_protobuf_CSharpMethodOptions__Descriptor = Descriptor.MessageTypes[3];
92 internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable =
93 new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>(internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
94 new string[] { "DispatchId", });
95 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
96 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
97 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[2]);
98 global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[3]);
99 return null;
100 };
101 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
102 new pbd::FileDescriptor[] {
103 global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
104 }, assigner);
105 }
106 #endregion
107
108 }
109 #region Enums
csharptest445bdce2011-05-20 15:50:54 -0500110 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
111 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500112 public enum CSharpServiceType {
113 NONE = 0,
114 GENERIC = 1,
115 INTERFACE = 2,
116 IRPCDISPATCH = 3,
117 }
118
119 #endregion
120
121 #region Messages
csharptest445bdce2011-05-20 15:50:54 -0500122 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
123 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
124 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500125 public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
126 private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
127 public static CSharpFileOptions DefaultInstance {
128 get { return defaultInstance; }
129 }
130
131 public override CSharpFileOptions DefaultInstanceForType {
132 get { return defaultInstance; }
133 }
134
135 protected override CSharpFileOptions ThisMessage {
136 get { return this; }
137 }
138
139 public static pbd::MessageDescriptor Descriptor {
140 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
141 }
142
143 protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
144 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
145 }
146
147 public const int NamespaceFieldNumber = 1;
148 private bool hasNamespace;
149 private string namespace_ = "";
150 public bool HasNamespace {
151 get { return hasNamespace; }
152 }
153 public string Namespace {
154 get { return namespace_; }
155 }
156
157 public const int UmbrellaClassnameFieldNumber = 2;
158 private bool hasUmbrellaClassname;
159 private string umbrellaClassname_ = "";
160 public bool HasUmbrellaClassname {
161 get { return hasUmbrellaClassname; }
162 }
163 public string UmbrellaClassname {
164 get { return umbrellaClassname_; }
165 }
166
167 public const int PublicClassesFieldNumber = 3;
168 private bool hasPublicClasses;
169 private bool publicClasses_ = true;
170 public bool HasPublicClasses {
171 get { return hasPublicClasses; }
172 }
173 public bool PublicClasses {
174 get { return publicClasses_; }
175 }
176
177 public const int MultipleFilesFieldNumber = 4;
178 private bool hasMultipleFiles;
179 private bool multipleFiles_ = false;
180 public bool HasMultipleFiles {
181 get { return hasMultipleFiles; }
182 }
183 public bool MultipleFiles {
184 get { return multipleFiles_; }
185 }
186
187 public const int NestClassesFieldNumber = 5;
188 private bool hasNestClasses;
189 private bool nestClasses_ = false;
190 public bool HasNestClasses {
191 get { return hasNestClasses; }
192 }
193 public bool NestClasses {
194 get { return nestClasses_; }
195 }
196
197 public const int CodeContractsFieldNumber = 6;
198 private bool hasCodeContracts;
199 private bool codeContracts_ = false;
200 public bool HasCodeContracts {
201 get { return hasCodeContracts; }
202 }
203 public bool CodeContracts {
204 get { return codeContracts_; }
205 }
206
207 public const int ExpandNamespaceDirectoriesFieldNumber = 7;
208 private bool hasExpandNamespaceDirectories;
209 private bool expandNamespaceDirectories_ = false;
210 public bool HasExpandNamespaceDirectories {
211 get { return hasExpandNamespaceDirectories; }
212 }
213 public bool ExpandNamespaceDirectories {
214 get { return expandNamespaceDirectories_; }
215 }
216
217 public const int ClsComplianceFieldNumber = 8;
218 private bool hasClsCompliance;
219 private bool clsCompliance_ = true;
220 public bool HasClsCompliance {
221 get { return hasClsCompliance; }
222 }
223 public bool ClsCompliance {
224 get { return clsCompliance_; }
225 }
226
227 public const int FileExtensionFieldNumber = 221;
228 private bool hasFileExtension;
229 private string fileExtension_ = ".cs";
230 public bool HasFileExtension {
231 get { return hasFileExtension; }
232 }
233 public string FileExtension {
234 get { return fileExtension_; }
235 }
236
237 public const int UmbrellaNamespaceFieldNumber = 222;
238 private bool hasUmbrellaNamespace;
239 private string umbrellaNamespace_ = "";
240 public bool HasUmbrellaNamespace {
241 get { return hasUmbrellaNamespace; }
242 }
243 public string UmbrellaNamespace {
244 get { return umbrellaNamespace_; }
245 }
246
247 public const int OutputDirectoryFieldNumber = 223;
248 private bool hasOutputDirectory;
249 private string outputDirectory_ = ".";
250 public bool HasOutputDirectory {
251 get { return hasOutputDirectory; }
252 }
253 public string OutputDirectory {
254 get { return outputDirectory_; }
255 }
256
257 public const int IgnoreGoogleProtobufFieldNumber = 224;
258 private bool hasIgnoreGoogleProtobuf;
259 private bool ignoreGoogleProtobuf_ = false;
260 public bool HasIgnoreGoogleProtobuf {
261 get { return hasIgnoreGoogleProtobuf; }
262 }
263 public bool IgnoreGoogleProtobuf {
264 get { return ignoreGoogleProtobuf_; }
265 }
266
267 public const int ServiceGeneratorTypeFieldNumber = 225;
268 private bool hasServiceGeneratorType;
269 private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
270 public bool HasServiceGeneratorType {
271 get { return hasServiceGeneratorType; }
272 }
273 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
274 get { return serviceGeneratorType_; }
275 }
276
277 public override bool IsInitialized {
278 get {
279 return true;
280 }
281 }
282
csharptestffafdaa2011-06-03 12:58:14 -0500283 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500284 int size = SerializedSize;
csharptestc671a4b2011-06-08 11:51:24 -0500285 if (hasNamespace) {
csharptest90922db2011-06-03 11:57:47 -0500286 output.WriteString(1, "namespace", Namespace);
csharptest714b8692011-05-20 15:23:36 -0500287 }
csharptestc671a4b2011-06-08 11:51:24 -0500288 if (hasUmbrellaClassname) {
csharptest90922db2011-06-03 11:57:47 -0500289 output.WriteString(2, "umbrella_classname", UmbrellaClassname);
csharptest714b8692011-05-20 15:23:36 -0500290 }
csharptestc671a4b2011-06-08 11:51:24 -0500291 if (hasPublicClasses) {
csharptest90922db2011-06-03 11:57:47 -0500292 output.WriteBool(3, "public_classes", PublicClasses);
csharptest714b8692011-05-20 15:23:36 -0500293 }
csharptestc671a4b2011-06-08 11:51:24 -0500294 if (hasMultipleFiles) {
csharptest90922db2011-06-03 11:57:47 -0500295 output.WriteBool(4, "multiple_files", MultipleFiles);
csharptest714b8692011-05-20 15:23:36 -0500296 }
csharptestc671a4b2011-06-08 11:51:24 -0500297 if (hasNestClasses) {
csharptest90922db2011-06-03 11:57:47 -0500298 output.WriteBool(5, "nest_classes", NestClasses);
csharptest714b8692011-05-20 15:23:36 -0500299 }
csharptestc671a4b2011-06-08 11:51:24 -0500300 if (hasCodeContracts) {
csharptest90922db2011-06-03 11:57:47 -0500301 output.WriteBool(6, "code_contracts", CodeContracts);
csharptest714b8692011-05-20 15:23:36 -0500302 }
csharptestc671a4b2011-06-08 11:51:24 -0500303 if (hasExpandNamespaceDirectories) {
csharptest90922db2011-06-03 11:57:47 -0500304 output.WriteBool(7, "expand_namespace_directories", ExpandNamespaceDirectories);
csharptest714b8692011-05-20 15:23:36 -0500305 }
csharptestc671a4b2011-06-08 11:51:24 -0500306 if (hasClsCompliance) {
csharptest90922db2011-06-03 11:57:47 -0500307 output.WriteBool(8, "cls_compliance", ClsCompliance);
csharptest714b8692011-05-20 15:23:36 -0500308 }
csharptestc671a4b2011-06-08 11:51:24 -0500309 if (hasFileExtension) {
csharptest90922db2011-06-03 11:57:47 -0500310 output.WriteString(221, "file_extension", FileExtension);
csharptest714b8692011-05-20 15:23:36 -0500311 }
csharptestc671a4b2011-06-08 11:51:24 -0500312 if (hasUmbrellaNamespace) {
csharptest90922db2011-06-03 11:57:47 -0500313 output.WriteString(222, "umbrella_namespace", UmbrellaNamespace);
csharptest714b8692011-05-20 15:23:36 -0500314 }
csharptestc671a4b2011-06-08 11:51:24 -0500315 if (hasOutputDirectory) {
csharptest90922db2011-06-03 11:57:47 -0500316 output.WriteString(223, "output_directory", OutputDirectory);
csharptest714b8692011-05-20 15:23:36 -0500317 }
csharptestc671a4b2011-06-08 11:51:24 -0500318 if (hasIgnoreGoogleProtobuf) {
csharptest90922db2011-06-03 11:57:47 -0500319 output.WriteBool(224, "ignore_google_protobuf", IgnoreGoogleProtobuf);
csharptest714b8692011-05-20 15:23:36 -0500320 }
csharptestc671a4b2011-06-08 11:51:24 -0500321 if (hasServiceGeneratorType) {
csharptest90922db2011-06-03 11:57:47 -0500322 output.WriteEnum(225, "service_generator_type", (int) ServiceGeneratorType, ServiceGeneratorType.ToString());
csharptest714b8692011-05-20 15:23:36 -0500323 }
324 UnknownFields.WriteTo(output);
325 }
326
327 private int memoizedSerializedSize = -1;
328 public override int SerializedSize {
329 get {
330 int size = memoizedSerializedSize;
331 if (size != -1) return size;
332
333 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500334 if (hasNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500335 size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
336 }
csharptestc671a4b2011-06-08 11:51:24 -0500337 if (hasUmbrellaClassname) {
csharptest714b8692011-05-20 15:23:36 -0500338 size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
339 }
csharptestc671a4b2011-06-08 11:51:24 -0500340 if (hasPublicClasses) {
csharptest714b8692011-05-20 15:23:36 -0500341 size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
342 }
csharptestc671a4b2011-06-08 11:51:24 -0500343 if (hasMultipleFiles) {
csharptest714b8692011-05-20 15:23:36 -0500344 size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
345 }
csharptestc671a4b2011-06-08 11:51:24 -0500346 if (hasNestClasses) {
csharptest714b8692011-05-20 15:23:36 -0500347 size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
348 }
csharptestc671a4b2011-06-08 11:51:24 -0500349 if (hasCodeContracts) {
csharptest714b8692011-05-20 15:23:36 -0500350 size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
351 }
csharptestc671a4b2011-06-08 11:51:24 -0500352 if (hasExpandNamespaceDirectories) {
csharptest714b8692011-05-20 15:23:36 -0500353 size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
354 }
csharptestc671a4b2011-06-08 11:51:24 -0500355 if (hasClsCompliance) {
csharptest714b8692011-05-20 15:23:36 -0500356 size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
357 }
csharptestc671a4b2011-06-08 11:51:24 -0500358 if (hasFileExtension) {
csharptest714b8692011-05-20 15:23:36 -0500359 size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
360 }
csharptestc671a4b2011-06-08 11:51:24 -0500361 if (hasUmbrellaNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500362 size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
363 }
csharptestc671a4b2011-06-08 11:51:24 -0500364 if (hasOutputDirectory) {
csharptest714b8692011-05-20 15:23:36 -0500365 size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
366 }
csharptestc671a4b2011-06-08 11:51:24 -0500367 if (hasIgnoreGoogleProtobuf) {
csharptest714b8692011-05-20 15:23:36 -0500368 size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
369 }
csharptestc671a4b2011-06-08 11:51:24 -0500370 if (hasServiceGeneratorType) {
csharptest714b8692011-05-20 15:23:36 -0500371 size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
372 }
373 size += UnknownFields.SerializedSize;
374 memoizedSerializedSize = size;
375 return size;
376 }
377 }
378
379 public static CSharpFileOptions ParseFrom(pb::ByteString data) {
380 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
381 }
382 public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
383 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
384 }
385 public static CSharpFileOptions ParseFrom(byte[] data) {
386 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
387 }
388 public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
389 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
390 }
391 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
392 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
393 }
394 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
395 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
396 }
397 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
398 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
399 }
400 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
401 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
402 }
csharptest17699c22011-06-03 21:57:15 -0500403 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500404 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
405 }
csharptest17699c22011-06-03 21:57:15 -0500406 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500407 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
408 }
409 public static Builder CreateBuilder() { return new Builder(); }
410 public override Builder ToBuilder() { return CreateBuilder(this); }
411 public override Builder CreateBuilderForType() { return new Builder(); }
412 public static Builder CreateBuilder(CSharpFileOptions prototype) {
413 return (Builder) new Builder().MergeFrom(prototype);
414 }
415
csharptest445bdce2011-05-20 15:50:54 -0500416 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
417 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
418 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500419 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
420 protected override Builder ThisBuilder {
421 get { return this; }
422 }
423 public Builder() {}
424
425 CSharpFileOptions result = new CSharpFileOptions();
426
427 protected override CSharpFileOptions MessageBeingBuilt {
428 get { return result; }
429 }
430
431 public override Builder Clear() {
432 result = new CSharpFileOptions();
433 return this;
434 }
435
436 public override Builder Clone() {
437 return new Builder().MergeFrom(result);
438 }
439
440 public override pbd::MessageDescriptor DescriptorForType {
441 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
442 }
443
444 public override CSharpFileOptions DefaultInstanceForType {
445 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
446 }
447
448 public override CSharpFileOptions BuildPartial() {
449 if (result == null) {
450 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
451 }
452 CSharpFileOptions returnMe = result;
453 result = null;
454 return returnMe;
455 }
456
457 public override Builder MergeFrom(pb::IMessage other) {
458 if (other is CSharpFileOptions) {
459 return MergeFrom((CSharpFileOptions) other);
460 } else {
461 base.MergeFrom(other);
462 return this;
463 }
464 }
465
466 public override Builder MergeFrom(CSharpFileOptions other) {
467 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
468 if (other.HasNamespace) {
469 Namespace = other.Namespace;
470 }
471 if (other.HasUmbrellaClassname) {
472 UmbrellaClassname = other.UmbrellaClassname;
473 }
474 if (other.HasPublicClasses) {
475 PublicClasses = other.PublicClasses;
476 }
477 if (other.HasMultipleFiles) {
478 MultipleFiles = other.MultipleFiles;
479 }
480 if (other.HasNestClasses) {
481 NestClasses = other.NestClasses;
482 }
483 if (other.HasCodeContracts) {
484 CodeContracts = other.CodeContracts;
485 }
486 if (other.HasExpandNamespaceDirectories) {
487 ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
488 }
489 if (other.HasClsCompliance) {
490 ClsCompliance = other.ClsCompliance;
491 }
492 if (other.HasFileExtension) {
493 FileExtension = other.FileExtension;
494 }
495 if (other.HasUmbrellaNamespace) {
496 UmbrellaNamespace = other.UmbrellaNamespace;
497 }
498 if (other.HasOutputDirectory) {
499 OutputDirectory = other.OutputDirectory;
500 }
501 if (other.HasIgnoreGoogleProtobuf) {
502 IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
503 }
504 if (other.HasServiceGeneratorType) {
505 ServiceGeneratorType = other.ServiceGeneratorType;
506 }
507 this.MergeUnknownFields(other.UnknownFields);
508 return this;
509 }
510
csharptest17699c22011-06-03 21:57:15 -0500511 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500512 return MergeFrom(input, pb::ExtensionRegistry.Empty);
513 }
514
csharptest17699c22011-06-03 21:57:15 -0500515 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500516 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -0500517 uint tag;
518 string field_name;
519 while (input.ReadTag(out tag, out field_name)) {
csharptest714b8692011-05-20 15:23:36 -0500520 switch (tag) {
521 case 0: {
csharptest99284412011-06-03 14:51:06 -0500522 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -0500523 }
524 default: {
525 if (pb::WireFormat.IsEndGroupTag(tag)) {
526 if (unknownFields != null) {
527 this.UnknownFields = unknownFields.Build();
528 }
529 return this;
530 }
531 if (unknownFields == null) {
532 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
533 }
csharptestd2af9e92011-06-03 21:35:02 -0500534 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -0500535 break;
536 }
537 case 10: {
csharptestd2af9e92011-06-03 21:35:02 -0500538 result.hasNamespace |= input.ReadString(ref result.namespace_);
csharptest714b8692011-05-20 15:23:36 -0500539 break;
540 }
541 case 18: {
csharptestd2af9e92011-06-03 21:35:02 -0500542 result.hasUmbrellaClassname |= input.ReadString(ref result.umbrellaClassname_);
csharptest714b8692011-05-20 15:23:36 -0500543 break;
544 }
545 case 24: {
csharptestd2af9e92011-06-03 21:35:02 -0500546 result.hasPublicClasses |= input.ReadBool(ref result.publicClasses_);
csharptest714b8692011-05-20 15:23:36 -0500547 break;
548 }
549 case 32: {
csharptestd2af9e92011-06-03 21:35:02 -0500550 result.hasMultipleFiles |= input.ReadBool(ref result.multipleFiles_);
csharptest714b8692011-05-20 15:23:36 -0500551 break;
552 }
553 case 40: {
csharptestd2af9e92011-06-03 21:35:02 -0500554 result.hasNestClasses |= input.ReadBool(ref result.nestClasses_);
csharptest714b8692011-05-20 15:23:36 -0500555 break;
556 }
557 case 48: {
csharptestd2af9e92011-06-03 21:35:02 -0500558 result.hasCodeContracts |= input.ReadBool(ref result.codeContracts_);
csharptest714b8692011-05-20 15:23:36 -0500559 break;
560 }
561 case 56: {
csharptestd2af9e92011-06-03 21:35:02 -0500562 result.hasExpandNamespaceDirectories |= input.ReadBool(ref result.expandNamespaceDirectories_);
csharptest714b8692011-05-20 15:23:36 -0500563 break;
564 }
565 case 64: {
csharptestd2af9e92011-06-03 21:35:02 -0500566 result.hasClsCompliance |= input.ReadBool(ref result.clsCompliance_);
csharptest714b8692011-05-20 15:23:36 -0500567 break;
568 }
569 case 1770: {
csharptestd2af9e92011-06-03 21:35:02 -0500570 result.hasFileExtension |= input.ReadString(ref result.fileExtension_);
csharptest714b8692011-05-20 15:23:36 -0500571 break;
572 }
573 case 1778: {
csharptestd2af9e92011-06-03 21:35:02 -0500574 result.hasUmbrellaNamespace |= input.ReadString(ref result.umbrellaNamespace_);
csharptest714b8692011-05-20 15:23:36 -0500575 break;
576 }
577 case 1786: {
csharptestd2af9e92011-06-03 21:35:02 -0500578 result.hasOutputDirectory |= input.ReadString(ref result.outputDirectory_);
csharptest714b8692011-05-20 15:23:36 -0500579 break;
580 }
581 case 1792: {
csharptestd2af9e92011-06-03 21:35:02 -0500582 result.hasIgnoreGoogleProtobuf |= input.ReadBool(ref result.ignoreGoogleProtobuf_);
csharptest714b8692011-05-20 15:23:36 -0500583 break;
584 }
585 case 1800: {
csharptestd2af9e92011-06-03 21:35:02 -0500586 object unknown;
587 if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
588 result.hasServiceGeneratorType = true;
589 } else if(unknown is int) {
csharptest714b8692011-05-20 15:23:36 -0500590 if (unknownFields == null) {
591 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
592 }
csharptestd2af9e92011-06-03 21:35:02 -0500593 unknownFields.MergeVarintField(225, (ulong)(int)unknown);
csharptest714b8692011-05-20 15:23:36 -0500594 }
595 break;
596 }
597 }
598 }
csharptest123e5342011-06-03 14:15:21 -0500599
600 if (unknownFields != null) {
601 this.UnknownFields = unknownFields.Build();
602 }
603 return this;
csharptest714b8692011-05-20 15:23:36 -0500604 }
605
606
607 public bool HasNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500608 get { return result.hasNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500609 }
610 public string Namespace {
611 get { return result.Namespace; }
612 set { SetNamespace(value); }
613 }
614 public Builder SetNamespace(string value) {
615 pb::ThrowHelper.ThrowIfNull(value, "value");
616 result.hasNamespace = true;
617 result.namespace_ = value;
618 return this;
619 }
620 public Builder ClearNamespace() {
621 result.hasNamespace = false;
622 result.namespace_ = "";
623 return this;
624 }
625
626 public bool HasUmbrellaClassname {
csharptestc671a4b2011-06-08 11:51:24 -0500627 get { return result.hasUmbrellaClassname; }
csharptest714b8692011-05-20 15:23:36 -0500628 }
629 public string UmbrellaClassname {
630 get { return result.UmbrellaClassname; }
631 set { SetUmbrellaClassname(value); }
632 }
633 public Builder SetUmbrellaClassname(string value) {
634 pb::ThrowHelper.ThrowIfNull(value, "value");
635 result.hasUmbrellaClassname = true;
636 result.umbrellaClassname_ = value;
637 return this;
638 }
639 public Builder ClearUmbrellaClassname() {
640 result.hasUmbrellaClassname = false;
641 result.umbrellaClassname_ = "";
642 return this;
643 }
644
645 public bool HasPublicClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500646 get { return result.hasPublicClasses; }
csharptest714b8692011-05-20 15:23:36 -0500647 }
648 public bool PublicClasses {
649 get { return result.PublicClasses; }
650 set { SetPublicClasses(value); }
651 }
652 public Builder SetPublicClasses(bool value) {
653 result.hasPublicClasses = true;
654 result.publicClasses_ = value;
655 return this;
656 }
657 public Builder ClearPublicClasses() {
658 result.hasPublicClasses = false;
659 result.publicClasses_ = true;
660 return this;
661 }
662
663 public bool HasMultipleFiles {
csharptestc671a4b2011-06-08 11:51:24 -0500664 get { return result.hasMultipleFiles; }
csharptest714b8692011-05-20 15:23:36 -0500665 }
666 public bool MultipleFiles {
667 get { return result.MultipleFiles; }
668 set { SetMultipleFiles(value); }
669 }
670 public Builder SetMultipleFiles(bool value) {
671 result.hasMultipleFiles = true;
672 result.multipleFiles_ = value;
673 return this;
674 }
675 public Builder ClearMultipleFiles() {
676 result.hasMultipleFiles = false;
677 result.multipleFiles_ = false;
678 return this;
679 }
680
681 public bool HasNestClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500682 get { return result.hasNestClasses; }
csharptest714b8692011-05-20 15:23:36 -0500683 }
684 public bool NestClasses {
685 get { return result.NestClasses; }
686 set { SetNestClasses(value); }
687 }
688 public Builder SetNestClasses(bool value) {
689 result.hasNestClasses = true;
690 result.nestClasses_ = value;
691 return this;
692 }
693 public Builder ClearNestClasses() {
694 result.hasNestClasses = false;
695 result.nestClasses_ = false;
696 return this;
697 }
698
699 public bool HasCodeContracts {
csharptestc671a4b2011-06-08 11:51:24 -0500700 get { return result.hasCodeContracts; }
csharptest714b8692011-05-20 15:23:36 -0500701 }
702 public bool CodeContracts {
703 get { return result.CodeContracts; }
704 set { SetCodeContracts(value); }
705 }
706 public Builder SetCodeContracts(bool value) {
707 result.hasCodeContracts = true;
708 result.codeContracts_ = value;
709 return this;
710 }
711 public Builder ClearCodeContracts() {
712 result.hasCodeContracts = false;
713 result.codeContracts_ = false;
714 return this;
715 }
716
717 public bool HasExpandNamespaceDirectories {
csharptestc671a4b2011-06-08 11:51:24 -0500718 get { return result.hasExpandNamespaceDirectories; }
csharptest714b8692011-05-20 15:23:36 -0500719 }
720 public bool ExpandNamespaceDirectories {
721 get { return result.ExpandNamespaceDirectories; }
722 set { SetExpandNamespaceDirectories(value); }
723 }
724 public Builder SetExpandNamespaceDirectories(bool value) {
725 result.hasExpandNamespaceDirectories = true;
726 result.expandNamespaceDirectories_ = value;
727 return this;
728 }
729 public Builder ClearExpandNamespaceDirectories() {
730 result.hasExpandNamespaceDirectories = false;
731 result.expandNamespaceDirectories_ = false;
732 return this;
733 }
734
735 public bool HasClsCompliance {
csharptestc671a4b2011-06-08 11:51:24 -0500736 get { return result.hasClsCompliance; }
csharptest714b8692011-05-20 15:23:36 -0500737 }
738 public bool ClsCompliance {
739 get { return result.ClsCompliance; }
740 set { SetClsCompliance(value); }
741 }
742 public Builder SetClsCompliance(bool value) {
743 result.hasClsCompliance = true;
744 result.clsCompliance_ = value;
745 return this;
746 }
747 public Builder ClearClsCompliance() {
748 result.hasClsCompliance = false;
749 result.clsCompliance_ = true;
750 return this;
751 }
752
753 public bool HasFileExtension {
csharptestc671a4b2011-06-08 11:51:24 -0500754 get { return result.hasFileExtension; }
csharptest714b8692011-05-20 15:23:36 -0500755 }
756 public string FileExtension {
757 get { return result.FileExtension; }
758 set { SetFileExtension(value); }
759 }
760 public Builder SetFileExtension(string value) {
761 pb::ThrowHelper.ThrowIfNull(value, "value");
762 result.hasFileExtension = true;
763 result.fileExtension_ = value;
764 return this;
765 }
766 public Builder ClearFileExtension() {
767 result.hasFileExtension = false;
768 result.fileExtension_ = ".cs";
769 return this;
770 }
771
772 public bool HasUmbrellaNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500773 get { return result.hasUmbrellaNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500774 }
775 public string UmbrellaNamespace {
776 get { return result.UmbrellaNamespace; }
777 set { SetUmbrellaNamespace(value); }
778 }
779 public Builder SetUmbrellaNamespace(string value) {
780 pb::ThrowHelper.ThrowIfNull(value, "value");
781 result.hasUmbrellaNamespace = true;
782 result.umbrellaNamespace_ = value;
783 return this;
784 }
785 public Builder ClearUmbrellaNamespace() {
786 result.hasUmbrellaNamespace = false;
787 result.umbrellaNamespace_ = "";
788 return this;
789 }
790
791 public bool HasOutputDirectory {
csharptestc671a4b2011-06-08 11:51:24 -0500792 get { return result.hasOutputDirectory; }
csharptest714b8692011-05-20 15:23:36 -0500793 }
794 public string OutputDirectory {
795 get { return result.OutputDirectory; }
796 set { SetOutputDirectory(value); }
797 }
798 public Builder SetOutputDirectory(string value) {
799 pb::ThrowHelper.ThrowIfNull(value, "value");
800 result.hasOutputDirectory = true;
801 result.outputDirectory_ = value;
802 return this;
803 }
804 public Builder ClearOutputDirectory() {
805 result.hasOutputDirectory = false;
806 result.outputDirectory_ = ".";
807 return this;
808 }
809
810 public bool HasIgnoreGoogleProtobuf {
csharptestc671a4b2011-06-08 11:51:24 -0500811 get { return result.hasIgnoreGoogleProtobuf; }
csharptest714b8692011-05-20 15:23:36 -0500812 }
813 public bool IgnoreGoogleProtobuf {
814 get { return result.IgnoreGoogleProtobuf; }
815 set { SetIgnoreGoogleProtobuf(value); }
816 }
817 public Builder SetIgnoreGoogleProtobuf(bool value) {
818 result.hasIgnoreGoogleProtobuf = true;
819 result.ignoreGoogleProtobuf_ = value;
820 return this;
821 }
822 public Builder ClearIgnoreGoogleProtobuf() {
823 result.hasIgnoreGoogleProtobuf = false;
824 result.ignoreGoogleProtobuf_ = false;
825 return this;
826 }
827
828 public bool HasServiceGeneratorType {
csharptestc671a4b2011-06-08 11:51:24 -0500829 get { return result.hasServiceGeneratorType; }
csharptest714b8692011-05-20 15:23:36 -0500830 }
831 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
832 get { return result.ServiceGeneratorType; }
833 set { SetServiceGeneratorType(value); }
834 }
835 public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
836 result.hasServiceGeneratorType = true;
837 result.serviceGeneratorType_ = value;
838 return this;
839 }
840 public Builder ClearServiceGeneratorType() {
841 result.hasServiceGeneratorType = false;
842 result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
843 return this;
844 }
845 }
846 static CSharpFileOptions() {
847 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
848 }
849 }
850
csharptest445bdce2011-05-20 15:50:54 -0500851 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
852 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
853 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500854 public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
855 private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
856 public static CSharpFieldOptions DefaultInstance {
857 get { return defaultInstance; }
858 }
859
860 public override CSharpFieldOptions DefaultInstanceForType {
861 get { return defaultInstance; }
862 }
863
864 protected override CSharpFieldOptions ThisMessage {
865 get { return this; }
866 }
867
868 public static pbd::MessageDescriptor Descriptor {
869 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
870 }
871
872 protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
873 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
874 }
875
876 public const int PropertyNameFieldNumber = 1;
877 private bool hasPropertyName;
878 private string propertyName_ = "";
879 public bool HasPropertyName {
880 get { return hasPropertyName; }
881 }
882 public string PropertyName {
883 get { return propertyName_; }
884 }
885
886 public override bool IsInitialized {
887 get {
888 return true;
889 }
890 }
891
csharptestffafdaa2011-06-03 12:58:14 -0500892 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500893 int size = SerializedSize;
csharptestc671a4b2011-06-08 11:51:24 -0500894 if (hasPropertyName) {
csharptest90922db2011-06-03 11:57:47 -0500895 output.WriteString(1, "property_name", PropertyName);
csharptest714b8692011-05-20 15:23:36 -0500896 }
897 UnknownFields.WriteTo(output);
898 }
899
900 private int memoizedSerializedSize = -1;
901 public override int SerializedSize {
902 get {
903 int size = memoizedSerializedSize;
904 if (size != -1) return size;
905
906 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500907 if (hasPropertyName) {
csharptest714b8692011-05-20 15:23:36 -0500908 size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
909 }
910 size += UnknownFields.SerializedSize;
911 memoizedSerializedSize = size;
912 return size;
913 }
914 }
915
916 public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
917 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
918 }
919 public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
920 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
921 }
922 public static CSharpFieldOptions ParseFrom(byte[] data) {
923 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
924 }
925 public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
926 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
927 }
928 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
929 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
930 }
931 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
932 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
933 }
934 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
935 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
936 }
937 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
938 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
939 }
csharptest17699c22011-06-03 21:57:15 -0500940 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500941 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
942 }
csharptest17699c22011-06-03 21:57:15 -0500943 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500944 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
945 }
946 public static Builder CreateBuilder() { return new Builder(); }
947 public override Builder ToBuilder() { return CreateBuilder(this); }
948 public override Builder CreateBuilderForType() { return new Builder(); }
949 public static Builder CreateBuilder(CSharpFieldOptions prototype) {
950 return (Builder) new Builder().MergeFrom(prototype);
951 }
952
csharptest445bdce2011-05-20 15:50:54 -0500953 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
954 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
955 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500956 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
957 protected override Builder ThisBuilder {
958 get { return this; }
959 }
960 public Builder() {}
961
962 CSharpFieldOptions result = new CSharpFieldOptions();
963
964 protected override CSharpFieldOptions MessageBeingBuilt {
965 get { return result; }
966 }
967
968 public override Builder Clear() {
969 result = new CSharpFieldOptions();
970 return this;
971 }
972
973 public override Builder Clone() {
974 return new Builder().MergeFrom(result);
975 }
976
977 public override pbd::MessageDescriptor DescriptorForType {
978 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
979 }
980
981 public override CSharpFieldOptions DefaultInstanceForType {
982 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
983 }
984
985 public override CSharpFieldOptions BuildPartial() {
986 if (result == null) {
987 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
988 }
989 CSharpFieldOptions returnMe = result;
990 result = null;
991 return returnMe;
992 }
993
994 public override Builder MergeFrom(pb::IMessage other) {
995 if (other is CSharpFieldOptions) {
996 return MergeFrom((CSharpFieldOptions) other);
997 } else {
998 base.MergeFrom(other);
999 return this;
1000 }
1001 }
1002
1003 public override Builder MergeFrom(CSharpFieldOptions other) {
1004 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
1005 if (other.HasPropertyName) {
1006 PropertyName = other.PropertyName;
1007 }
1008 this.MergeUnknownFields(other.UnknownFields);
1009 return this;
1010 }
1011
csharptest17699c22011-06-03 21:57:15 -05001012 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001013 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1014 }
1015
csharptest17699c22011-06-03 21:57:15 -05001016 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001017 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001018 uint tag;
1019 string field_name;
1020 while (input.ReadTag(out tag, out field_name)) {
csharptest714b8692011-05-20 15:23:36 -05001021 switch (tag) {
1022 case 0: {
csharptest99284412011-06-03 14:51:06 -05001023 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001024 }
1025 default: {
1026 if (pb::WireFormat.IsEndGroupTag(tag)) {
1027 if (unknownFields != null) {
1028 this.UnknownFields = unknownFields.Build();
1029 }
1030 return this;
1031 }
1032 if (unknownFields == null) {
1033 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1034 }
csharptestd2af9e92011-06-03 21:35:02 -05001035 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001036 break;
1037 }
1038 case 10: {
csharptestd2af9e92011-06-03 21:35:02 -05001039 result.hasPropertyName |= input.ReadString(ref result.propertyName_);
csharptest714b8692011-05-20 15:23:36 -05001040 break;
1041 }
1042 }
1043 }
csharptest123e5342011-06-03 14:15:21 -05001044
1045 if (unknownFields != null) {
1046 this.UnknownFields = unknownFields.Build();
1047 }
1048 return this;
csharptest714b8692011-05-20 15:23:36 -05001049 }
1050
1051
1052 public bool HasPropertyName {
csharptestc671a4b2011-06-08 11:51:24 -05001053 get { return result.hasPropertyName; }
csharptest714b8692011-05-20 15:23:36 -05001054 }
1055 public string PropertyName {
1056 get { return result.PropertyName; }
1057 set { SetPropertyName(value); }
1058 }
1059 public Builder SetPropertyName(string value) {
1060 pb::ThrowHelper.ThrowIfNull(value, "value");
1061 result.hasPropertyName = true;
1062 result.propertyName_ = value;
1063 return this;
1064 }
1065 public Builder ClearPropertyName() {
1066 result.hasPropertyName = false;
1067 result.propertyName_ = "";
1068 return this;
1069 }
1070 }
1071 static CSharpFieldOptions() {
1072 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1073 }
1074 }
1075
csharptest445bdce2011-05-20 15:50:54 -05001076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1077 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1078 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001079 public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
1080 private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
1081 public static CSharpServiceOptions DefaultInstance {
1082 get { return defaultInstance; }
1083 }
1084
1085 public override CSharpServiceOptions DefaultInstanceForType {
1086 get { return defaultInstance; }
1087 }
1088
1089 protected override CSharpServiceOptions ThisMessage {
1090 get { return this; }
1091 }
1092
1093 public static pbd::MessageDescriptor Descriptor {
1094 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
1095 }
1096
1097 protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
1098 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
1099 }
1100
1101 public const int InterfaceIdFieldNumber = 1;
1102 private bool hasInterfaceId;
1103 private string interfaceId_ = "";
1104 public bool HasInterfaceId {
1105 get { return hasInterfaceId; }
1106 }
1107 public string InterfaceId {
1108 get { return interfaceId_; }
1109 }
1110
1111 public override bool IsInitialized {
1112 get {
1113 return true;
1114 }
1115 }
1116
csharptestffafdaa2011-06-03 12:58:14 -05001117 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001118 int size = SerializedSize;
csharptestc671a4b2011-06-08 11:51:24 -05001119 if (hasInterfaceId) {
csharptest90922db2011-06-03 11:57:47 -05001120 output.WriteString(1, "interface_id", InterfaceId);
csharptest714b8692011-05-20 15:23:36 -05001121 }
1122 UnknownFields.WriteTo(output);
1123 }
1124
1125 private int memoizedSerializedSize = -1;
1126 public override int SerializedSize {
1127 get {
1128 int size = memoizedSerializedSize;
1129 if (size != -1) return size;
1130
1131 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001132 if (hasInterfaceId) {
csharptest714b8692011-05-20 15:23:36 -05001133 size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
1134 }
1135 size += UnknownFields.SerializedSize;
1136 memoizedSerializedSize = size;
1137 return size;
1138 }
1139 }
1140
1141 public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
1142 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1143 }
1144 public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1145 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1146 }
1147 public static CSharpServiceOptions ParseFrom(byte[] data) {
1148 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1149 }
1150 public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1151 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1152 }
1153 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
1154 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1155 }
1156 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1157 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1158 }
1159 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1160 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1161 }
1162 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1163 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1164 }
csharptest17699c22011-06-03 21:57:15 -05001165 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001166 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1167 }
csharptest17699c22011-06-03 21:57:15 -05001168 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001169 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1170 }
1171 public static Builder CreateBuilder() { return new Builder(); }
1172 public override Builder ToBuilder() { return CreateBuilder(this); }
1173 public override Builder CreateBuilderForType() { return new Builder(); }
1174 public static Builder CreateBuilder(CSharpServiceOptions prototype) {
1175 return (Builder) new Builder().MergeFrom(prototype);
1176 }
1177
csharptest445bdce2011-05-20 15:50:54 -05001178 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1179 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1180 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001181 public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
1182 protected override Builder ThisBuilder {
1183 get { return this; }
1184 }
1185 public Builder() {}
1186
1187 CSharpServiceOptions result = new CSharpServiceOptions();
1188
1189 protected override CSharpServiceOptions MessageBeingBuilt {
1190 get { return result; }
1191 }
1192
1193 public override Builder Clear() {
1194 result = new CSharpServiceOptions();
1195 return this;
1196 }
1197
1198 public override Builder Clone() {
1199 return new Builder().MergeFrom(result);
1200 }
1201
1202 public override pbd::MessageDescriptor DescriptorForType {
1203 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
1204 }
1205
1206 public override CSharpServiceOptions DefaultInstanceForType {
1207 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
1208 }
1209
1210 public override CSharpServiceOptions BuildPartial() {
1211 if (result == null) {
1212 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1213 }
1214 CSharpServiceOptions returnMe = result;
1215 result = null;
1216 return returnMe;
1217 }
1218
1219 public override Builder MergeFrom(pb::IMessage other) {
1220 if (other is CSharpServiceOptions) {
1221 return MergeFrom((CSharpServiceOptions) other);
1222 } else {
1223 base.MergeFrom(other);
1224 return this;
1225 }
1226 }
1227
1228 public override Builder MergeFrom(CSharpServiceOptions other) {
1229 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
1230 if (other.HasInterfaceId) {
1231 InterfaceId = other.InterfaceId;
1232 }
1233 this.MergeUnknownFields(other.UnknownFields);
1234 return this;
1235 }
1236
csharptest17699c22011-06-03 21:57:15 -05001237 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001238 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1239 }
1240
csharptest17699c22011-06-03 21:57:15 -05001241 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001242 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001243 uint tag;
1244 string field_name;
1245 while (input.ReadTag(out tag, out field_name)) {
csharptest714b8692011-05-20 15:23:36 -05001246 switch (tag) {
1247 case 0: {
csharptest99284412011-06-03 14:51:06 -05001248 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001249 }
1250 default: {
1251 if (pb::WireFormat.IsEndGroupTag(tag)) {
1252 if (unknownFields != null) {
1253 this.UnknownFields = unknownFields.Build();
1254 }
1255 return this;
1256 }
1257 if (unknownFields == null) {
1258 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1259 }
csharptestd2af9e92011-06-03 21:35:02 -05001260 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001261 break;
1262 }
1263 case 10: {
csharptestd2af9e92011-06-03 21:35:02 -05001264 result.hasInterfaceId |= input.ReadString(ref result.interfaceId_);
csharptest714b8692011-05-20 15:23:36 -05001265 break;
1266 }
1267 }
1268 }
csharptest123e5342011-06-03 14:15:21 -05001269
1270 if (unknownFields != null) {
1271 this.UnknownFields = unknownFields.Build();
1272 }
1273 return this;
csharptest714b8692011-05-20 15:23:36 -05001274 }
1275
1276
1277 public bool HasInterfaceId {
csharptestc671a4b2011-06-08 11:51:24 -05001278 get { return result.hasInterfaceId; }
csharptest714b8692011-05-20 15:23:36 -05001279 }
1280 public string InterfaceId {
1281 get { return result.InterfaceId; }
1282 set { SetInterfaceId(value); }
1283 }
1284 public Builder SetInterfaceId(string value) {
1285 pb::ThrowHelper.ThrowIfNull(value, "value");
1286 result.hasInterfaceId = true;
1287 result.interfaceId_ = value;
1288 return this;
1289 }
1290 public Builder ClearInterfaceId() {
1291 result.hasInterfaceId = false;
1292 result.interfaceId_ = "";
1293 return this;
1294 }
1295 }
1296 static CSharpServiceOptions() {
1297 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1298 }
1299 }
1300
csharptest445bdce2011-05-20 15:50:54 -05001301 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1302 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1303 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001304 public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
1305 private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
1306 public static CSharpMethodOptions DefaultInstance {
1307 get { return defaultInstance; }
1308 }
1309
1310 public override CSharpMethodOptions DefaultInstanceForType {
1311 get { return defaultInstance; }
1312 }
1313
1314 protected override CSharpMethodOptions ThisMessage {
1315 get { return this; }
1316 }
1317
1318 public static pbd::MessageDescriptor Descriptor {
1319 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
1320 }
1321
1322 protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
1323 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
1324 }
1325
1326 public const int DispatchIdFieldNumber = 1;
1327 private bool hasDispatchId;
1328 private int dispatchId_ = 0;
1329 public bool HasDispatchId {
1330 get { return hasDispatchId; }
1331 }
1332 public int DispatchId {
1333 get { return dispatchId_; }
1334 }
1335
1336 public override bool IsInitialized {
1337 get {
1338 return true;
1339 }
1340 }
1341
csharptestffafdaa2011-06-03 12:58:14 -05001342 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001343 int size = SerializedSize;
csharptestc671a4b2011-06-08 11:51:24 -05001344 if (hasDispatchId) {
csharptest90922db2011-06-03 11:57:47 -05001345 output.WriteInt32(1, "dispatch_id", DispatchId);
csharptest714b8692011-05-20 15:23:36 -05001346 }
1347 UnknownFields.WriteTo(output);
1348 }
1349
1350 private int memoizedSerializedSize = -1;
1351 public override int SerializedSize {
1352 get {
1353 int size = memoizedSerializedSize;
1354 if (size != -1) return size;
1355
1356 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001357 if (hasDispatchId) {
csharptest714b8692011-05-20 15:23:36 -05001358 size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
1359 }
1360 size += UnknownFields.SerializedSize;
1361 memoizedSerializedSize = size;
1362 return size;
1363 }
1364 }
1365
1366 public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
1367 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1368 }
1369 public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1370 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1371 }
1372 public static CSharpMethodOptions ParseFrom(byte[] data) {
1373 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1374 }
1375 public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1376 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1377 }
1378 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
1379 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1380 }
1381 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1382 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1383 }
1384 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1385 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1386 }
1387 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1388 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1389 }
csharptest17699c22011-06-03 21:57:15 -05001390 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001391 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1392 }
csharptest17699c22011-06-03 21:57:15 -05001393 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001394 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1395 }
1396 public static Builder CreateBuilder() { return new Builder(); }
1397 public override Builder ToBuilder() { return CreateBuilder(this); }
1398 public override Builder CreateBuilderForType() { return new Builder(); }
1399 public static Builder CreateBuilder(CSharpMethodOptions prototype) {
1400 return (Builder) new Builder().MergeFrom(prototype);
1401 }
1402
csharptest445bdce2011-05-20 15:50:54 -05001403 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1404 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1405 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001406 public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
1407 protected override Builder ThisBuilder {
1408 get { return this; }
1409 }
1410 public Builder() {}
1411
1412 CSharpMethodOptions result = new CSharpMethodOptions();
1413
1414 protected override CSharpMethodOptions MessageBeingBuilt {
1415 get { return result; }
1416 }
1417
1418 public override Builder Clear() {
1419 result = new CSharpMethodOptions();
1420 return this;
1421 }
1422
1423 public override Builder Clone() {
1424 return new Builder().MergeFrom(result);
1425 }
1426
1427 public override pbd::MessageDescriptor DescriptorForType {
1428 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
1429 }
1430
1431 public override CSharpMethodOptions DefaultInstanceForType {
1432 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
1433 }
1434
1435 public override CSharpMethodOptions BuildPartial() {
1436 if (result == null) {
1437 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1438 }
1439 CSharpMethodOptions returnMe = result;
1440 result = null;
1441 return returnMe;
1442 }
1443
1444 public override Builder MergeFrom(pb::IMessage other) {
1445 if (other is CSharpMethodOptions) {
1446 return MergeFrom((CSharpMethodOptions) other);
1447 } else {
1448 base.MergeFrom(other);
1449 return this;
1450 }
1451 }
1452
1453 public override Builder MergeFrom(CSharpMethodOptions other) {
1454 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
1455 if (other.HasDispatchId) {
1456 DispatchId = other.DispatchId;
1457 }
1458 this.MergeUnknownFields(other.UnknownFields);
1459 return this;
1460 }
1461
csharptest17699c22011-06-03 21:57:15 -05001462 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001463 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1464 }
1465
csharptest17699c22011-06-03 21:57:15 -05001466 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001467 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001468 uint tag;
1469 string field_name;
1470 while (input.ReadTag(out tag, out field_name)) {
csharptest714b8692011-05-20 15:23:36 -05001471 switch (tag) {
1472 case 0: {
csharptest99284412011-06-03 14:51:06 -05001473 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001474 }
1475 default: {
1476 if (pb::WireFormat.IsEndGroupTag(tag)) {
1477 if (unknownFields != null) {
1478 this.UnknownFields = unknownFields.Build();
1479 }
1480 return this;
1481 }
1482 if (unknownFields == null) {
1483 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1484 }
csharptestd2af9e92011-06-03 21:35:02 -05001485 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001486 break;
1487 }
1488 case 8: {
csharptestd2af9e92011-06-03 21:35:02 -05001489 result.hasDispatchId |= input.ReadInt32(ref result.dispatchId_);
csharptest714b8692011-05-20 15:23:36 -05001490 break;
1491 }
1492 }
1493 }
csharptest123e5342011-06-03 14:15:21 -05001494
1495 if (unknownFields != null) {
1496 this.UnknownFields = unknownFields.Build();
1497 }
1498 return this;
csharptest714b8692011-05-20 15:23:36 -05001499 }
1500
1501
1502 public bool HasDispatchId {
csharptestc671a4b2011-06-08 11:51:24 -05001503 get { return result.hasDispatchId; }
csharptest714b8692011-05-20 15:23:36 -05001504 }
1505 public int DispatchId {
1506 get { return result.DispatchId; }
1507 set { SetDispatchId(value); }
1508 }
1509 public Builder SetDispatchId(int value) {
1510 result.hasDispatchId = true;
1511 result.dispatchId_ = value;
1512 return this;
1513 }
1514 public Builder ClearDispatchId() {
1515 result.hasDispatchId = false;
1516 result.dispatchId_ = 0;
1517 return this;
1518 }
1519 }
1520 static CSharpMethodOptions() {
1521 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1522 }
1523 }
1524
1525 #endregion
1526
1527}