CSharpOptions.cs 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783
  1. // Generated by ProtoGen, Version=2.3.0.277, 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.3.0.277")]
  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. "1wMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
  51. "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
  52. "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
  53. "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
  54. "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
  55. "CCABKAg6BHRydWUSHwoQYWRkX3NlcmlhbGl6YWJsZRgJIAEoCDoFZmFsc2US" +
  56. "HAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoSdW1icmVsbGFfbmFt" +
  57. "ZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5GN8BIAEoCToBLhIm" +
  58. "ChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoFZmFsc2USSQoWc2Vy" +
  59. "dmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29nbGUucHJvdG9idWYu" +
  60. "Q1NoYXJwU2VydmljZVR5cGU6BE5PTkUiKwoSQ1NoYXJwRmllbGRPcHRpb25z" +
  61. "EhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1NoYXJwU2VydmljZU9wdGlv" +
  62. "bnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NTaGFycE1ldGhvZE9wdGlv" +
  63. "bnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqSwoRQ1NoYXJwU2VydmljZVR5cGUS" +
  64. "CAoETk9ORRAAEgsKB0dFTkVSSUMQARINCglJTlRFUkZBQ0UQAhIQCgxJUlBD" +
  65. "RElTUEFUQ0gQAzpeChNjc2hhcnBfZmlsZV9vcHRpb25zEhwuZ29vZ2xlLnBy" +
  66. "b3RvYnVmLkZpbGVPcHRpb25zGOgHIAEoCzIiLmdvb2dsZS5wcm90b2J1Zi5D" +
  67. "U2hhcnBGaWxlT3B0aW9uczphChRjc2hhcnBfZmllbGRfb3B0aW9ucxIdLmdv" +
  68. "b2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6AcgASgLMiMuZ29vZ2xlLnBy" +
  69. "b3RvYnVmLkNTaGFycEZpZWxkT3B0aW9uczpnChZjc2hhcnBfc2VydmljZV9v" +
  70. "cHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VPcHRpb25zGOgHIAEo" +
  71. "CzIlLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBTZXJ2aWNlT3B0aW9uczpkChVj" +
  72. "c2hhcnBfbWV0aG9kX29wdGlvbnMSHi5nb29nbGUucHJvdG9idWYuTWV0aG9k" +
  73. "T3B0aW9ucxjoByABKAsyJC5nb29nbGUucHJvdG9idWYuQ1NoYXJwTWV0aG9k" +
  74. "T3B0aW9ucw==");
  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", "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.3.0.277")]
  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.3.0.277")]
  120. public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
  121. private CSharpFileOptions() { }
  122. private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
  123. private static readonly string[] _cSharpFileOptionsFieldNames = new string[] { "add_serializable", "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" };
  124. private static readonly uint[] _cSharpFileOptionsFieldTags = new uint[] { 72, 64, 48, 56, 1770, 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 FileExtensionFieldNumber = 221;
  222. private bool hasFileExtension;
  223. private string fileExtension_ = ".cs";
  224. public bool HasFileExtension {
  225. get { return hasFileExtension; }
  226. }
  227. public string FileExtension {
  228. get { return fileExtension_; }
  229. }
  230. public const int UmbrellaNamespaceFieldNumber = 222;
  231. private bool hasUmbrellaNamespace;
  232. private string umbrellaNamespace_ = "";
  233. public bool HasUmbrellaNamespace {
  234. get { return hasUmbrellaNamespace; }
  235. }
  236. public string UmbrellaNamespace {
  237. get { return umbrellaNamespace_; }
  238. }
  239. public const int OutputDirectoryFieldNumber = 223;
  240. private bool hasOutputDirectory;
  241. private string outputDirectory_ = ".";
  242. public bool HasOutputDirectory {
  243. get { return hasOutputDirectory; }
  244. }
  245. public string OutputDirectory {
  246. get { return outputDirectory_; }
  247. }
  248. public const int IgnoreGoogleProtobufFieldNumber = 224;
  249. private bool hasIgnoreGoogleProtobuf;
  250. private bool ignoreGoogleProtobuf_;
  251. public bool HasIgnoreGoogleProtobuf {
  252. get { return hasIgnoreGoogleProtobuf; }
  253. }
  254. public bool IgnoreGoogleProtobuf {
  255. get { return ignoreGoogleProtobuf_; }
  256. }
  257. public const int ServiceGeneratorTypeFieldNumber = 225;
  258. private bool hasServiceGeneratorType;
  259. private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
  260. public bool HasServiceGeneratorType {
  261. get { return hasServiceGeneratorType; }
  262. }
  263. public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
  264. get { return serviceGeneratorType_; }
  265. }
  266. public override bool IsInitialized {
  267. get {
  268. return true;
  269. }
  270. }
  271. public override void WriteTo(pb::ICodedOutputStream output) {
  272. int size = SerializedSize;
  273. string[] field_names = _cSharpFileOptionsFieldNames;
  274. if (hasNamespace) {
  275. output.WriteString(1, field_names[7], Namespace);
  276. }
  277. if (hasUmbrellaClassname) {
  278. output.WriteString(2, field_names[12], UmbrellaClassname);
  279. }
  280. if (hasPublicClasses) {
  281. output.WriteBool(3, field_names[10], PublicClasses);
  282. }
  283. if (hasMultipleFiles) {
  284. output.WriteBool(4, field_names[6], MultipleFiles);
  285. }
  286. if (hasNestClasses) {
  287. output.WriteBool(5, field_names[8], NestClasses);
  288. }
  289. if (hasCodeContracts) {
  290. output.WriteBool(6, field_names[2], CodeContracts);
  291. }
  292. if (hasExpandNamespaceDirectories) {
  293. output.WriteBool(7, field_names[3], ExpandNamespaceDirectories);
  294. }
  295. if (hasClsCompliance) {
  296. output.WriteBool(8, field_names[1], ClsCompliance);
  297. }
  298. if (hasAddSerializable) {
  299. output.WriteBool(9, field_names[0], AddSerializable);
  300. }
  301. if (hasFileExtension) {
  302. output.WriteString(221, field_names[4], FileExtension);
  303. }
  304. if (hasUmbrellaNamespace) {
  305. output.WriteString(222, field_names[13], UmbrellaNamespace);
  306. }
  307. if (hasOutputDirectory) {
  308. output.WriteString(223, field_names[9], OutputDirectory);
  309. }
  310. if (hasIgnoreGoogleProtobuf) {
  311. output.WriteBool(224, field_names[5], IgnoreGoogleProtobuf);
  312. }
  313. if (hasServiceGeneratorType) {
  314. output.WriteEnum(225, field_names[11], (int) ServiceGeneratorType, ServiceGeneratorType);
  315. }
  316. UnknownFields.WriteTo(output);
  317. }
  318. private int memoizedSerializedSize = -1;
  319. public override int SerializedSize {
  320. get {
  321. int size = memoizedSerializedSize;
  322. if (size != -1) return size;
  323. size = 0;
  324. if (hasNamespace) {
  325. size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
  326. }
  327. if (hasUmbrellaClassname) {
  328. size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
  329. }
  330. if (hasPublicClasses) {
  331. size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
  332. }
  333. if (hasMultipleFiles) {
  334. size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
  335. }
  336. if (hasNestClasses) {
  337. size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
  338. }
  339. if (hasCodeContracts) {
  340. size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
  341. }
  342. if (hasExpandNamespaceDirectories) {
  343. size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
  344. }
  345. if (hasClsCompliance) {
  346. size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
  347. }
  348. if (hasAddSerializable) {
  349. size += pb::CodedOutputStream.ComputeBoolSize(9, AddSerializable);
  350. }
  351. if (hasFileExtension) {
  352. size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
  353. }
  354. if (hasUmbrellaNamespace) {
  355. size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
  356. }
  357. if (hasOutputDirectory) {
  358. size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
  359. }
  360. if (hasIgnoreGoogleProtobuf) {
  361. size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
  362. }
  363. if (hasServiceGeneratorType) {
  364. size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
  365. }
  366. size += UnknownFields.SerializedSize;
  367. memoizedSerializedSize = size;
  368. return size;
  369. }
  370. }
  371. public static CSharpFileOptions ParseFrom(pb::ByteString data) {
  372. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  373. }
  374. public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  375. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  376. }
  377. public static CSharpFileOptions ParseFrom(byte[] data) {
  378. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  379. }
  380. public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  381. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  382. }
  383. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
  384. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  385. }
  386. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  387. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  388. }
  389. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  390. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  391. }
  392. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  393. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  394. }
  395. public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
  396. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  397. }
  398. public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  399. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  400. }
  401. public static Builder CreateBuilder() { return new Builder(); }
  402. public override Builder ToBuilder() { return CreateBuilder(this); }
  403. public override Builder CreateBuilderForType() { return new Builder(); }
  404. public static Builder CreateBuilder(CSharpFileOptions prototype) {
  405. return new Builder(prototype);
  406. }
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  408. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  409. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  410. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
  411. protected override Builder ThisBuilder {
  412. get { return this; }
  413. }
  414. public Builder() {
  415. result = DefaultInstance ?? new CSharpFileOptions();
  416. builderIsReadOnly = result == DefaultInstance;
  417. }
  418. internal Builder(CSharpFileOptions cloneFrom) {
  419. result = cloneFrom;
  420. builderIsReadOnly = true;
  421. }
  422. bool builderIsReadOnly;
  423. CSharpFileOptions result;
  424. private CSharpFileOptions PrepareBuilder() {
  425. if (builderIsReadOnly) {
  426. CSharpFileOptions original = result;
  427. result = new CSharpFileOptions();
  428. builderIsReadOnly = false;
  429. MergeFrom(original);
  430. }
  431. return result;
  432. }
  433. public override bool IsInitialized {
  434. get { return result.IsInitialized; }
  435. }
  436. protected override CSharpFileOptions MessageBeingBuilt {
  437. get { return PrepareBuilder(); }
  438. }
  439. public override Builder Clear() {
  440. result = DefaultInstance ?? new CSharpFileOptions();
  441. builderIsReadOnly = true;
  442. return this;
  443. }
  444. public override Builder Clone() {
  445. if (builderIsReadOnly) {
  446. return new Builder(result);
  447. } else {
  448. return new Builder().MergeFrom(result);
  449. }
  450. }
  451. public override pbd::MessageDescriptor DescriptorForType {
  452. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
  453. }
  454. public override CSharpFileOptions DefaultInstanceForType {
  455. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
  456. }
  457. public override CSharpFileOptions BuildPartial() {
  458. if (builderIsReadOnly) {
  459. return result;
  460. }
  461. builderIsReadOnly = true;
  462. return result;
  463. }
  464. public override Builder MergeFrom(pb::IMessage other) {
  465. if (other is CSharpFileOptions) {
  466. return MergeFrom((CSharpFileOptions) other);
  467. } else {
  468. base.MergeFrom(other);
  469. return this;
  470. }
  471. }
  472. public override Builder MergeFrom(CSharpFileOptions other) {
  473. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
  474. PrepareBuilder();
  475. if (other.HasNamespace) {
  476. Namespace = other.Namespace;
  477. }
  478. if (other.HasUmbrellaClassname) {
  479. UmbrellaClassname = other.UmbrellaClassname;
  480. }
  481. if (other.HasPublicClasses) {
  482. PublicClasses = other.PublicClasses;
  483. }
  484. if (other.HasMultipleFiles) {
  485. MultipleFiles = other.MultipleFiles;
  486. }
  487. if (other.HasNestClasses) {
  488. NestClasses = other.NestClasses;
  489. }
  490. if (other.HasCodeContracts) {
  491. CodeContracts = other.CodeContracts;
  492. }
  493. if (other.HasExpandNamespaceDirectories) {
  494. ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
  495. }
  496. if (other.HasClsCompliance) {
  497. ClsCompliance = other.ClsCompliance;
  498. }
  499. if (other.HasAddSerializable) {
  500. AddSerializable = other.AddSerializable;
  501. }
  502. if (other.HasFileExtension) {
  503. FileExtension = other.FileExtension;
  504. }
  505. if (other.HasUmbrellaNamespace) {
  506. UmbrellaNamespace = other.UmbrellaNamespace;
  507. }
  508. if (other.HasOutputDirectory) {
  509. OutputDirectory = other.OutputDirectory;
  510. }
  511. if (other.HasIgnoreGoogleProtobuf) {
  512. IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
  513. }
  514. if (other.HasServiceGeneratorType) {
  515. ServiceGeneratorType = other.ServiceGeneratorType;
  516. }
  517. this.MergeUnknownFields(other.UnknownFields);
  518. return this;
  519. }
  520. public override Builder MergeFrom(pb::ICodedInputStream input) {
  521. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  522. }
  523. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  524. PrepareBuilder();
  525. pb::UnknownFieldSet.Builder unknownFields = null;
  526. uint tag;
  527. string field_name;
  528. while (input.ReadTag(out tag, out field_name)) {
  529. if(tag == 0 && field_name != null) {
  530. int field_ordinal = global::System.Array.BinarySearch(_cSharpFileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  531. if(field_ordinal >= 0)
  532. tag = _cSharpFileOptionsFieldTags[field_ordinal];
  533. else {
  534. if (unknownFields == null) {
  535. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  536. }
  537. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  538. continue;
  539. }
  540. }
  541. switch (tag) {
  542. case 0: {
  543. throw pb::InvalidProtocolBufferException.InvalidTag();
  544. }
  545. default: {
  546. if (pb::WireFormat.IsEndGroupTag(tag)) {
  547. if (unknownFields != null) {
  548. this.UnknownFields = unknownFields.Build();
  549. }
  550. return this;
  551. }
  552. if (unknownFields == null) {
  553. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  554. }
  555. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  556. break;
  557. }
  558. case 10: {
  559. result.hasNamespace = input.ReadString(ref result.namespace_);
  560. break;
  561. }
  562. case 18: {
  563. result.hasUmbrellaClassname = input.ReadString(ref result.umbrellaClassname_);
  564. break;
  565. }
  566. case 24: {
  567. result.hasPublicClasses = input.ReadBool(ref result.publicClasses_);
  568. break;
  569. }
  570. case 32: {
  571. result.hasMultipleFiles = input.ReadBool(ref result.multipleFiles_);
  572. break;
  573. }
  574. case 40: {
  575. result.hasNestClasses = input.ReadBool(ref result.nestClasses_);
  576. break;
  577. }
  578. case 48: {
  579. result.hasCodeContracts = input.ReadBool(ref result.codeContracts_);
  580. break;
  581. }
  582. case 56: {
  583. result.hasExpandNamespaceDirectories = input.ReadBool(ref result.expandNamespaceDirectories_);
  584. break;
  585. }
  586. case 64: {
  587. result.hasClsCompliance = input.ReadBool(ref result.clsCompliance_);
  588. break;
  589. }
  590. case 72: {
  591. result.hasAddSerializable = input.ReadBool(ref result.addSerializable_);
  592. break;
  593. }
  594. case 1770: {
  595. result.hasFileExtension = input.ReadString(ref result.fileExtension_);
  596. break;
  597. }
  598. case 1778: {
  599. result.hasUmbrellaNamespace = input.ReadString(ref result.umbrellaNamespace_);
  600. break;
  601. }
  602. case 1786: {
  603. result.hasOutputDirectory = input.ReadString(ref result.outputDirectory_);
  604. break;
  605. }
  606. case 1792: {
  607. result.hasIgnoreGoogleProtobuf = input.ReadBool(ref result.ignoreGoogleProtobuf_);
  608. break;
  609. }
  610. case 1800: {
  611. object unknown;
  612. if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
  613. result.hasServiceGeneratorType = true;
  614. } else if(unknown is int) {
  615. if (unknownFields == null) {
  616. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  617. }
  618. unknownFields.MergeVarintField(225, (ulong)(int)unknown);
  619. }
  620. break;
  621. }
  622. }
  623. }
  624. if (unknownFields != null) {
  625. this.UnknownFields = unknownFields.Build();
  626. }
  627. return this;
  628. }
  629. public bool HasNamespace {
  630. get { return result.hasNamespace; }
  631. }
  632. public string Namespace {
  633. get { return result.Namespace; }
  634. set { SetNamespace(value); }
  635. }
  636. public Builder SetNamespace(string value) {
  637. pb::ThrowHelper.ThrowIfNull(value, "value");
  638. PrepareBuilder();
  639. result.hasNamespace = true;
  640. result.namespace_ = value;
  641. return this;
  642. }
  643. public Builder ClearNamespace() {
  644. PrepareBuilder();
  645. result.hasNamespace = false;
  646. result.namespace_ = "";
  647. return this;
  648. }
  649. public bool HasUmbrellaClassname {
  650. get { return result.hasUmbrellaClassname; }
  651. }
  652. public string UmbrellaClassname {
  653. get { return result.UmbrellaClassname; }
  654. set { SetUmbrellaClassname(value); }
  655. }
  656. public Builder SetUmbrellaClassname(string value) {
  657. pb::ThrowHelper.ThrowIfNull(value, "value");
  658. PrepareBuilder();
  659. result.hasUmbrellaClassname = true;
  660. result.umbrellaClassname_ = value;
  661. return this;
  662. }
  663. public Builder ClearUmbrellaClassname() {
  664. PrepareBuilder();
  665. result.hasUmbrellaClassname = false;
  666. result.umbrellaClassname_ = "";
  667. return this;
  668. }
  669. public bool HasPublicClasses {
  670. get { return result.hasPublicClasses; }
  671. }
  672. public bool PublicClasses {
  673. get { return result.PublicClasses; }
  674. set { SetPublicClasses(value); }
  675. }
  676. public Builder SetPublicClasses(bool value) {
  677. PrepareBuilder();
  678. result.hasPublicClasses = true;
  679. result.publicClasses_ = value;
  680. return this;
  681. }
  682. public Builder ClearPublicClasses() {
  683. PrepareBuilder();
  684. result.hasPublicClasses = false;
  685. result.publicClasses_ = true;
  686. return this;
  687. }
  688. public bool HasMultipleFiles {
  689. get { return result.hasMultipleFiles; }
  690. }
  691. public bool MultipleFiles {
  692. get { return result.MultipleFiles; }
  693. set { SetMultipleFiles(value); }
  694. }
  695. public Builder SetMultipleFiles(bool value) {
  696. PrepareBuilder();
  697. result.hasMultipleFiles = true;
  698. result.multipleFiles_ = value;
  699. return this;
  700. }
  701. public Builder ClearMultipleFiles() {
  702. PrepareBuilder();
  703. result.hasMultipleFiles = false;
  704. result.multipleFiles_ = false;
  705. return this;
  706. }
  707. public bool HasNestClasses {
  708. get { return result.hasNestClasses; }
  709. }
  710. public bool NestClasses {
  711. get { return result.NestClasses; }
  712. set { SetNestClasses(value); }
  713. }
  714. public Builder SetNestClasses(bool value) {
  715. PrepareBuilder();
  716. result.hasNestClasses = true;
  717. result.nestClasses_ = value;
  718. return this;
  719. }
  720. public Builder ClearNestClasses() {
  721. PrepareBuilder();
  722. result.hasNestClasses = false;
  723. result.nestClasses_ = false;
  724. return this;
  725. }
  726. public bool HasCodeContracts {
  727. get { return result.hasCodeContracts; }
  728. }
  729. public bool CodeContracts {
  730. get { return result.CodeContracts; }
  731. set { SetCodeContracts(value); }
  732. }
  733. public Builder SetCodeContracts(bool value) {
  734. PrepareBuilder();
  735. result.hasCodeContracts = true;
  736. result.codeContracts_ = value;
  737. return this;
  738. }
  739. public Builder ClearCodeContracts() {
  740. PrepareBuilder();
  741. result.hasCodeContracts = false;
  742. result.codeContracts_ = false;
  743. return this;
  744. }
  745. public bool HasExpandNamespaceDirectories {
  746. get { return result.hasExpandNamespaceDirectories; }
  747. }
  748. public bool ExpandNamespaceDirectories {
  749. get { return result.ExpandNamespaceDirectories; }
  750. set { SetExpandNamespaceDirectories(value); }
  751. }
  752. public Builder SetExpandNamespaceDirectories(bool value) {
  753. PrepareBuilder();
  754. result.hasExpandNamespaceDirectories = true;
  755. result.expandNamespaceDirectories_ = value;
  756. return this;
  757. }
  758. public Builder ClearExpandNamespaceDirectories() {
  759. PrepareBuilder();
  760. result.hasExpandNamespaceDirectories = false;
  761. result.expandNamespaceDirectories_ = false;
  762. return this;
  763. }
  764. public bool HasClsCompliance {
  765. get { return result.hasClsCompliance; }
  766. }
  767. public bool ClsCompliance {
  768. get { return result.ClsCompliance; }
  769. set { SetClsCompliance(value); }
  770. }
  771. public Builder SetClsCompliance(bool value) {
  772. PrepareBuilder();
  773. result.hasClsCompliance = true;
  774. result.clsCompliance_ = value;
  775. return this;
  776. }
  777. public Builder ClearClsCompliance() {
  778. PrepareBuilder();
  779. result.hasClsCompliance = false;
  780. result.clsCompliance_ = true;
  781. return this;
  782. }
  783. public bool HasAddSerializable {
  784. get { return result.hasAddSerializable; }
  785. }
  786. public bool AddSerializable {
  787. get { return result.AddSerializable; }
  788. set { SetAddSerializable(value); }
  789. }
  790. public Builder SetAddSerializable(bool value) {
  791. PrepareBuilder();
  792. result.hasAddSerializable = true;
  793. result.addSerializable_ = value;
  794. return this;
  795. }
  796. public Builder ClearAddSerializable() {
  797. PrepareBuilder();
  798. result.hasAddSerializable = false;
  799. result.addSerializable_ = false;
  800. return this;
  801. }
  802. public bool HasFileExtension {
  803. get { return result.hasFileExtension; }
  804. }
  805. public string FileExtension {
  806. get { return result.FileExtension; }
  807. set { SetFileExtension(value); }
  808. }
  809. public Builder SetFileExtension(string value) {
  810. pb::ThrowHelper.ThrowIfNull(value, "value");
  811. PrepareBuilder();
  812. result.hasFileExtension = true;
  813. result.fileExtension_ = value;
  814. return this;
  815. }
  816. public Builder ClearFileExtension() {
  817. PrepareBuilder();
  818. result.hasFileExtension = false;
  819. result.fileExtension_ = ".cs";
  820. return this;
  821. }
  822. public bool HasUmbrellaNamespace {
  823. get { return result.hasUmbrellaNamespace; }
  824. }
  825. public string UmbrellaNamespace {
  826. get { return result.UmbrellaNamespace; }
  827. set { SetUmbrellaNamespace(value); }
  828. }
  829. public Builder SetUmbrellaNamespace(string value) {
  830. pb::ThrowHelper.ThrowIfNull(value, "value");
  831. PrepareBuilder();
  832. result.hasUmbrellaNamespace = true;
  833. result.umbrellaNamespace_ = value;
  834. return this;
  835. }
  836. public Builder ClearUmbrellaNamespace() {
  837. PrepareBuilder();
  838. result.hasUmbrellaNamespace = false;
  839. result.umbrellaNamespace_ = "";
  840. return this;
  841. }
  842. public bool HasOutputDirectory {
  843. get { return result.hasOutputDirectory; }
  844. }
  845. public string OutputDirectory {
  846. get { return result.OutputDirectory; }
  847. set { SetOutputDirectory(value); }
  848. }
  849. public Builder SetOutputDirectory(string value) {
  850. pb::ThrowHelper.ThrowIfNull(value, "value");
  851. PrepareBuilder();
  852. result.hasOutputDirectory = true;
  853. result.outputDirectory_ = value;
  854. return this;
  855. }
  856. public Builder ClearOutputDirectory() {
  857. PrepareBuilder();
  858. result.hasOutputDirectory = false;
  859. result.outputDirectory_ = ".";
  860. return this;
  861. }
  862. public bool HasIgnoreGoogleProtobuf {
  863. get { return result.hasIgnoreGoogleProtobuf; }
  864. }
  865. public bool IgnoreGoogleProtobuf {
  866. get { return result.IgnoreGoogleProtobuf; }
  867. set { SetIgnoreGoogleProtobuf(value); }
  868. }
  869. public Builder SetIgnoreGoogleProtobuf(bool value) {
  870. PrepareBuilder();
  871. result.hasIgnoreGoogleProtobuf = true;
  872. result.ignoreGoogleProtobuf_ = value;
  873. return this;
  874. }
  875. public Builder ClearIgnoreGoogleProtobuf() {
  876. PrepareBuilder();
  877. result.hasIgnoreGoogleProtobuf = false;
  878. result.ignoreGoogleProtobuf_ = false;
  879. return this;
  880. }
  881. public bool HasServiceGeneratorType {
  882. get { return result.hasServiceGeneratorType; }
  883. }
  884. public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
  885. get { return result.ServiceGeneratorType; }
  886. set { SetServiceGeneratorType(value); }
  887. }
  888. public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
  889. PrepareBuilder();
  890. result.hasServiceGeneratorType = true;
  891. result.serviceGeneratorType_ = value;
  892. return this;
  893. }
  894. public Builder ClearServiceGeneratorType() {
  895. PrepareBuilder();
  896. result.hasServiceGeneratorType = false;
  897. result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
  898. return this;
  899. }
  900. }
  901. static CSharpFileOptions() {
  902. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  903. }
  904. }
  905. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  906. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  907. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  908. public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
  909. private CSharpFieldOptions() { }
  910. private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
  911. private static readonly string[] _cSharpFieldOptionsFieldNames = new string[] { "property_name" };
  912. private static readonly uint[] _cSharpFieldOptionsFieldTags = new uint[] { 10 };
  913. public static CSharpFieldOptions DefaultInstance {
  914. get { return defaultInstance; }
  915. }
  916. public override CSharpFieldOptions DefaultInstanceForType {
  917. get { return defaultInstance; }
  918. }
  919. protected override CSharpFieldOptions ThisMessage {
  920. get { return this; }
  921. }
  922. public static pbd::MessageDescriptor Descriptor {
  923. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
  924. }
  925. protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
  926. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
  927. }
  928. public const int PropertyNameFieldNumber = 1;
  929. private bool hasPropertyName;
  930. private string propertyName_ = "";
  931. public bool HasPropertyName {
  932. get { return hasPropertyName; }
  933. }
  934. public string PropertyName {
  935. get { return propertyName_; }
  936. }
  937. public override bool IsInitialized {
  938. get {
  939. return true;
  940. }
  941. }
  942. public override void WriteTo(pb::ICodedOutputStream output) {
  943. int size = SerializedSize;
  944. string[] field_names = _cSharpFieldOptionsFieldNames;
  945. if (hasPropertyName) {
  946. output.WriteString(1, field_names[0], PropertyName);
  947. }
  948. UnknownFields.WriteTo(output);
  949. }
  950. private int memoizedSerializedSize = -1;
  951. public override int SerializedSize {
  952. get {
  953. int size = memoizedSerializedSize;
  954. if (size != -1) return size;
  955. size = 0;
  956. if (hasPropertyName) {
  957. size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
  958. }
  959. size += UnknownFields.SerializedSize;
  960. memoizedSerializedSize = size;
  961. return size;
  962. }
  963. }
  964. public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
  965. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  966. }
  967. public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  968. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  969. }
  970. public static CSharpFieldOptions ParseFrom(byte[] data) {
  971. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  972. }
  973. public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  974. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  975. }
  976. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
  977. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  978. }
  979. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  980. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  981. }
  982. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  983. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  984. }
  985. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  986. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  987. }
  988. public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
  989. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  990. }
  991. public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  992. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  993. }
  994. public static Builder CreateBuilder() { return new Builder(); }
  995. public override Builder ToBuilder() { return CreateBuilder(this); }
  996. public override Builder CreateBuilderForType() { return new Builder(); }
  997. public static Builder CreateBuilder(CSharpFieldOptions prototype) {
  998. return new Builder(prototype);
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1001. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1002. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1003. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
  1004. protected override Builder ThisBuilder {
  1005. get { return this; }
  1006. }
  1007. public Builder() {
  1008. result = DefaultInstance ?? new CSharpFieldOptions();
  1009. builderIsReadOnly = result == DefaultInstance;
  1010. }
  1011. internal Builder(CSharpFieldOptions cloneFrom) {
  1012. result = cloneFrom;
  1013. builderIsReadOnly = true;
  1014. }
  1015. bool builderIsReadOnly;
  1016. CSharpFieldOptions result;
  1017. private CSharpFieldOptions PrepareBuilder() {
  1018. if (builderIsReadOnly) {
  1019. CSharpFieldOptions original = result;
  1020. result = new CSharpFieldOptions();
  1021. builderIsReadOnly = false;
  1022. MergeFrom(original);
  1023. }
  1024. return result;
  1025. }
  1026. public override bool IsInitialized {
  1027. get { return result.IsInitialized; }
  1028. }
  1029. protected override CSharpFieldOptions MessageBeingBuilt {
  1030. get { return PrepareBuilder(); }
  1031. }
  1032. public override Builder Clear() {
  1033. result = DefaultInstance ?? new CSharpFieldOptions();
  1034. builderIsReadOnly = true;
  1035. return this;
  1036. }
  1037. public override Builder Clone() {
  1038. if (builderIsReadOnly) {
  1039. return new Builder(result);
  1040. } else {
  1041. return new Builder().MergeFrom(result);
  1042. }
  1043. }
  1044. public override pbd::MessageDescriptor DescriptorForType {
  1045. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
  1046. }
  1047. public override CSharpFieldOptions DefaultInstanceForType {
  1048. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
  1049. }
  1050. public override CSharpFieldOptions BuildPartial() {
  1051. if (builderIsReadOnly) {
  1052. return result;
  1053. }
  1054. builderIsReadOnly = true;
  1055. return result;
  1056. }
  1057. public override Builder MergeFrom(pb::IMessage other) {
  1058. if (other is CSharpFieldOptions) {
  1059. return MergeFrom((CSharpFieldOptions) other);
  1060. } else {
  1061. base.MergeFrom(other);
  1062. return this;
  1063. }
  1064. }
  1065. public override Builder MergeFrom(CSharpFieldOptions other) {
  1066. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
  1067. PrepareBuilder();
  1068. if (other.HasPropertyName) {
  1069. PropertyName = other.PropertyName;
  1070. }
  1071. this.MergeUnknownFields(other.UnknownFields);
  1072. return this;
  1073. }
  1074. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1075. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1076. }
  1077. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1078. PrepareBuilder();
  1079. pb::UnknownFieldSet.Builder unknownFields = null;
  1080. uint tag;
  1081. string field_name;
  1082. while (input.ReadTag(out tag, out field_name)) {
  1083. if(tag == 0 && field_name != null) {
  1084. int field_ordinal = global::System.Array.BinarySearch(_cSharpFieldOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  1085. if(field_ordinal >= 0)
  1086. tag = _cSharpFieldOptionsFieldTags[field_ordinal];
  1087. else {
  1088. if (unknownFields == null) {
  1089. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1090. }
  1091. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1092. continue;
  1093. }
  1094. }
  1095. switch (tag) {
  1096. case 0: {
  1097. throw pb::InvalidProtocolBufferException.InvalidTag();
  1098. }
  1099. default: {
  1100. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1101. if (unknownFields != null) {
  1102. this.UnknownFields = unknownFields.Build();
  1103. }
  1104. return this;
  1105. }
  1106. if (unknownFields == null) {
  1107. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1108. }
  1109. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1110. break;
  1111. }
  1112. case 10: {
  1113. result.hasPropertyName = input.ReadString(ref result.propertyName_);
  1114. break;
  1115. }
  1116. }
  1117. }
  1118. if (unknownFields != null) {
  1119. this.UnknownFields = unknownFields.Build();
  1120. }
  1121. return this;
  1122. }
  1123. public bool HasPropertyName {
  1124. get { return result.hasPropertyName; }
  1125. }
  1126. public string PropertyName {
  1127. get { return result.PropertyName; }
  1128. set { SetPropertyName(value); }
  1129. }
  1130. public Builder SetPropertyName(string value) {
  1131. pb::ThrowHelper.ThrowIfNull(value, "value");
  1132. PrepareBuilder();
  1133. result.hasPropertyName = true;
  1134. result.propertyName_ = value;
  1135. return this;
  1136. }
  1137. public Builder ClearPropertyName() {
  1138. PrepareBuilder();
  1139. result.hasPropertyName = false;
  1140. result.propertyName_ = "";
  1141. return this;
  1142. }
  1143. }
  1144. static CSharpFieldOptions() {
  1145. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  1146. }
  1147. }
  1148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1149. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1151. public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
  1152. private CSharpServiceOptions() { }
  1153. private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
  1154. private static readonly string[] _cSharpServiceOptionsFieldNames = new string[] { "interface_id" };
  1155. private static readonly uint[] _cSharpServiceOptionsFieldTags = new uint[] { 10 };
  1156. public static CSharpServiceOptions DefaultInstance {
  1157. get { return defaultInstance; }
  1158. }
  1159. public override CSharpServiceOptions DefaultInstanceForType {
  1160. get { return defaultInstance; }
  1161. }
  1162. protected override CSharpServiceOptions ThisMessage {
  1163. get { return this; }
  1164. }
  1165. public static pbd::MessageDescriptor Descriptor {
  1166. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
  1167. }
  1168. protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
  1169. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
  1170. }
  1171. public const int InterfaceIdFieldNumber = 1;
  1172. private bool hasInterfaceId;
  1173. private string interfaceId_ = "";
  1174. public bool HasInterfaceId {
  1175. get { return hasInterfaceId; }
  1176. }
  1177. public string InterfaceId {
  1178. get { return interfaceId_; }
  1179. }
  1180. public override bool IsInitialized {
  1181. get {
  1182. return true;
  1183. }
  1184. }
  1185. public override void WriteTo(pb::ICodedOutputStream output) {
  1186. int size = SerializedSize;
  1187. string[] field_names = _cSharpServiceOptionsFieldNames;
  1188. if (hasInterfaceId) {
  1189. output.WriteString(1, field_names[0], InterfaceId);
  1190. }
  1191. UnknownFields.WriteTo(output);
  1192. }
  1193. private int memoizedSerializedSize = -1;
  1194. public override int SerializedSize {
  1195. get {
  1196. int size = memoizedSerializedSize;
  1197. if (size != -1) return size;
  1198. size = 0;
  1199. if (hasInterfaceId) {
  1200. size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
  1201. }
  1202. size += UnknownFields.SerializedSize;
  1203. memoizedSerializedSize = size;
  1204. return size;
  1205. }
  1206. }
  1207. public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
  1208. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1209. }
  1210. public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1211. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1212. }
  1213. public static CSharpServiceOptions ParseFrom(byte[] data) {
  1214. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1215. }
  1216. public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1217. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1218. }
  1219. public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
  1220. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1221. }
  1222. public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1223. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1224. }
  1225. public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  1226. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1227. }
  1228. public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1229. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1230. }
  1231. public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input) {
  1232. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1233. }
  1234. public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1235. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1236. }
  1237. public static Builder CreateBuilder() { return new Builder(); }
  1238. public override Builder ToBuilder() { return CreateBuilder(this); }
  1239. public override Builder CreateBuilderForType() { return new Builder(); }
  1240. public static Builder CreateBuilder(CSharpServiceOptions prototype) {
  1241. return new Builder(prototype);
  1242. }
  1243. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1244. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1246. public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
  1247. protected override Builder ThisBuilder {
  1248. get { return this; }
  1249. }
  1250. public Builder() {
  1251. result = DefaultInstance ?? new CSharpServiceOptions();
  1252. builderIsReadOnly = result == DefaultInstance;
  1253. }
  1254. internal Builder(CSharpServiceOptions cloneFrom) {
  1255. result = cloneFrom;
  1256. builderIsReadOnly = true;
  1257. }
  1258. bool builderIsReadOnly;
  1259. CSharpServiceOptions result;
  1260. private CSharpServiceOptions PrepareBuilder() {
  1261. if (builderIsReadOnly) {
  1262. CSharpServiceOptions original = result;
  1263. result = new CSharpServiceOptions();
  1264. builderIsReadOnly = false;
  1265. MergeFrom(original);
  1266. }
  1267. return result;
  1268. }
  1269. public override bool IsInitialized {
  1270. get { return result.IsInitialized; }
  1271. }
  1272. protected override CSharpServiceOptions MessageBeingBuilt {
  1273. get { return PrepareBuilder(); }
  1274. }
  1275. public override Builder Clear() {
  1276. result = DefaultInstance ?? new CSharpServiceOptions();
  1277. builderIsReadOnly = true;
  1278. return this;
  1279. }
  1280. public override Builder Clone() {
  1281. if (builderIsReadOnly) {
  1282. return new Builder(result);
  1283. } else {
  1284. return new Builder().MergeFrom(result);
  1285. }
  1286. }
  1287. public override pbd::MessageDescriptor DescriptorForType {
  1288. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
  1289. }
  1290. public override CSharpServiceOptions DefaultInstanceForType {
  1291. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
  1292. }
  1293. public override CSharpServiceOptions BuildPartial() {
  1294. if (builderIsReadOnly) {
  1295. return result;
  1296. }
  1297. builderIsReadOnly = true;
  1298. return result;
  1299. }
  1300. public override Builder MergeFrom(pb::IMessage other) {
  1301. if (other is CSharpServiceOptions) {
  1302. return MergeFrom((CSharpServiceOptions) other);
  1303. } else {
  1304. base.MergeFrom(other);
  1305. return this;
  1306. }
  1307. }
  1308. public override Builder MergeFrom(CSharpServiceOptions other) {
  1309. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
  1310. PrepareBuilder();
  1311. if (other.HasInterfaceId) {
  1312. InterfaceId = other.InterfaceId;
  1313. }
  1314. this.MergeUnknownFields(other.UnknownFields);
  1315. return this;
  1316. }
  1317. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1318. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1319. }
  1320. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1321. PrepareBuilder();
  1322. pb::UnknownFieldSet.Builder unknownFields = null;
  1323. uint tag;
  1324. string field_name;
  1325. while (input.ReadTag(out tag, out field_name)) {
  1326. if(tag == 0 && field_name != null) {
  1327. int field_ordinal = global::System.Array.BinarySearch(_cSharpServiceOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  1328. if(field_ordinal >= 0)
  1329. tag = _cSharpServiceOptionsFieldTags[field_ordinal];
  1330. else {
  1331. if (unknownFields == null) {
  1332. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1333. }
  1334. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1335. continue;
  1336. }
  1337. }
  1338. switch (tag) {
  1339. case 0: {
  1340. throw pb::InvalidProtocolBufferException.InvalidTag();
  1341. }
  1342. default: {
  1343. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1344. if (unknownFields != null) {
  1345. this.UnknownFields = unknownFields.Build();
  1346. }
  1347. return this;
  1348. }
  1349. if (unknownFields == null) {
  1350. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1351. }
  1352. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1353. break;
  1354. }
  1355. case 10: {
  1356. result.hasInterfaceId = input.ReadString(ref result.interfaceId_);
  1357. break;
  1358. }
  1359. }
  1360. }
  1361. if (unknownFields != null) {
  1362. this.UnknownFields = unknownFields.Build();
  1363. }
  1364. return this;
  1365. }
  1366. public bool HasInterfaceId {
  1367. get { return result.hasInterfaceId; }
  1368. }
  1369. public string InterfaceId {
  1370. get { return result.InterfaceId; }
  1371. set { SetInterfaceId(value); }
  1372. }
  1373. public Builder SetInterfaceId(string value) {
  1374. pb::ThrowHelper.ThrowIfNull(value, "value");
  1375. PrepareBuilder();
  1376. result.hasInterfaceId = true;
  1377. result.interfaceId_ = value;
  1378. return this;
  1379. }
  1380. public Builder ClearInterfaceId() {
  1381. PrepareBuilder();
  1382. result.hasInterfaceId = false;
  1383. result.interfaceId_ = "";
  1384. return this;
  1385. }
  1386. }
  1387. static CSharpServiceOptions() {
  1388. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  1389. }
  1390. }
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1392. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1394. public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
  1395. private CSharpMethodOptions() { }
  1396. private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
  1397. private static readonly string[] _cSharpMethodOptionsFieldNames = new string[] { "dispatch_id" };
  1398. private static readonly uint[] _cSharpMethodOptionsFieldTags = new uint[] { 8 };
  1399. public static CSharpMethodOptions DefaultInstance {
  1400. get { return defaultInstance; }
  1401. }
  1402. public override CSharpMethodOptions DefaultInstanceForType {
  1403. get { return defaultInstance; }
  1404. }
  1405. protected override CSharpMethodOptions ThisMessage {
  1406. get { return this; }
  1407. }
  1408. public static pbd::MessageDescriptor Descriptor {
  1409. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
  1410. }
  1411. protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
  1412. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
  1413. }
  1414. public const int DispatchIdFieldNumber = 1;
  1415. private bool hasDispatchId;
  1416. private int dispatchId_;
  1417. public bool HasDispatchId {
  1418. get { return hasDispatchId; }
  1419. }
  1420. public int DispatchId {
  1421. get { return dispatchId_; }
  1422. }
  1423. public override bool IsInitialized {
  1424. get {
  1425. return true;
  1426. }
  1427. }
  1428. public override void WriteTo(pb::ICodedOutputStream output) {
  1429. int size = SerializedSize;
  1430. string[] field_names = _cSharpMethodOptionsFieldNames;
  1431. if (hasDispatchId) {
  1432. output.WriteInt32(1, field_names[0], DispatchId);
  1433. }
  1434. UnknownFields.WriteTo(output);
  1435. }
  1436. private int memoizedSerializedSize = -1;
  1437. public override int SerializedSize {
  1438. get {
  1439. int size = memoizedSerializedSize;
  1440. if (size != -1) return size;
  1441. size = 0;
  1442. if (hasDispatchId) {
  1443. size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
  1444. }
  1445. size += UnknownFields.SerializedSize;
  1446. memoizedSerializedSize = size;
  1447. return size;
  1448. }
  1449. }
  1450. public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
  1451. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1452. }
  1453. public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1454. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1455. }
  1456. public static CSharpMethodOptions ParseFrom(byte[] data) {
  1457. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1458. }
  1459. public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1460. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1461. }
  1462. public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
  1463. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1464. }
  1465. public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1466. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1467. }
  1468. public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  1469. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1470. }
  1471. public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1472. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1473. }
  1474. public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input) {
  1475. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1476. }
  1477. public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1478. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1479. }
  1480. public static Builder CreateBuilder() { return new Builder(); }
  1481. public override Builder ToBuilder() { return CreateBuilder(this); }
  1482. public override Builder CreateBuilderForType() { return new Builder(); }
  1483. public static Builder CreateBuilder(CSharpMethodOptions prototype) {
  1484. return new Builder(prototype);
  1485. }
  1486. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1487. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1489. public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
  1490. protected override Builder ThisBuilder {
  1491. get { return this; }
  1492. }
  1493. public Builder() {
  1494. result = DefaultInstance ?? new CSharpMethodOptions();
  1495. builderIsReadOnly = result == DefaultInstance;
  1496. }
  1497. internal Builder(CSharpMethodOptions cloneFrom) {
  1498. result = cloneFrom;
  1499. builderIsReadOnly = true;
  1500. }
  1501. bool builderIsReadOnly;
  1502. CSharpMethodOptions result;
  1503. private CSharpMethodOptions PrepareBuilder() {
  1504. if (builderIsReadOnly) {
  1505. CSharpMethodOptions original = result;
  1506. result = new CSharpMethodOptions();
  1507. builderIsReadOnly = false;
  1508. MergeFrom(original);
  1509. }
  1510. return result;
  1511. }
  1512. public override bool IsInitialized {
  1513. get { return result.IsInitialized; }
  1514. }
  1515. protected override CSharpMethodOptions MessageBeingBuilt {
  1516. get { return PrepareBuilder(); }
  1517. }
  1518. public override Builder Clear() {
  1519. result = DefaultInstance ?? new CSharpMethodOptions();
  1520. builderIsReadOnly = true;
  1521. return this;
  1522. }
  1523. public override Builder Clone() {
  1524. if (builderIsReadOnly) {
  1525. return new Builder(result);
  1526. } else {
  1527. return new Builder().MergeFrom(result);
  1528. }
  1529. }
  1530. public override pbd::MessageDescriptor DescriptorForType {
  1531. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
  1532. }
  1533. public override CSharpMethodOptions DefaultInstanceForType {
  1534. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
  1535. }
  1536. public override CSharpMethodOptions BuildPartial() {
  1537. if (builderIsReadOnly) {
  1538. return result;
  1539. }
  1540. builderIsReadOnly = true;
  1541. return result;
  1542. }
  1543. public override Builder MergeFrom(pb::IMessage other) {
  1544. if (other is CSharpMethodOptions) {
  1545. return MergeFrom((CSharpMethodOptions) other);
  1546. } else {
  1547. base.MergeFrom(other);
  1548. return this;
  1549. }
  1550. }
  1551. public override Builder MergeFrom(CSharpMethodOptions other) {
  1552. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
  1553. PrepareBuilder();
  1554. if (other.HasDispatchId) {
  1555. DispatchId = other.DispatchId;
  1556. }
  1557. this.MergeUnknownFields(other.UnknownFields);
  1558. return this;
  1559. }
  1560. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1561. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1562. }
  1563. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1564. PrepareBuilder();
  1565. pb::UnknownFieldSet.Builder unknownFields = null;
  1566. uint tag;
  1567. string field_name;
  1568. while (input.ReadTag(out tag, out field_name)) {
  1569. if(tag == 0 && field_name != null) {
  1570. int field_ordinal = global::System.Array.BinarySearch(_cSharpMethodOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  1571. if(field_ordinal >= 0)
  1572. tag = _cSharpMethodOptionsFieldTags[field_ordinal];
  1573. else {
  1574. if (unknownFields == null) {
  1575. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1576. }
  1577. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1578. continue;
  1579. }
  1580. }
  1581. switch (tag) {
  1582. case 0: {
  1583. throw pb::InvalidProtocolBufferException.InvalidTag();
  1584. }
  1585. default: {
  1586. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1587. if (unknownFields != null) {
  1588. this.UnknownFields = unknownFields.Build();
  1589. }
  1590. return this;
  1591. }
  1592. if (unknownFields == null) {
  1593. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1594. }
  1595. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1596. break;
  1597. }
  1598. case 8: {
  1599. result.hasDispatchId = input.ReadInt32(ref result.dispatchId_);
  1600. break;
  1601. }
  1602. }
  1603. }
  1604. if (unknownFields != null) {
  1605. this.UnknownFields = unknownFields.Build();
  1606. }
  1607. return this;
  1608. }
  1609. public bool HasDispatchId {
  1610. get { return result.hasDispatchId; }
  1611. }
  1612. public int DispatchId {
  1613. get { return result.DispatchId; }
  1614. set { SetDispatchId(value); }
  1615. }
  1616. public Builder SetDispatchId(int value) {
  1617. PrepareBuilder();
  1618. result.hasDispatchId = true;
  1619. result.dispatchId_ = value;
  1620. return this;
  1621. }
  1622. public Builder ClearDispatchId() {
  1623. PrepareBuilder();
  1624. result.hasDispatchId = false;
  1625. result.dispatchId_ = 0;
  1626. return this;
  1627. }
  1628. }
  1629. static CSharpMethodOptions() {
  1630. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  1631. }
  1632. }
  1633. #endregion
  1634. }
  1635. #endregion Designer generated code