1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: src/proto/grpc/testing/empty.proto
4 // </auto-generated>
5 #pragma warning disable 1591, 0612, 3021
6 #region Designer generated code
7 
8 using pb = global::Google.Protobuf;
9 using pbc = global::Google.Protobuf.Collections;
10 using pbr = global::Google.Protobuf.Reflection;
11 using scg = global::System.Collections.Generic;
12 namespace Grpc.Testing {
13 
14   /// <summary>Holder for reflection information generated from src/proto/grpc/testing/empty.proto</summary>
15   public static partial class EmptyReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for src/proto/grpc/testing/empty.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
EmptyReflection()24     static EmptyReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "CiJzcmMvcHJvdG8vZ3JwYy90ZXN0aW5nL2VtcHR5LnByb3RvEgxncnBjLnRl",
28             "c3RpbmciBwoFRW1wdHliBnByb3RvMw=="));
29       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
30           new pbr::FileDescriptor[] { },
31           new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
32             new pbr::GeneratedClrTypeInfo(typeof(global::Grpc.Testing.Empty), global::Grpc.Testing.Empty.Parser, null, null, null, null, null)
33           }));
34     }
35     #endregion
36 
37   }
38   #region Messages
39   /// <summary>
40   /// An empty message that you can re-use to avoid defining duplicated empty
41   /// messages in your project. A typical example is to use it as argument or the
42   /// return value of a service API. For instance:
43   ///
44   ///   service Foo {
45   ///     rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
46   ///   };
47   /// </summary>
48   public sealed partial class Empty : pb::IMessage<Empty>
49   #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
50       , pb::IBufferMessage
51   #endif
52   {
53     private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty());
54     private pb::UnknownFieldSet _unknownFields;
55     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
56     public static pb::MessageParser<Empty> Parser { get { return _parser; } }
57 
58     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
59     public static pbr::MessageDescriptor Descriptor {
60       get { return global::Grpc.Testing.EmptyReflection.Descriptor.MessageTypes[0]; }
61     }
62 
63     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
64     pbr::MessageDescriptor pb::IMessage.Descriptor {
65       get { return Descriptor; }
66     }
67 
68     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Empty()69     public Empty() {
70       OnConstruction();
71     }
72 
OnConstruction()73     partial void OnConstruction();
74 
75     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Empty(Empty other)76     public Empty(Empty other) : this() {
77       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
78     }
79 
80     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()81     public Empty Clone() {
82       return new Empty(this);
83     }
84 
85     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)86     public override bool Equals(object other) {
87       return Equals(other as Empty);
88     }
89 
90     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(Empty other)91     public bool Equals(Empty other) {
92       if (ReferenceEquals(other, null)) {
93         return false;
94       }
95       if (ReferenceEquals(other, this)) {
96         return true;
97       }
98       return Equals(_unknownFields, other._unknownFields);
99     }
100 
101     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()102     public override int GetHashCode() {
103       int hash = 1;
104       if (_unknownFields != null) {
105         hash ^= _unknownFields.GetHashCode();
106       }
107       return hash;
108     }
109 
110     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()111     public override string ToString() {
112       return pb::JsonFormatter.ToDiagnosticString(this);
113     }
114 
115     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)116     public void WriteTo(pb::CodedOutputStream output) {
117     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
118       output.WriteRawMessage(this);
119     #else
120       if (_unknownFields != null) {
121         _unknownFields.WriteTo(output);
122       }
123     #endif
124     }
125 
126     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
127     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)128     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
129       if (_unknownFields != null) {
130         _unknownFields.WriteTo(ref output);
131       }
132     }
133     #endif
134 
135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()136     public int CalculateSize() {
137       int size = 0;
138       if (_unknownFields != null) {
139         size += _unknownFields.CalculateSize();
140       }
141       return size;
142     }
143 
144     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(Empty other)145     public void MergeFrom(Empty other) {
146       if (other == null) {
147         return;
148       }
149       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
150     }
151 
152     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)153     public void MergeFrom(pb::CodedInputStream input) {
154     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
155       input.ReadRawMessage(this);
156     #else
157       uint tag;
158       while ((tag = input.ReadTag()) != 0) {
159         switch(tag) {
160           default:
161             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
162             break;
163         }
164       }
165     #endif
166     }
167 
168     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
169     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)170     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
171       uint tag;
172       while ((tag = input.ReadTag()) != 0) {
173         switch(tag) {
174           default:
175             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
176             break;
177         }
178       }
179     }
180     #endif
181 
182   }
183 
184   #endregion
185 
186 }
187 
188 #endregion Designer generated code
189