blob: e3308065b95762c072176e7e773307dc89e1eb19 [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();
csharptest920b09a2011-06-08 20:13:29 -0500127 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" };
128 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 -0500129 public static CSharpFileOptions DefaultInstance {
130 get { return defaultInstance; }
131 }
132
133 public override CSharpFileOptions DefaultInstanceForType {
134 get { return defaultInstance; }
135 }
136
137 protected override CSharpFileOptions ThisMessage {
138 get { return this; }
139 }
140
141 public static pbd::MessageDescriptor Descriptor {
142 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
143 }
144
145 protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
146 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
147 }
148
149 public const int NamespaceFieldNumber = 1;
150 private bool hasNamespace;
151 private string namespace_ = "";
152 public bool HasNamespace {
153 get { return hasNamespace; }
154 }
155 public string Namespace {
156 get { return namespace_; }
157 }
158
159 public const int UmbrellaClassnameFieldNumber = 2;
160 private bool hasUmbrellaClassname;
161 private string umbrellaClassname_ = "";
162 public bool HasUmbrellaClassname {
163 get { return hasUmbrellaClassname; }
164 }
165 public string UmbrellaClassname {
166 get { return umbrellaClassname_; }
167 }
168
169 public const int PublicClassesFieldNumber = 3;
170 private bool hasPublicClasses;
171 private bool publicClasses_ = true;
172 public bool HasPublicClasses {
173 get { return hasPublicClasses; }
174 }
175 public bool PublicClasses {
176 get { return publicClasses_; }
177 }
178
179 public const int MultipleFilesFieldNumber = 4;
180 private bool hasMultipleFiles;
csharptestced18e12011-06-09 19:47:56 -0500181 private bool multipleFiles_;
csharptest714b8692011-05-20 15:23:36 -0500182 public bool HasMultipleFiles {
183 get { return hasMultipleFiles; }
184 }
185 public bool MultipleFiles {
186 get { return multipleFiles_; }
187 }
188
189 public const int NestClassesFieldNumber = 5;
190 private bool hasNestClasses;
csharptestced18e12011-06-09 19:47:56 -0500191 private bool nestClasses_;
csharptest714b8692011-05-20 15:23:36 -0500192 public bool HasNestClasses {
193 get { return hasNestClasses; }
194 }
195 public bool NestClasses {
196 get { return nestClasses_; }
197 }
198
199 public const int CodeContractsFieldNumber = 6;
200 private bool hasCodeContracts;
csharptestced18e12011-06-09 19:47:56 -0500201 private bool codeContracts_;
csharptest714b8692011-05-20 15:23:36 -0500202 public bool HasCodeContracts {
203 get { return hasCodeContracts; }
204 }
205 public bool CodeContracts {
206 get { return codeContracts_; }
207 }
208
209 public const int ExpandNamespaceDirectoriesFieldNumber = 7;
210 private bool hasExpandNamespaceDirectories;
csharptestced18e12011-06-09 19:47:56 -0500211 private bool expandNamespaceDirectories_;
csharptest714b8692011-05-20 15:23:36 -0500212 public bool HasExpandNamespaceDirectories {
213 get { return hasExpandNamespaceDirectories; }
214 }
215 public bool ExpandNamespaceDirectories {
216 get { return expandNamespaceDirectories_; }
217 }
218
219 public const int ClsComplianceFieldNumber = 8;
220 private bool hasClsCompliance;
221 private bool clsCompliance_ = true;
222 public bool HasClsCompliance {
223 get { return hasClsCompliance; }
224 }
225 public bool ClsCompliance {
226 get { return clsCompliance_; }
227 }
228
229 public const int FileExtensionFieldNumber = 221;
230 private bool hasFileExtension;
231 private string fileExtension_ = ".cs";
232 public bool HasFileExtension {
233 get { return hasFileExtension; }
234 }
235 public string FileExtension {
236 get { return fileExtension_; }
237 }
238
239 public const int UmbrellaNamespaceFieldNumber = 222;
240 private bool hasUmbrellaNamespace;
241 private string umbrellaNamespace_ = "";
242 public bool HasUmbrellaNamespace {
243 get { return hasUmbrellaNamespace; }
244 }
245 public string UmbrellaNamespace {
246 get { return umbrellaNamespace_; }
247 }
248
249 public const int OutputDirectoryFieldNumber = 223;
250 private bool hasOutputDirectory;
251 private string outputDirectory_ = ".";
252 public bool HasOutputDirectory {
253 get { return hasOutputDirectory; }
254 }
255 public string OutputDirectory {
256 get { return outputDirectory_; }
257 }
258
259 public const int IgnoreGoogleProtobufFieldNumber = 224;
260 private bool hasIgnoreGoogleProtobuf;
csharptestced18e12011-06-09 19:47:56 -0500261 private bool ignoreGoogleProtobuf_;
csharptest714b8692011-05-20 15:23:36 -0500262 public bool HasIgnoreGoogleProtobuf {
263 get { return hasIgnoreGoogleProtobuf; }
264 }
265 public bool IgnoreGoogleProtobuf {
266 get { return ignoreGoogleProtobuf_; }
267 }
268
269 public const int ServiceGeneratorTypeFieldNumber = 225;
270 private bool hasServiceGeneratorType;
271 private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
272 public bool HasServiceGeneratorType {
273 get { return hasServiceGeneratorType; }
274 }
275 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
276 get { return serviceGeneratorType_; }
277 }
278
279 public override bool IsInitialized {
280 get {
281 return true;
282 }
283 }
284
csharptestffafdaa2011-06-03 12:58:14 -0500285 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500286 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500287 string[] field_names = _cSharpFileOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500288 if (hasNamespace) {
csharptest920b09a2011-06-08 20:13:29 -0500289 output.WriteString(1, field_names[6], Namespace);
csharptest714b8692011-05-20 15:23:36 -0500290 }
csharptestc671a4b2011-06-08 11:51:24 -0500291 if (hasUmbrellaClassname) {
csharptest920b09a2011-06-08 20:13:29 -0500292 output.WriteString(2, field_names[11], UmbrellaClassname);
csharptest714b8692011-05-20 15:23:36 -0500293 }
csharptestc671a4b2011-06-08 11:51:24 -0500294 if (hasPublicClasses) {
csharptest920b09a2011-06-08 20:13:29 -0500295 output.WriteBool(3, field_names[9], PublicClasses);
csharptest714b8692011-05-20 15:23:36 -0500296 }
csharptestc671a4b2011-06-08 11:51:24 -0500297 if (hasMultipleFiles) {
csharptest920b09a2011-06-08 20:13:29 -0500298 output.WriteBool(4, field_names[5], MultipleFiles);
csharptest714b8692011-05-20 15:23:36 -0500299 }
csharptestc671a4b2011-06-08 11:51:24 -0500300 if (hasNestClasses) {
csharptest920b09a2011-06-08 20:13:29 -0500301 output.WriteBool(5, field_names[7], NestClasses);
csharptest714b8692011-05-20 15:23:36 -0500302 }
csharptestc671a4b2011-06-08 11:51:24 -0500303 if (hasCodeContracts) {
csharptest920b09a2011-06-08 20:13:29 -0500304 output.WriteBool(6, field_names[1], CodeContracts);
csharptest714b8692011-05-20 15:23:36 -0500305 }
csharptestc671a4b2011-06-08 11:51:24 -0500306 if (hasExpandNamespaceDirectories) {
csharptest920b09a2011-06-08 20:13:29 -0500307 output.WriteBool(7, field_names[2], ExpandNamespaceDirectories);
csharptest714b8692011-05-20 15:23:36 -0500308 }
csharptestc671a4b2011-06-08 11:51:24 -0500309 if (hasClsCompliance) {
csharptest920b09a2011-06-08 20:13:29 -0500310 output.WriteBool(8, field_names[0], ClsCompliance);
csharptest714b8692011-05-20 15:23:36 -0500311 }
csharptestc671a4b2011-06-08 11:51:24 -0500312 if (hasFileExtension) {
csharptest920b09a2011-06-08 20:13:29 -0500313 output.WriteString(221, field_names[3], FileExtension);
csharptest714b8692011-05-20 15:23:36 -0500314 }
csharptestc671a4b2011-06-08 11:51:24 -0500315 if (hasUmbrellaNamespace) {
csharptest920b09a2011-06-08 20:13:29 -0500316 output.WriteString(222, field_names[12], UmbrellaNamespace);
csharptest714b8692011-05-20 15:23:36 -0500317 }
csharptestc671a4b2011-06-08 11:51:24 -0500318 if (hasOutputDirectory) {
csharptest920b09a2011-06-08 20:13:29 -0500319 output.WriteString(223, field_names[8], OutputDirectory);
csharptest714b8692011-05-20 15:23:36 -0500320 }
csharptestc671a4b2011-06-08 11:51:24 -0500321 if (hasIgnoreGoogleProtobuf) {
csharptest920b09a2011-06-08 20:13:29 -0500322 output.WriteBool(224, field_names[4], IgnoreGoogleProtobuf);
csharptest714b8692011-05-20 15:23:36 -0500323 }
csharptestc671a4b2011-06-08 11:51:24 -0500324 if (hasServiceGeneratorType) {
csharptestced18e12011-06-09 19:47:56 -0500325 output.WriteEnum(225, field_names[10], (int) ServiceGeneratorType, ServiceGeneratorType);
csharptest714b8692011-05-20 15:23:36 -0500326 }
327 UnknownFields.WriteTo(output);
328 }
329
330 private int memoizedSerializedSize = -1;
331 public override int SerializedSize {
332 get {
333 int size = memoizedSerializedSize;
334 if (size != -1) return size;
335
336 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500337 if (hasNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500338 size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
339 }
csharptestc671a4b2011-06-08 11:51:24 -0500340 if (hasUmbrellaClassname) {
csharptest714b8692011-05-20 15:23:36 -0500341 size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
342 }
csharptestc671a4b2011-06-08 11:51:24 -0500343 if (hasPublicClasses) {
csharptest714b8692011-05-20 15:23:36 -0500344 size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
345 }
csharptestc671a4b2011-06-08 11:51:24 -0500346 if (hasMultipleFiles) {
csharptest714b8692011-05-20 15:23:36 -0500347 size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
348 }
csharptestc671a4b2011-06-08 11:51:24 -0500349 if (hasNestClasses) {
csharptest714b8692011-05-20 15:23:36 -0500350 size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
351 }
csharptestc671a4b2011-06-08 11:51:24 -0500352 if (hasCodeContracts) {
csharptest714b8692011-05-20 15:23:36 -0500353 size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
354 }
csharptestc671a4b2011-06-08 11:51:24 -0500355 if (hasExpandNamespaceDirectories) {
csharptest714b8692011-05-20 15:23:36 -0500356 size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
357 }
csharptestc671a4b2011-06-08 11:51:24 -0500358 if (hasClsCompliance) {
csharptest714b8692011-05-20 15:23:36 -0500359 size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
360 }
csharptestc671a4b2011-06-08 11:51:24 -0500361 if (hasFileExtension) {
csharptest714b8692011-05-20 15:23:36 -0500362 size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
363 }
csharptestc671a4b2011-06-08 11:51:24 -0500364 if (hasUmbrellaNamespace) {
csharptest714b8692011-05-20 15:23:36 -0500365 size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
366 }
csharptestc671a4b2011-06-08 11:51:24 -0500367 if (hasOutputDirectory) {
csharptest714b8692011-05-20 15:23:36 -0500368 size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
369 }
csharptestc671a4b2011-06-08 11:51:24 -0500370 if (hasIgnoreGoogleProtobuf) {
csharptest714b8692011-05-20 15:23:36 -0500371 size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
372 }
csharptestc671a4b2011-06-08 11:51:24 -0500373 if (hasServiceGeneratorType) {
csharptest714b8692011-05-20 15:23:36 -0500374 size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
375 }
376 size += UnknownFields.SerializedSize;
377 memoizedSerializedSize = size;
378 return size;
379 }
380 }
381
382 public static CSharpFileOptions ParseFrom(pb::ByteString data) {
383 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
384 }
385 public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
386 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
387 }
388 public static CSharpFileOptions ParseFrom(byte[] data) {
389 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
390 }
391 public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
392 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
393 }
394 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
395 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
396 }
397 public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
398 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
399 }
400 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
401 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
402 }
403 public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
404 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
405 }
csharptest17699c22011-06-03 21:57:15 -0500406 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500407 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
408 }
csharptest17699c22011-06-03 21:57:15 -0500409 public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500410 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
411 }
412 public static Builder CreateBuilder() { return new Builder(); }
413 public override Builder ToBuilder() { return CreateBuilder(this); }
414 public override Builder CreateBuilderForType() { return new Builder(); }
415 public static Builder CreateBuilder(CSharpFileOptions prototype) {
416 return (Builder) new Builder().MergeFrom(prototype);
417 }
418
csharptest445bdce2011-05-20 15:50:54 -0500419 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
420 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
421 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500422 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
423 protected override Builder ThisBuilder {
424 get { return this; }
425 }
426 public Builder() {}
427
428 CSharpFileOptions result = new CSharpFileOptions();
429
430 protected override CSharpFileOptions MessageBeingBuilt {
431 get { return result; }
432 }
433
434 public override Builder Clear() {
435 result = new CSharpFileOptions();
436 return this;
437 }
438
439 public override Builder Clone() {
440 return new Builder().MergeFrom(result);
441 }
442
443 public override pbd::MessageDescriptor DescriptorForType {
444 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
445 }
446
447 public override CSharpFileOptions DefaultInstanceForType {
448 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
449 }
450
451 public override CSharpFileOptions BuildPartial() {
452 if (result == null) {
453 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
454 }
455 CSharpFileOptions returnMe = result;
456 result = null;
457 return returnMe;
458 }
459
460 public override Builder MergeFrom(pb::IMessage other) {
461 if (other is CSharpFileOptions) {
462 return MergeFrom((CSharpFileOptions) other);
463 } else {
464 base.MergeFrom(other);
465 return this;
466 }
467 }
468
469 public override Builder MergeFrom(CSharpFileOptions other) {
470 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
471 if (other.HasNamespace) {
472 Namespace = other.Namespace;
473 }
474 if (other.HasUmbrellaClassname) {
475 UmbrellaClassname = other.UmbrellaClassname;
476 }
477 if (other.HasPublicClasses) {
478 PublicClasses = other.PublicClasses;
479 }
480 if (other.HasMultipleFiles) {
481 MultipleFiles = other.MultipleFiles;
482 }
483 if (other.HasNestClasses) {
484 NestClasses = other.NestClasses;
485 }
486 if (other.HasCodeContracts) {
487 CodeContracts = other.CodeContracts;
488 }
489 if (other.HasExpandNamespaceDirectories) {
490 ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
491 }
492 if (other.HasClsCompliance) {
493 ClsCompliance = other.ClsCompliance;
494 }
495 if (other.HasFileExtension) {
496 FileExtension = other.FileExtension;
497 }
498 if (other.HasUmbrellaNamespace) {
499 UmbrellaNamespace = other.UmbrellaNamespace;
500 }
501 if (other.HasOutputDirectory) {
502 OutputDirectory = other.OutputDirectory;
503 }
504 if (other.HasIgnoreGoogleProtobuf) {
505 IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
506 }
507 if (other.HasServiceGeneratorType) {
508 ServiceGeneratorType = other.ServiceGeneratorType;
509 }
510 this.MergeUnknownFields(other.UnknownFields);
511 return this;
512 }
513
csharptest17699c22011-06-03 21:57:15 -0500514 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500515 return MergeFrom(input, pb::ExtensionRegistry.Empty);
516 }
517
csharptest17699c22011-06-03 21:57:15 -0500518 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500519 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -0500520 uint tag;
521 string field_name;
522 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -0500523 if(tag == 0 && field_name != null) {
524 int field_ordinal = global::System.Array.BinarySearch(_cSharpFileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
525 if(field_ordinal >= 0)
526 tag = _cSharpFileOptionsFieldTags[field_ordinal];
527 else {
528 if (unknownFields == null) {
529 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
530 }
531 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
532 continue;
533 }
534 }
csharptest714b8692011-05-20 15:23:36 -0500535 switch (tag) {
536 case 0: {
csharptest99284412011-06-03 14:51:06 -0500537 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -0500538 }
539 default: {
540 if (pb::WireFormat.IsEndGroupTag(tag)) {
541 if (unknownFields != null) {
542 this.UnknownFields = unknownFields.Build();
543 }
544 return this;
545 }
546 if (unknownFields == null) {
547 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
548 }
csharptestd2af9e92011-06-03 21:35:02 -0500549 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -0500550 break;
551 }
552 case 10: {
csharptest920b09a2011-06-08 20:13:29 -0500553 result.hasNamespace = input.ReadString(ref result.namespace_);
csharptest714b8692011-05-20 15:23:36 -0500554 break;
555 }
556 case 18: {
csharptest920b09a2011-06-08 20:13:29 -0500557 result.hasUmbrellaClassname = input.ReadString(ref result.umbrellaClassname_);
csharptest714b8692011-05-20 15:23:36 -0500558 break;
559 }
560 case 24: {
csharptest920b09a2011-06-08 20:13:29 -0500561 result.hasPublicClasses = input.ReadBool(ref result.publicClasses_);
csharptest714b8692011-05-20 15:23:36 -0500562 break;
563 }
564 case 32: {
csharptest920b09a2011-06-08 20:13:29 -0500565 result.hasMultipleFiles = input.ReadBool(ref result.multipleFiles_);
csharptest714b8692011-05-20 15:23:36 -0500566 break;
567 }
568 case 40: {
csharptest920b09a2011-06-08 20:13:29 -0500569 result.hasNestClasses = input.ReadBool(ref result.nestClasses_);
csharptest714b8692011-05-20 15:23:36 -0500570 break;
571 }
572 case 48: {
csharptest920b09a2011-06-08 20:13:29 -0500573 result.hasCodeContracts = input.ReadBool(ref result.codeContracts_);
csharptest714b8692011-05-20 15:23:36 -0500574 break;
575 }
576 case 56: {
csharptest920b09a2011-06-08 20:13:29 -0500577 result.hasExpandNamespaceDirectories = input.ReadBool(ref result.expandNamespaceDirectories_);
csharptest714b8692011-05-20 15:23:36 -0500578 break;
579 }
580 case 64: {
csharptest920b09a2011-06-08 20:13:29 -0500581 result.hasClsCompliance = input.ReadBool(ref result.clsCompliance_);
csharptest714b8692011-05-20 15:23:36 -0500582 break;
583 }
584 case 1770: {
csharptest920b09a2011-06-08 20:13:29 -0500585 result.hasFileExtension = input.ReadString(ref result.fileExtension_);
csharptest714b8692011-05-20 15:23:36 -0500586 break;
587 }
588 case 1778: {
csharptest920b09a2011-06-08 20:13:29 -0500589 result.hasUmbrellaNamespace = input.ReadString(ref result.umbrellaNamespace_);
csharptest714b8692011-05-20 15:23:36 -0500590 break;
591 }
592 case 1786: {
csharptest920b09a2011-06-08 20:13:29 -0500593 result.hasOutputDirectory = input.ReadString(ref result.outputDirectory_);
csharptest714b8692011-05-20 15:23:36 -0500594 break;
595 }
596 case 1792: {
csharptest920b09a2011-06-08 20:13:29 -0500597 result.hasIgnoreGoogleProtobuf = input.ReadBool(ref result.ignoreGoogleProtobuf_);
csharptest714b8692011-05-20 15:23:36 -0500598 break;
599 }
600 case 1800: {
csharptestd2af9e92011-06-03 21:35:02 -0500601 object unknown;
602 if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
603 result.hasServiceGeneratorType = true;
604 } else if(unknown is int) {
csharptest714b8692011-05-20 15:23:36 -0500605 if (unknownFields == null) {
606 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
607 }
csharptestd2af9e92011-06-03 21:35:02 -0500608 unknownFields.MergeVarintField(225, (ulong)(int)unknown);
csharptest714b8692011-05-20 15:23:36 -0500609 }
610 break;
611 }
612 }
613 }
csharptest123e5342011-06-03 14:15:21 -0500614
615 if (unknownFields != null) {
616 this.UnknownFields = unknownFields.Build();
617 }
618 return this;
csharptest714b8692011-05-20 15:23:36 -0500619 }
620
621
622 public bool HasNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500623 get { return result.hasNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500624 }
625 public string Namespace {
626 get { return result.Namespace; }
627 set { SetNamespace(value); }
628 }
629 public Builder SetNamespace(string value) {
630 pb::ThrowHelper.ThrowIfNull(value, "value");
631 result.hasNamespace = true;
632 result.namespace_ = value;
633 return this;
634 }
635 public Builder ClearNamespace() {
636 result.hasNamespace = false;
637 result.namespace_ = "";
638 return this;
639 }
640
641 public bool HasUmbrellaClassname {
csharptestc671a4b2011-06-08 11:51:24 -0500642 get { return result.hasUmbrellaClassname; }
csharptest714b8692011-05-20 15:23:36 -0500643 }
644 public string UmbrellaClassname {
645 get { return result.UmbrellaClassname; }
646 set { SetUmbrellaClassname(value); }
647 }
648 public Builder SetUmbrellaClassname(string value) {
649 pb::ThrowHelper.ThrowIfNull(value, "value");
650 result.hasUmbrellaClassname = true;
651 result.umbrellaClassname_ = value;
652 return this;
653 }
654 public Builder ClearUmbrellaClassname() {
655 result.hasUmbrellaClassname = false;
656 result.umbrellaClassname_ = "";
657 return this;
658 }
659
660 public bool HasPublicClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500661 get { return result.hasPublicClasses; }
csharptest714b8692011-05-20 15:23:36 -0500662 }
663 public bool PublicClasses {
664 get { return result.PublicClasses; }
665 set { SetPublicClasses(value); }
666 }
667 public Builder SetPublicClasses(bool value) {
668 result.hasPublicClasses = true;
669 result.publicClasses_ = value;
670 return this;
671 }
672 public Builder ClearPublicClasses() {
673 result.hasPublicClasses = false;
674 result.publicClasses_ = true;
675 return this;
676 }
677
678 public bool HasMultipleFiles {
csharptestc671a4b2011-06-08 11:51:24 -0500679 get { return result.hasMultipleFiles; }
csharptest714b8692011-05-20 15:23:36 -0500680 }
681 public bool MultipleFiles {
682 get { return result.MultipleFiles; }
683 set { SetMultipleFiles(value); }
684 }
685 public Builder SetMultipleFiles(bool value) {
686 result.hasMultipleFiles = true;
687 result.multipleFiles_ = value;
688 return this;
689 }
690 public Builder ClearMultipleFiles() {
691 result.hasMultipleFiles = false;
692 result.multipleFiles_ = false;
693 return this;
694 }
695
696 public bool HasNestClasses {
csharptestc671a4b2011-06-08 11:51:24 -0500697 get { return result.hasNestClasses; }
csharptest714b8692011-05-20 15:23:36 -0500698 }
699 public bool NestClasses {
700 get { return result.NestClasses; }
701 set { SetNestClasses(value); }
702 }
703 public Builder SetNestClasses(bool value) {
704 result.hasNestClasses = true;
705 result.nestClasses_ = value;
706 return this;
707 }
708 public Builder ClearNestClasses() {
709 result.hasNestClasses = false;
710 result.nestClasses_ = false;
711 return this;
712 }
713
714 public bool HasCodeContracts {
csharptestc671a4b2011-06-08 11:51:24 -0500715 get { return result.hasCodeContracts; }
csharptest714b8692011-05-20 15:23:36 -0500716 }
717 public bool CodeContracts {
718 get { return result.CodeContracts; }
719 set { SetCodeContracts(value); }
720 }
721 public Builder SetCodeContracts(bool value) {
722 result.hasCodeContracts = true;
723 result.codeContracts_ = value;
724 return this;
725 }
726 public Builder ClearCodeContracts() {
727 result.hasCodeContracts = false;
728 result.codeContracts_ = false;
729 return this;
730 }
731
732 public bool HasExpandNamespaceDirectories {
csharptestc671a4b2011-06-08 11:51:24 -0500733 get { return result.hasExpandNamespaceDirectories; }
csharptest714b8692011-05-20 15:23:36 -0500734 }
735 public bool ExpandNamespaceDirectories {
736 get { return result.ExpandNamespaceDirectories; }
737 set { SetExpandNamespaceDirectories(value); }
738 }
739 public Builder SetExpandNamespaceDirectories(bool value) {
740 result.hasExpandNamespaceDirectories = true;
741 result.expandNamespaceDirectories_ = value;
742 return this;
743 }
744 public Builder ClearExpandNamespaceDirectories() {
745 result.hasExpandNamespaceDirectories = false;
746 result.expandNamespaceDirectories_ = false;
747 return this;
748 }
749
750 public bool HasClsCompliance {
csharptestc671a4b2011-06-08 11:51:24 -0500751 get { return result.hasClsCompliance; }
csharptest714b8692011-05-20 15:23:36 -0500752 }
753 public bool ClsCompliance {
754 get { return result.ClsCompliance; }
755 set { SetClsCompliance(value); }
756 }
757 public Builder SetClsCompliance(bool value) {
758 result.hasClsCompliance = true;
759 result.clsCompliance_ = value;
760 return this;
761 }
762 public Builder ClearClsCompliance() {
763 result.hasClsCompliance = false;
764 result.clsCompliance_ = true;
765 return this;
766 }
767
768 public bool HasFileExtension {
csharptestc671a4b2011-06-08 11:51:24 -0500769 get { return result.hasFileExtension; }
csharptest714b8692011-05-20 15:23:36 -0500770 }
771 public string FileExtension {
772 get { return result.FileExtension; }
773 set { SetFileExtension(value); }
774 }
775 public Builder SetFileExtension(string value) {
776 pb::ThrowHelper.ThrowIfNull(value, "value");
777 result.hasFileExtension = true;
778 result.fileExtension_ = value;
779 return this;
780 }
781 public Builder ClearFileExtension() {
782 result.hasFileExtension = false;
783 result.fileExtension_ = ".cs";
784 return this;
785 }
786
787 public bool HasUmbrellaNamespace {
csharptestc671a4b2011-06-08 11:51:24 -0500788 get { return result.hasUmbrellaNamespace; }
csharptest714b8692011-05-20 15:23:36 -0500789 }
790 public string UmbrellaNamespace {
791 get { return result.UmbrellaNamespace; }
792 set { SetUmbrellaNamespace(value); }
793 }
794 public Builder SetUmbrellaNamespace(string value) {
795 pb::ThrowHelper.ThrowIfNull(value, "value");
796 result.hasUmbrellaNamespace = true;
797 result.umbrellaNamespace_ = value;
798 return this;
799 }
800 public Builder ClearUmbrellaNamespace() {
801 result.hasUmbrellaNamespace = false;
802 result.umbrellaNamespace_ = "";
803 return this;
804 }
805
806 public bool HasOutputDirectory {
csharptestc671a4b2011-06-08 11:51:24 -0500807 get { return result.hasOutputDirectory; }
csharptest714b8692011-05-20 15:23:36 -0500808 }
809 public string OutputDirectory {
810 get { return result.OutputDirectory; }
811 set { SetOutputDirectory(value); }
812 }
813 public Builder SetOutputDirectory(string value) {
814 pb::ThrowHelper.ThrowIfNull(value, "value");
815 result.hasOutputDirectory = true;
816 result.outputDirectory_ = value;
817 return this;
818 }
819 public Builder ClearOutputDirectory() {
820 result.hasOutputDirectory = false;
821 result.outputDirectory_ = ".";
822 return this;
823 }
824
825 public bool HasIgnoreGoogleProtobuf {
csharptestc671a4b2011-06-08 11:51:24 -0500826 get { return result.hasIgnoreGoogleProtobuf; }
csharptest714b8692011-05-20 15:23:36 -0500827 }
828 public bool IgnoreGoogleProtobuf {
829 get { return result.IgnoreGoogleProtobuf; }
830 set { SetIgnoreGoogleProtobuf(value); }
831 }
832 public Builder SetIgnoreGoogleProtobuf(bool value) {
833 result.hasIgnoreGoogleProtobuf = true;
834 result.ignoreGoogleProtobuf_ = value;
835 return this;
836 }
837 public Builder ClearIgnoreGoogleProtobuf() {
838 result.hasIgnoreGoogleProtobuf = false;
839 result.ignoreGoogleProtobuf_ = false;
840 return this;
841 }
842
843 public bool HasServiceGeneratorType {
csharptestc671a4b2011-06-08 11:51:24 -0500844 get { return result.hasServiceGeneratorType; }
csharptest714b8692011-05-20 15:23:36 -0500845 }
846 public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
847 get { return result.ServiceGeneratorType; }
848 set { SetServiceGeneratorType(value); }
849 }
850 public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
851 result.hasServiceGeneratorType = true;
852 result.serviceGeneratorType_ = value;
853 return this;
854 }
855 public Builder ClearServiceGeneratorType() {
856 result.hasServiceGeneratorType = false;
857 result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
858 return this;
859 }
860 }
861 static CSharpFileOptions() {
862 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
863 }
864 }
865
csharptest445bdce2011-05-20 15:50:54 -0500866 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
867 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
868 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500869 public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
870 private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -0500871 private static readonly string[] _cSharpFieldOptionsFieldNames = new string[] { "property_name" };
872 private static readonly uint[] _cSharpFieldOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -0500873 public static CSharpFieldOptions DefaultInstance {
874 get { return defaultInstance; }
875 }
876
877 public override CSharpFieldOptions DefaultInstanceForType {
878 get { return defaultInstance; }
879 }
880
881 protected override CSharpFieldOptions ThisMessage {
882 get { return this; }
883 }
884
885 public static pbd::MessageDescriptor Descriptor {
886 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
887 }
888
889 protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
890 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
891 }
892
893 public const int PropertyNameFieldNumber = 1;
894 private bool hasPropertyName;
895 private string propertyName_ = "";
896 public bool HasPropertyName {
897 get { return hasPropertyName; }
898 }
899 public string PropertyName {
900 get { return propertyName_; }
901 }
902
903 public override bool IsInitialized {
904 get {
905 return true;
906 }
907 }
908
csharptestffafdaa2011-06-03 12:58:14 -0500909 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -0500910 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -0500911 string[] field_names = _cSharpFieldOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -0500912 if (hasPropertyName) {
csharptest920b09a2011-06-08 20:13:29 -0500913 output.WriteString(1, field_names[0], PropertyName);
csharptest714b8692011-05-20 15:23:36 -0500914 }
915 UnknownFields.WriteTo(output);
916 }
917
918 private int memoizedSerializedSize = -1;
919 public override int SerializedSize {
920 get {
921 int size = memoizedSerializedSize;
922 if (size != -1) return size;
923
924 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -0500925 if (hasPropertyName) {
csharptest714b8692011-05-20 15:23:36 -0500926 size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
927 }
928 size += UnknownFields.SerializedSize;
929 memoizedSerializedSize = size;
930 return size;
931 }
932 }
933
934 public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
935 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
936 }
937 public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
938 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
939 }
940 public static CSharpFieldOptions ParseFrom(byte[] data) {
941 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
942 }
943 public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
944 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
945 }
946 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
947 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
948 }
949 public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
950 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
951 }
952 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
953 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
954 }
955 public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
956 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
957 }
csharptest17699c22011-06-03 21:57:15 -0500958 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -0500959 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
960 }
csharptest17699c22011-06-03 21:57:15 -0500961 public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -0500962 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
963 }
964 public static Builder CreateBuilder() { return new Builder(); }
965 public override Builder ToBuilder() { return CreateBuilder(this); }
966 public override Builder CreateBuilderForType() { return new Builder(); }
967 public static Builder CreateBuilder(CSharpFieldOptions prototype) {
968 return (Builder) new Builder().MergeFrom(prototype);
969 }
970
csharptest445bdce2011-05-20 15:50:54 -0500971 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
972 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
973 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -0500974 public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
975 protected override Builder ThisBuilder {
976 get { return this; }
977 }
978 public Builder() {}
979
980 CSharpFieldOptions result = new CSharpFieldOptions();
981
982 protected override CSharpFieldOptions MessageBeingBuilt {
983 get { return result; }
984 }
985
986 public override Builder Clear() {
987 result = new CSharpFieldOptions();
988 return this;
989 }
990
991 public override Builder Clone() {
992 return new Builder().MergeFrom(result);
993 }
994
995 public override pbd::MessageDescriptor DescriptorForType {
996 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
997 }
998
999 public override CSharpFieldOptions DefaultInstanceForType {
1000 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
1001 }
1002
1003 public override CSharpFieldOptions BuildPartial() {
1004 if (result == null) {
1005 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1006 }
1007 CSharpFieldOptions returnMe = result;
1008 result = null;
1009 return returnMe;
1010 }
1011
1012 public override Builder MergeFrom(pb::IMessage other) {
1013 if (other is CSharpFieldOptions) {
1014 return MergeFrom((CSharpFieldOptions) other);
1015 } else {
1016 base.MergeFrom(other);
1017 return this;
1018 }
1019 }
1020
1021 public override Builder MergeFrom(CSharpFieldOptions other) {
1022 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
1023 if (other.HasPropertyName) {
1024 PropertyName = other.PropertyName;
1025 }
1026 this.MergeUnknownFields(other.UnknownFields);
1027 return this;
1028 }
1029
csharptest17699c22011-06-03 21:57:15 -05001030 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001031 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1032 }
1033
csharptest17699c22011-06-03 21:57:15 -05001034 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001035 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001036 uint tag;
1037 string field_name;
1038 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001039 if(tag == 0 && field_name != null) {
1040 int field_ordinal = global::System.Array.BinarySearch(_cSharpFieldOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1041 if(field_ordinal >= 0)
1042 tag = _cSharpFieldOptionsFieldTags[field_ordinal];
1043 else {
1044 if (unknownFields == null) {
1045 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1046 }
1047 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1048 continue;
1049 }
1050 }
csharptest714b8692011-05-20 15:23:36 -05001051 switch (tag) {
1052 case 0: {
csharptest99284412011-06-03 14:51:06 -05001053 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001054 }
1055 default: {
1056 if (pb::WireFormat.IsEndGroupTag(tag)) {
1057 if (unknownFields != null) {
1058 this.UnknownFields = unknownFields.Build();
1059 }
1060 return this;
1061 }
1062 if (unknownFields == null) {
1063 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1064 }
csharptestd2af9e92011-06-03 21:35:02 -05001065 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001066 break;
1067 }
1068 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001069 result.hasPropertyName = input.ReadString(ref result.propertyName_);
csharptest714b8692011-05-20 15:23:36 -05001070 break;
1071 }
1072 }
1073 }
csharptest123e5342011-06-03 14:15:21 -05001074
1075 if (unknownFields != null) {
1076 this.UnknownFields = unknownFields.Build();
1077 }
1078 return this;
csharptest714b8692011-05-20 15:23:36 -05001079 }
1080
1081
1082 public bool HasPropertyName {
csharptestc671a4b2011-06-08 11:51:24 -05001083 get { return result.hasPropertyName; }
csharptest714b8692011-05-20 15:23:36 -05001084 }
1085 public string PropertyName {
1086 get { return result.PropertyName; }
1087 set { SetPropertyName(value); }
1088 }
1089 public Builder SetPropertyName(string value) {
1090 pb::ThrowHelper.ThrowIfNull(value, "value");
1091 result.hasPropertyName = true;
1092 result.propertyName_ = value;
1093 return this;
1094 }
1095 public Builder ClearPropertyName() {
1096 result.hasPropertyName = false;
1097 result.propertyName_ = "";
1098 return this;
1099 }
1100 }
1101 static CSharpFieldOptions() {
1102 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1103 }
1104 }
1105
csharptest445bdce2011-05-20 15:50:54 -05001106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1107 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1108 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001109 public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
1110 private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001111 private static readonly string[] _cSharpServiceOptionsFieldNames = new string[] { "interface_id" };
1112 private static readonly uint[] _cSharpServiceOptionsFieldTags = new uint[] { 10 };
csharptest714b8692011-05-20 15:23:36 -05001113 public static CSharpServiceOptions DefaultInstance {
1114 get { return defaultInstance; }
1115 }
1116
1117 public override CSharpServiceOptions DefaultInstanceForType {
1118 get { return defaultInstance; }
1119 }
1120
1121 protected override CSharpServiceOptions ThisMessage {
1122 get { return this; }
1123 }
1124
1125 public static pbd::MessageDescriptor Descriptor {
1126 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
1127 }
1128
1129 protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
1130 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
1131 }
1132
1133 public const int InterfaceIdFieldNumber = 1;
1134 private bool hasInterfaceId;
1135 private string interfaceId_ = "";
1136 public bool HasInterfaceId {
1137 get { return hasInterfaceId; }
1138 }
1139 public string InterfaceId {
1140 get { return interfaceId_; }
1141 }
1142
1143 public override bool IsInitialized {
1144 get {
1145 return true;
1146 }
1147 }
1148
csharptestffafdaa2011-06-03 12:58:14 -05001149 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001150 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001151 string[] field_names = _cSharpServiceOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001152 if (hasInterfaceId) {
csharptest920b09a2011-06-08 20:13:29 -05001153 output.WriteString(1, field_names[0], InterfaceId);
csharptest714b8692011-05-20 15:23:36 -05001154 }
1155 UnknownFields.WriteTo(output);
1156 }
1157
1158 private int memoizedSerializedSize = -1;
1159 public override int SerializedSize {
1160 get {
1161 int size = memoizedSerializedSize;
1162 if (size != -1) return size;
1163
1164 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001165 if (hasInterfaceId) {
csharptest714b8692011-05-20 15:23:36 -05001166 size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
1167 }
1168 size += UnknownFields.SerializedSize;
1169 memoizedSerializedSize = size;
1170 return size;
1171 }
1172 }
1173
1174 public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
1175 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1176 }
1177 public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1178 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1179 }
1180 public static CSharpServiceOptions ParseFrom(byte[] data) {
1181 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1182 }
1183 public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1184 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1185 }
1186 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
1187 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1188 }
1189 public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1190 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1191 }
1192 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1193 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1194 }
1195 public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1196 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1197 }
csharptest17699c22011-06-03 21:57:15 -05001198 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001199 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1200 }
csharptest17699c22011-06-03 21:57:15 -05001201 public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001202 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1203 }
1204 public static Builder CreateBuilder() { return new Builder(); }
1205 public override Builder ToBuilder() { return CreateBuilder(this); }
1206 public override Builder CreateBuilderForType() { return new Builder(); }
1207 public static Builder CreateBuilder(CSharpServiceOptions prototype) {
1208 return (Builder) new Builder().MergeFrom(prototype);
1209 }
1210
csharptest445bdce2011-05-20 15:50:54 -05001211 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1212 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1213 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001214 public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
1215 protected override Builder ThisBuilder {
1216 get { return this; }
1217 }
1218 public Builder() {}
1219
1220 CSharpServiceOptions result = new CSharpServiceOptions();
1221
1222 protected override CSharpServiceOptions MessageBeingBuilt {
1223 get { return result; }
1224 }
1225
1226 public override Builder Clear() {
1227 result = new CSharpServiceOptions();
1228 return this;
1229 }
1230
1231 public override Builder Clone() {
1232 return new Builder().MergeFrom(result);
1233 }
1234
1235 public override pbd::MessageDescriptor DescriptorForType {
1236 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
1237 }
1238
1239 public override CSharpServiceOptions DefaultInstanceForType {
1240 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
1241 }
1242
1243 public override CSharpServiceOptions BuildPartial() {
1244 if (result == null) {
1245 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1246 }
1247 CSharpServiceOptions returnMe = result;
1248 result = null;
1249 return returnMe;
1250 }
1251
1252 public override Builder MergeFrom(pb::IMessage other) {
1253 if (other is CSharpServiceOptions) {
1254 return MergeFrom((CSharpServiceOptions) other);
1255 } else {
1256 base.MergeFrom(other);
1257 return this;
1258 }
1259 }
1260
1261 public override Builder MergeFrom(CSharpServiceOptions other) {
1262 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
1263 if (other.HasInterfaceId) {
1264 InterfaceId = other.InterfaceId;
1265 }
1266 this.MergeUnknownFields(other.UnknownFields);
1267 return this;
1268 }
1269
csharptest17699c22011-06-03 21:57:15 -05001270 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001271 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1272 }
1273
csharptest17699c22011-06-03 21:57:15 -05001274 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001275 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001276 uint tag;
1277 string field_name;
1278 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001279 if(tag == 0 && field_name != null) {
1280 int field_ordinal = global::System.Array.BinarySearch(_cSharpServiceOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1281 if(field_ordinal >= 0)
1282 tag = _cSharpServiceOptionsFieldTags[field_ordinal];
1283 else {
1284 if (unknownFields == null) {
1285 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1286 }
1287 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1288 continue;
1289 }
1290 }
csharptest714b8692011-05-20 15:23:36 -05001291 switch (tag) {
1292 case 0: {
csharptest99284412011-06-03 14:51:06 -05001293 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001294 }
1295 default: {
1296 if (pb::WireFormat.IsEndGroupTag(tag)) {
1297 if (unknownFields != null) {
1298 this.UnknownFields = unknownFields.Build();
1299 }
1300 return this;
1301 }
1302 if (unknownFields == null) {
1303 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1304 }
csharptestd2af9e92011-06-03 21:35:02 -05001305 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001306 break;
1307 }
1308 case 10: {
csharptest920b09a2011-06-08 20:13:29 -05001309 result.hasInterfaceId = input.ReadString(ref result.interfaceId_);
csharptest714b8692011-05-20 15:23:36 -05001310 break;
1311 }
1312 }
1313 }
csharptest123e5342011-06-03 14:15:21 -05001314
1315 if (unknownFields != null) {
1316 this.UnknownFields = unknownFields.Build();
1317 }
1318 return this;
csharptest714b8692011-05-20 15:23:36 -05001319 }
1320
1321
1322 public bool HasInterfaceId {
csharptestc671a4b2011-06-08 11:51:24 -05001323 get { return result.hasInterfaceId; }
csharptest714b8692011-05-20 15:23:36 -05001324 }
1325 public string InterfaceId {
1326 get { return result.InterfaceId; }
1327 set { SetInterfaceId(value); }
1328 }
1329 public Builder SetInterfaceId(string value) {
1330 pb::ThrowHelper.ThrowIfNull(value, "value");
1331 result.hasInterfaceId = true;
1332 result.interfaceId_ = value;
1333 return this;
1334 }
1335 public Builder ClearInterfaceId() {
1336 result.hasInterfaceId = false;
1337 result.interfaceId_ = "";
1338 return this;
1339 }
1340 }
1341 static CSharpServiceOptions() {
1342 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1343 }
1344 }
1345
csharptest445bdce2011-05-20 15:50:54 -05001346 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1347 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1348 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001349 public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
1350 private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
csharptest920b09a2011-06-08 20:13:29 -05001351 private static readonly string[] _cSharpMethodOptionsFieldNames = new string[] { "dispatch_id" };
1352 private static readonly uint[] _cSharpMethodOptionsFieldTags = new uint[] { 8 };
csharptest714b8692011-05-20 15:23:36 -05001353 public static CSharpMethodOptions DefaultInstance {
1354 get { return defaultInstance; }
1355 }
1356
1357 public override CSharpMethodOptions DefaultInstanceForType {
1358 get { return defaultInstance; }
1359 }
1360
1361 protected override CSharpMethodOptions ThisMessage {
1362 get { return this; }
1363 }
1364
1365 public static pbd::MessageDescriptor Descriptor {
1366 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
1367 }
1368
1369 protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
1370 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
1371 }
1372
1373 public const int DispatchIdFieldNumber = 1;
1374 private bool hasDispatchId;
csharptestced18e12011-06-09 19:47:56 -05001375 private int dispatchId_;
csharptest714b8692011-05-20 15:23:36 -05001376 public bool HasDispatchId {
1377 get { return hasDispatchId; }
1378 }
1379 public int DispatchId {
1380 get { return dispatchId_; }
1381 }
1382
1383 public override bool IsInitialized {
1384 get {
1385 return true;
1386 }
1387 }
1388
csharptestffafdaa2011-06-03 12:58:14 -05001389 public override void WriteTo(pb::ICodedOutputStream output) {
csharptest714b8692011-05-20 15:23:36 -05001390 int size = SerializedSize;
csharptest920b09a2011-06-08 20:13:29 -05001391 string[] field_names = _cSharpMethodOptionsFieldNames;
csharptestc671a4b2011-06-08 11:51:24 -05001392 if (hasDispatchId) {
csharptest920b09a2011-06-08 20:13:29 -05001393 output.WriteInt32(1, field_names[0], DispatchId);
csharptest714b8692011-05-20 15:23:36 -05001394 }
1395 UnknownFields.WriteTo(output);
1396 }
1397
1398 private int memoizedSerializedSize = -1;
1399 public override int SerializedSize {
1400 get {
1401 int size = memoizedSerializedSize;
1402 if (size != -1) return size;
1403
1404 size = 0;
csharptestc671a4b2011-06-08 11:51:24 -05001405 if (hasDispatchId) {
csharptest714b8692011-05-20 15:23:36 -05001406 size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
1407 }
1408 size += UnknownFields.SerializedSize;
1409 memoizedSerializedSize = size;
1410 return size;
1411 }
1412 }
1413
1414 public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
1415 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1416 }
1417 public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
1418 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1419 }
1420 public static CSharpMethodOptions ParseFrom(byte[] data) {
1421 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
1422 }
1423 public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
1424 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
1425 }
1426 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
1427 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1428 }
1429 public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1430 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1431 }
1432 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
1433 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
1434 }
1435 public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
1436 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
1437 }
csharptest17699c22011-06-03 21:57:15 -05001438 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001439 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
1440 }
csharptest17699c22011-06-03 21:57:15 -05001441 public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001442 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
1443 }
1444 public static Builder CreateBuilder() { return new Builder(); }
1445 public override Builder ToBuilder() { return CreateBuilder(this); }
1446 public override Builder CreateBuilderForType() { return new Builder(); }
1447 public static Builder CreateBuilder(CSharpMethodOptions prototype) {
1448 return (Builder) new Builder().MergeFrom(prototype);
1449 }
1450
csharptest445bdce2011-05-20 15:50:54 -05001451 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
1452 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
1453 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
csharptest714b8692011-05-20 15:23:36 -05001454 public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
1455 protected override Builder ThisBuilder {
1456 get { return this; }
1457 }
1458 public Builder() {}
1459
1460 CSharpMethodOptions result = new CSharpMethodOptions();
1461
1462 protected override CSharpMethodOptions MessageBeingBuilt {
1463 get { return result; }
1464 }
1465
1466 public override Builder Clear() {
1467 result = new CSharpMethodOptions();
1468 return this;
1469 }
1470
1471 public override Builder Clone() {
1472 return new Builder().MergeFrom(result);
1473 }
1474
1475 public override pbd::MessageDescriptor DescriptorForType {
1476 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
1477 }
1478
1479 public override CSharpMethodOptions DefaultInstanceForType {
1480 get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
1481 }
1482
1483 public override CSharpMethodOptions BuildPartial() {
1484 if (result == null) {
1485 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
1486 }
1487 CSharpMethodOptions returnMe = result;
1488 result = null;
1489 return returnMe;
1490 }
1491
1492 public override Builder MergeFrom(pb::IMessage other) {
1493 if (other is CSharpMethodOptions) {
1494 return MergeFrom((CSharpMethodOptions) other);
1495 } else {
1496 base.MergeFrom(other);
1497 return this;
1498 }
1499 }
1500
1501 public override Builder MergeFrom(CSharpMethodOptions other) {
1502 if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
1503 if (other.HasDispatchId) {
1504 DispatchId = other.DispatchId;
1505 }
1506 this.MergeUnknownFields(other.UnknownFields);
1507 return this;
1508 }
1509
csharptest17699c22011-06-03 21:57:15 -05001510 public override Builder MergeFrom(pb::ICodedInputStream input) {
csharptest714b8692011-05-20 15:23:36 -05001511 return MergeFrom(input, pb::ExtensionRegistry.Empty);
1512 }
1513
csharptest17699c22011-06-03 21:57:15 -05001514 public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
csharptest714b8692011-05-20 15:23:36 -05001515 pb::UnknownFieldSet.Builder unknownFields = null;
csharptest123e5342011-06-03 14:15:21 -05001516 uint tag;
1517 string field_name;
1518 while (input.ReadTag(out tag, out field_name)) {
csharptest920b09a2011-06-08 20:13:29 -05001519 if(tag == 0 && field_name != null) {
1520 int field_ordinal = global::System.Array.BinarySearch(_cSharpMethodOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
1521 if(field_ordinal >= 0)
1522 tag = _cSharpMethodOptionsFieldTags[field_ordinal];
1523 else {
1524 if (unknownFields == null) {
1525 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1526 }
1527 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
1528 continue;
1529 }
1530 }
csharptest714b8692011-05-20 15:23:36 -05001531 switch (tag) {
1532 case 0: {
csharptest99284412011-06-03 14:51:06 -05001533 throw pb::InvalidProtocolBufferException.InvalidTag();
csharptest714b8692011-05-20 15:23:36 -05001534 }
1535 default: {
1536 if (pb::WireFormat.IsEndGroupTag(tag)) {
1537 if (unknownFields != null) {
1538 this.UnknownFields = unknownFields.Build();
1539 }
1540 return this;
1541 }
1542 if (unknownFields == null) {
1543 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
1544 }
csharptestd2af9e92011-06-03 21:35:02 -05001545 ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
csharptest714b8692011-05-20 15:23:36 -05001546 break;
1547 }
1548 case 8: {
csharptest920b09a2011-06-08 20:13:29 -05001549 result.hasDispatchId = input.ReadInt32(ref result.dispatchId_);
csharptest714b8692011-05-20 15:23:36 -05001550 break;
1551 }
1552 }
1553 }
csharptest123e5342011-06-03 14:15:21 -05001554
1555 if (unknownFields != null) {
1556 this.UnknownFields = unknownFields.Build();
1557 }
1558 return this;
csharptest714b8692011-05-20 15:23:36 -05001559 }
1560
1561
1562 public bool HasDispatchId {
csharptestc671a4b2011-06-08 11:51:24 -05001563 get { return result.hasDispatchId; }
csharptest714b8692011-05-20 15:23:36 -05001564 }
1565 public int DispatchId {
1566 get { return result.DispatchId; }
1567 set { SetDispatchId(value); }
1568 }
1569 public Builder SetDispatchId(int value) {
1570 result.hasDispatchId = true;
1571 result.dispatchId_ = value;
1572 return this;
1573 }
1574 public Builder ClearDispatchId() {
1575 result.hasDispatchId = false;
1576 result.dispatchId_ = 0;
1577 return this;
1578 }
1579 }
1580 static CSharpMethodOptions() {
1581 object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
1582 }
1583 }
1584
1585 #endregion
1586
1587}