blob: e08ea2400b9d51220b46ed381ec17205f0604aef [file] [log] [blame]
Jon Skeet62a4aa52015-07-14 14:26:49 +01001// 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
6using pb = global::Google.Protobuf;
7using pbc = global::Google.Protobuf.Collections;
8using pbr = global::Google.Protobuf.Reflection;
9using scg = global::System.Collections.Generic;
10namespace Google.Protobuf.WellKnownTypes {
11
Jon Skeet284bb452015-11-05 09:13:53 +000012 /// <summary>Holder for reflection information generated from google/protobuf/empty.proto</summary>
13 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
14 public static partial class EmptyReflection {
Jon Skeet62a4aa52015-07-14 14:26:49 +010015
Jon Skeet284bb452015-11-05 09:13:53 +000016 #region Descriptor
17 /// <summary>File descriptor for google/protobuf/empty.proto</summary>
18 public static pbr::FileDescriptor Descriptor {
19 get { return descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010020 }
Jon Skeet284bb452015-11-05 09:13:53 +000021 private static pbr::FileDescriptor descriptor;
22
23 static EmptyReflection() {
24 byte[] descriptorData = global::System.Convert.FromBase64String(
25 string.Concat(
26 "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1",
Jon Skeetc588ac42016-04-20 17:19:42 +010027 "ZiIHCgVFbXB0eUJ5ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv",
28 "UAFaJ2dpdGh1Yi5jb20vZ29sYW5nL3Byb3RvYnVmL3B0eXBlcy9lbXB0eaAB",
29 "AfgBAaICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IG",
30 "cHJvdG8z"));
Jon Skeeta2667aa2015-11-19 17:14:23 +000031 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
Jon Skeet284bb452015-11-05 09:13:53 +000032 new pbr::FileDescriptor[] { },
Jon Skeetb6159962016-02-04 07:08:55 +000033 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
34 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null, null, null)
Jon Skeet284bb452015-11-05 09:13:53 +000035 }));
36 }
37 #endregion
38
Jon Skeet62a4aa52015-07-14 14:26:49 +010039 }
40 #region Messages
Jon Skeet18e0a2e2015-10-01 10:38:01 +010041 /// <summary>
42 /// A generic empty message that you can re-use to avoid defining duplicated
43 /// empty messages in your APIs. A typical example is to use it as the request
44 /// or the response type of an API method. For instance:
Jon Skeetcff900e2015-11-06 18:38:31 +000045 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010046 /// service Foo {
47 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
48 /// }
Jon Skeetcff900e2015-11-06 18:38:31 +000049 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010050 /// The JSON representation for `Empty` is empty JSON object `{}`.
51 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
53 public sealed partial class Empty : pb::IMessage<Empty> {
54 private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
55 public static pb::MessageParser<Empty> Parser { get { return _parser; } }
56
Jon Skeet62a4aa52015-07-14 14:26:49 +010057 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +000058 get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor.MessageTypes[0]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010059 }
60
Jon Skeet96cffaa2015-07-20 19:25:07 +010061 pbr::MessageDescriptor pb::IMessage.Descriptor {
62 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010063 }
64
Jon Skeet62a4aa52015-07-14 14:26:49 +010065 public Empty() {
66 OnConstruction();
67 }
68
69 partial void OnConstruction();
70
71 public Empty(Empty other) : this() {
72 }
73
74 public Empty Clone() {
75 return new Empty(this);
76 }
77
Jon Skeet62a4aa52015-07-14 14:26:49 +010078 public override bool Equals(object other) {
79 return Equals(other as Empty);
80 }
81
82 public bool Equals(Empty other) {
83 if (ReferenceEquals(other, null)) {
84 return false;
85 }
86 if (ReferenceEquals(other, this)) {
87 return true;
88 }
89 return true;
90 }
91
92 public override int GetHashCode() {
93 int hash = 1;
94 return hash;
95 }
96
97 public override string ToString() {
Jon Skeetadee6fe2015-12-15 09:24:04 +000098 return pb::JsonFormatter.ToDiagnosticString(this);
Jon Skeet62a4aa52015-07-14 14:26:49 +010099 }
100
101 public void WriteTo(pb::CodedOutputStream output) {
102 }
103
104 public int CalculateSize() {
105 int size = 0;
106 return size;
107 }
108
109 public void MergeFrom(Empty other) {
110 if (other == null) {
111 return;
112 }
113 }
114
115 public void MergeFrom(pb::CodedInputStream input) {
116 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100117 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100118 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100119 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100120 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100121 break;
122 }
123 }
124 }
125
126 }
127
128 #endregion
129
130}
131
132#endregion Designer generated code