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 | |
| 14 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 15 | public static partial class Empty { |
| 16 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 17 | #region Descriptor |
| 18 | public static pbr::FileDescriptor Descriptor { |
| 19 | get { return descriptor; } |
| 20 | } |
| 21 | private static pbr::FileDescriptor descriptor; |
| 22 | |
| 23 | static Empty() { |
| 24 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 | string.Concat( |
| 26 | "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1", |
| 27 | "ZiIHCgVFbXB0eUJKChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv", |
| 28 | "UAGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnBy", |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 29 | "b3RvMw==")); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 30 | descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 31 | new pbr::FileDescriptor[] { }, |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 32 | new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { |
| 33 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Empty), null, null, null, null) |
| 34 | })); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 35 | } |
| 36 | #endregion |
| 37 | |
| 38 | } |
| 39 | } |
| 40 | #region Messages |
| 41 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 42 | public sealed partial class Empty : pb::IMessage<Empty> { |
| 43 | private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); |
| 44 | public static pb::MessageParser<Empty> Parser { get { return _parser; } } |
| 45 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 46 | public static pbr::MessageDescriptor Descriptor { |
| 47 | get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.Descriptor.MessageTypes[0]; } |
| 48 | } |
| 49 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 50 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 51 | get { return Descriptor; } |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 52 | } |
| 53 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 54 | public Empty() { |
| 55 | OnConstruction(); |
| 56 | } |
| 57 | |
| 58 | partial void OnConstruction(); |
| 59 | |
| 60 | public Empty(Empty other) : this() { |
| 61 | } |
| 62 | |
| 63 | public Empty Clone() { |
| 64 | return new Empty(this); |
| 65 | } |
| 66 | |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 67 | public override bool Equals(object other) { |
| 68 | return Equals(other as Empty); |
| 69 | } |
| 70 | |
| 71 | public bool Equals(Empty other) { |
| 72 | if (ReferenceEquals(other, null)) { |
| 73 | return false; |
| 74 | } |
| 75 | if (ReferenceEquals(other, this)) { |
| 76 | return true; |
| 77 | } |
| 78 | return true; |
| 79 | } |
| 80 | |
| 81 | public override int GetHashCode() { |
| 82 | int hash = 1; |
| 83 | return hash; |
| 84 | } |
| 85 | |
| 86 | public override string ToString() { |
| 87 | return pb::JsonFormatter.Default.Format(this); |
| 88 | } |
| 89 | |
| 90 | public void WriteTo(pb::CodedOutputStream output) { |
| 91 | } |
| 92 | |
| 93 | public int CalculateSize() { |
| 94 | int size = 0; |
| 95 | return size; |
| 96 | } |
| 97 | |
| 98 | public void MergeFrom(Empty other) { |
| 99 | if (other == null) { |
| 100 | return; |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | public void MergeFrom(pb::CodedInputStream input) { |
| 105 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 106 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 107 | switch(tag) { |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 108 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame^] | 109 | input.SkipLastField(); |
Jon Skeet | 62a4aa5 | 2015-07-14 14:26:49 +0100 | [diff] [blame] | 110 | break; |
| 111 | } |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | } |
| 116 | |
| 117 | #endregion |
| 118 | |
| 119 | } |
| 120 | |
| 121 | #endregion Designer generated code |