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 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 55 , pb::IBufferMessage 56 #endif 57 { 58 private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); 59 private pb::UnknownFieldSet _unknownFields; 60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 61 public static pb::MessageParser<Empty> Parser { get { return _parser; } } 62 63 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 64 public static pbr::MessageDescriptor Descriptor { 65 get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor.MessageTypes[0]; } 66 } 67 68 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 69 pbr::MessageDescriptor pb::IMessage.Descriptor { 70 get { return Descriptor; } 71 } 72 73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Empty()74 public Empty() { 75 OnConstruction(); 76 } 77 OnConstruction()78 partial void OnConstruction(); 79 80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Empty(Empty other)81 public Empty(Empty other) : this() { 82 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 83 } 84 85 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()86 public Empty Clone() { 87 return new Empty(this); 88 } 89 90 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)91 public override bool Equals(object other) { 92 return Equals(other as Empty); 93 } 94 95 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(Empty other)96 public bool Equals(Empty other) { 97 if (ReferenceEquals(other, null)) { 98 return false; 99 } 100 if (ReferenceEquals(other, this)) { 101 return true; 102 } 103 return Equals(_unknownFields, other._unknownFields); 104 } 105 106 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()107 public override int GetHashCode() { 108 int hash = 1; 109 if (_unknownFields != null) { 110 hash ^= _unknownFields.GetHashCode(); 111 } 112 return hash; 113 } 114 115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()116 public override string ToString() { 117 return pb::JsonFormatter.ToDiagnosticString(this); 118 } 119 120 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)121 public void WriteTo(pb::CodedOutputStream output) { 122 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 123 output.WriteRawMessage(this); 124 #else 125 if (_unknownFields != null) { 126 _unknownFields.WriteTo(output); 127 } 128 #endif 129 } 130 131 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 132 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)133 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 134 if (_unknownFields != null) { 135 _unknownFields.WriteTo(ref output); 136 } 137 } 138 #endif 139 140 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()141 public int CalculateSize() { 142 int size = 0; 143 if (_unknownFields != null) { 144 size += _unknownFields.CalculateSize(); 145 } 146 return size; 147 } 148 149 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(Empty other)150 public void MergeFrom(Empty other) { 151 if (other == null) { 152 return; 153 } 154 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 155 } 156 157 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)158 public void MergeFrom(pb::CodedInputStream input) { 159 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 160 input.ReadRawMessage(this); 161 #else 162 uint tag; 163 while ((tag = input.ReadTag()) != 0) { 164 switch(tag) { 165 default: 166 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 167 break; 168 } 169 } 170 #endif 171 } 172 173 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 174 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)175 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 176 uint tag; 177 while ((tag = input.ReadTag()) != 0) { 178 switch(tag) { 179 default: 180 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 181 break; 182 } 183 } 184 } 185 #endif 186 187 } 188 189 #endregion 190 191 } 192 193 #endregion Designer generated code 194