Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

205 Zeilen
6.5 KiB

  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: PageReply.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 JT808.GrpcDashbord.ServiceGrpcBase {
  12. /// <summary>Holder for reflection information generated from PageReply.proto</summary>
  13. public static partial class PageReplyReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for PageReply.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static PageReplyReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "Cg9QYWdlUmVwbHkucHJvdG8SIkpUODA4LkdycGNEYXNoYm9yZC5TZXJ2aWNl",
  24. "R3JwY0Jhc2UiNgoSUGFnZU9wdGlvbnNSZXF1ZXN0EhEKCVBhZ2VJbmRleBgB",
  25. "IAEoBRINCgVUb3RhbBgCIAEoBWIGcHJvdG8z"));
  26. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  27. new pbr::FileDescriptor[] { },
  28. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  29. new pbr::GeneratedClrTypeInfo(typeof(global::JT808.GrpcDashbord.ServiceGrpcBase.PageOptionsRequest), global::JT808.GrpcDashbord.ServiceGrpcBase.PageOptionsRequest.Parser, new[]{ "PageIndex", "Total" }, null, null, null)
  30. }));
  31. }
  32. #endregion
  33. }
  34. #region Messages
  35. /// <summary>
  36. /// 统一分页返回参数
  37. /// </summary>
  38. public sealed partial class PageOptionsRequest : pb::IMessage<PageOptionsRequest> {
  39. private static readonly pb::MessageParser<PageOptionsRequest> _parser = new pb::MessageParser<PageOptionsRequest>(() => new PageOptionsRequest());
  40. private pb::UnknownFieldSet _unknownFields;
  41. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  42. public static pb::MessageParser<PageOptionsRequest> Parser { get { return _parser; } }
  43. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  44. public static pbr::MessageDescriptor Descriptor {
  45. get { return global::JT808.GrpcDashbord.ServiceGrpcBase.PageReplyReflection.Descriptor.MessageTypes[0]; }
  46. }
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  48. pbr::MessageDescriptor pb::IMessage.Descriptor {
  49. get { return Descriptor; }
  50. }
  51. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  52. public PageOptionsRequest() {
  53. OnConstruction();
  54. }
  55. partial void OnConstruction();
  56. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  57. public PageOptionsRequest(PageOptionsRequest other) : this() {
  58. pageIndex_ = other.pageIndex_;
  59. total_ = other.total_;
  60. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  61. }
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  63. public PageOptionsRequest Clone() {
  64. return new PageOptionsRequest(this);
  65. }
  66. /// <summary>Field number for the "PageIndex" field.</summary>
  67. public const int PageIndexFieldNumber = 1;
  68. private int pageIndex_;
  69. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  70. public int PageIndex {
  71. get { return pageIndex_; }
  72. set {
  73. pageIndex_ = value;
  74. }
  75. }
  76. /// <summary>Field number for the "Total" field.</summary>
  77. public const int TotalFieldNumber = 2;
  78. private int total_;
  79. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  80. public int Total {
  81. get { return total_; }
  82. set {
  83. total_ = value;
  84. }
  85. }
  86. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  87. public override bool Equals(object other) {
  88. return Equals(other as PageOptionsRequest);
  89. }
  90. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  91. public bool Equals(PageOptionsRequest other) {
  92. if (ReferenceEquals(other, null)) {
  93. return false;
  94. }
  95. if (ReferenceEquals(other, this)) {
  96. return true;
  97. }
  98. if (PageIndex != other.PageIndex) return false;
  99. if (Total != other.Total) return false;
  100. return Equals(_unknownFields, other._unknownFields);
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public override int GetHashCode() {
  104. int hash = 1;
  105. if (PageIndex != 0) hash ^= PageIndex.GetHashCode();
  106. if (Total != 0) hash ^= Total.GetHashCode();
  107. if (_unknownFields != null) {
  108. hash ^= _unknownFields.GetHashCode();
  109. }
  110. return hash;
  111. }
  112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  113. public override string ToString() {
  114. return pb::JsonFormatter.ToDiagnosticString(this);
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  117. public void WriteTo(pb::CodedOutputStream output) {
  118. if (PageIndex != 0) {
  119. output.WriteRawTag(8);
  120. output.WriteInt32(PageIndex);
  121. }
  122. if (Total != 0) {
  123. output.WriteRawTag(16);
  124. output.WriteInt32(Total);
  125. }
  126. if (_unknownFields != null) {
  127. _unknownFields.WriteTo(output);
  128. }
  129. }
  130. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  131. public int CalculateSize() {
  132. int size = 0;
  133. if (PageIndex != 0) {
  134. size += 1 + pb::CodedOutputStream.ComputeInt32Size(PageIndex);
  135. }
  136. if (Total != 0) {
  137. size += 1 + pb::CodedOutputStream.ComputeInt32Size(Total);
  138. }
  139. if (_unknownFields != null) {
  140. size += _unknownFields.CalculateSize();
  141. }
  142. return size;
  143. }
  144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  145. public void MergeFrom(PageOptionsRequest other) {
  146. if (other == null) {
  147. return;
  148. }
  149. if (other.PageIndex != 0) {
  150. PageIndex = other.PageIndex;
  151. }
  152. if (other.Total != 0) {
  153. Total = other.Total;
  154. }
  155. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  156. }
  157. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  158. public void MergeFrom(pb::CodedInputStream input) {
  159. uint tag;
  160. while ((tag = input.ReadTag()) != 0) {
  161. switch(tag) {
  162. default:
  163. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  164. break;
  165. case 8: {
  166. PageIndex = input.ReadInt32();
  167. break;
  168. }
  169. case 16: {
  170. Total = input.ReadInt32();
  171. break;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. #endregion
  178. }
  179. #endregion Designer generated code