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