Empty.cs 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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, new pbr::GeneratedClrTypeInfo[] {
  28. new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Empty), global::Grpc.Testing.Empty.Parser, 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. ///
  43. /// </summary>
  44. public sealed partial class Empty : pb::IMessage<Empty> {
  45. private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
  46. private pb::UnknownFieldSet _unknownFields;
  47. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  48. public static pb::MessageParser<Empty> Parser { get { return _parser; } }
  49. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  50. public static pbr::MessageDescriptor Descriptor {
  51. get { return global::Grpc.Testing.EmptyReflection.Descriptor.MessageTypes[0]; }
  52. }
  53. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  54. pbr::MessageDescriptor pb::IMessage.Descriptor {
  55. get { return Descriptor; }
  56. }
  57. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  58. public Empty() {
  59. OnConstruction();
  60. }
  61. partial void OnConstruction();
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  63. public Empty(Empty other) : this() {
  64. _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
  65. }
  66. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  67. public Empty Clone() {
  68. return new Empty(this);
  69. }
  70. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  71. public override bool Equals(object other) {
  72. return Equals(other as Empty);
  73. }
  74. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  75. public bool Equals(Empty other) {
  76. if (ReferenceEquals(other, null)) {
  77. return false;
  78. }
  79. if (ReferenceEquals(other, this)) {
  80. return true;
  81. }
  82. return Equals(_unknownFields, other._unknownFields);
  83. }
  84. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  85. public override int GetHashCode() {
  86. int hash = 1;
  87. if (_unknownFields != null) {
  88. hash ^= _unknownFields.GetHashCode();
  89. }
  90. return hash;
  91. }
  92. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  93. public override string ToString() {
  94. return pb::JsonFormatter.ToDiagnosticString(this);
  95. }
  96. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  97. public void WriteTo(pb::CodedOutputStream output) {
  98. if (_unknownFields != null) {
  99. _unknownFields.WriteTo(output);
  100. }
  101. }
  102. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  103. public int CalculateSize() {
  104. int size = 0;
  105. if (_unknownFields != null) {
  106. size += _unknownFields.CalculateSize();
  107. }
  108. return size;
  109. }
  110. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  111. public void MergeFrom(Empty other) {
  112. if (other == null) {
  113. return;
  114. }
  115. _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
  116. }
  117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  118. public void MergeFrom(pb::CodedInputStream input) {
  119. uint tag;
  120. while ((tag = input.ReadTag()) != 0) {
  121. switch(tag) {
  122. default:
  123. _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
  124. break;
  125. }
  126. }
  127. }
  128. }
  129. #endregion
  130. }
  131. #endregion Designer generated code