1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: google/protobuf/empty.proto 3 #pragma warning disable 1591, 0612, 3021 4 #region Designer generated code 5 6 using pb = global::Google.Protobuf; 7 using pbc = global::Google.Protobuf.Collections; 8 using pbr = global::Google.Protobuf.Reflection; 9 using scg = global::System.Collections.Generic; 10 namespace Google.Protobuf.WellKnownTypes { 11 12 /// <summary>Holder for reflection information generated from google/protobuf/empty.proto</summary> 13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 14 public static partial class EmptyReflection { 15 16 #region Descriptor 17 /// <summary>File descriptor for google/protobuf/empty.proto</summary> 18 public static pbr::FileDescriptor Descriptor { 19 get { return descriptor; } 20 } 21 private static pbr::FileDescriptor descriptor; 22 EmptyReflection()23 static EmptyReflection() { 24 byte[] descriptorData = global::System.Convert.FromBase64String( 25 string.Concat( 26 "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", 27 "ZiIHCgVFbXB0eUJ5ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", 28 "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0eaAB", 29 "AfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", 30 "cHJvdG8z")); 31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, 32 new pbr::FileDescriptor[] { }, 33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { 34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null, null, null) 35 })); 36 } 37 #endregion 38 39 } 40 #region Messages 41 /// <summary> 42 /// A generic empty message that you can re-use to avoid defining duplicated 43 /// empty messages in your APIs. A typical example is to use it as the request 44 /// or the response type of an API method. For instance: 45 /// 46 /// service Foo { 47 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); 48 /// } 49 /// 50 /// The JSON representation for `Empty` is empty JSON object `{}`. 51 /// </summary> 52 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 53 public sealed partial class Empty : pb::IMessage<Empty> { 54 private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); 55 public static pb::MessageParser<Empty> Parser { get { return _parser; } } 56 57 public static pbr::MessageDescriptor Descriptor { 58 get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor.MessageTypes[0]; } 59 } 60 61 pbr::MessageDescriptor pb::IMessage.Descriptor { 62 get { return Descriptor; } 63 } 64 Empty()65 public Empty() { 66 OnConstruction(); 67 } 68 OnConstruction()69 partial void OnConstruction(); 70 Empty(Empty other)71 public Empty(Empty other) : this() { 72 } 73 Clone()74 public Empty Clone() { 75 return new Empty(this); 76 } 77 Equals(object other)78 public override bool Equals(object other) { 79 return Equals(other as Empty); 80 } 81 Equals(Empty other)82 public bool Equals(Empty other) { 83 if (ReferenceEquals(other, null)) { 84 return false; 85 } 86 if (ReferenceEquals(other, this)) { 87 return true; 88 } 89 return true; 90 } 91 GetHashCode()92 public override int GetHashCode() { 93 int hash = 1; 94 return hash; 95 } 96 ToString()97 public override string ToString() { 98 return pb::JsonFormatter.ToDiagnosticString(this); 99 } 100 WriteTo(pb::CodedOutputStream output)101 public void WriteTo(pb::CodedOutputStream output) { 102 } 103 CalculateSize()104 public int CalculateSize() { 105 int size = 0; 106 return size; 107 } 108 MergeFrom(Empty other)109 public void MergeFrom(Empty other) { 110 if (other == null) { 111 return; 112 } 113 } 114 MergeFrom(pb::CodedInputStream input)115 public void MergeFrom(pb::CodedInputStream input) { 116 uint tag; 117 while ((tag = input.ReadTag()) != 0) { 118 switch(tag) { 119 default: 120 input.SkipLastField(); 121 break; 122 } 123 } 124 } 125 126 } 127 128 #endregion 129 130 } 131 132 #endregion Designer generated code 133