UnittestImportProto3.cs 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: unittest_import_proto3.proto
  4. // </auto-generated>
  5. #pragma warning disable 1591, 0612, 3021
  6. #region Designer generated code
  7. using pb = global::Google.Protobuf;
  8. using pbc = global::Google.Protobuf.Collections;
  9. using pbr = global::Google.Protobuf.Reflection;
  10. using scg = global::System.Collections.Generic;
  11. namespace Google.Protobuf.TestProtos {
  12. /// <summary>Holder for reflection information generated from unittest_import_proto3.proto</summary>
  13. public static partial class UnittestImportProto3Reflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for unittest_import_proto3.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static UnittestImportProto3Reflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Chx1bml0dGVzdF9pbXBvcnRfcHJvdG8zLnByb3RvEhhwcm90b2J1Zl91bml0",
  24. "dGVzdF9pbXBvcnQaI3VuaXR0ZXN0X2ltcG9ydF9wdWJsaWNfcHJvdG8zLnBy",
  25. "b3RvIhoKDUltcG9ydE1lc3NhZ2USCQoBZBgBIAEoBSpZCgpJbXBvcnRFbnVt",
  26. "EhsKF0lNUE9SVF9FTlVNX1VOU1BFQ0lGSUVEEAASDgoKSU1QT1JUX0ZPTxAH",
  27. "Eg4KCklNUE9SVF9CQVIQCBIOCgpJTVBPUlRfQkFaEAlCHaoCGkdvb2dsZS5Q",
  28. "cm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3RvMw=="));
  29. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  30. new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor, },
  31. new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.ImportEnum), }, new pbr::GeneratedClrTypeInfo[] {
  32. new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.ImportMessage), global::Google.Protobuf.TestProtos.ImportMessage.Parser, new[]{ "D" }, null, null, null)
  33. }));
  34. }
  35. #endregion
  36. }
  37. #region Enums
  38. public enum ImportEnum {
  39. [pbr::OriginalName("IMPORT_ENUM_UNSPECIFIED")] Unspecified = 0,
  40. [pbr::OriginalName("IMPORT_FOO")] ImportFoo = 7,
  41. [pbr::OriginalName("IMPORT_BAR")] ImportBar = 8,
  42. [pbr::OriginalName("IMPORT_BAZ")] ImportBaz = 9,
  43. }
  44. #endregion
  45. #region Messages
  46. public sealed partial class ImportMessage : pb::IMessage<ImportMessage> {
  47. private static readonly pb::MessageParser<ImportMessage> _parser = new pb::MessageParser<ImportMessage>(() => new ImportMessage());
  48. private pb::UnknownFieldSet _unknownFields;
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  50. public static pb::MessageParser<ImportMessage> Parser { get { return _parser; } }
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  52. public static pbr::MessageDescriptor Descriptor {
  53. get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor.MessageTypes[0]; }
  54. }
  55. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  56. pbr::MessageDescriptor pb::IMessage.Descriptor {
  57. get { return Descriptor; }
  58. }
  59. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  60. public ImportMessage() {
  61. OnConstruction();
  62. }
  63. partial void OnConstruction();
  64. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  65. public ImportMessage(ImportMessage other) : this() {
  66. d_ = other.d_;
  67. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  68. }
  69. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  70. public ImportMessage Clone() {
  71. return new ImportMessage(this);
  72. }
  73. /// <summary>Field number for the "d" field.</summary>
  74. public const int DFieldNumber = 1;
  75. private int d_;
  76. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  77. public int D {
  78. get { return d_; }
  79. set {
  80. d_ = value;
  81. }
  82. }
  83. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  84. public override bool Equals(object other) {
  85. return Equals(other as ImportMessage);
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. public bool Equals(ImportMessage other) {
  89. if (ReferenceEquals(other, null)) {
  90. return false;
  91. }
  92. if (ReferenceEquals(other, this)) {
  93. return true;
  94. }
  95. if (D != other.D) return false;
  96. return Equals(_unknownFields, other._unknownFields);
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  99. public override int GetHashCode() {
  100. int hash = 1;
  101. if (D != 0) hash ^= D.GetHashCode();
  102. if (_unknownFields != null) {
  103. hash ^= _unknownFields.GetHashCode();
  104. }
  105. return hash;
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  108. public override string ToString() {
  109. return pb::JsonFormatter.ToDiagnosticString(this);
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  112. public void WriteTo(pb::CodedOutputStream output) {
  113. if (D != 0) {
  114. output.WriteRawTag(8);
  115. output.WriteInt32(D);
  116. }
  117. if (_unknownFields != null) {
  118. _unknownFields.WriteTo(output);
  119. }
  120. }
  121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  122. public int CalculateSize() {
  123. int size = 0;
  124. if (D != 0) {
  125. size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
  126. }
  127. if (_unknownFields != null) {
  128. size += _unknownFields.CalculateSize();
  129. }
  130. return size;
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  133. public void MergeFrom(ImportMessage other) {
  134. if (other == null) {
  135. return;
  136. }
  137. if (other.D != 0) {
  138. D = other.D;
  139. }
  140. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  141. }
  142. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  143. public void MergeFrom(pb::CodedInputStream input) {
  144. uint tag;
  145. while ((tag = input.ReadTag()) != 0) {
  146. switch(tag) {
  147. default:
  148. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  149. break;
  150. case 8: {
  151. D = input.ReadInt32();
  152. break;
  153. }
  154. }
  155. }
  156. }
  157. }
  158. #endregion
  159. }
  160. #endregion Designer generated code