Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 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 | |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 12 | /// <summary>Holder for reflection information generated from google/protobuf/empty.proto</summary> |
| 13 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 14 | public static partial class EmptyReflection { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 15 | |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 16 | #region Descriptor |
| 17 | /// <summary>File descriptor for google/protobuf/empty.proto</summary> |
| 18 | public static pbr::FileDescriptor Descriptor { |
| 19 | get { return descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 20 | } |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 21 | private static pbr::FileDescriptor descriptor; |
| 22 | |
| 23 | static EmptyReflection() { |
| 24 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 | string.Concat( |
| 26 | "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", |
Jon Skeet | c588ac4 | 2016-04-20 17:19:42 +0100 | [diff] [blame] | 27 | "ZiIHCgVFbXB0eUJ5ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", |
| 28 | "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0eaAB", |
| 29 | "AfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG", |
| 30 | "cHJvdG8z")); |
Jon Skeet | a2667aa | 2015-11-19 17:14:23 +0000 | [diff] [blame] | 31 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 32 | new pbr::FileDescriptor[] { }, |
Jon Skeet | b615996 | 2016-02-04 07:08:55 +0000 | [diff] [blame] | 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) |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 35 | })); |
| 36 | } |
| 37 | #endregion |
| 38 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 39 | } |
| 40 | #region Messages |
Jon Skeet | 18e0a2e | 2015-10-01 10:38:01 +0100 | [diff] [blame] | 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: |
Jon Skeet | cff900e | 2015-11-06 18:38:31 +0000 | [diff] [blame] | 45 | /// |
Jon Skeet | 18e0a2e | 2015-10-01 10:38:01 +0100 | [diff] [blame] | 46 | /// service Foo { |
| 47 | /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 48 | /// } |
Jon Skeet | cff900e | 2015-11-06 18:38:31 +0000 | [diff] [blame] | 49 | /// |
Jon Skeet | 18e0a2e | 2015-10-01 10:38:01 +0100 | [diff] [blame] | 50 | /// The JSON representation for `Empty` is empty JSON object `{}`. |
| 51 | /// </summary> |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 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 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 57 | public static pbr::MessageDescriptor Descriptor { |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 58 | get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor.MessageTypes[0]; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 59 | } |
| 60 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 61 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 62 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 63 | } |
| 64 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 65 | public Empty() { |
| 66 | OnConstruction(); |
| 67 | } |
| 68 | |
| 69 | partial void OnConstruction(); |
| 70 | |
| 71 | public Empty(Empty other) : this() { |
| 72 | } |
| 73 | |
| 74 | public Empty Clone() { |
| 75 | return new Empty(this); |
| 76 | } |
| 77 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 78 | public override bool Equals(object other) { |
| 79 | return Equals(other as Empty); |
| 80 | } |
| 81 | |
| 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 | |
| 92 | public override int GetHashCode() { |
| 93 | int hash = 1; |
| 94 | return hash; |
| 95 | } |
| 96 | |
| 97 | public override string ToString() { |
Jon Skeet | adee6fe | 2015-12-15 09:24:04 +0000 | [diff] [blame] | 98 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | public void WriteTo(pb::CodedOutputStream output) { |
| 102 | } |
| 103 | |
| 104 | public int CalculateSize() { |
| 105 | int size = 0; |
| 106 | return size; |
| 107 | } |
| 108 | |
| 109 | public void MergeFrom(Empty other) { |
| 110 | if (other == null) { |
| 111 | return; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | public void MergeFrom(pb::CodedInputStream input) { |
| 116 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 117 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 118 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 119 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame] | 120 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 121 | break; |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | } |
| 127 | |
| 128 | #endregion |
| 129 | |
| 130 | } |
| 131 | |
| 132 | #endregion Designer generated code |