blob: 3b09f1e8ac003249cad8f086701b198e94a42e47 [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",
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 Skeeteadd4ca2015-11-13 20:04:14 +000033 new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.WellKnownTypes.Empty), global::Google.Protobuf.WellKnownTypes.Empty.Parser, null, null, null, null)
Jon Skeet284bb452015-11-05 09:13:53 +000034 }));
35 }
36 #endregion
37
Jon Skeet62a4aa52015-07-14 14:26:49 +010038 }
39 #region Messages
Jon Skeet18e0a2e2015-10-01 10:38:01 +010040 /// <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 Skeetcff900e2015-11-06 18:38:31 +000044 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010045 /// service Foo {
46 /// rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
47 /// }
Jon Skeetcff900e2015-11-06 18:38:31 +000048 ///
Jon Skeet18e0a2e2015-10-01 10:38:01 +010049 /// The JSON representation for `Empty` is empty JSON object `{}`.
50 /// </summary>
Jon Skeet62a4aa52015-07-14 14:26:49 +010051 [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 Skeet62a4aa52015-07-14 14:26:49 +010056 public static pbr::MessageDescriptor Descriptor {
Jon Skeet284bb452015-11-05 09:13:53 +000057 get { return global::Google.Protobuf.WellKnownTypes.EmptyReflection.Descriptor.MessageTypes[0]; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010058 }
59
Jon Skeet96cffaa2015-07-20 19:25:07 +010060 pbr::MessageDescriptor pb::IMessage.Descriptor {
61 get { return Descriptor; }
Jon Skeet62a4aa52015-07-14 14:26:49 +010062 }
63
Jon Skeet62a4aa52015-07-14 14:26:49 +010064 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 Skeet62a4aa52015-07-14 14:26:49 +010077 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 Skeet1a57ad82015-08-05 11:23:52 +0100116 while ((tag = input.ReadTag()) != 0) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100117 switch(tag) {
Jon Skeet62a4aa52015-07-14 14:26:49 +0100118 default:
Jon Skeet5bdc5722015-08-06 11:40:43 +0100119 input.SkipLastField();
Jon Skeet62a4aa52015-07-14 14:26:49 +0100120 break;
121 }
122 }
123 }
124
125 }
126
127 #endregion
128
129}
130
131#endregion Designer generated code