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