blob: cf1c23fb0fe2dc306f58a5341b3282efb282949e [file] [log] [blame]
Jan Tattermusch475f75a2015-08-03 09:46:04 -07001// Generated by the protocol buffer compiler. DO NOT EDIT!
Jan Tattermusch72ce4422016-01-20 13:54:38 -08002// source: src/proto/grpc/testing/empty.proto
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08003#pragma warning disable 1591, 0612, 3021
4#region Designer generated code
5
Jan Tattermusch475f75a2015-08-03 09:46:04 -07006using pb = global::Google.Protobuf;
7using pbc = global::Google.Protobuf.Collections;
8using pbr = global::Google.Protobuf.Reflection;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -08009using scg = global::System.Collections.Generic;
Jan Tattermusch475f75a2015-08-03 09:46:04 -070010namespace Grpc.Testing {
Craig Tiller190d3602015-02-18 09:23:38 -080011
Jan Tattermusch72ce4422016-01-20 13:54:38 -080012 /// <summary>Holder for reflection information generated from src/proto/grpc/testing/empty.proto</summary>
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14 public static partial class EmptyReflection {
Craig Tiller190d3602015-02-18 09:23:38 -080015
Jan Tattermusch72ce4422016-01-20 13:54:38 -080016 #region Descriptor
17 /// <summary>File descriptor for src/proto/grpc/testing/empty.proto</summary>
18 public static pbr::FileDescriptor Descriptor {
19 get { return descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080020 }
Jan Tattermusch72ce4422016-01-20 13:54:38 -080021 private static pbr::FileDescriptor descriptor;
22
23 static EmptyReflection() {
24 byte[] descriptorData = global::System.Convert.FromBase64String(
25 string.Concat(
26 "CiJzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VtcHR5LnByb3RvEgxncnBjLnRl",
27 "c3RpbmciBwoFRW1wdHliBnByb3RvMw=="));
28 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
29 new pbr::FileDescriptor[] { },
Jan Tattermuschc96fdde2016-05-16 17:08:41 -070030 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
31 new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Empty), global::Grpc.Testing.Empty.Parser, null, null, null, null)
Jan Tattermusch72ce4422016-01-20 13:54:38 -080032 }));
33 }
34 #endregion
35
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080036 }
37 #region Messages
Jan Tattermusch72ce4422016-01-20 13:54:38 -080038 /// <summary>
39 /// An empty message that you can re-use to avoid defining duplicated empty
40 /// messages in your project. A typical example is to use it as argument or the
41 /// return value of a service API. For instance:
42 ///
43 /// service Foo {
44 /// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
45 /// };
46 /// </summary>
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jan Tattermusch475f75a2015-08-03 09:46:04 -070048 public sealed partial class Empty : pb::IMessage<Empty> {
49 private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
50 public static pb::MessageParser<Empty> Parser { get { return _parser; } }
51
52 public static pbr::MessageDescriptor Descriptor {
Jan Tattermusch72ce4422016-01-20 13:54:38 -080053 get { return global::Grpc.Testing.EmptyReflection.Descriptor.MessageTypes[0]; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080054 }
Craig Tiller190d3602015-02-18 09:23:38 -080055
Jan Tattermusch475f75a2015-08-03 09:46:04 -070056 pbr::MessageDescriptor pb::IMessage.Descriptor {
57 get { return Descriptor; }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080058 }
Craig Tiller190d3602015-02-18 09:23:38 -080059
Jan Tattermusch475f75a2015-08-03 09:46:04 -070060 public Empty() {
61 OnConstruction();
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080062 }
Craig Tiller190d3602015-02-18 09:23:38 -080063
Jan Tattermusch475f75a2015-08-03 09:46:04 -070064 partial void OnConstruction();
65
66 public Empty(Empty other) : this() {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080067 }
Craig Tiller190d3602015-02-18 09:23:38 -080068
Jan Tattermusch475f75a2015-08-03 09:46:04 -070069 public Empty Clone() {
70 return new Empty(this);
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080071 }
Craig Tiller190d3602015-02-18 09:23:38 -080072
Jan Tattermusch475f75a2015-08-03 09:46:04 -070073 public override bool Equals(object other) {
74 return Equals(other as Empty);
75 }
76
77 public bool Equals(Empty other) {
78 if (ReferenceEquals(other, null)) {
79 return false;
80 }
81 if (ReferenceEquals(other, this)) {
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080082 return true;
83 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -070084 return true;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080085 }
Craig Tiller190d3602015-02-18 09:23:38 -080086
Jan Tattermusch475f75a2015-08-03 09:46:04 -070087 public override int GetHashCode() {
88 int hash = 1;
89 return hash;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -080090 }
Craig Tiller190d3602015-02-18 09:23:38 -080091
Jan Tattermusch475f75a2015-08-03 09:46:04 -070092 public override string ToString() {
Jan Tattermusch72ce4422016-01-20 13:54:38 -080093 return pb::JsonFormatter.ToDiagnosticString(this);
Jan Tattermusch475f75a2015-08-03 09:46:04 -070094 }
Craig Tiller190d3602015-02-18 09:23:38 -080095
Jan Tattermusch475f75a2015-08-03 09:46:04 -070096 public void WriteTo(pb::CodedOutputStream output) {
97 }
98
99 public int CalculateSize() {
100 int size = 0;
101 return size;
102 }
103
104 public void MergeFrom(Empty other) {
105 if (other == null) {
106 return;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800107 }
108 }
Craig Tiller190d3602015-02-18 09:23:38 -0800109
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700110 public void MergeFrom(pb::CodedInputStream input) {
111 uint tag;
Jan Tattermusch38536a72015-08-08 00:45:52 -0700112 while ((tag = input.ReadTag()) != 0) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700113 switch(tag) {
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700114 default:
Jan Tattermusch38536a72015-08-08 00:45:52 -0700115 input.SkipLastField();
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700116 break;
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800117 }
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800118 }
Jan Tattermusch475f75a2015-08-03 09:46:04 -0700119 }
Craig Tiller190d3602015-02-18 09:23:38 -0800120
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800121 }
Craig Tiller190d3602015-02-18 09:23:38 -0800122
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800123 #endregion
Craig Tiller190d3602015-02-18 09:23:38 -0800124
Jan Tattermuscha4b63bf2015-02-06 10:07:59 -0800125}
126
127#endregion Designer generated code