Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 2 | // source: src/proto/grpc/testing/empty.proto |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 3 | #pragma warning disable 1591, 0612, 3021 |
| 4 | #region Designer generated code |
| 5 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 6 | using pb = global::Google.Protobuf; |
| 7 | using pbc = global::Google.Protobuf.Collections; |
| 8 | using pbr = global::Google.Protobuf.Reflection; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 9 | using scg = global::System.Collections.Generic; |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 10 | namespace Grpc.Testing { |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 11 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 12 | /// <summary>Holder for reflection information generated from src/proto/grpc/testing/empty.proto</summary> |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 13 | public static partial class EmptyReflection { |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 14 | |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 15 | #region Descriptor |
| 16 | /// <summary>File descriptor for src/proto/grpc/testing/empty.proto</summary> |
| 17 | public static pbr::FileDescriptor Descriptor { |
| 18 | get { return descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 19 | } |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 20 | private static pbr::FileDescriptor descriptor; |
| 21 | |
| 22 | static EmptyReflection() { |
| 23 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 24 | string.Concat( |
| 25 | "CiJzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VtcHR5LnByb3RvEgxncnBjLnRl", |
| 26 | "c3RpbmciBwoFRW1wdHliBnByb3RvMw==")); |
| 27 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 28 | new pbr::FileDescriptor[] { }, |
Jan Tattermusch | c96fdde | 2016-05-16 17:08:41 -0700 | [diff] [blame] | 29 | new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
| 30 | new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Empty), global::Grpc.Testing.Empty.Parser, null, null, null, null) |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 31 | })); |
| 32 | } |
| 33 | #endregion |
| 34 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 35 | } |
| 36 | #region Messages |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 37 | /// <summary> |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 38 | /// An empty message that you can re-use to avoid defining duplicated empty |
| 39 | /// messages in your project. A typical example is to use it as argument or the |
| 40 | /// return value of a service API. For instance: |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 41 | /// |
Jan Tattermusch | d687e92 | 2017-02-22 09:12:00 +0100 | [diff] [blame] | 42 | /// service Foo { |
| 43 | /// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { }; |
| 44 | /// }; |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 45 | /// </summary> |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 46 | public sealed partial class Empty : pb::IMessage<Empty> { |
| 47 | private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 48 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 49 | public static pb::MessageParser<Empty> Parser { get { return _parser; } } |
| 50 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 51 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 52 | public static pbr::MessageDescriptor Descriptor { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 53 | get { return global::Grpc.Testing.EmptyReflection.Descriptor.MessageTypes[0]; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 54 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 55 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 56 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 57 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 58 | get { return Descriptor; } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 59 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 60 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 61 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 62 | public Empty() { |
| 63 | OnConstruction(); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 64 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 65 | |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 66 | partial void OnConstruction(); |
| 67 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 68 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 69 | public Empty(Empty other) : this() { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 70 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 71 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 72 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 73 | public Empty Clone() { |
| 74 | return new Empty(this); |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 75 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 76 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 77 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 78 | public override bool Equals(object other) { |
| 79 | return Equals(other as Empty); |
| 80 | } |
| 81 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 82 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 83 | public bool Equals(Empty other) { |
| 84 | if (ReferenceEquals(other, null)) { |
| 85 | return false; |
| 86 | } |
| 87 | if (ReferenceEquals(other, this)) { |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 88 | return true; |
| 89 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 90 | return true; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 91 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 92 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 93 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 94 | public override int GetHashCode() { |
| 95 | int hash = 1; |
| 96 | return hash; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 97 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 98 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 99 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 100 | public override string ToString() { |
Jan Tattermusch | 72ce442 | 2016-01-20 13:54:38 -0800 | [diff] [blame] | 101 | return pb::JsonFormatter.ToDiagnosticString(this); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 102 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 103 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 104 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 105 | public void WriteTo(pb::CodedOutputStream output) { |
| 106 | } |
| 107 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 108 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 109 | public int CalculateSize() { |
| 110 | int size = 0; |
| 111 | return size; |
| 112 | } |
| 113 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 114 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 115 | public void MergeFrom(Empty other) { |
| 116 | if (other == null) { |
| 117 | return; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 118 | } |
| 119 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 120 | |
Jan Tattermusch | 10098d1 | 2016-10-06 13:15:12 +0200 | [diff] [blame] | 121 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 122 | public void MergeFrom(pb::CodedInputStream input) { |
| 123 | uint tag; |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 124 | while ((tag = input.ReadTag()) != 0) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 125 | switch(tag) { |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 126 | default: |
Jan Tattermusch | 38536a7 | 2015-08-08 00:45:52 -0700 | [diff] [blame] | 127 | input.SkipLastField(); |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 128 | break; |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 129 | } |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 130 | } |
Jan Tattermusch | 475f75a | 2015-08-03 09:46:04 -0700 | [diff] [blame] | 131 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 132 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 133 | } |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 134 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 135 | #endregion |
Craig Tiller | 190d360 | 2015-02-18 09:23:38 -0800 | [diff] [blame] | 136 | |
Jan Tattermusch | a4b63bf | 2015-02-06 10:07:59 -0800 | [diff] [blame] | 137 | } |
| 138 | |
| 139 | #endregion Designer generated code |