Empty.cs 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. // <auto-generated>
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: src/proto/grpc/testing/empty.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 Grpc.Testing {
  12. /// <summary>Holder for reflection information generated from src/proto/grpc/testing/empty.proto</summary>
  13. public static partial class EmptyReflection {
  14. #region Descriptor
  15. /// <summary>File descriptor for src/proto/grpc/testing/empty.proto</summary>
  16. public static pbr::FileDescriptor Descriptor {
  17. get { return descriptor; }
  18. }
  19. private static pbr::FileDescriptor descriptor;
  20. static EmptyReflection() {
  21. byte[] descriptorData = global::System.Convert.FromBase64String(
  22. string.Concat(
  23. "CiJzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VtcHR5LnByb3RvEgxncnBjLnRl",
  24. "c3RpbmciBwoFRW1wdHliBnByb3RvMw=="));
  25. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  26. new pbr::FileDescriptor[] { },
  27. new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
  28. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Empty), global::Grpc.Testing.Empty.Parser, null, null, null, null, null)
  29. }));
  30. }
  31. #endregion
  32. }
  33. #region Messages
  34. /// <summary>
  35. /// An empty message that you can re-use to avoid defining duplicated empty
  36. /// messages in your project. A typical example is to use it as argument or the
  37. /// return value of a service API. For instance:
  38. ///
  39. /// service Foo {
  40. /// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
  41. /// };
  42. /// </summary>
  43. public sealed partial class Empty : pb::IMessage<Empty>
  44. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  45. , pb::IBufferMessage
  46. #endif
  47. {
  48. private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
  49. private pb::UnknownFieldSet _unknownFields;
  50. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  51. public static pb::MessageParser<Empty> Parser { get { return _parser; } }
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  53. public static pbr::MessageDescriptor Descriptor {
  54. get { return global::Grpc.Testing.EmptyReflection.Descriptor.MessageTypes[0]; }
  55. }
  56. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  57. pbr::MessageDescriptor pb::IMessage.Descriptor {
  58. get { return Descriptor; }
  59. }
  60. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  61. public Empty() {
  62. OnConstruction();
  63. }
  64. partial void OnConstruction();
  65. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  66. public Empty(Empty other) : this() {
  67. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  68. }
  69. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  70. public Empty Clone() {
  71. return new Empty(this);
  72. }
  73. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  74. public override bool Equals(object other) {
  75. return Equals(other as Empty);
  76. }
  77. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  78. public bool Equals(Empty other) {
  79. if (ReferenceEquals(other, null)) {
  80. return false;
  81. }
  82. if (ReferenceEquals(other, this)) {
  83. return true;
  84. }
  85. return Equals(_unknownFields, other._unknownFields);
  86. }
  87. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  88. public override int GetHashCode() {
  89. int hash = 1;
  90. if (_unknownFields != null) {
  91. hash ^= _unknownFields.GetHashCode();
  92. }
  93. return hash;
  94. }
  95. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  96. public override string ToString() {
  97. return pb::JsonFormatter.ToDiagnosticString(this);
  98. }
  99. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  100. public void WriteTo(pb::CodedOutputStream output) {
  101. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  102. output.WriteRawMessage(this);
  103. #else
  104. if (_unknownFields != null) {
  105. _unknownFields.WriteTo(output);
  106. }
  107. #endif
  108. }
  109. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  111. void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
  112. if (_unknownFields != null) {
  113. _unknownFields.WriteTo(ref output);
  114. }
  115. }
  116. #endif
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  118. public int CalculateSize() {
  119. int size = 0;
  120. if (_unknownFields != null) {
  121. size += _unknownFields.CalculateSize();
  122. }
  123. return size;
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  126. public void MergeFrom(Empty other) {
  127. if (other == null) {
  128. return;
  129. }
  130. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  131. }
  132. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  133. public void MergeFrom(pb::CodedInputStream input) {
  134. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  135. input.ReadRawMessage(this);
  136. #else
  137. uint tag;
  138. while ((tag = input.ReadTag()) != 0) {
  139. switch(tag) {
  140. default:
  141. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  142. break;
  143. }
  144. }
  145. #endif
  146. }
  147. #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
  148. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  149. void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
  150. uint tag;
  151. while ((tag = input.ReadTag()) != 0) {
  152. switch(tag) {
  153. default:
  154. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
  155. break;
  156. }
  157. }
  158. }
  159. #endif
  160. }
  161. #endregion
  162. }
  163. #endregion Designer generated code