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