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 | |
| 12 | namespace Proto { |
| 13 | |
Jon Skeet | b0888a4 | 2015-09-29 13:37:30 +0100 | [diff] [blame] | 14 | /// <summary>Holder for reflection information generated from google/protobuf/empty.proto</summary> |
Jon Skeet | e2c8230 | 2015-09-29 14:34:31 +0100 | [diff] [blame] | 15 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 16 | public static partial class Empty { |
| 17 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 18 | #region Descriptor |
Jon Skeet | b0888a4 | 2015-09-29 13:37:30 +0100 | [diff] [blame] | 19 | /// <summary>File descriptor for google/protobuf/empty.proto</summary> |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 20 | public static pbr::FileDescriptor Descriptor { |
| 21 | get { return descriptor; } |
| 22 | } |
| 23 | private static pbr::FileDescriptor descriptor; |
| 24 | |
| 25 | static Empty() { |
| 26 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 27 | string.Concat( |
Jon Skeet | 9489817 | 2015-09-01 15:47:48 +0100 | [diff] [blame] | 28 | "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", |
| 29 | "ZiIHCgVFbXB0eUJNChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", |
| 30 | "UAGgAQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNi", |
| 31 | "BnByb3RvMw==")); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 32 | descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 33 | new pbr::FileDescriptor[] { }, |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 34 | new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { |
| 35 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Empty), null, null, null, null) |
| 36 | })); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 37 | } |
| 38 | #endregion |
| 39 | |
| 40 | } |
| 41 | } |
| 42 | #region Messages |
Jon Skeet | 18e0a2e | 2015-10-01 10:38:01 +0100 | [diff] [blame] | 43 | /// <summary> |
| 44 | /// A generic empty message that you can re-use to avoid defining duplicated |
| 45 | /// empty messages in your APIs. A typical example is to use it as the request |
| 46 | /// or the response type of an API method. For instance: |
Jon Skeet | cff900e | 2015-11-06 18:38:31 +0000 | [diff] [blame^] | 47 | /// |
Jon Skeet | 18e0a2e | 2015-10-01 10:38:01 +0100 | [diff] [blame] | 48 | /// service Foo { |
| 49 | /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 50 | /// } |
Jon Skeet | cff900e | 2015-11-06 18:38:31 +0000 | [diff] [blame^] | 51 | /// |
Jon Skeet | 18e0a2e | 2015-10-01 10:38:01 +0100 | [diff] [blame] | 52 | /// The JSON representation for `Empty` is empty JSON object `{}`. |
| 53 | /// </summary> |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 54 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 55 | public sealed partial class Empty : pb::IMessage<Empty> { |
| 56 | private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); |
| 57 | public static pb::MessageParser<Empty> Parser { get { return _parser; } } |
| 58 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 59 | public static pbr::MessageDescriptor Descriptor { |
| 60 | get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.Descriptor.MessageTypes[0]; } |
| 61 | } |
| 62 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 63 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 64 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 65 | } |
| 66 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 67 | public Empty() { |
| 68 | OnConstruction(); |
| 69 | } |
| 70 | |
| 71 | partial void OnConstruction(); |
| 72 | |
| 73 | public Empty(Empty other) : this() { |
| 74 | } |
| 75 | |
| 76 | public Empty Clone() { |
| 77 | return new Empty(this); |
| 78 | } |
| 79 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 80 | public override bool Equals(object other) { |
| 81 | return Equals(other as Empty); |
| 82 | } |
| 83 | |
| 84 | public bool Equals(Empty other) { |
| 85 | if (ReferenceEquals(other, null)) { |
| 86 | return false; |
| 87 | } |
| 88 | if (ReferenceEquals(other, this)) { |
| 89 | return true; |
| 90 | } |
| 91 | return true; |
| 92 | } |
| 93 | |
| 94 | public override int GetHashCode() { |
| 95 | int hash = 1; |
| 96 | return hash; |
| 97 | } |
| 98 | |
| 99 | public override string ToString() { |
| 100 | return pb::JsonFormatter.Default.Format(this); |
| 101 | } |
| 102 | |
| 103 | public void WriteTo(pb::CodedOutputStream output) { |
| 104 | } |
| 105 | |
| 106 | public int CalculateSize() { |
| 107 | int size = 0; |
| 108 | return size; |
| 109 | } |
| 110 | |
| 111 | public void MergeFrom(Empty other) { |
| 112 | if (other == null) { |
| 113 | return; |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | public void MergeFrom(pb::CodedInputStream input) { |
| 118 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 119 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 120 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 121 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame] | 122 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 123 | break; |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | } |
| 129 | |
| 130 | #endregion |
| 131 | |
| 132 | } |
| 133 | |
| 134 | #endregion Designer generated code |