PageRenderTime 60ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs

https://code.google.com/p/protobuf-csharp-port/
C# | 1588 lines | 1460 code | 127 blank | 1 comment | 137 complexity | b314da9b74d02f6fce8e79a248c1836e MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0, GPL-2.0

Large files files are truncated, but you can click here to view the full file

  1. // Generated by ProtoGen, Version=2.4.1.473, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. DO NOT EDIT!
  2. #pragma warning disable 1591, 0612
  3. #region Designer generated code
  4. using pb = global::Google.ProtocolBuffers;
  5. using pbc = global::Google.ProtocolBuffers.Collections;
  6. using pbd = global::Google.ProtocolBuffers.Descriptors;
  7. using scg = global::System.Collections.Generic;
  8. namespace Google.ProtocolBuffers.DescriptorProtos {
  9. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  10. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  11. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  12. public static partial class CSharpOptions {
  13. #region Extension registration
  14. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  15. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
  16. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
  17. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions);
  18. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions);
  19. }
  20. #endregion
  21. #region Extensions
  22. public const int CSharpFileOptionsFieldNumber = 1000;
  23. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
  24. public const int CSharpFieldOptionsFieldNumber = 1000;
  25. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
  26. public const int CsharpServiceOptionsFieldNumber = 1000;
  27. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions> CsharpServiceOptions;
  28. public const int CsharpMethodOptionsFieldNumber = 1000;
  29. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions> CsharpMethodOptions;
  30. #endregion
  31. #region Static variables
  32. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
  33. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
  34. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
  35. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
  36. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
  37. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
  38. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
  39. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder> internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
  40. #endregion
  41. #region Descriptor
  42. public static pbd::FileDescriptor Descriptor {
  43. get { return descriptor; }
  44. }
  45. private static pbd::FileDescriptor descriptor;
  46. static CSharpOptions() {
  47. byte[] descriptorData = global::System.Convert.FromBase64String(
  48. "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
  49. "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
  50. "/AMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
  51. "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
  52. "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
  53. "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
  54. "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
  55. "CCABKAg6BHRydWUSHwoQYWRkX3NlcmlhbGl6YWJsZRgJIAEoCDoFZmFsc2US" +
  56. "IwoVZ2VuZXJhdGVfcHJpdmF0ZV9jdG9yGAogASgIOgR0cnVlEhwKDmZpbGVf" +
  57. "ZXh0ZW5zaW9uGN0BIAEoCToDLmNzEhsKEnVtYnJlbGxhX25hbWVzcGFjZRje" +
  58. "ASABKAkSHAoQb3V0cHV0X2RpcmVjdG9yeRjfASABKAk6AS4SJgoWaWdub3Jl" +
  59. "X2dvb2dsZV9wcm90b2J1ZhjgASABKAg6BWZhbHNlEkkKFnNlcnZpY2VfZ2Vu" +
  60. "ZXJhdG9yX3R5cGUY4QEgASgOMiIuZ29vZ2xlLnByb3RvYnVmLkNTaGFycFNl" +
  61. "cnZpY2VUeXBlOgROT05FIisKEkNTaGFycEZpZWxkT3B0aW9ucxIVCg1wcm9w" +
  62. "ZXJ0eV9uYW1lGAEgASgJIiwKFENTaGFycFNlcnZpY2VPcHRpb25zEhQKDGlu" +
  63. "dGVyZmFjZV9pZBgBIAEoCSIqChNDU2hhcnBNZXRob2RPcHRpb25zEhMKC2Rp" +
  64. "c3BhdGNoX2lkGAEgASgFKksKEUNTaGFycFNlcnZpY2VUeXBlEggKBE5PTkUQ" +
  65. "ABILCgdHRU5FUklDEAESDQoJSU5URVJGQUNFEAISEAoMSVJQQ0RJU1BBVENI" +
  66. "EAM6XgoTY3NoYXJwX2ZpbGVfb3B0aW9ucxIcLmdvb2dsZS5wcm90b2J1Zi5G" +
  67. "aWxlT3B0aW9ucxjoByABKAsyIi5nb29nbGUucHJvdG9idWYuQ1NoYXJwRmls" +
  68. "ZU9wdGlvbnM6YQoUY3NoYXJwX2ZpZWxkX29wdGlvbnMSHS5nb29nbGUucHJv" +
  69. "dG9idWYuRmllbGRPcHRpb25zGOgHIAEoCzIjLmdvb2dsZS5wcm90b2J1Zi5D" +
  70. "U2hhcnBGaWVsZE9wdGlvbnM6ZwoWY3NoYXJwX3NlcnZpY2Vfb3B0aW9ucxIf" +
  71. "Lmdvb2dsZS5wcm90b2J1Zi5TZXJ2aWNlT3B0aW9ucxjoByABKAsyJS5nb29n" +
  72. "bGUucHJvdG9idWYuQ1NoYXJwU2VydmljZU9wdGlvbnM6ZAoVY3NoYXJwX21l" +
  73. "dGhvZF9vcHRpb25zEh4uZ29vZ2xlLnByb3RvYnVmLk1ldGhvZE9wdGlvbnMY" +
  74. "6AcgASgLMiQuZ29vZ2xlLnByb3RvYnVmLkNTaGFycE1ldGhvZE9wdGlvbnM=");
  75. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  76. descriptor = root;
  77. internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
  78. internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
  79. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
  80. new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "AddSerializable", "GeneratePrivateCtor", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", "ServiceGeneratorType", });
  81. internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
  82. internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
  83. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
  84. new string[] { "PropertyName", });
  85. internal__static_google_protobuf_CSharpServiceOptions__Descriptor = Descriptor.MessageTypes[2];
  86. internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable =
  87. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>(internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
  88. new string[] { "InterfaceId", });
  89. internal__static_google_protobuf_CSharpMethodOptions__Descriptor = Descriptor.MessageTypes[3];
  90. internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable =
  91. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>(internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
  92. new string[] { "DispatchId", });
  93. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
  94. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
  95. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[2]);
  96. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[3]);
  97. return null;
  98. };
  99. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  100. new pbd::FileDescriptor[] {
  101. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
  102. }, assigner);
  103. }
  104. #endregion
  105. }
  106. #region Enums
  107. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  109. public enum CSharpServiceType {
  110. NONE = 0,
  111. GENERIC = 1,
  112. INTERFACE = 2,
  113. IRPCDISPATCH = 3,
  114. }
  115. #endregion
  116. #region Messages
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  118. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  120. public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
  121. private CSharpFileOptions() { }
  122. private static readonly CSharpFileOptions defaultInstance = new CSharpFileOptions().MakeReadOnly();
  123. private static readonly string[] _cSharpFileOptionsFieldNames = new string[] { "add_serializable", "cls_compliance", "code_contracts", "expand_namespace_directories", "file_extension", "generate_private_ctor", "ignore_google_protobuf", "multiple_files", "namespace", "nest_classes", "output_directory", "public_classes", "service_generator_type", "umbrella_classname", "umbrella_namespace" };
  124. private static readonly uint[] _cSharpFileOptionsFieldTags = new uint[] { 72, 64, 48, 56, 1770, 80, 1792, 32, 10, 40, 1786, 24, 1800, 18, 1778 };
  125. public static CSharpFileOptions DefaultInstance {
  126. get { return defaultInstance; }
  127. }
  128. public override CSharpFileOptions DefaultInstanceForType {
  129. get { return DefaultInstance; }
  130. }
  131. protected override CSharpFileOptions ThisMessage {
  132. get { return this; }
  133. }
  134. public static pbd::MessageDescriptor Descriptor {
  135. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
  136. }
  137. protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
  138. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
  139. }
  140. public const int NamespaceFieldNumber = 1;
  141. private bool hasNamespace;
  142. private string namespace_ = "";
  143. public bool HasNamespace {
  144. get { return hasNamespace; }
  145. }
  146. public string Namespace {
  147. get { return namespace_; }
  148. }
  149. public const int UmbrellaClassnameFieldNumber = 2;
  150. private bool hasUmbrellaClassname;
  151. private string umbrellaClassname_ = "";
  152. public bool HasUmbrellaClassname {
  153. get { return hasUmbrellaClassname; }
  154. }
  155. public string UmbrellaClassname {
  156. get { return umbrellaClassname_; }
  157. }
  158. public const int PublicClassesFieldNumber = 3;
  159. private bool hasPublicClasses;
  160. private bool publicClasses_ = true;
  161. public bool HasPublicClasses {
  162. get { return hasPublicClasses; }
  163. }
  164. public bool PublicClasses {
  165. get { return publicClasses_; }
  166. }
  167. public const int MultipleFilesFieldNumber = 4;
  168. private bool hasMultipleFiles;
  169. private bool multipleFiles_;
  170. public bool HasMultipleFiles {
  171. get { return hasMultipleFiles; }
  172. }
  173. public bool MultipleFiles {
  174. get { return multipleFiles_; }
  175. }
  176. public const int NestClassesFieldNumber = 5;
  177. private bool hasNestClasses;
  178. private bool nestClasses_;
  179. public bool HasNestClasses {
  180. get { return hasNestClasses; }
  181. }
  182. public bool NestClasses {
  183. get { return nestClasses_; }
  184. }
  185. public const int CodeContractsFieldNumber = 6;
  186. private bool hasCodeContracts;
  187. private bool codeContracts_;
  188. public bool HasCodeContracts {
  189. get { return hasCodeContracts; }
  190. }
  191. public bool CodeContracts {
  192. get { return codeContracts_; }
  193. }
  194. public const int ExpandNamespaceDirectoriesFieldNumber = 7;
  195. private bool hasExpandNamespaceDirectories;
  196. private bool expandNamespaceDirectories_;
  197. public bool HasExpandNamespaceDirectories {
  198. get { return hasExpandNamespaceDirectories; }
  199. }
  200. public bool ExpandNamespaceDirectories {
  201. get { return expandNamespaceDirectories_; }
  202. }
  203. public const int ClsComplianceFieldNumber = 8;
  204. private bool hasClsCompliance;
  205. private bool clsCompliance_ = true;
  206. public bool HasClsCompliance {
  207. get { return hasClsCompliance; }
  208. }
  209. public bool ClsCompliance {
  210. get { return clsCompliance_; }
  211. }
  212. public const int AddSerializableFieldNumber = 9;
  213. private bool hasAddSerializable;
  214. private bool addSerializable_;
  215. public bool HasAddSerializable {
  216. get { return hasAddSerializable; }
  217. }
  218. public bool AddSerializable {
  219. get { return addSerializable_; }
  220. }
  221. public const int GeneratePrivateCtorFieldNumber = 10;
  222. private bool hasGeneratePrivateCtor;
  223. private bool generatePrivateCtor_ = true;
  224. public bool HasGeneratePrivateCtor {
  225. get { return hasGeneratePrivateCtor; }
  226. }
  227. public bool GeneratePrivateCtor {
  228. get { return generatePrivateCtor_; }
  229. }
  230. public const int FileExtensionFieldNumber = 221;
  231. private bool hasFileExtension;
  232. private string fileExtension_ = ".cs";
  233. public bool HasFileExtension {
  234. get { return hasFileExtension; }
  235. }
  236. public string FileExtension {
  237. get { return fileExtension_; }
  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. public const int OutputDirectoryFieldNumber = 223;
  249. private bool hasOutputDirectory;
  250. private string outputDirectory_ = ".";
  251. public bool HasOutputDirectory {
  252. get { return hasOutputDirectory; }
  253. }
  254. public string OutputDirectory {
  255. get { return outputDirectory_; }
  256. }
  257. public const int IgnoreGoogleProtobufFieldNumber = 224;
  258. private bool hasIgnoreGoogleProtobuf;
  259. private bool ignoreGoogleProtobuf_;
  260. public bool HasIgnoreGoogleProtobuf {
  261. get { return hasIgnoreGoogleProtobuf; }
  262. }
  263. public bool IgnoreGoogleProtobuf {
  264. get { return ignoreGoogleProtobuf_; }
  265. }
  266. public const int ServiceGeneratorTypeFieldNumber = 225;
  267. private bool hasServiceGeneratorType;
  268. private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
  269. public bool HasServiceGeneratorType {
  270. get { return hasServiceGeneratorType; }
  271. }
  272. public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
  273. get { return serviceGeneratorType_; }
  274. }
  275. public override bool IsInitialized {
  276. get {
  277. return true;
  278. }
  279. }
  280. public override void WriteTo(pb::ICodedOutputStream output) {
  281. int size = SerializedSize;
  282. string[] field_names = _cSharpFileOptionsFieldNames;
  283. if (hasNamespace) {
  284. output.WriteString(1, field_names[8], Namespace);
  285. }
  286. if (hasUmbrellaClassname) {
  287. output.WriteString(2, field_names[13], UmbrellaClassname);
  288. }
  289. if (hasPublicClasses) {
  290. output.WriteBool(3, field_names[11], PublicClasses);
  291. }
  292. if (hasMultipleFiles) {
  293. output.WriteBool(4, field_names[7], MultipleFiles);
  294. }
  295. if (hasNestClasses) {
  296. output.WriteBool(5, field_names[9], NestClasses);
  297. }
  298. if (hasCodeContracts) {
  299. output.WriteBool(6, field_names[2], CodeContracts);
  300. }
  301. if (hasExpandNamespaceDirectories) {
  302. output.WriteBool(7, field_names[3], ExpandNamespaceDirectories);
  303. }
  304. if (hasClsCompliance) {
  305. output.WriteBool(8, field_names[1], ClsCompliance);
  306. }
  307. if (hasAddSerializable) {
  308. output.WriteBool(9, field_names[0], AddSerializable);
  309. }
  310. if (hasGeneratePrivateCtor) {
  311. output.WriteBool(10, field_names[5], GeneratePrivateCtor);
  312. }
  313. if (hasFileExtension) {
  314. output.WriteString(221, field_names[4], FileExtension);
  315. }
  316. if (hasUmbrellaNamespace) {
  317. output.WriteString(222, field_names[14], UmbrellaNamespace);
  318. }
  319. if (hasOutputDirectory) {
  320. output.WriteString(223, field_names[10], OutputDirectory);
  321. }
  322. if (hasIgnoreGoogleProtobuf) {
  323. output.WriteBool(224, field_names[6], IgnoreGoogleProtobuf);
  324. }
  325. if (hasServiceGeneratorType) {
  326. output.WriteEnum(225, field_names[12], (int) ServiceGeneratorType, ServiceGeneratorType);
  327. }
  328. UnknownFields.WriteTo(output);
  329. }
  330. private int memoizedSerializedSize = -1;
  331. public override int SerializedSize {
  332. get {
  333. int size = memoizedSerializedSize;
  334. if (size != -1) return size;
  335. size = 0;
  336. if (hasNamespace) {
  337. size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
  338. }
  339. if (hasUmbrellaClassname) {
  340. size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
  341. }
  342. if (hasPublicClasses) {
  343. size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
  344. }
  345. if (hasMultipleFiles) {
  346. size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
  347. }
  348. if (hasNestClasses) {
  349. size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
  350. }
  351. if (hasCodeContracts) {
  352. size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
  353. }
  354. if (hasExpandNamespaceDirectories) {
  355. size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
  356. }
  357. if (hasClsCompliance) {
  358. size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
  359. }
  360. if (hasAddSerializable) {
  361. size += pb::CodedOutputStream.ComputeBoolSize(9, AddSerializable);
  362. }
  363. if (hasGeneratePrivateCtor) {
  364. size += pb::CodedOutputStream.ComputeBoolSize(10, GeneratePrivateCtor);
  365. }
  366. if (hasFileExtension) {
  367. size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
  368. }
  369. if (hasUmbrellaNamespace) {
  370. size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
  371. }
  372. if (hasOutputDirectory) {
  373. size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
  374. }
  375. if (hasIgnoreGoogleProtobuf) {
  376. size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
  377. }
  378. if (hasServiceGeneratorType) {
  379. size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
  380. }
  381. size += UnknownFields.SerializedSize;
  382. memoizedSerializedSize = size;
  383. return size;
  384. }
  385. }
  386. public static CSharpFileOptions ParseFrom(pb::ByteString data) {
  387. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  388. }
  389. public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  390. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  391. }
  392. public static CSharpFileOptions ParseFrom(byte[] data) {
  393. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  394. }
  395. public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  396. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  397. }
  398. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
  399. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  400. }
  401. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  402. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  403. }
  404. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  405. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  406. }
  407. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  408. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  409. }
  410. public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
  411. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  412. }
  413. public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  414. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  415. }
  416. private CSharpFileOptions MakeReadOnly() {
  417. return this;
  418. }
  419. public static Builder CreateBuilder() { return new Builder(); }
  420. public override Builder ToBuilder() { return CreateBuilder(this); }
  421. public override Builder CreateBuilderForType() { return new Builder(); }
  422. public static Builder CreateBuilder(CSharpFileOptions prototype) {
  423. return new Builder(prototype);
  424. }
  425. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  426. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  428. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
  429. protected override Builder ThisBuilder {
  430. get { return this; }
  431. }
  432. public Builder() {
  433. result = DefaultInstance;
  434. resultIsReadOnly = true;
  435. }
  436. internal Builder(CSharpFileOptions cloneFrom) {
  437. result = cloneFrom;
  438. resultIsReadOnly = true;
  439. }
  440. private bool resultIsReadOnly;
  441. private CSharpFileOptions result;
  442. private CSharpFileOptions PrepareBuilder() {
  443. if (resultIsReadOnly) {
  444. CSharpFileOptions original = result;
  445. result = new CSharpFileOptions();
  446. resultIsReadOnly = false;
  447. MergeFrom(original);
  448. }
  449. return result;
  450. }
  451. public override bool IsInitialized {
  452. get { return result.IsInitialized; }
  453. }
  454. protected override CSharpFileOptions MessageBeingBuilt {
  455. get { return PrepareBuilder(); }
  456. }
  457. public override Builder Clear() {
  458. result = DefaultInstance;
  459. resultIsReadOnly = true;
  460. return this;
  461. }
  462. public override Builder Clone() {
  463. if (resultIsReadOnly) {
  464. return new Builder(result);
  465. } else {
  466. return new Builder().MergeFrom(result);
  467. }
  468. }
  469. public override pbd::MessageDescriptor DescriptorForType {
  470. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
  471. }
  472. public override CSharpFileOptions DefaultInstanceForType {
  473. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
  474. }
  475. public override CSharpFileOptions BuildPartial() {
  476. if (resultIsReadOnly) {
  477. return result;
  478. }
  479. resultIsReadOnly = true;
  480. return result.MakeReadOnly();
  481. }
  482. public override Builder MergeFrom(pb::IMessage other) {
  483. if (other is CSharpFileOptions) {
  484. return MergeFrom((CSharpFileOptions) other);
  485. } else {
  486. base.MergeFrom(other);
  487. return this;
  488. }
  489. }
  490. public override Builder MergeFrom(CSharpFileOptions other) {
  491. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
  492. PrepareBuilder();
  493. if (other.HasNamespace) {
  494. Namespace = other.Namespace;
  495. }
  496. if (other.HasUmbrellaClassname) {
  497. UmbrellaClassname = other.UmbrellaClassname;
  498. }
  499. if (other.HasPublicClasses) {
  500. PublicClasses = other.PublicClasses;
  501. }
  502. if (other.HasMultipleFiles) {
  503. MultipleFiles = other.MultipleFiles;
  504. }
  505. if (other.HasNestClasses) {
  506. NestClasses = other.NestClasses;
  507. }
  508. if (other.HasCodeContracts) {
  509. CodeContracts = other.CodeContracts;
  510. }
  511. if (other.HasExpandNamespaceDirectories) {
  512. ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
  513. }
  514. if (other.HasClsCompliance) {
  515. ClsCompliance = other.ClsCompliance;
  516. }
  517. if (other.HasAddSerializable) {
  518. AddSerializable = other.AddSerializable;
  519. }
  520. if (other.HasGeneratePrivateCtor) {
  521. GeneratePrivateCtor = other.GeneratePrivateCtor;
  522. }
  523. if (other.HasFileExtension) {
  524. FileExtension = other.FileExtension;
  525. }
  526. if (other.HasUmbrellaNamespace) {
  527. UmbrellaNamespace = other.UmbrellaNamespace;
  528. }
  529. if (other.HasOutputDirectory) {
  530. OutputDirectory = other.OutputDirectory;
  531. }
  532. if (other.HasIgnoreGoogleProtobuf) {
  533. IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
  534. }
  535. if (other.HasServiceGeneratorType) {
  536. ServiceGeneratorType = other.ServiceGeneratorType;
  537. }
  538. this.MergeUnknownFields(other.UnknownFields);
  539. return this;
  540. }
  541. public override Builder MergeFrom(pb::ICodedInputStream input) {
  542. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  543. }
  544. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  545. PrepareBuilder();
  546. pb::UnknownFieldSet.Builder unknownFields = null;
  547. uint tag;
  548. string field_name;
  549. while (input.ReadTag(out tag, out field_name)) {
  550. if(tag == 0 && field_name != null) {
  551. int field_ordinal = global::System.Array.BinarySearch(_cSharpFileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  552. if(field_ordinal >= 0)
  553. tag = _cSharpFileOptionsFieldTags[field_ordinal];
  554. else {
  555. if (unknownFields == null) {
  556. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  557. }
  558. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  559. continue;
  560. }
  561. }
  562. switch (tag) {
  563. case 0: {
  564. throw pb::InvalidProtocolBufferException.InvalidTag();
  565. }
  566. default: {
  567. if (pb::WireFormat.IsEndGroupTag(tag)) {
  568. if (unknownFields != null) {
  569. this.UnknownFields = unknownFields.Build();
  570. }
  571. return this;
  572. }
  573. if (unknownFields == null) {
  574. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  575. }
  576. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  577. break;
  578. }
  579. case 10: {
  580. result.hasNamespace = input.ReadString(ref result.namespace_);
  581. break;
  582. }
  583. case 18: {
  584. result.hasUmbrellaClassname = input.ReadString(ref result.umbrellaClassname_);
  585. break;
  586. }
  587. case 24: {
  588. result.hasPublicClasses = input.ReadBool(ref result.publicClasses_);
  589. break;
  590. }
  591. case 32: {
  592. result.hasMultipleFiles = input.ReadBool(ref result.multipleFiles_);
  593. break;
  594. }
  595. case 40: {
  596. result.hasNestClasses = input.ReadBool(ref result.nestClasses_);
  597. break;
  598. }
  599. case 48: {
  600. result.hasCodeContracts = input.ReadBool(ref result.codeContracts_);
  601. break;
  602. }
  603. case 56: {
  604. result.hasExpandNamespaceDirectories = input.ReadBool(ref result.expandNamespaceDirectories_);
  605. break;
  606. }
  607. case 64: {
  608. result.hasClsCompliance = input.ReadBool(ref result.clsCompliance_);
  609. break;
  610. }
  611. case 72: {
  612. result.hasAddSerializable = input.ReadBool(ref result.addSerializable_);
  613. break;
  614. }
  615. case 80: {
  616. result.hasGeneratePrivateCtor = input.ReadBool(ref result.generatePrivateCtor_);
  617. break;
  618. }
  619. case 1770: {
  620. result.hasFileExtension = input.ReadString(ref result.fileExtension_);
  621. break;
  622. }
  623. case 1778: {
  624. result.hasUmbrellaNamespace = input.ReadString(ref result.umbrellaNamespace_);
  625. break;
  626. }
  627. case 1786: {
  628. result.hasOutputDirectory = input.ReadString(ref result.outputDirectory_);
  629. break;
  630. }
  631. case 1792: {
  632. result.hasIgnoreGoogleProtobuf = input.ReadBool(ref result.ignoreGoogleProtobuf_);
  633. break;
  634. }
  635. case 1800: {
  636. object unknown;
  637. if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
  638. result.hasServiceGeneratorType = true;
  639. } else if(unknown is int) {
  640. if (unknownFields == null) {
  641. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  642. }
  643. unknownFields.MergeVarintField(225, (ulong)(int)unknown);
  644. }
  645. break;
  646. }
  647. }
  648. }
  649. if (unknownFields != null) {
  650. this.UnknownFields = unknownFields.Build();
  651. }
  652. return this;
  653. }
  654. public bool HasNamespace {
  655. get { return result.hasNamespace; }
  656. }
  657. public string Namespace {
  658. get { return result.Namespace; }
  659. set { SetNamespace(value); }
  660. }
  661. public Builder SetNamespace(string value) {
  662. pb::ThrowHelper.ThrowIfNull(value, "value");
  663. PrepareBuilder();
  664. result.hasNamespace = true;
  665. result.namespace_ = value;
  666. return this;
  667. }
  668. public Builder ClearNamespace() {
  669. PrepareBuilder();
  670. result.hasNamespace = false;
  671. result.namespace_ = "";
  672. return this;
  673. }
  674. public bool HasUmbrellaClassname {
  675. get { return result.hasUmbrellaClassname; }
  676. }
  677. public string UmbrellaClassname {
  678. get { return result.UmbrellaClassname; }
  679. set { SetUmbrellaClassname(value); }
  680. }
  681. public Builder SetUmbrellaClassname(string value) {
  682. pb::ThrowHelper.ThrowIfNull(value, "value");
  683. PrepareBuilder();
  684. result.hasUmbrellaClassname = true;
  685. result.umbrellaClassname_ = value;
  686. return this;
  687. }
  688. public Builder ClearUmbrellaClassname() {
  689. PrepareBuilder();
  690. result.hasUmbrellaClassname = false;
  691. result.umbrellaClassname_ = "";
  692. return this;
  693. }
  694. public bool HasPublicClasses {
  695. get { return result.hasPublicClasses; }
  696. }
  697. public bool PublicClasses {
  698. get { return result.PublicClasses; }
  699. set { SetPublicClasses(value); }
  700. }
  701. public Builder SetPublicClasses(bool value) {
  702. PrepareBuilder();
  703. result.hasPublicClasses = true;
  704. result.publicClasses_ = value;
  705. return this;
  706. }
  707. public Builder ClearPublicClasses() {
  708. PrepareBuilder();
  709. result.hasPublicClasses = false;
  710. result.publicClasses_ = true;
  711. return this;
  712. }
  713. public bool HasMultipleFiles {
  714. get { return result.hasMultipleFiles; }
  715. }
  716. public bool MultipleFiles {
  717. get { return result.MultipleFiles; }
  718. set { SetMultipleFiles(value); }
  719. }
  720. public Builder SetMultipleFiles(bool value) {
  721. PrepareBuilder();
  722. result.hasMultipleFiles = true;
  723. result.multipleFiles_ = value;
  724. return this;
  725. }
  726. public Builder ClearMultipleFiles() {
  727. PrepareBuilder();
  728. result.hasMultipleFiles = false;
  729. result.multipleFiles_ = false;
  730. return this;
  731. }
  732. public bool HasNestClasses {
  733. get { return result.hasNestClasses; }
  734. }
  735. public bool NestClasses {
  736. get { return result.NestClasses; }
  737. set { SetNestClasses(value); }
  738. }
  739. public Builder SetNestClasses(bool value) {
  740. PrepareBuilder();
  741. result.hasNestClasses = true;
  742. result.nestClasses_ = value;
  743. return this;
  744. }
  745. public Builder ClearNestClasses() {
  746. PrepareBuilder();
  747. result.hasNestClasses = false;
  748. result.nestClasses_ = false;
  749. return this;
  750. }
  751. public bool HasCodeContracts {
  752. get { return result.hasCodeContracts; }
  753. }
  754. public bool CodeContracts {
  755. get { return result.CodeContracts; }
  756. set { SetCodeContracts(value); }
  757. }
  758. public Builder SetCodeContracts(bool value) {
  759. PrepareBuilder();
  760. result.hasCodeContracts = true;
  761. result.codeContracts_ = value;
  762. return this;
  763. }
  764. public Builder ClearCodeContracts() {
  765. PrepareBuilder();
  766. result.hasCodeContracts = false;
  767. result.codeContracts_ = false;
  768. return this;
  769. }
  770. public bool HasExpandNamespaceDirectories {
  771. get { return result.hasExpandNamespaceDirectories; }
  772. }
  773. public bool ExpandNamespaceDirectories {
  774. get { return result.ExpandNamespaceDirectories; }
  775. set { SetExpandNamespaceDirectories(value); }
  776. }
  777. public Builder SetExpandNamespaceDirectories(bool value) {
  778. PrepareBuilder();
  779. result.hasExpandNamespaceDirectories = true;
  780. result.expandNamespaceDirectories_ = value;
  781. return this;
  782. }
  783. public Builder ClearExpandNamespaceDirectories() {
  784. PrepareBuilder();
  785. result.hasExpandNamespaceDirectories = false;
  786. result.expandNamespaceDirectories_ = false;
  787. return this;
  788. }
  789. public bool HasClsCompliance {
  790. get { return result.hasClsCompliance; }
  791. }
  792. public bool ClsCompliance {
  793. get { return result.ClsCompliance; }
  794. set { SetClsCompliance(value); }
  795. }
  796. public Builder SetClsCompliance(bool value) {
  797. PrepareBuilder();
  798. result.hasClsCompliance = true;
  799. result.clsCompliance_ = value;
  800. return this;
  801. }
  802. public Builder ClearClsCompliance() {
  803. PrepareBuilder();
  804. result.hasClsCompliance = false;
  805. result.clsCompliance_ = true;
  806. return this;
  807. }
  808. public bool HasAddSerializable {
  809. get { return result.hasAddSerializable; }
  810. }
  811. public bool AddSerializable {
  812. get { return result.AddSerializable; }
  813. set { SetAddSerializable(value); }
  814. }
  815. public Builder SetAddSerializable(bool value) {
  816. PrepareBuilder();
  817. result.hasAddSerializable = true;
  818. result.addSerializable_ = value;
  819. return this;
  820. }
  821. public Builder ClearAddSerializable() {
  822. PrepareBuilder();
  823. result.hasAddSerializable = false;
  824. result.addSerializable_ = false;
  825. return this;
  826. }
  827. public bool HasGeneratePrivateCtor {
  828. get { return result.hasGeneratePrivateCtor; }
  829. }
  830. public bool GeneratePrivateCtor {
  831. get { return result.GeneratePrivateCtor; }
  832. set { SetGeneratePrivateCtor(value); }
  833. }
  834. public Builder SetGeneratePrivateCtor(bool value) {
  835. PrepareBuilder();
  836. result.hasGeneratePrivateCtor = true;
  837. result.generatePrivateCtor_ = value;
  838. return this;
  839. }
  840. public Builder ClearGeneratePrivateCtor() {
  841. PrepareBuilder();
  842. result.hasGeneratePrivateCtor = false;
  843. result.generatePrivateCtor_ = true;
  844. return this;
  845. }
  846. public bool HasFileExtension {
  847. get { return result.hasFileExtension; }
  848. }
  849. public string FileExtension {
  850. get { return result.FileExtension; }
  851. set { SetFileExtension(value); }
  852. }
  853. public Builder SetFileExtension(string value) {
  854. pb::ThrowHelper.ThrowIfNull(value, "value");
  855. PrepareBuilder();
  856. result.hasFileExtension = true;
  857. result.fileExtension_ = value;
  858. return this;
  859. }
  860. public Builder ClearFileExtension() {
  861. PrepareBuilder();
  862. result.hasFileExtension = false;
  863. result.fileExtension_ = ".cs";
  864. return this;
  865. }
  866. public bool HasUmbrellaNamespace {
  867. get { return result.hasUmbrellaNamespace; }
  868. }
  869. public string UmbrellaNamespace {
  870. get { return result.UmbrellaNamespace; }
  871. set { SetUmbrellaNamespace(value); }
  872. }
  873. public Builder SetUmbrellaNamespace(string value) {
  874. pb::ThrowHelper.ThrowIfNull(value, "value");
  875. PrepareBuilder();
  876. result.hasUmbrellaNamespace = true;
  877. result.umbrellaNamespace_ = value;
  878. return this;
  879. }
  880. public Builder ClearUmbrellaNamespace() {
  881. PrepareBuilder();
  882. result.hasUmbrellaNamespace = false;
  883. result.umbrellaNamespace_ = "";
  884. return this;
  885. }
  886. public bool HasOutputDirectory {
  887. get { return result.hasOutputDirectory; }
  888. }
  889. public string OutputDirectory {
  890. get { return result.OutputDirectory; }
  891. set { SetOutputDirectory(value); }
  892. }
  893. public Builder SetOutputDirectory(string value) {
  894. pb::ThrowHelper.ThrowIfNull(value, "value");
  895. PrepareBuilder();
  896. result.hasOutputDirectory = true;
  897. result.outputDirectory_ = value;
  898. return this;
  899. }
  900. public Builder ClearOutputDirectory() {
  901. PrepareBuilder();
  902. result.hasOutputDirectory = false;
  903. result.outputDirectory_ = ".";
  904. return this;
  905. }
  906. public bool HasIgnoreGoogleProtobuf {
  907. get { return result.hasIgnoreGoogleProtobuf; }
  908. }
  909. public bool IgnoreGoogleProtobuf {
  910. get { return result.IgnoreGoogleProtobuf; }
  911. set { SetIgnoreGoogleProtobuf(value); }
  912. }
  913. public Builder SetIgnoreGoogleProtobuf(bool value) {
  914. PrepareBuilder();
  915. result.hasIgnoreGoogleProtobuf = true;
  916. result.ignoreGoogleProtobuf_ = value;
  917. return this;
  918. }
  919. public Builder ClearIgnoreGoogleProtobuf() {
  920. PrepareBuilder();
  921. result.hasIgnoreGoogleProtobuf = false;
  922. result.ignoreGoogleProtobuf_ = false;
  923. return this;
  924. }
  925. public bool HasServiceGeneratorType {
  926. get { return result.hasServiceGeneratorType; }
  927. }
  928. public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
  929. get { return result.ServiceGeneratorType; }
  930. set { SetServiceGeneratorType(value); }
  931. }
  932. public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
  933. PrepareBuilder();
  934. result.hasServiceGeneratorType = true;
  935. result.serviceGeneratorType_ = value;
  936. return this;
  937. }
  938. public Builder ClearServiceGeneratorType() {
  939. PrepareBuilder();
  940. result.hasServiceGeneratorType = false;
  941. result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
  942. return this;
  943. }
  944. }
  945. static CSharpFileOptions() {
  946. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  947. }
  948. }
  949. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  950. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  951. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  952. public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
  953. private CSharpFieldOptions() { }
  954. private static readonly CSharpFieldOptions defaultInstance = new CSharpFieldOptions().MakeReadOnly();
  955. private static readonly string[] _cSharpFieldOptionsFieldNames = new string[] { "property_name" };
  956. private static readonly uint[] _cSharpFieldOptionsFieldTags = new uint[] { 10 };
  957. public static CSharpFieldOptions DefaultInstance {
  958. get { return defaultInstance; }
  959. }
  960. public override CSharpFieldOptions DefaultInstanceForType {
  961. get { return DefaultInstance; }
  962. }
  963. protected override CSharpFieldOptions ThisMessage {
  964. get { return this; }
  965. }
  966. public static pbd::MessageDescriptor Descriptor {
  967. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
  968. }
  969. protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
  970. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
  971. }
  972. public const int PropertyNameFieldNumber = 1;
  973. private bool hasPropertyName;
  974. private string propertyName_ = "";
  975. public bool HasPropertyName {
  976. get { return hasPropertyName; }
  977. }
  978. public string PropertyName {
  979. get { return propertyName_; }
  980. }
  981. public override bool IsInitialized {
  982. get {
  983. return true;
  984. }
  985. }
  986. public override void WriteTo(pb::ICodedOutputStream output) {
  987. int size = SerializedSize;
  988. string[] field_names = _cSharpFieldOptionsFieldNames;
  989. if (hasPropertyName) {
  990. output.WriteString(1, field_names[0], PropertyName);
  991. }
  992. UnknownFields.WriteTo(output);
  993. }
  994. private int memoizedSerializedSize = -1;
  995. public override int SerializedSize {
  996. get {
  997. int size = memoizedSerializedSize;
  998. if (size != -1) return size;
  999. size = 0;
  1000. if (hasPropertyName) {
  1001. size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
  1002. }
  1003. size += UnknownFields.SerializedSize;
  1004. memoizedSerializedSize = size;
  1005. return size;
  1006. }
  1007. }
  1008. public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
  1009. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1010. }
  1011. public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1012. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1013. }
  1014. public static CSharpFieldOptions ParseFrom(byte[] data) {
  1015. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1016. }
  1017. public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1018. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1019. }
  1020. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
  1021. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1022. }
  1023. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1024. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1025. }
  1026. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  1027. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1028. }
  1029. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1030. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1031. }
  1032. public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
  1033. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1034. }
  1035. public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1036. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1037. }
  1038. private CSharpFieldOptions MakeReadOnly() {
  1039. return this;
  1040. }
  1041. public static Builder CreateBuilder() { return new Builder(); }
  1042. public override Builder ToBuilder() { return CreateBuilder(this); }
  1043. public override Builder CreateBuilderForType() { return new Builder(); }
  1044. public static Builder CreateBuilder(CSharpFieldOptions prototype) {
  1045. return new Builder(prototype);
  1046. }
  1047. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1048. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.4.1.473")]
  1050. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
  1051. protected override Builder ThisBuilder {
  1052. get { return this; }
  1053. }
  1054. public Builder() {
  1055. result = DefaultInstance;
  1056. resultIsReadOnly = true;
  1057. }
  1058. internal Builder(CSharpFieldOptions cloneFrom) {
  1059. result = cloneFrom;
  1060. resultIsReadOnly = true;
  1061. }
  1062. private bool resultIsReadOnly;
  1063. private CSharpFieldOptions result;
  1064. private CSharpFieldOptions PrepareBuilder() {
  1065. if (resultIsReadOnly) {
  1066. CSharpFieldOptions original = result;
  1067. result = new CSharpFieldOptions();
  1068. resultIsReadOnly = false;
  1069. MergeFrom(original);
  1070. }
  1071. return result;
  1072. }
  1073. public override bool IsInitialized {
  1074. get { return result.IsInitialized; }
  1075. }
  1076. protected override CSharpFieldOptions MessageBeingBuilt {
  1077. get { return PrepareBuilder(); }
  1078. }
  1079. public override Builder Clear() {
  1080. result = DefaultInstance;
  1081. resultIsReadOnly = true;
  1082. return this;
  1083. }
  1084. public override Builder Clone() {
  1085. if (resultIsReadOnly) {
  1086. return new Builder(result);
  1087. } else {
  1088. return new Builder().MergeFrom(result);
  1089. }
  1090. }
  1091. public override pbd::MessageDescriptor DescriptorForType {
  1092. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
  1093. }
  1094. public override CSharpFieldOptions DefaultInstanceForType {
  1095. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
  1096. }
  1097. public override CSharpFieldOptions BuildPartial() {
  1098. if (resultIsReadOnly) {
  1099. return result;
  1100. }
  1101. resultIsReadOnly = true;
  1102. return result.MakeReadOnly();
  1103. }
  1104. public override Builder MergeFrom(pb::IMessage other) {
  1105. if (other is CSharpFieldOptions) {

Large files files are truncated, but you can click here to view the full file