CSharpOptions.cs 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. using pb = global::Google.ProtocolBuffers;
  3. using pbc = global::Google.ProtocolBuffers.Collections;
  4. using pbd = global::Google.ProtocolBuffers.Descriptors;
  5. using scg = global::System.Collections.Generic;
  6. namespace Google.ProtocolBuffers.DescriptorProtos {
  7. public static partial class CSharpOptions {
  8. #region Extension registration
  9. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  10. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
  11. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
  12. }
  13. #endregion
  14. #region Extensions
  15. public const int CSharpFileOptionsFieldNumber = 1000;
  16. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
  17. public const int CSharpFieldOptionsFieldNumber = 1000;
  18. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
  19. #endregion
  20. #region Static variables
  21. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
  22. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
  23. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
  24. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
  25. #endregion
  26. #region Descriptor
  27. public static pbd::FileDescriptor Descriptor {
  28. get { return descriptor; }
  29. }
  30. private static pbd::FileDescriptor descriptor;
  31. static CSharpOptions() {
  32. byte[] descriptorData = global::System.Convert.FromBase64String(
  33. "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
  34. "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
  35. "6wIKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
  36. "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
  37. "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
  38. "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
  39. "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
  40. "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
  41. "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
  42. "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
  43. "ZmFsc2UiKwoSQ1NoYXJwRmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUY" +
  44. "ASABKAk6XgoTY3NoYXJwX2ZpbGVfb3B0aW9ucxIcLmdvb2dsZS5wcm90b2J1" +
  45. "Zi5GaWxlT3B0aW9ucxjoByABKAsyIi5nb29nbGUucHJvdG9idWYuQ1NoYXJw" +
  46. "RmlsZU9wdGlvbnM6YQoUY3NoYXJwX2ZpZWxkX29wdGlvbnMSHS5nb29nbGUu" +
  47. "cHJvdG9idWYuRmllbGRPcHRpb25zGOgHIAEoCzIjLmdvb2dsZS5wcm90b2J1" +
  48. "Zi5DU2hhcnBGaWVsZE9wdGlvbnM=");
  49. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  50. descriptor = root;
  51. internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
  52. internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
  53. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
  54. new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", });
  55. internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
  56. internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
  57. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
  58. new string[] { "PropertyName", });
  59. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
  60. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
  61. return null;
  62. };
  63. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  64. new pbd::FileDescriptor[] {
  65. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
  66. }, assigner);
  67. }
  68. #endregion
  69. }
  70. #region Messages
  71. public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
  72. private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
  73. public static CSharpFileOptions DefaultInstance {
  74. get { return defaultInstance; }
  75. }
  76. public override CSharpFileOptions DefaultInstanceForType {
  77. get { return defaultInstance; }
  78. }
  79. protected override CSharpFileOptions ThisMessage {
  80. get { return this; }
  81. }
  82. public static pbd::MessageDescriptor Descriptor {
  83. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
  84. }
  85. protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
  86. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
  87. }
  88. public const int NamespaceFieldNumber = 1;
  89. private bool hasNamespace;
  90. private string namespace_ = "";
  91. public bool HasNamespace {
  92. get { return hasNamespace; }
  93. }
  94. public string Namespace {
  95. get { return namespace_; }
  96. }
  97. public const int UmbrellaClassnameFieldNumber = 2;
  98. private bool hasUmbrellaClassname;
  99. private string umbrellaClassname_ = "";
  100. public bool HasUmbrellaClassname {
  101. get { return hasUmbrellaClassname; }
  102. }
  103. public string UmbrellaClassname {
  104. get { return umbrellaClassname_; }
  105. }
  106. public const int PublicClassesFieldNumber = 3;
  107. private bool hasPublicClasses;
  108. private bool publicClasses_ = true;
  109. public bool HasPublicClasses {
  110. get { return hasPublicClasses; }
  111. }
  112. public bool PublicClasses {
  113. get { return publicClasses_; }
  114. }
  115. public const int MultipleFilesFieldNumber = 4;
  116. private bool hasMultipleFiles;
  117. private bool multipleFiles_ = false;
  118. public bool HasMultipleFiles {
  119. get { return hasMultipleFiles; }
  120. }
  121. public bool MultipleFiles {
  122. get { return multipleFiles_; }
  123. }
  124. public const int NestClassesFieldNumber = 5;
  125. private bool hasNestClasses;
  126. private bool nestClasses_ = false;
  127. public bool HasNestClasses {
  128. get { return hasNestClasses; }
  129. }
  130. public bool NestClasses {
  131. get { return nestClasses_; }
  132. }
  133. public const int CodeContractsFieldNumber = 6;
  134. private bool hasCodeContracts;
  135. private bool codeContracts_ = false;
  136. public bool HasCodeContracts {
  137. get { return hasCodeContracts; }
  138. }
  139. public bool CodeContracts {
  140. get { return codeContracts_; }
  141. }
  142. public const int ExpandNamespaceDirectoriesFieldNumber = 7;
  143. private bool hasExpandNamespaceDirectories;
  144. private bool expandNamespaceDirectories_ = false;
  145. public bool HasExpandNamespaceDirectories {
  146. get { return hasExpandNamespaceDirectories; }
  147. }
  148. public bool ExpandNamespaceDirectories {
  149. get { return expandNamespaceDirectories_; }
  150. }
  151. public const int ClsComplianceFieldNumber = 8;
  152. private bool hasClsCompliance;
  153. private bool clsCompliance_ = true;
  154. public bool HasClsCompliance {
  155. get { return hasClsCompliance; }
  156. }
  157. public bool ClsCompliance {
  158. get { return clsCompliance_; }
  159. }
  160. public const int FileExtensionFieldNumber = 221;
  161. private bool hasFileExtension;
  162. private string fileExtension_ = ".cs";
  163. public bool HasFileExtension {
  164. get { return hasFileExtension; }
  165. }
  166. public string FileExtension {
  167. get { return fileExtension_; }
  168. }
  169. public const int UmbrellaNamespaceFieldNumber = 222;
  170. private bool hasUmbrellaNamespace;
  171. private string umbrellaNamespace_ = "";
  172. public bool HasUmbrellaNamespace {
  173. get { return hasUmbrellaNamespace; }
  174. }
  175. public string UmbrellaNamespace {
  176. get { return umbrellaNamespace_; }
  177. }
  178. public const int OutputDirectoryFieldNumber = 223;
  179. private bool hasOutputDirectory;
  180. private string outputDirectory_ = ".";
  181. public bool HasOutputDirectory {
  182. get { return hasOutputDirectory; }
  183. }
  184. public string OutputDirectory {
  185. get { return outputDirectory_; }
  186. }
  187. public const int IgnoreGoogleProtobufFieldNumber = 224;
  188. private bool hasIgnoreGoogleProtobuf;
  189. private bool ignoreGoogleProtobuf_ = false;
  190. public bool HasIgnoreGoogleProtobuf {
  191. get { return hasIgnoreGoogleProtobuf; }
  192. }
  193. public bool IgnoreGoogleProtobuf {
  194. get { return ignoreGoogleProtobuf_; }
  195. }
  196. public override bool IsInitialized {
  197. get {
  198. return true;
  199. }
  200. }
  201. public override void WriteTo(pb::CodedOutputStream output) {
  202. int size = SerializedSize;
  203. if (HasNamespace) {
  204. output.WriteString(1, Namespace);
  205. }
  206. if (HasUmbrellaClassname) {
  207. output.WriteString(2, UmbrellaClassname);
  208. }
  209. if (HasPublicClasses) {
  210. output.WriteBool(3, PublicClasses);
  211. }
  212. if (HasMultipleFiles) {
  213. output.WriteBool(4, MultipleFiles);
  214. }
  215. if (HasNestClasses) {
  216. output.WriteBool(5, NestClasses);
  217. }
  218. if (HasCodeContracts) {
  219. output.WriteBool(6, CodeContracts);
  220. }
  221. if (HasExpandNamespaceDirectories) {
  222. output.WriteBool(7, ExpandNamespaceDirectories);
  223. }
  224. if (HasClsCompliance) {
  225. output.WriteBool(8, ClsCompliance);
  226. }
  227. if (HasFileExtension) {
  228. output.WriteString(221, FileExtension);
  229. }
  230. if (HasUmbrellaNamespace) {
  231. output.WriteString(222, UmbrellaNamespace);
  232. }
  233. if (HasOutputDirectory) {
  234. output.WriteString(223, OutputDirectory);
  235. }
  236. if (HasIgnoreGoogleProtobuf) {
  237. output.WriteBool(224, IgnoreGoogleProtobuf);
  238. }
  239. UnknownFields.WriteTo(output);
  240. }
  241. private int memoizedSerializedSize = -1;
  242. public override int SerializedSize {
  243. get {
  244. int size = memoizedSerializedSize;
  245. if (size != -1) return size;
  246. size = 0;
  247. if (HasNamespace) {
  248. size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
  249. }
  250. if (HasUmbrellaClassname) {
  251. size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
  252. }
  253. if (HasPublicClasses) {
  254. size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
  255. }
  256. if (HasMultipleFiles) {
  257. size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
  258. }
  259. if (HasNestClasses) {
  260. size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
  261. }
  262. if (HasCodeContracts) {
  263. size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
  264. }
  265. if (HasExpandNamespaceDirectories) {
  266. size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
  267. }
  268. if (HasClsCompliance) {
  269. size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
  270. }
  271. if (HasFileExtension) {
  272. size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
  273. }
  274. if (HasUmbrellaNamespace) {
  275. size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
  276. }
  277. if (HasOutputDirectory) {
  278. size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
  279. }
  280. if (HasIgnoreGoogleProtobuf) {
  281. size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
  282. }
  283. size += UnknownFields.SerializedSize;
  284. memoizedSerializedSize = size;
  285. return size;
  286. }
  287. }
  288. public static CSharpFileOptions ParseFrom(pb::ByteString data) {
  289. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  290. }
  291. public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  292. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  293. }
  294. public static CSharpFileOptions ParseFrom(byte[] data) {
  295. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  296. }
  297. public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  298. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  299. }
  300. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
  301. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  302. }
  303. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  304. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  305. }
  306. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  307. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  308. }
  309. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  310. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  311. }
  312. public static CSharpFileOptions ParseFrom(pb::CodedInputStream input) {
  313. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  314. }
  315. public static CSharpFileOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  316. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  317. }
  318. public static Builder CreateBuilder() { return new Builder(); }
  319. public override Builder ToBuilder() { return CreateBuilder(this); }
  320. public override Builder CreateBuilderForType() { return new Builder(); }
  321. public static Builder CreateBuilder(CSharpFileOptions prototype) {
  322. return (Builder) new Builder().MergeFrom(prototype);
  323. }
  324. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
  325. protected override Builder ThisBuilder {
  326. get { return this; }
  327. }
  328. public Builder() {}
  329. CSharpFileOptions result = new CSharpFileOptions();
  330. protected override CSharpFileOptions MessageBeingBuilt {
  331. get { return result; }
  332. }
  333. public override Builder Clear() {
  334. result = new CSharpFileOptions();
  335. return this;
  336. }
  337. public override Builder Clone() {
  338. return new Builder().MergeFrom(result);
  339. }
  340. public override pbd::MessageDescriptor DescriptorForType {
  341. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
  342. }
  343. public override CSharpFileOptions DefaultInstanceForType {
  344. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
  345. }
  346. public override CSharpFileOptions BuildPartial() {
  347. if (result == null) {
  348. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  349. }
  350. CSharpFileOptions returnMe = result;
  351. result = null;
  352. return returnMe;
  353. }
  354. public override Builder MergeFrom(pb::IMessage other) {
  355. if (other is CSharpFileOptions) {
  356. return MergeFrom((CSharpFileOptions) other);
  357. } else {
  358. base.MergeFrom(other);
  359. return this;
  360. }
  361. }
  362. public override Builder MergeFrom(CSharpFileOptions other) {
  363. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
  364. if (other.HasNamespace) {
  365. Namespace = other.Namespace;
  366. }
  367. if (other.HasUmbrellaClassname) {
  368. UmbrellaClassname = other.UmbrellaClassname;
  369. }
  370. if (other.HasPublicClasses) {
  371. PublicClasses = other.PublicClasses;
  372. }
  373. if (other.HasMultipleFiles) {
  374. MultipleFiles = other.MultipleFiles;
  375. }
  376. if (other.HasNestClasses) {
  377. NestClasses = other.NestClasses;
  378. }
  379. if (other.HasCodeContracts) {
  380. CodeContracts = other.CodeContracts;
  381. }
  382. if (other.HasExpandNamespaceDirectories) {
  383. ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
  384. }
  385. if (other.HasClsCompliance) {
  386. ClsCompliance = other.ClsCompliance;
  387. }
  388. if (other.HasFileExtension) {
  389. FileExtension = other.FileExtension;
  390. }
  391. if (other.HasUmbrellaNamespace) {
  392. UmbrellaNamespace = other.UmbrellaNamespace;
  393. }
  394. if (other.HasOutputDirectory) {
  395. OutputDirectory = other.OutputDirectory;
  396. }
  397. if (other.HasIgnoreGoogleProtobuf) {
  398. IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
  399. }
  400. this.MergeUnknownFields(other.UnknownFields);
  401. return this;
  402. }
  403. public override Builder MergeFrom(pb::CodedInputStream input) {
  404. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  405. }
  406. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  407. pb::UnknownFieldSet.Builder unknownFields = null;
  408. while (true) {
  409. uint tag = input.ReadTag();
  410. switch (tag) {
  411. case 0: {
  412. if (unknownFields != null) {
  413. this.UnknownFields = unknownFields.Build();
  414. }
  415. return this;
  416. }
  417. default: {
  418. if (pb::WireFormat.IsEndGroupTag(tag)) {
  419. if (unknownFields != null) {
  420. this.UnknownFields = unknownFields.Build();
  421. }
  422. return this;
  423. }
  424. if (unknownFields == null) {
  425. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  426. }
  427. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  428. break;
  429. }
  430. case 10: {
  431. Namespace = input.ReadString();
  432. break;
  433. }
  434. case 18: {
  435. UmbrellaClassname = input.ReadString();
  436. break;
  437. }
  438. case 24: {
  439. PublicClasses = input.ReadBool();
  440. break;
  441. }
  442. case 32: {
  443. MultipleFiles = input.ReadBool();
  444. break;
  445. }
  446. case 40: {
  447. NestClasses = input.ReadBool();
  448. break;
  449. }
  450. case 48: {
  451. CodeContracts = input.ReadBool();
  452. break;
  453. }
  454. case 56: {
  455. ExpandNamespaceDirectories = input.ReadBool();
  456. break;
  457. }
  458. case 64: {
  459. ClsCompliance = input.ReadBool();
  460. break;
  461. }
  462. case 1770: {
  463. FileExtension = input.ReadString();
  464. break;
  465. }
  466. case 1778: {
  467. UmbrellaNamespace = input.ReadString();
  468. break;
  469. }
  470. case 1786: {
  471. OutputDirectory = input.ReadString();
  472. break;
  473. }
  474. case 1792: {
  475. IgnoreGoogleProtobuf = input.ReadBool();
  476. break;
  477. }
  478. }
  479. }
  480. }
  481. public bool HasNamespace {
  482. get { return result.HasNamespace; }
  483. }
  484. public string Namespace {
  485. get { return result.Namespace; }
  486. set { SetNamespace(value); }
  487. }
  488. public Builder SetNamespace(string value) {
  489. pb::ThrowHelper.ThrowIfNull(value, "value");
  490. result.hasNamespace = true;
  491. result.namespace_ = value;
  492. return this;
  493. }
  494. public Builder ClearNamespace() {
  495. result.hasNamespace = false;
  496. result.namespace_ = "";
  497. return this;
  498. }
  499. public bool HasUmbrellaClassname {
  500. get { return result.HasUmbrellaClassname; }
  501. }
  502. public string UmbrellaClassname {
  503. get { return result.UmbrellaClassname; }
  504. set { SetUmbrellaClassname(value); }
  505. }
  506. public Builder SetUmbrellaClassname(string value) {
  507. pb::ThrowHelper.ThrowIfNull(value, "value");
  508. result.hasUmbrellaClassname = true;
  509. result.umbrellaClassname_ = value;
  510. return this;
  511. }
  512. public Builder ClearUmbrellaClassname() {
  513. result.hasUmbrellaClassname = false;
  514. result.umbrellaClassname_ = "";
  515. return this;
  516. }
  517. public bool HasPublicClasses {
  518. get { return result.HasPublicClasses; }
  519. }
  520. public bool PublicClasses {
  521. get { return result.PublicClasses; }
  522. set { SetPublicClasses(value); }
  523. }
  524. public Builder SetPublicClasses(bool value) {
  525. result.hasPublicClasses = true;
  526. result.publicClasses_ = value;
  527. return this;
  528. }
  529. public Builder ClearPublicClasses() {
  530. result.hasPublicClasses = false;
  531. result.publicClasses_ = true;
  532. return this;
  533. }
  534. public bool HasMultipleFiles {
  535. get { return result.HasMultipleFiles; }
  536. }
  537. public bool MultipleFiles {
  538. get { return result.MultipleFiles; }
  539. set { SetMultipleFiles(value); }
  540. }
  541. public Builder SetMultipleFiles(bool value) {
  542. result.hasMultipleFiles = true;
  543. result.multipleFiles_ = value;
  544. return this;
  545. }
  546. public Builder ClearMultipleFiles() {
  547. result.hasMultipleFiles = false;
  548. result.multipleFiles_ = false;
  549. return this;
  550. }
  551. public bool HasNestClasses {
  552. get { return result.HasNestClasses; }
  553. }
  554. public bool NestClasses {
  555. get { return result.NestClasses; }
  556. set { SetNestClasses(value); }
  557. }
  558. public Builder SetNestClasses(bool value) {
  559. result.hasNestClasses = true;
  560. result.nestClasses_ = value;
  561. return this;
  562. }
  563. public Builder ClearNestClasses() {
  564. result.hasNestClasses = false;
  565. result.nestClasses_ = false;
  566. return this;
  567. }
  568. public bool HasCodeContracts {
  569. get { return result.HasCodeContracts; }
  570. }
  571. public bool CodeContracts {
  572. get { return result.CodeContracts; }
  573. set { SetCodeContracts(value); }
  574. }
  575. public Builder SetCodeContracts(bool value) {
  576. result.hasCodeContracts = true;
  577. result.codeContracts_ = value;
  578. return this;
  579. }
  580. public Builder ClearCodeContracts() {
  581. result.hasCodeContracts = false;
  582. result.codeContracts_ = false;
  583. return this;
  584. }
  585. public bool HasExpandNamespaceDirectories {
  586. get { return result.HasExpandNamespaceDirectories; }
  587. }
  588. public bool ExpandNamespaceDirectories {
  589. get { return result.ExpandNamespaceDirectories; }
  590. set { SetExpandNamespaceDirectories(value); }
  591. }
  592. public Builder SetExpandNamespaceDirectories(bool value) {
  593. result.hasExpandNamespaceDirectories = true;
  594. result.expandNamespaceDirectories_ = value;
  595. return this;
  596. }
  597. public Builder ClearExpandNamespaceDirectories() {
  598. result.hasExpandNamespaceDirectories = false;
  599. result.expandNamespaceDirectories_ = false;
  600. return this;
  601. }
  602. public bool HasClsCompliance {
  603. get { return result.HasClsCompliance; }
  604. }
  605. public bool ClsCompliance {
  606. get { return result.ClsCompliance; }
  607. set { SetClsCompliance(value); }
  608. }
  609. public Builder SetClsCompliance(bool value) {
  610. result.hasClsCompliance = true;
  611. result.clsCompliance_ = value;
  612. return this;
  613. }
  614. public Builder ClearClsCompliance() {
  615. result.hasClsCompliance = false;
  616. result.clsCompliance_ = true;
  617. return this;
  618. }
  619. public bool HasFileExtension {
  620. get { return result.HasFileExtension; }
  621. }
  622. public string FileExtension {
  623. get { return result.FileExtension; }
  624. set { SetFileExtension(value); }
  625. }
  626. public Builder SetFileExtension(string value) {
  627. pb::ThrowHelper.ThrowIfNull(value, "value");
  628. result.hasFileExtension = true;
  629. result.fileExtension_ = value;
  630. return this;
  631. }
  632. public Builder ClearFileExtension() {
  633. result.hasFileExtension = false;
  634. result.fileExtension_ = ".cs";
  635. return this;
  636. }
  637. public bool HasUmbrellaNamespace {
  638. get { return result.HasUmbrellaNamespace; }
  639. }
  640. public string UmbrellaNamespace {
  641. get { return result.UmbrellaNamespace; }
  642. set { SetUmbrellaNamespace(value); }
  643. }
  644. public Builder SetUmbrellaNamespace(string value) {
  645. pb::ThrowHelper.ThrowIfNull(value, "value");
  646. result.hasUmbrellaNamespace = true;
  647. result.umbrellaNamespace_ = value;
  648. return this;
  649. }
  650. public Builder ClearUmbrellaNamespace() {
  651. result.hasUmbrellaNamespace = false;
  652. result.umbrellaNamespace_ = "";
  653. return this;
  654. }
  655. public bool HasOutputDirectory {
  656. get { return result.HasOutputDirectory; }
  657. }
  658. public string OutputDirectory {
  659. get { return result.OutputDirectory; }
  660. set { SetOutputDirectory(value); }
  661. }
  662. public Builder SetOutputDirectory(string value) {
  663. pb::ThrowHelper.ThrowIfNull(value, "value");
  664. result.hasOutputDirectory = true;
  665. result.outputDirectory_ = value;
  666. return this;
  667. }
  668. public Builder ClearOutputDirectory() {
  669. result.hasOutputDirectory = false;
  670. result.outputDirectory_ = ".";
  671. return this;
  672. }
  673. public bool HasIgnoreGoogleProtobuf {
  674. get { return result.HasIgnoreGoogleProtobuf; }
  675. }
  676. public bool IgnoreGoogleProtobuf {
  677. get { return result.IgnoreGoogleProtobuf; }
  678. set { SetIgnoreGoogleProtobuf(value); }
  679. }
  680. public Builder SetIgnoreGoogleProtobuf(bool value) {
  681. result.hasIgnoreGoogleProtobuf = true;
  682. result.ignoreGoogleProtobuf_ = value;
  683. return this;
  684. }
  685. public Builder ClearIgnoreGoogleProtobuf() {
  686. result.hasIgnoreGoogleProtobuf = false;
  687. result.ignoreGoogleProtobuf_ = false;
  688. return this;
  689. }
  690. }
  691. static CSharpFileOptions() {
  692. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  693. }
  694. }
  695. public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
  696. private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
  697. public static CSharpFieldOptions DefaultInstance {
  698. get { return defaultInstance; }
  699. }
  700. public override CSharpFieldOptions DefaultInstanceForType {
  701. get { return defaultInstance; }
  702. }
  703. protected override CSharpFieldOptions ThisMessage {
  704. get { return this; }
  705. }
  706. public static pbd::MessageDescriptor Descriptor {
  707. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
  708. }
  709. protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
  710. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
  711. }
  712. public const int PropertyNameFieldNumber = 1;
  713. private bool hasPropertyName;
  714. private string propertyName_ = "";
  715. public bool HasPropertyName {
  716. get { return hasPropertyName; }
  717. }
  718. public string PropertyName {
  719. get { return propertyName_; }
  720. }
  721. public override bool IsInitialized {
  722. get {
  723. return true;
  724. }
  725. }
  726. public override void WriteTo(pb::CodedOutputStream output) {
  727. int size = SerializedSize;
  728. if (HasPropertyName) {
  729. output.WriteString(1, PropertyName);
  730. }
  731. UnknownFields.WriteTo(output);
  732. }
  733. private int memoizedSerializedSize = -1;
  734. public override int SerializedSize {
  735. get {
  736. int size = memoizedSerializedSize;
  737. if (size != -1) return size;
  738. size = 0;
  739. if (HasPropertyName) {
  740. size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
  741. }
  742. size += UnknownFields.SerializedSize;
  743. memoizedSerializedSize = size;
  744. return size;
  745. }
  746. }
  747. public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
  748. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  749. }
  750. public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  751. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  752. }
  753. public static CSharpFieldOptions ParseFrom(byte[] data) {
  754. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  755. }
  756. public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  757. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  758. }
  759. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
  760. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  761. }
  762. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  763. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  764. }
  765. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  766. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  767. }
  768. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  769. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  770. }
  771. public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input) {
  772. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  773. }
  774. public static CSharpFieldOptions ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  775. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  776. }
  777. public static Builder CreateBuilder() { return new Builder(); }
  778. public override Builder ToBuilder() { return CreateBuilder(this); }
  779. public override Builder CreateBuilderForType() { return new Builder(); }
  780. public static Builder CreateBuilder(CSharpFieldOptions prototype) {
  781. return (Builder) new Builder().MergeFrom(prototype);
  782. }
  783. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
  784. protected override Builder ThisBuilder {
  785. get { return this; }
  786. }
  787. public Builder() {}
  788. CSharpFieldOptions result = new CSharpFieldOptions();
  789. protected override CSharpFieldOptions MessageBeingBuilt {
  790. get { return result; }
  791. }
  792. public override Builder Clear() {
  793. result = new CSharpFieldOptions();
  794. return this;
  795. }
  796. public override Builder Clone() {
  797. return new Builder().MergeFrom(result);
  798. }
  799. public override pbd::MessageDescriptor DescriptorForType {
  800. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
  801. }
  802. public override CSharpFieldOptions DefaultInstanceForType {
  803. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
  804. }
  805. public override CSharpFieldOptions BuildPartial() {
  806. if (result == null) {
  807. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  808. }
  809. CSharpFieldOptions returnMe = result;
  810. result = null;
  811. return returnMe;
  812. }
  813. public override Builder MergeFrom(pb::IMessage other) {
  814. if (other is CSharpFieldOptions) {
  815. return MergeFrom((CSharpFieldOptions) other);
  816. } else {
  817. base.MergeFrom(other);
  818. return this;
  819. }
  820. }
  821. public override Builder MergeFrom(CSharpFieldOptions other) {
  822. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
  823. if (other.HasPropertyName) {
  824. PropertyName = other.PropertyName;
  825. }
  826. this.MergeUnknownFields(other.UnknownFields);
  827. return this;
  828. }
  829. public override Builder MergeFrom(pb::CodedInputStream input) {
  830. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  831. }
  832. public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  833. pb::UnknownFieldSet.Builder unknownFields = null;
  834. while (true) {
  835. uint tag = input.ReadTag();
  836. switch (tag) {
  837. case 0: {
  838. if (unknownFields != null) {
  839. this.UnknownFields = unknownFields.Build();
  840. }
  841. return this;
  842. }
  843. default: {
  844. if (pb::WireFormat.IsEndGroupTag(tag)) {
  845. if (unknownFields != null) {
  846. this.UnknownFields = unknownFields.Build();
  847. }
  848. return this;
  849. }
  850. if (unknownFields == null) {
  851. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  852. }
  853. ParseUnknownField(input, unknownFields, extensionRegistry, tag);
  854. break;
  855. }
  856. case 10: {
  857. PropertyName = input.ReadString();
  858. break;
  859. }
  860. }
  861. }
  862. }
  863. public bool HasPropertyName {
  864. get { return result.HasPropertyName; }
  865. }
  866. public string PropertyName {
  867. get { return result.PropertyName; }
  868. set { SetPropertyName(value); }
  869. }
  870. public Builder SetPropertyName(string value) {
  871. pb::ThrowHelper.ThrowIfNull(value, "value");
  872. result.hasPropertyName = true;
  873. result.propertyName_ = value;
  874. return this;
  875. }
  876. public Builder ClearPropertyName() {
  877. result.hasPropertyName = false;
  878. result.propertyName_ = "";
  879. return this;
  880. }
  881. }
  882. static CSharpFieldOptions() {
  883. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  884. }
  885. }
  886. #endregion
  887. }