blob: f2d2de01d4b4eb8939e27c42d5ba0ab400916e37 [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
12 namespace Proto {
13
Jon Skeetb0888a42015-09-29 13:37:30 +010014 /// <summary>Holder for reflection information generated from google/protobuf/empty.proto</summary>
Jon Skeete2c82302015-09-29 14:34:31 +010015 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
Jon Skeet62a4aa52015-07-14 14:26:49 +010016 public static partial class Empty {
17
Jon Skeet62a4aa52015-07-14 14:26:49 +010018 #region Descriptor
Jon Skeetb0888a42015-09-29 13:37:30 +010019 /// <summary>File descriptor for google/protobuf/empty.proto</summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010020 public static pbr::FileDescriptor Descriptor {
21 get { return descriptor; }
22 }
23 private static pbr::FileDescriptor descriptor;
24
25 static Empty() {
26 byte[] descriptorData = global::System.Convert.FromBase64String(
27 string.Concat(
Jon Skeet94898172015-09-01 15:47:48 +010028 "Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1",
29 "ZiIHCgVFbXB0eUJNChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3Rv",
30 "UAGgAQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNi",
31 "BnByb3RvMw=="));
Jon Skeet62a4aa52015-07-14 14:26:49 +010032 descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
Jon Skeet96cffaa2015-07-20 19:25:07 +010033 new pbr::FileDescriptor[] { },
Jon Skeet47bf49b2015-07-22 11:39:38 +010034 new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] {
35 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Empty), null, null, null, null)
36 }));
Jon Skeet62a4aa52015-07-14 14:26:49 +010037 }
38 #endregion
39
40 }
41 }
42 #region Messages
Jon Skeet18e0a2e2015-10-01 10:38:01 +010043 /// <summary>
44 /// A generic empty message that you can re-use to avoid defining duplicated
45 /// empty messages in your APIs. A typical example is to use it as the request
46 /// or the response type of an API method. For instance:
Jon Skeetcff900e2015-11-06 18:38:31 +000047 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010048 /// service Foo {
49 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
50 /// }
Jon Skeetcff900e2015-11-06 18:38:31 +000051 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010052 /// The JSON representation for `Empty` is empty JSON object `{}`.
53 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010054 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
55 public sealed partial class Empty : pb::IMessage<Empty> {
56 private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
57 public static pb::MessageParser<Empty> Parser { get { return _parser; } }
58
Jon Skeet62a4aa52015-07-14 14:26:49 +010059 public static pbr::MessageDescriptor Descriptor {
60 get { return global::Google.Protobuf.WellKnownTypes.Proto.Empty.Descriptor.MessageTypes[0]; }
61 }
62
Jon Skeet96cffaa2015-07-20 19:25:07 +010063 pbr::MessageDescriptor pb::IMessage.Descriptor {
64 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010065 }
66
Jon Skeet62a4aa52015-07-14 14:26:49 +010067 public Empty() {
68 OnConstruction();
69 }
70
71 partial void OnConstruction();
72
73 public Empty(Empty other) : this() {
74 }
75
76 public Empty Clone() {
77 return new Empty(this);
78 }
79
Jon Skeet62a4aa52015-07-14 14:26:49 +010080 public override bool Equals(object other) {
81 return Equals(other as Empty);
82 }
83
84 public bool Equals(Empty other) {
85 if (ReferenceEquals(other, null)) {
86 return false;
87 }
88 if (ReferenceEquals(other, this)) {
89 return true;
90 }
91 return true;
92 }
93
94 public override int GetHashCode() {
95 int hash = 1;
96 return hash;
97 }
98
99 public override string ToString() {
100 return pb::JsonFormatter.Default.Format(this);
101 }
102
103 public void WriteTo(pb::CodedOutputStream output) {
104 }
105
106 public int CalculateSize() {
107 int size = 0;
108 return size;
109 }
110
111 public void MergeFrom(Empty other) {
112 if (other == null) {
113 return;
114 }
115 }
116
117 public void MergeFrom(pb::CodedInputStream input) {
118 uint tag;
Jon Skeet1a57ad82015-08-05 11:23:52 +0100119 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100120 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100121 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100122 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100123 break;
124 }
125 }
126 }
127
128 }
129
130 #endregion
131
132}
133
134#endregion Designer generated code