CSharpOptions.cs 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587
  1. // Generated by ProtoGen, Version=2.3.0.277, Culture=neutral, PublicKeyToken=17b3b1f090c3ea48. 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. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  8. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  9. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  10. public static partial class CSharpOptions {
  11. #region Extension registration
  12. public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
  13. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions);
  14. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions);
  15. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions);
  16. registry.Add(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions);
  17. }
  18. #endregion
  19. #region Extensions
  20. public const int CSharpFileOptionsFieldNumber = 1000;
  21. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions> CSharpFileOptions;
  22. public const int CSharpFieldOptionsFieldNumber = 1000;
  23. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions> CSharpFieldOptions;
  24. public const int CsharpServiceOptionsFieldNumber = 1000;
  25. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions> CsharpServiceOptions;
  26. public const int CsharpMethodOptionsFieldNumber = 1000;
  27. public static pb::GeneratedExtensionBase<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions> CsharpMethodOptions;
  28. #endregion
  29. #region Static variables
  30. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFileOptions__Descriptor;
  31. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder> internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable;
  32. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpFieldOptions__Descriptor;
  33. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder> internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable;
  34. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpServiceOptions__Descriptor;
  35. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder> internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable;
  36. internal static pbd::MessageDescriptor internal__static_google_protobuf_CSharpMethodOptions__Descriptor;
  37. internal static pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder> internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable;
  38. #endregion
  39. #region Descriptor
  40. public static pbd::FileDescriptor Descriptor {
  41. get { return descriptor; }
  42. }
  43. private static pbd::FileDescriptor descriptor;
  44. static CSharpOptions() {
  45. byte[] descriptorData = global::System.Convert.FromBase64String(
  46. "CiRnb29nbGUvcHJvdG9idWYvY3NoYXJwX29wdGlvbnMucHJvdG8SD2dvb2ds" +
  47. "ZS5wcm90b2J1ZhogZ29vZ2xlL3Byb3RvYnVmL2Rlc2NyaXB0b3IucHJvdG8i" +
  48. "tgMKEUNTaGFycEZpbGVPcHRpb25zEhEKCW5hbWVzcGFjZRgBIAEoCRIaChJ1" +
  49. "bWJyZWxsYV9jbGFzc25hbWUYAiABKAkSHAoOcHVibGljX2NsYXNzZXMYAyAB" +
  50. "KAg6BHRydWUSFgoObXVsdGlwbGVfZmlsZXMYBCABKAgSFAoMbmVzdF9jbGFz" +
  51. "c2VzGAUgASgIEhYKDmNvZGVfY29udHJhY3RzGAYgASgIEiQKHGV4cGFuZF9u" +
  52. "YW1lc3BhY2VfZGlyZWN0b3JpZXMYByABKAgSHAoOY2xzX2NvbXBsaWFuY2UY" +
  53. "CCABKAg6BHRydWUSHAoOZmlsZV9leHRlbnNpb24Y3QEgASgJOgMuY3MSGwoS" +
  54. "dW1icmVsbGFfbmFtZXNwYWNlGN4BIAEoCRIcChBvdXRwdXRfZGlyZWN0b3J5" +
  55. "GN8BIAEoCToBLhImChZpZ25vcmVfZ29vZ2xlX3Byb3RvYnVmGOABIAEoCDoF" +
  56. "ZmFsc2USSQoWc2VydmljZV9nZW5lcmF0b3JfdHlwZRjhASABKA4yIi5nb29n" +
  57. "bGUucHJvdG9idWYuQ1NoYXJwU2VydmljZVR5cGU6BE5PTkUiKwoSQ1NoYXJw" +
  58. "RmllbGRPcHRpb25zEhUKDXByb3BlcnR5X25hbWUYASABKAkiLAoUQ1NoYXJw" +
  59. "U2VydmljZU9wdGlvbnMSFAoMaW50ZXJmYWNlX2lkGAEgASgJIioKE0NTaGFy" +
  60. "cE1ldGhvZE9wdGlvbnMSEwoLZGlzcGF0Y2hfaWQYASABKAUqSwoRQ1NoYXJw" +
  61. "U2VydmljZVR5cGUSCAoETk9ORRAAEgsKB0dFTkVSSUMQARINCglJTlRFUkZB" +
  62. "Q0UQAhIQCgxJUlBDRElTUEFUQ0gQAzpeChNjc2hhcnBfZmlsZV9vcHRpb25z" +
  63. "EhwuZ29vZ2xlLnByb3RvYnVmLkZpbGVPcHRpb25zGOgHIAEoCzIiLmdvb2ds" +
  64. "ZS5wcm90b2J1Zi5DU2hhcnBGaWxlT3B0aW9uczphChRjc2hhcnBfZmllbGRf" +
  65. "b3B0aW9ucxIdLmdvb2dsZS5wcm90b2J1Zi5GaWVsZE9wdGlvbnMY6AcgASgL" +
  66. "MiMuZ29vZ2xlLnByb3RvYnVmLkNTaGFycEZpZWxkT3B0aW9uczpnChZjc2hh" +
  67. "cnBfc2VydmljZV9vcHRpb25zEh8uZ29vZ2xlLnByb3RvYnVmLlNlcnZpY2VP" +
  68. "cHRpb25zGOgHIAEoCzIlLmdvb2dsZS5wcm90b2J1Zi5DU2hhcnBTZXJ2aWNl" +
  69. "T3B0aW9uczpkChVjc2hhcnBfbWV0aG9kX29wdGlvbnMSHi5nb29nbGUucHJv" +
  70. "dG9idWYuTWV0aG9kT3B0aW9ucxjoByABKAsyJC5nb29nbGUucHJvdG9idWYu" +
  71. "Q1NoYXJwTWV0aG9kT3B0aW9ucw==");
  72. pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
  73. descriptor = root;
  74. internal__static_google_protobuf_CSharpFileOptions__Descriptor = Descriptor.MessageTypes[0];
  75. internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable =
  76. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Builder>(internal__static_google_protobuf_CSharpFileOptions__Descriptor,
  77. new string[] { "Namespace", "UmbrellaClassname", "PublicClasses", "MultipleFiles", "NestClasses", "CodeContracts", "ExpandNamespaceDirectories", "ClsCompliance", "FileExtension", "UmbrellaNamespace", "OutputDirectory", "IgnoreGoogleProtobuf", "ServiceGeneratorType", });
  78. internal__static_google_protobuf_CSharpFieldOptions__Descriptor = Descriptor.MessageTypes[1];
  79. internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable =
  80. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Builder>(internal__static_google_protobuf_CSharpFieldOptions__Descriptor,
  81. new string[] { "PropertyName", });
  82. internal__static_google_protobuf_CSharpServiceOptions__Descriptor = Descriptor.MessageTypes[2];
  83. internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable =
  84. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Builder>(internal__static_google_protobuf_CSharpServiceOptions__Descriptor,
  85. new string[] { "InterfaceId", });
  86. internal__static_google_protobuf_CSharpMethodOptions__Descriptor = Descriptor.MessageTypes[3];
  87. internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable =
  88. new pb::FieldAccess.FieldAccessorTable<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions, global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Builder>(internal__static_google_protobuf_CSharpMethodOptions__Descriptor,
  89. new string[] { "DispatchId", });
  90. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFileOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[0]);
  91. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CSharpFieldOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[1]);
  92. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpServiceOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[2]);
  93. global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.CsharpMethodOptions = pb::GeneratedSingleExtension<global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions>.CreateInstance(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor.Extensions[3]);
  94. return null;
  95. };
  96. pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
  97. new pbd::FileDescriptor[] {
  98. global::Google.ProtocolBuffers.DescriptorProtos.DescriptorProtoFile.Descriptor,
  99. }, assigner);
  100. }
  101. #endregion
  102. }
  103. #region Enums
  104. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  105. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  106. public enum CSharpServiceType {
  107. NONE = 0,
  108. GENERIC = 1,
  109. INTERFACE = 2,
  110. IRPCDISPATCH = 3,
  111. }
  112. #endregion
  113. #region Messages
  114. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  115. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  116. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  117. public sealed partial class CSharpFileOptions : pb::GeneratedMessage<CSharpFileOptions, CSharpFileOptions.Builder> {
  118. private static readonly CSharpFileOptions defaultInstance = new Builder().BuildPartial();
  119. private static readonly string[] _cSharpFileOptionsFieldNames = new string[] { "cls_compliance", "code_contracts", "expand_namespace_directories", "file_extension", "ignore_google_protobuf", "multiple_files", "namespace", "nest_classes", "output_directory", "public_classes", "service_generator_type", "umbrella_classname", "umbrella_namespace" };
  120. private static readonly uint[] _cSharpFileOptionsFieldTags = new uint[] { 64, 48, 56, 1770, 1792, 32, 10, 40, 1786, 24, 1800, 18, 1778 };
  121. public static CSharpFileOptions DefaultInstance {
  122. get { return defaultInstance; }
  123. }
  124. public override CSharpFileOptions DefaultInstanceForType {
  125. get { return defaultInstance; }
  126. }
  127. protected override CSharpFileOptions ThisMessage {
  128. get { return this; }
  129. }
  130. public static pbd::MessageDescriptor Descriptor {
  131. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__Descriptor; }
  132. }
  133. protected override pb::FieldAccess.FieldAccessorTable<CSharpFileOptions, CSharpFileOptions.Builder> InternalFieldAccessors {
  134. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFileOptions__FieldAccessorTable; }
  135. }
  136. public const int NamespaceFieldNumber = 1;
  137. private bool hasNamespace;
  138. private string namespace_ = "";
  139. public bool HasNamespace {
  140. get { return hasNamespace; }
  141. }
  142. public string Namespace {
  143. get { return namespace_; }
  144. }
  145. public const int UmbrellaClassnameFieldNumber = 2;
  146. private bool hasUmbrellaClassname;
  147. private string umbrellaClassname_ = "";
  148. public bool HasUmbrellaClassname {
  149. get { return hasUmbrellaClassname; }
  150. }
  151. public string UmbrellaClassname {
  152. get { return umbrellaClassname_; }
  153. }
  154. public const int PublicClassesFieldNumber = 3;
  155. private bool hasPublicClasses;
  156. private bool publicClasses_ = true;
  157. public bool HasPublicClasses {
  158. get { return hasPublicClasses; }
  159. }
  160. public bool PublicClasses {
  161. get { return publicClasses_; }
  162. }
  163. public const int MultipleFilesFieldNumber = 4;
  164. private bool hasMultipleFiles;
  165. private bool multipleFiles_ = false;
  166. public bool HasMultipleFiles {
  167. get { return hasMultipleFiles; }
  168. }
  169. public bool MultipleFiles {
  170. get { return multipleFiles_; }
  171. }
  172. public const int NestClassesFieldNumber = 5;
  173. private bool hasNestClasses;
  174. private bool nestClasses_ = false;
  175. public bool HasNestClasses {
  176. get { return hasNestClasses; }
  177. }
  178. public bool NestClasses {
  179. get { return nestClasses_; }
  180. }
  181. public const int CodeContractsFieldNumber = 6;
  182. private bool hasCodeContracts;
  183. private bool codeContracts_ = false;
  184. public bool HasCodeContracts {
  185. get { return hasCodeContracts; }
  186. }
  187. public bool CodeContracts {
  188. get { return codeContracts_; }
  189. }
  190. public const int ExpandNamespaceDirectoriesFieldNumber = 7;
  191. private bool hasExpandNamespaceDirectories;
  192. private bool expandNamespaceDirectories_ = false;
  193. public bool HasExpandNamespaceDirectories {
  194. get { return hasExpandNamespaceDirectories; }
  195. }
  196. public bool ExpandNamespaceDirectories {
  197. get { return expandNamespaceDirectories_; }
  198. }
  199. public const int ClsComplianceFieldNumber = 8;
  200. private bool hasClsCompliance;
  201. private bool clsCompliance_ = true;
  202. public bool HasClsCompliance {
  203. get { return hasClsCompliance; }
  204. }
  205. public bool ClsCompliance {
  206. get { return clsCompliance_; }
  207. }
  208. public const int FileExtensionFieldNumber = 221;
  209. private bool hasFileExtension;
  210. private string fileExtension_ = ".cs";
  211. public bool HasFileExtension {
  212. get { return hasFileExtension; }
  213. }
  214. public string FileExtension {
  215. get { return fileExtension_; }
  216. }
  217. public const int UmbrellaNamespaceFieldNumber = 222;
  218. private bool hasUmbrellaNamespace;
  219. private string umbrellaNamespace_ = "";
  220. public bool HasUmbrellaNamespace {
  221. get { return hasUmbrellaNamespace; }
  222. }
  223. public string UmbrellaNamespace {
  224. get { return umbrellaNamespace_; }
  225. }
  226. public const int OutputDirectoryFieldNumber = 223;
  227. private bool hasOutputDirectory;
  228. private string outputDirectory_ = ".";
  229. public bool HasOutputDirectory {
  230. get { return hasOutputDirectory; }
  231. }
  232. public string OutputDirectory {
  233. get { return outputDirectory_; }
  234. }
  235. public const int IgnoreGoogleProtobufFieldNumber = 224;
  236. private bool hasIgnoreGoogleProtobuf;
  237. private bool ignoreGoogleProtobuf_ = false;
  238. public bool HasIgnoreGoogleProtobuf {
  239. get { return hasIgnoreGoogleProtobuf; }
  240. }
  241. public bool IgnoreGoogleProtobuf {
  242. get { return ignoreGoogleProtobuf_; }
  243. }
  244. public const int ServiceGeneratorTypeFieldNumber = 225;
  245. private bool hasServiceGeneratorType;
  246. private global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
  247. public bool HasServiceGeneratorType {
  248. get { return hasServiceGeneratorType; }
  249. }
  250. public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
  251. get { return serviceGeneratorType_; }
  252. }
  253. public override bool IsInitialized {
  254. get {
  255. return true;
  256. }
  257. }
  258. public override void WriteTo(pb::ICodedOutputStream output) {
  259. int size = SerializedSize;
  260. string[] field_names = _cSharpFileOptionsFieldNames;
  261. if (hasNamespace) {
  262. output.WriteString(1, field_names[6], Namespace);
  263. }
  264. if (hasUmbrellaClassname) {
  265. output.WriteString(2, field_names[11], UmbrellaClassname);
  266. }
  267. if (hasPublicClasses) {
  268. output.WriteBool(3, field_names[9], PublicClasses);
  269. }
  270. if (hasMultipleFiles) {
  271. output.WriteBool(4, field_names[5], MultipleFiles);
  272. }
  273. if (hasNestClasses) {
  274. output.WriteBool(5, field_names[7], NestClasses);
  275. }
  276. if (hasCodeContracts) {
  277. output.WriteBool(6, field_names[1], CodeContracts);
  278. }
  279. if (hasExpandNamespaceDirectories) {
  280. output.WriteBool(7, field_names[2], ExpandNamespaceDirectories);
  281. }
  282. if (hasClsCompliance) {
  283. output.WriteBool(8, field_names[0], ClsCompliance);
  284. }
  285. if (hasFileExtension) {
  286. output.WriteString(221, field_names[3], FileExtension);
  287. }
  288. if (hasUmbrellaNamespace) {
  289. output.WriteString(222, field_names[12], UmbrellaNamespace);
  290. }
  291. if (hasOutputDirectory) {
  292. output.WriteString(223, field_names[8], OutputDirectory);
  293. }
  294. if (hasIgnoreGoogleProtobuf) {
  295. output.WriteBool(224, field_names[4], IgnoreGoogleProtobuf);
  296. }
  297. if (hasServiceGeneratorType) {
  298. output.WriteEnum(225, field_names[10], (int) ServiceGeneratorType, ServiceGeneratorType.ToString());
  299. }
  300. UnknownFields.WriteTo(output);
  301. }
  302. private int memoizedSerializedSize = -1;
  303. public override int SerializedSize {
  304. get {
  305. int size = memoizedSerializedSize;
  306. if (size != -1) return size;
  307. size = 0;
  308. if (hasNamespace) {
  309. size += pb::CodedOutputStream.ComputeStringSize(1, Namespace);
  310. }
  311. if (hasUmbrellaClassname) {
  312. size += pb::CodedOutputStream.ComputeStringSize(2, UmbrellaClassname);
  313. }
  314. if (hasPublicClasses) {
  315. size += pb::CodedOutputStream.ComputeBoolSize(3, PublicClasses);
  316. }
  317. if (hasMultipleFiles) {
  318. size += pb::CodedOutputStream.ComputeBoolSize(4, MultipleFiles);
  319. }
  320. if (hasNestClasses) {
  321. size += pb::CodedOutputStream.ComputeBoolSize(5, NestClasses);
  322. }
  323. if (hasCodeContracts) {
  324. size += pb::CodedOutputStream.ComputeBoolSize(6, CodeContracts);
  325. }
  326. if (hasExpandNamespaceDirectories) {
  327. size += pb::CodedOutputStream.ComputeBoolSize(7, ExpandNamespaceDirectories);
  328. }
  329. if (hasClsCompliance) {
  330. size += pb::CodedOutputStream.ComputeBoolSize(8, ClsCompliance);
  331. }
  332. if (hasFileExtension) {
  333. size += pb::CodedOutputStream.ComputeStringSize(221, FileExtension);
  334. }
  335. if (hasUmbrellaNamespace) {
  336. size += pb::CodedOutputStream.ComputeStringSize(222, UmbrellaNamespace);
  337. }
  338. if (hasOutputDirectory) {
  339. size += pb::CodedOutputStream.ComputeStringSize(223, OutputDirectory);
  340. }
  341. if (hasIgnoreGoogleProtobuf) {
  342. size += pb::CodedOutputStream.ComputeBoolSize(224, IgnoreGoogleProtobuf);
  343. }
  344. if (hasServiceGeneratorType) {
  345. size += pb::CodedOutputStream.ComputeEnumSize(225, (int) ServiceGeneratorType);
  346. }
  347. size += UnknownFields.SerializedSize;
  348. memoizedSerializedSize = size;
  349. return size;
  350. }
  351. }
  352. public static CSharpFileOptions ParseFrom(pb::ByteString data) {
  353. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  354. }
  355. public static CSharpFileOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  356. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  357. }
  358. public static CSharpFileOptions ParseFrom(byte[] data) {
  359. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  360. }
  361. public static CSharpFileOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  362. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  363. }
  364. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input) {
  365. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  366. }
  367. public static CSharpFileOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  368. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  369. }
  370. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  371. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  372. }
  373. public static CSharpFileOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  374. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  375. }
  376. public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input) {
  377. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  378. }
  379. public static CSharpFileOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  380. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  381. }
  382. public static Builder CreateBuilder() { return new Builder(); }
  383. public override Builder ToBuilder() { return CreateBuilder(this); }
  384. public override Builder CreateBuilderForType() { return new Builder(); }
  385. public static Builder CreateBuilder(CSharpFileOptions prototype) {
  386. return (Builder) new Builder().MergeFrom(prototype);
  387. }
  388. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  389. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  390. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  391. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFileOptions, Builder> {
  392. protected override Builder ThisBuilder {
  393. get { return this; }
  394. }
  395. public Builder() {}
  396. CSharpFileOptions result = new CSharpFileOptions();
  397. protected override CSharpFileOptions MessageBeingBuilt {
  398. get { return result; }
  399. }
  400. public override Builder Clear() {
  401. result = new CSharpFileOptions();
  402. return this;
  403. }
  404. public override Builder Clone() {
  405. return new Builder().MergeFrom(result);
  406. }
  407. public override pbd::MessageDescriptor DescriptorForType {
  408. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.Descriptor; }
  409. }
  410. public override CSharpFileOptions DefaultInstanceForType {
  411. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance; }
  412. }
  413. public override CSharpFileOptions BuildPartial() {
  414. if (result == null) {
  415. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  416. }
  417. CSharpFileOptions returnMe = result;
  418. result = null;
  419. return returnMe;
  420. }
  421. public override Builder MergeFrom(pb::IMessage other) {
  422. if (other is CSharpFileOptions) {
  423. return MergeFrom((CSharpFileOptions) other);
  424. } else {
  425. base.MergeFrom(other);
  426. return this;
  427. }
  428. }
  429. public override Builder MergeFrom(CSharpFileOptions other) {
  430. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFileOptions.DefaultInstance) return this;
  431. if (other.HasNamespace) {
  432. Namespace = other.Namespace;
  433. }
  434. if (other.HasUmbrellaClassname) {
  435. UmbrellaClassname = other.UmbrellaClassname;
  436. }
  437. if (other.HasPublicClasses) {
  438. PublicClasses = other.PublicClasses;
  439. }
  440. if (other.HasMultipleFiles) {
  441. MultipleFiles = other.MultipleFiles;
  442. }
  443. if (other.HasNestClasses) {
  444. NestClasses = other.NestClasses;
  445. }
  446. if (other.HasCodeContracts) {
  447. CodeContracts = other.CodeContracts;
  448. }
  449. if (other.HasExpandNamespaceDirectories) {
  450. ExpandNamespaceDirectories = other.ExpandNamespaceDirectories;
  451. }
  452. if (other.HasClsCompliance) {
  453. ClsCompliance = other.ClsCompliance;
  454. }
  455. if (other.HasFileExtension) {
  456. FileExtension = other.FileExtension;
  457. }
  458. if (other.HasUmbrellaNamespace) {
  459. UmbrellaNamespace = other.UmbrellaNamespace;
  460. }
  461. if (other.HasOutputDirectory) {
  462. OutputDirectory = other.OutputDirectory;
  463. }
  464. if (other.HasIgnoreGoogleProtobuf) {
  465. IgnoreGoogleProtobuf = other.IgnoreGoogleProtobuf;
  466. }
  467. if (other.HasServiceGeneratorType) {
  468. ServiceGeneratorType = other.ServiceGeneratorType;
  469. }
  470. this.MergeUnknownFields(other.UnknownFields);
  471. return this;
  472. }
  473. public override Builder MergeFrom(pb::ICodedInputStream input) {
  474. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  475. }
  476. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  477. pb::UnknownFieldSet.Builder unknownFields = null;
  478. uint tag;
  479. string field_name;
  480. while (input.ReadTag(out tag, out field_name)) {
  481. if(tag == 0 && field_name != null) {
  482. int field_ordinal = global::System.Array.BinarySearch(_cSharpFileOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  483. if(field_ordinal >= 0)
  484. tag = _cSharpFileOptionsFieldTags[field_ordinal];
  485. else {
  486. if (unknownFields == null) {
  487. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  488. }
  489. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  490. continue;
  491. }
  492. }
  493. switch (tag) {
  494. case 0: {
  495. throw pb::InvalidProtocolBufferException.InvalidTag();
  496. }
  497. default: {
  498. if (pb::WireFormat.IsEndGroupTag(tag)) {
  499. if (unknownFields != null) {
  500. this.UnknownFields = unknownFields.Build();
  501. }
  502. return this;
  503. }
  504. if (unknownFields == null) {
  505. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  506. }
  507. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  508. break;
  509. }
  510. case 10: {
  511. result.hasNamespace = input.ReadString(ref result.namespace_);
  512. break;
  513. }
  514. case 18: {
  515. result.hasUmbrellaClassname = input.ReadString(ref result.umbrellaClassname_);
  516. break;
  517. }
  518. case 24: {
  519. result.hasPublicClasses = input.ReadBool(ref result.publicClasses_);
  520. break;
  521. }
  522. case 32: {
  523. result.hasMultipleFiles = input.ReadBool(ref result.multipleFiles_);
  524. break;
  525. }
  526. case 40: {
  527. result.hasNestClasses = input.ReadBool(ref result.nestClasses_);
  528. break;
  529. }
  530. case 48: {
  531. result.hasCodeContracts = input.ReadBool(ref result.codeContracts_);
  532. break;
  533. }
  534. case 56: {
  535. result.hasExpandNamespaceDirectories = input.ReadBool(ref result.expandNamespaceDirectories_);
  536. break;
  537. }
  538. case 64: {
  539. result.hasClsCompliance = input.ReadBool(ref result.clsCompliance_);
  540. break;
  541. }
  542. case 1770: {
  543. result.hasFileExtension = input.ReadString(ref result.fileExtension_);
  544. break;
  545. }
  546. case 1778: {
  547. result.hasUmbrellaNamespace = input.ReadString(ref result.umbrellaNamespace_);
  548. break;
  549. }
  550. case 1786: {
  551. result.hasOutputDirectory = input.ReadString(ref result.outputDirectory_);
  552. break;
  553. }
  554. case 1792: {
  555. result.hasIgnoreGoogleProtobuf = input.ReadBool(ref result.ignoreGoogleProtobuf_);
  556. break;
  557. }
  558. case 1800: {
  559. object unknown;
  560. if(input.ReadEnum(ref result.serviceGeneratorType_, out unknown)) {
  561. result.hasServiceGeneratorType = true;
  562. } else if(unknown is int) {
  563. if (unknownFields == null) {
  564. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  565. }
  566. unknownFields.MergeVarintField(225, (ulong)(int)unknown);
  567. }
  568. break;
  569. }
  570. }
  571. }
  572. if (unknownFields != null) {
  573. this.UnknownFields = unknownFields.Build();
  574. }
  575. return this;
  576. }
  577. public bool HasNamespace {
  578. get { return result.hasNamespace; }
  579. }
  580. public string Namespace {
  581. get { return result.Namespace; }
  582. set { SetNamespace(value); }
  583. }
  584. public Builder SetNamespace(string value) {
  585. pb::ThrowHelper.ThrowIfNull(value, "value");
  586. result.hasNamespace = true;
  587. result.namespace_ = value;
  588. return this;
  589. }
  590. public Builder ClearNamespace() {
  591. result.hasNamespace = false;
  592. result.namespace_ = "";
  593. return this;
  594. }
  595. public bool HasUmbrellaClassname {
  596. get { return result.hasUmbrellaClassname; }
  597. }
  598. public string UmbrellaClassname {
  599. get { return result.UmbrellaClassname; }
  600. set { SetUmbrellaClassname(value); }
  601. }
  602. public Builder SetUmbrellaClassname(string value) {
  603. pb::ThrowHelper.ThrowIfNull(value, "value");
  604. result.hasUmbrellaClassname = true;
  605. result.umbrellaClassname_ = value;
  606. return this;
  607. }
  608. public Builder ClearUmbrellaClassname() {
  609. result.hasUmbrellaClassname = false;
  610. result.umbrellaClassname_ = "";
  611. return this;
  612. }
  613. public bool HasPublicClasses {
  614. get { return result.hasPublicClasses; }
  615. }
  616. public bool PublicClasses {
  617. get { return result.PublicClasses; }
  618. set { SetPublicClasses(value); }
  619. }
  620. public Builder SetPublicClasses(bool value) {
  621. result.hasPublicClasses = true;
  622. result.publicClasses_ = value;
  623. return this;
  624. }
  625. public Builder ClearPublicClasses() {
  626. result.hasPublicClasses = false;
  627. result.publicClasses_ = true;
  628. return this;
  629. }
  630. public bool HasMultipleFiles {
  631. get { return result.hasMultipleFiles; }
  632. }
  633. public bool MultipleFiles {
  634. get { return result.MultipleFiles; }
  635. set { SetMultipleFiles(value); }
  636. }
  637. public Builder SetMultipleFiles(bool value) {
  638. result.hasMultipleFiles = true;
  639. result.multipleFiles_ = value;
  640. return this;
  641. }
  642. public Builder ClearMultipleFiles() {
  643. result.hasMultipleFiles = false;
  644. result.multipleFiles_ = false;
  645. return this;
  646. }
  647. public bool HasNestClasses {
  648. get { return result.hasNestClasses; }
  649. }
  650. public bool NestClasses {
  651. get { return result.NestClasses; }
  652. set { SetNestClasses(value); }
  653. }
  654. public Builder SetNestClasses(bool value) {
  655. result.hasNestClasses = true;
  656. result.nestClasses_ = value;
  657. return this;
  658. }
  659. public Builder ClearNestClasses() {
  660. result.hasNestClasses = false;
  661. result.nestClasses_ = false;
  662. return this;
  663. }
  664. public bool HasCodeContracts {
  665. get { return result.hasCodeContracts; }
  666. }
  667. public bool CodeContracts {
  668. get { return result.CodeContracts; }
  669. set { SetCodeContracts(value); }
  670. }
  671. public Builder SetCodeContracts(bool value) {
  672. result.hasCodeContracts = true;
  673. result.codeContracts_ = value;
  674. return this;
  675. }
  676. public Builder ClearCodeContracts() {
  677. result.hasCodeContracts = false;
  678. result.codeContracts_ = false;
  679. return this;
  680. }
  681. public bool HasExpandNamespaceDirectories {
  682. get { return result.hasExpandNamespaceDirectories; }
  683. }
  684. public bool ExpandNamespaceDirectories {
  685. get { return result.ExpandNamespaceDirectories; }
  686. set { SetExpandNamespaceDirectories(value); }
  687. }
  688. public Builder SetExpandNamespaceDirectories(bool value) {
  689. result.hasExpandNamespaceDirectories = true;
  690. result.expandNamespaceDirectories_ = value;
  691. return this;
  692. }
  693. public Builder ClearExpandNamespaceDirectories() {
  694. result.hasExpandNamespaceDirectories = false;
  695. result.expandNamespaceDirectories_ = false;
  696. return this;
  697. }
  698. public bool HasClsCompliance {
  699. get { return result.hasClsCompliance; }
  700. }
  701. public bool ClsCompliance {
  702. get { return result.ClsCompliance; }
  703. set { SetClsCompliance(value); }
  704. }
  705. public Builder SetClsCompliance(bool value) {
  706. result.hasClsCompliance = true;
  707. result.clsCompliance_ = value;
  708. return this;
  709. }
  710. public Builder ClearClsCompliance() {
  711. result.hasClsCompliance = false;
  712. result.clsCompliance_ = true;
  713. return this;
  714. }
  715. public bool HasFileExtension {
  716. get { return result.hasFileExtension; }
  717. }
  718. public string FileExtension {
  719. get { return result.FileExtension; }
  720. set { SetFileExtension(value); }
  721. }
  722. public Builder SetFileExtension(string value) {
  723. pb::ThrowHelper.ThrowIfNull(value, "value");
  724. result.hasFileExtension = true;
  725. result.fileExtension_ = value;
  726. return this;
  727. }
  728. public Builder ClearFileExtension() {
  729. result.hasFileExtension = false;
  730. result.fileExtension_ = ".cs";
  731. return this;
  732. }
  733. public bool HasUmbrellaNamespace {
  734. get { return result.hasUmbrellaNamespace; }
  735. }
  736. public string UmbrellaNamespace {
  737. get { return result.UmbrellaNamespace; }
  738. set { SetUmbrellaNamespace(value); }
  739. }
  740. public Builder SetUmbrellaNamespace(string value) {
  741. pb::ThrowHelper.ThrowIfNull(value, "value");
  742. result.hasUmbrellaNamespace = true;
  743. result.umbrellaNamespace_ = value;
  744. return this;
  745. }
  746. public Builder ClearUmbrellaNamespace() {
  747. result.hasUmbrellaNamespace = false;
  748. result.umbrellaNamespace_ = "";
  749. return this;
  750. }
  751. public bool HasOutputDirectory {
  752. get { return result.hasOutputDirectory; }
  753. }
  754. public string OutputDirectory {
  755. get { return result.OutputDirectory; }
  756. set { SetOutputDirectory(value); }
  757. }
  758. public Builder SetOutputDirectory(string value) {
  759. pb::ThrowHelper.ThrowIfNull(value, "value");
  760. result.hasOutputDirectory = true;
  761. result.outputDirectory_ = value;
  762. return this;
  763. }
  764. public Builder ClearOutputDirectory() {
  765. result.hasOutputDirectory = false;
  766. result.outputDirectory_ = ".";
  767. return this;
  768. }
  769. public bool HasIgnoreGoogleProtobuf {
  770. get { return result.hasIgnoreGoogleProtobuf; }
  771. }
  772. public bool IgnoreGoogleProtobuf {
  773. get { return result.IgnoreGoogleProtobuf; }
  774. set { SetIgnoreGoogleProtobuf(value); }
  775. }
  776. public Builder SetIgnoreGoogleProtobuf(bool value) {
  777. result.hasIgnoreGoogleProtobuf = true;
  778. result.ignoreGoogleProtobuf_ = value;
  779. return this;
  780. }
  781. public Builder ClearIgnoreGoogleProtobuf() {
  782. result.hasIgnoreGoogleProtobuf = false;
  783. result.ignoreGoogleProtobuf_ = false;
  784. return this;
  785. }
  786. public bool HasServiceGeneratorType {
  787. get { return result.hasServiceGeneratorType; }
  788. }
  789. public global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType ServiceGeneratorType {
  790. get { return result.ServiceGeneratorType; }
  791. set { SetServiceGeneratorType(value); }
  792. }
  793. public Builder SetServiceGeneratorType(global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType value) {
  794. result.hasServiceGeneratorType = true;
  795. result.serviceGeneratorType_ = value;
  796. return this;
  797. }
  798. public Builder ClearServiceGeneratorType() {
  799. result.hasServiceGeneratorType = false;
  800. result.serviceGeneratorType_ = global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceType.NONE;
  801. return this;
  802. }
  803. }
  804. static CSharpFileOptions() {
  805. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  806. }
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  811. public sealed partial class CSharpFieldOptions : pb::GeneratedMessage<CSharpFieldOptions, CSharpFieldOptions.Builder> {
  812. private static readonly CSharpFieldOptions defaultInstance = new Builder().BuildPartial();
  813. private static readonly string[] _cSharpFieldOptionsFieldNames = new string[] { "property_name" };
  814. private static readonly uint[] _cSharpFieldOptionsFieldTags = new uint[] { 10 };
  815. public static CSharpFieldOptions DefaultInstance {
  816. get { return defaultInstance; }
  817. }
  818. public override CSharpFieldOptions DefaultInstanceForType {
  819. get { return defaultInstance; }
  820. }
  821. protected override CSharpFieldOptions ThisMessage {
  822. get { return this; }
  823. }
  824. public static pbd::MessageDescriptor Descriptor {
  825. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__Descriptor; }
  826. }
  827. protected override pb::FieldAccess.FieldAccessorTable<CSharpFieldOptions, CSharpFieldOptions.Builder> InternalFieldAccessors {
  828. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpFieldOptions__FieldAccessorTable; }
  829. }
  830. public const int PropertyNameFieldNumber = 1;
  831. private bool hasPropertyName;
  832. private string propertyName_ = "";
  833. public bool HasPropertyName {
  834. get { return hasPropertyName; }
  835. }
  836. public string PropertyName {
  837. get { return propertyName_; }
  838. }
  839. public override bool IsInitialized {
  840. get {
  841. return true;
  842. }
  843. }
  844. public override void WriteTo(pb::ICodedOutputStream output) {
  845. int size = SerializedSize;
  846. string[] field_names = _cSharpFieldOptionsFieldNames;
  847. if (hasPropertyName) {
  848. output.WriteString(1, field_names[0], PropertyName);
  849. }
  850. UnknownFields.WriteTo(output);
  851. }
  852. private int memoizedSerializedSize = -1;
  853. public override int SerializedSize {
  854. get {
  855. int size = memoizedSerializedSize;
  856. if (size != -1) return size;
  857. size = 0;
  858. if (hasPropertyName) {
  859. size += pb::CodedOutputStream.ComputeStringSize(1, PropertyName);
  860. }
  861. size += UnknownFields.SerializedSize;
  862. memoizedSerializedSize = size;
  863. return size;
  864. }
  865. }
  866. public static CSharpFieldOptions ParseFrom(pb::ByteString data) {
  867. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  868. }
  869. public static CSharpFieldOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  870. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  871. }
  872. public static CSharpFieldOptions ParseFrom(byte[] data) {
  873. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  874. }
  875. public static CSharpFieldOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  876. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  877. }
  878. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input) {
  879. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  880. }
  881. public static CSharpFieldOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  882. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  883. }
  884. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  885. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  886. }
  887. public static CSharpFieldOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  888. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  889. }
  890. public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input) {
  891. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  892. }
  893. public static CSharpFieldOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  894. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  895. }
  896. public static Builder CreateBuilder() { return new Builder(); }
  897. public override Builder ToBuilder() { return CreateBuilder(this); }
  898. public override Builder CreateBuilderForType() { return new Builder(); }
  899. public static Builder CreateBuilder(CSharpFieldOptions prototype) {
  900. return (Builder) new Builder().MergeFrom(prototype);
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  904. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  905. public sealed partial class Builder : pb::GeneratedBuilder<CSharpFieldOptions, Builder> {
  906. protected override Builder ThisBuilder {
  907. get { return this; }
  908. }
  909. public Builder() {}
  910. CSharpFieldOptions result = new CSharpFieldOptions();
  911. protected override CSharpFieldOptions MessageBeingBuilt {
  912. get { return result; }
  913. }
  914. public override Builder Clear() {
  915. result = new CSharpFieldOptions();
  916. return this;
  917. }
  918. public override Builder Clone() {
  919. return new Builder().MergeFrom(result);
  920. }
  921. public override pbd::MessageDescriptor DescriptorForType {
  922. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.Descriptor; }
  923. }
  924. public override CSharpFieldOptions DefaultInstanceForType {
  925. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance; }
  926. }
  927. public override CSharpFieldOptions BuildPartial() {
  928. if (result == null) {
  929. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  930. }
  931. CSharpFieldOptions returnMe = result;
  932. result = null;
  933. return returnMe;
  934. }
  935. public override Builder MergeFrom(pb::IMessage other) {
  936. if (other is CSharpFieldOptions) {
  937. return MergeFrom((CSharpFieldOptions) other);
  938. } else {
  939. base.MergeFrom(other);
  940. return this;
  941. }
  942. }
  943. public override Builder MergeFrom(CSharpFieldOptions other) {
  944. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpFieldOptions.DefaultInstance) return this;
  945. if (other.HasPropertyName) {
  946. PropertyName = other.PropertyName;
  947. }
  948. this.MergeUnknownFields(other.UnknownFields);
  949. return this;
  950. }
  951. public override Builder MergeFrom(pb::ICodedInputStream input) {
  952. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  953. }
  954. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  955. pb::UnknownFieldSet.Builder unknownFields = null;
  956. uint tag;
  957. string field_name;
  958. while (input.ReadTag(out tag, out field_name)) {
  959. if(tag == 0 && field_name != null) {
  960. int field_ordinal = global::System.Array.BinarySearch(_cSharpFieldOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  961. if(field_ordinal >= 0)
  962. tag = _cSharpFieldOptionsFieldTags[field_ordinal];
  963. else {
  964. if (unknownFields == null) {
  965. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  966. }
  967. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  968. continue;
  969. }
  970. }
  971. switch (tag) {
  972. case 0: {
  973. throw pb::InvalidProtocolBufferException.InvalidTag();
  974. }
  975. default: {
  976. if (pb::WireFormat.IsEndGroupTag(tag)) {
  977. if (unknownFields != null) {
  978. this.UnknownFields = unknownFields.Build();
  979. }
  980. return this;
  981. }
  982. if (unknownFields == null) {
  983. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  984. }
  985. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  986. break;
  987. }
  988. case 10: {
  989. result.hasPropertyName = input.ReadString(ref result.propertyName_);
  990. break;
  991. }
  992. }
  993. }
  994. if (unknownFields != null) {
  995. this.UnknownFields = unknownFields.Build();
  996. }
  997. return this;
  998. }
  999. public bool HasPropertyName {
  1000. get { return result.hasPropertyName; }
  1001. }
  1002. public string PropertyName {
  1003. get { return result.PropertyName; }
  1004. set { SetPropertyName(value); }
  1005. }
  1006. public Builder SetPropertyName(string value) {
  1007. pb::ThrowHelper.ThrowIfNull(value, "value");
  1008. result.hasPropertyName = true;
  1009. result.propertyName_ = value;
  1010. return this;
  1011. }
  1012. public Builder ClearPropertyName() {
  1013. result.hasPropertyName = false;
  1014. result.propertyName_ = "";
  1015. return this;
  1016. }
  1017. }
  1018. static CSharpFieldOptions() {
  1019. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  1020. }
  1021. }
  1022. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1023. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1025. public sealed partial class CSharpServiceOptions : pb::GeneratedMessage<CSharpServiceOptions, CSharpServiceOptions.Builder> {
  1026. private static readonly CSharpServiceOptions defaultInstance = new Builder().BuildPartial();
  1027. private static readonly string[] _cSharpServiceOptionsFieldNames = new string[] { "interface_id" };
  1028. private static readonly uint[] _cSharpServiceOptionsFieldTags = new uint[] { 10 };
  1029. public static CSharpServiceOptions DefaultInstance {
  1030. get { return defaultInstance; }
  1031. }
  1032. public override CSharpServiceOptions DefaultInstanceForType {
  1033. get { return defaultInstance; }
  1034. }
  1035. protected override CSharpServiceOptions ThisMessage {
  1036. get { return this; }
  1037. }
  1038. public static pbd::MessageDescriptor Descriptor {
  1039. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__Descriptor; }
  1040. }
  1041. protected override pb::FieldAccess.FieldAccessorTable<CSharpServiceOptions, CSharpServiceOptions.Builder> InternalFieldAccessors {
  1042. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpServiceOptions__FieldAccessorTable; }
  1043. }
  1044. public const int InterfaceIdFieldNumber = 1;
  1045. private bool hasInterfaceId;
  1046. private string interfaceId_ = "";
  1047. public bool HasInterfaceId {
  1048. get { return hasInterfaceId; }
  1049. }
  1050. public string InterfaceId {
  1051. get { return interfaceId_; }
  1052. }
  1053. public override bool IsInitialized {
  1054. get {
  1055. return true;
  1056. }
  1057. }
  1058. public override void WriteTo(pb::ICodedOutputStream output) {
  1059. int size = SerializedSize;
  1060. string[] field_names = _cSharpServiceOptionsFieldNames;
  1061. if (hasInterfaceId) {
  1062. output.WriteString(1, field_names[0], InterfaceId);
  1063. }
  1064. UnknownFields.WriteTo(output);
  1065. }
  1066. private int memoizedSerializedSize = -1;
  1067. public override int SerializedSize {
  1068. get {
  1069. int size = memoizedSerializedSize;
  1070. if (size != -1) return size;
  1071. size = 0;
  1072. if (hasInterfaceId) {
  1073. size += pb::CodedOutputStream.ComputeStringSize(1, InterfaceId);
  1074. }
  1075. size += UnknownFields.SerializedSize;
  1076. memoizedSerializedSize = size;
  1077. return size;
  1078. }
  1079. }
  1080. public static CSharpServiceOptions ParseFrom(pb::ByteString data) {
  1081. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1082. }
  1083. public static CSharpServiceOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1084. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1085. }
  1086. public static CSharpServiceOptions ParseFrom(byte[] data) {
  1087. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1088. }
  1089. public static CSharpServiceOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1090. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1091. }
  1092. public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input) {
  1093. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1094. }
  1095. public static CSharpServiceOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1096. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1097. }
  1098. public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  1099. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1100. }
  1101. public static CSharpServiceOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1102. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1103. }
  1104. public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input) {
  1105. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1106. }
  1107. public static CSharpServiceOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1108. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1109. }
  1110. public static Builder CreateBuilder() { return new Builder(); }
  1111. public override Builder ToBuilder() { return CreateBuilder(this); }
  1112. public override Builder CreateBuilderForType() { return new Builder(); }
  1113. public static Builder CreateBuilder(CSharpServiceOptions prototype) {
  1114. return (Builder) new Builder().MergeFrom(prototype);
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1119. public sealed partial class Builder : pb::GeneratedBuilder<CSharpServiceOptions, Builder> {
  1120. protected override Builder ThisBuilder {
  1121. get { return this; }
  1122. }
  1123. public Builder() {}
  1124. CSharpServiceOptions result = new CSharpServiceOptions();
  1125. protected override CSharpServiceOptions MessageBeingBuilt {
  1126. get { return result; }
  1127. }
  1128. public override Builder Clear() {
  1129. result = new CSharpServiceOptions();
  1130. return this;
  1131. }
  1132. public override Builder Clone() {
  1133. return new Builder().MergeFrom(result);
  1134. }
  1135. public override pbd::MessageDescriptor DescriptorForType {
  1136. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.Descriptor; }
  1137. }
  1138. public override CSharpServiceOptions DefaultInstanceForType {
  1139. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance; }
  1140. }
  1141. public override CSharpServiceOptions BuildPartial() {
  1142. if (result == null) {
  1143. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1144. }
  1145. CSharpServiceOptions returnMe = result;
  1146. result = null;
  1147. return returnMe;
  1148. }
  1149. public override Builder MergeFrom(pb::IMessage other) {
  1150. if (other is CSharpServiceOptions) {
  1151. return MergeFrom((CSharpServiceOptions) other);
  1152. } else {
  1153. base.MergeFrom(other);
  1154. return this;
  1155. }
  1156. }
  1157. public override Builder MergeFrom(CSharpServiceOptions other) {
  1158. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpServiceOptions.DefaultInstance) return this;
  1159. if (other.HasInterfaceId) {
  1160. InterfaceId = other.InterfaceId;
  1161. }
  1162. this.MergeUnknownFields(other.UnknownFields);
  1163. return this;
  1164. }
  1165. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1166. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1167. }
  1168. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1169. pb::UnknownFieldSet.Builder unknownFields = null;
  1170. uint tag;
  1171. string field_name;
  1172. while (input.ReadTag(out tag, out field_name)) {
  1173. if(tag == 0 && field_name != null) {
  1174. int field_ordinal = global::System.Array.BinarySearch(_cSharpServiceOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  1175. if(field_ordinal >= 0)
  1176. tag = _cSharpServiceOptionsFieldTags[field_ordinal];
  1177. else {
  1178. if (unknownFields == null) {
  1179. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1180. }
  1181. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1182. continue;
  1183. }
  1184. }
  1185. switch (tag) {
  1186. case 0: {
  1187. throw pb::InvalidProtocolBufferException.InvalidTag();
  1188. }
  1189. default: {
  1190. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1191. if (unknownFields != null) {
  1192. this.UnknownFields = unknownFields.Build();
  1193. }
  1194. return this;
  1195. }
  1196. if (unknownFields == null) {
  1197. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1198. }
  1199. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1200. break;
  1201. }
  1202. case 10: {
  1203. result.hasInterfaceId = input.ReadString(ref result.interfaceId_);
  1204. break;
  1205. }
  1206. }
  1207. }
  1208. if (unknownFields != null) {
  1209. this.UnknownFields = unknownFields.Build();
  1210. }
  1211. return this;
  1212. }
  1213. public bool HasInterfaceId {
  1214. get { return result.hasInterfaceId; }
  1215. }
  1216. public string InterfaceId {
  1217. get { return result.InterfaceId; }
  1218. set { SetInterfaceId(value); }
  1219. }
  1220. public Builder SetInterfaceId(string value) {
  1221. pb::ThrowHelper.ThrowIfNull(value, "value");
  1222. result.hasInterfaceId = true;
  1223. result.interfaceId_ = value;
  1224. return this;
  1225. }
  1226. public Builder ClearInterfaceId() {
  1227. result.hasInterfaceId = false;
  1228. result.interfaceId_ = "";
  1229. return this;
  1230. }
  1231. }
  1232. static CSharpServiceOptions() {
  1233. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  1234. }
  1235. }
  1236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1237. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1239. public sealed partial class CSharpMethodOptions : pb::GeneratedMessage<CSharpMethodOptions, CSharpMethodOptions.Builder> {
  1240. private static readonly CSharpMethodOptions defaultInstance = new Builder().BuildPartial();
  1241. private static readonly string[] _cSharpMethodOptionsFieldNames = new string[] { "dispatch_id" };
  1242. private static readonly uint[] _cSharpMethodOptionsFieldTags = new uint[] { 8 };
  1243. public static CSharpMethodOptions DefaultInstance {
  1244. get { return defaultInstance; }
  1245. }
  1246. public override CSharpMethodOptions DefaultInstanceForType {
  1247. get { return defaultInstance; }
  1248. }
  1249. protected override CSharpMethodOptions ThisMessage {
  1250. get { return this; }
  1251. }
  1252. public static pbd::MessageDescriptor Descriptor {
  1253. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__Descriptor; }
  1254. }
  1255. protected override pb::FieldAccess.FieldAccessorTable<CSharpMethodOptions, CSharpMethodOptions.Builder> InternalFieldAccessors {
  1256. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.internal__static_google_protobuf_CSharpMethodOptions__FieldAccessorTable; }
  1257. }
  1258. public const int DispatchIdFieldNumber = 1;
  1259. private bool hasDispatchId;
  1260. private int dispatchId_ = 0;
  1261. public bool HasDispatchId {
  1262. get { return hasDispatchId; }
  1263. }
  1264. public int DispatchId {
  1265. get { return dispatchId_; }
  1266. }
  1267. public override bool IsInitialized {
  1268. get {
  1269. return true;
  1270. }
  1271. }
  1272. public override void WriteTo(pb::ICodedOutputStream output) {
  1273. int size = SerializedSize;
  1274. string[] field_names = _cSharpMethodOptionsFieldNames;
  1275. if (hasDispatchId) {
  1276. output.WriteInt32(1, field_names[0], DispatchId);
  1277. }
  1278. UnknownFields.WriteTo(output);
  1279. }
  1280. private int memoizedSerializedSize = -1;
  1281. public override int SerializedSize {
  1282. get {
  1283. int size = memoizedSerializedSize;
  1284. if (size != -1) return size;
  1285. size = 0;
  1286. if (hasDispatchId) {
  1287. size += pb::CodedOutputStream.ComputeInt32Size(1, DispatchId);
  1288. }
  1289. size += UnknownFields.SerializedSize;
  1290. memoizedSerializedSize = size;
  1291. return size;
  1292. }
  1293. }
  1294. public static CSharpMethodOptions ParseFrom(pb::ByteString data) {
  1295. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1296. }
  1297. public static CSharpMethodOptions ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
  1298. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1299. }
  1300. public static CSharpMethodOptions ParseFrom(byte[] data) {
  1301. return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
  1302. }
  1303. public static CSharpMethodOptions ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
  1304. return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
  1305. }
  1306. public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input) {
  1307. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1308. }
  1309. public static CSharpMethodOptions ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1310. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1311. }
  1312. public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input) {
  1313. return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
  1314. }
  1315. public static CSharpMethodOptions ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
  1316. return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
  1317. }
  1318. public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input) {
  1319. return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
  1320. }
  1321. public static CSharpMethodOptions ParseFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1322. return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
  1323. }
  1324. public static Builder CreateBuilder() { return new Builder(); }
  1325. public override Builder ToBuilder() { return CreateBuilder(this); }
  1326. public override Builder CreateBuilderForType() { return new Builder(); }
  1327. public static Builder CreateBuilder(CSharpMethodOptions prototype) {
  1328. return (Builder) new Builder().MergeFrom(prototype);
  1329. }
  1330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1331. [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
  1332. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("ProtoGen", "2.3.0.277")]
  1333. public sealed partial class Builder : pb::GeneratedBuilder<CSharpMethodOptions, Builder> {
  1334. protected override Builder ThisBuilder {
  1335. get { return this; }
  1336. }
  1337. public Builder() {}
  1338. CSharpMethodOptions result = new CSharpMethodOptions();
  1339. protected override CSharpMethodOptions MessageBeingBuilt {
  1340. get { return result; }
  1341. }
  1342. public override Builder Clear() {
  1343. result = new CSharpMethodOptions();
  1344. return this;
  1345. }
  1346. public override Builder Clone() {
  1347. return new Builder().MergeFrom(result);
  1348. }
  1349. public override pbd::MessageDescriptor DescriptorForType {
  1350. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.Descriptor; }
  1351. }
  1352. public override CSharpMethodOptions DefaultInstanceForType {
  1353. get { return global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance; }
  1354. }
  1355. public override CSharpMethodOptions BuildPartial() {
  1356. if (result == null) {
  1357. throw new global::System.InvalidOperationException("build() has already been called on this Builder");
  1358. }
  1359. CSharpMethodOptions returnMe = result;
  1360. result = null;
  1361. return returnMe;
  1362. }
  1363. public override Builder MergeFrom(pb::IMessage other) {
  1364. if (other is CSharpMethodOptions) {
  1365. return MergeFrom((CSharpMethodOptions) other);
  1366. } else {
  1367. base.MergeFrom(other);
  1368. return this;
  1369. }
  1370. }
  1371. public override Builder MergeFrom(CSharpMethodOptions other) {
  1372. if (other == global::Google.ProtocolBuffers.DescriptorProtos.CSharpMethodOptions.DefaultInstance) return this;
  1373. if (other.HasDispatchId) {
  1374. DispatchId = other.DispatchId;
  1375. }
  1376. this.MergeUnknownFields(other.UnknownFields);
  1377. return this;
  1378. }
  1379. public override Builder MergeFrom(pb::ICodedInputStream input) {
  1380. return MergeFrom(input, pb::ExtensionRegistry.Empty);
  1381. }
  1382. public override Builder MergeFrom(pb::ICodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
  1383. pb::UnknownFieldSet.Builder unknownFields = null;
  1384. uint tag;
  1385. string field_name;
  1386. while (input.ReadTag(out tag, out field_name)) {
  1387. if(tag == 0 && field_name != null) {
  1388. int field_ordinal = global::System.Array.BinarySearch(_cSharpMethodOptionsFieldNames, field_name, global::System.StringComparer.Ordinal);
  1389. if(field_ordinal >= 0)
  1390. tag = _cSharpMethodOptionsFieldTags[field_ordinal];
  1391. else {
  1392. if (unknownFields == null) {
  1393. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1394. }
  1395. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1396. continue;
  1397. }
  1398. }
  1399. switch (tag) {
  1400. case 0: {
  1401. throw pb::InvalidProtocolBufferException.InvalidTag();
  1402. }
  1403. default: {
  1404. if (pb::WireFormat.IsEndGroupTag(tag)) {
  1405. if (unknownFields != null) {
  1406. this.UnknownFields = unknownFields.Build();
  1407. }
  1408. return this;
  1409. }
  1410. if (unknownFields == null) {
  1411. unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
  1412. }
  1413. ParseUnknownField(input, unknownFields, extensionRegistry, tag, field_name);
  1414. break;
  1415. }
  1416. case 8: {
  1417. result.hasDispatchId = input.ReadInt32(ref result.dispatchId_);
  1418. break;
  1419. }
  1420. }
  1421. }
  1422. if (unknownFields != null) {
  1423. this.UnknownFields = unknownFields.Build();
  1424. }
  1425. return this;
  1426. }
  1427. public bool HasDispatchId {
  1428. get { return result.hasDispatchId; }
  1429. }
  1430. public int DispatchId {
  1431. get { return result.DispatchId; }
  1432. set { SetDispatchId(value); }
  1433. }
  1434. public Builder SetDispatchId(int value) {
  1435. result.hasDispatchId = true;
  1436. result.dispatchId_ = value;
  1437. return this;
  1438. }
  1439. public Builder ClearDispatchId() {
  1440. result.hasDispatchId = false;
  1441. result.dispatchId_ = 0;
  1442. return this;
  1443. }
  1444. }
  1445. static CSharpMethodOptions() {
  1446. object.ReferenceEquals(global::Google.ProtocolBuffers.DescriptorProtos.CSharpOptions.Descriptor, null);
  1447. }
  1448. }
  1449. #endregion
  1450. }