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     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
57     public static pb::MessageParser<Empty> Parser { get { return _parser; } }
58 
59     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
60     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
61     public static pbr::MessageDescriptor Descriptor {
62       get { return global::Grpc.Testing.EmptyReflection.Descriptor.MessageTypes[0]; }
63     }
64 
65     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
66     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
67     pbr::MessageDescriptor pb::IMessage.Descriptor {
68       get { return Descriptor; }
69     }
70 
71     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
72     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Empty()73     public Empty() {
74       OnConstruction();
75     }
76 
OnConstruction()77     partial void OnConstruction();
78 
79     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
80     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Empty(Empty other)81     public Empty(Empty other) : this() {
82       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
83     }
84 
85     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
86     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Clone()87     public Empty Clone() {
88       return new Empty(this);
89     }
90 
91     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
92     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(object other)93     public override bool Equals(object other) {
94       return Equals(other as Empty);
95     }
96 
97     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
98     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
Equals(Empty other)99     public bool Equals(Empty other) {
100       if (ReferenceEquals(other, null)) {
101         return false;
102       }
103       if (ReferenceEquals(other, this)) {
104         return true;
105       }
106       return Equals(_unknownFields, other._unknownFields);
107     }
108 
109     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
110     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
GetHashCode()111     public override int GetHashCode() {
112       int hash = 1;
113       if (_unknownFields != null) {
114         hash ^= _unknownFields.GetHashCode();
115       }
116       return hash;
117     }
118 
119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
120     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
ToString()121     public override string ToString() {
122       return pb::JsonFormatter.ToDiagnosticString(this);
123     }
124 
125     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
126     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
WriteTo(pb::CodedOutputStream output)127     public void WriteTo(pb::CodedOutputStream output) {
128     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
129       output.WriteRawMessage(this);
130     #else
131       if (_unknownFields != null) {
132         _unknownFields.WriteTo(output);
133       }
134     #endif
135     }
136 
137     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
138     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
139     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalWriteTo(ref pb::WriteContext output)140     void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
141       if (_unknownFields != null) {
142         _unknownFields.WriteTo(ref output);
143       }
144     }
145     #endif
146 
147     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
148     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
CalculateSize()149     public int CalculateSize() {
150       int size = 0;
151       if (_unknownFields != null) {
152         size += _unknownFields.CalculateSize();
153       }
154       return size;
155     }
156 
157     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
158     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(Empty other)159     public void MergeFrom(Empty other) {
160       if (other == null) {
161         return;
162       }
163       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
164     }
165 
166     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
167     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
MergeFrom(pb::CodedInputStream input)168     public void MergeFrom(pb::CodedInputStream input) {
169     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
170       input.ReadRawMessage(this);
171     #else
172       uint tag;
173       while ((tag = input.ReadTag()) != 0) {
174         switch(tag) {
175           default:
176             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
177             break;
178         }
179       }
180     #endif
181     }
182 
183     #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
184     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
185     [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)186     void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
187       uint tag;
188       while ((tag = input.ReadTag()) != 0) {
189         switch(tag) {
190           default:
191             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
192             break;
193         }
194       }
195     }
196     #endif
197 
198   }
199 
200   #endregion
201 
202 }
203 
204 #endregion Designer generated code
205