• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // <auto-generated>
2 //     Generated by the protocol buffer compiler.  DO NOT EDIT!
3 //     source: helloworld.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 Helloworld {
13 
14   /// <summary>Holder for reflection information generated from helloworld.proto</summary>
15   public static partial class HelloworldReflection {
16 
17     #region Descriptor
18     /// <summary>File descriptor for helloworld.proto</summary>
19     public static pbr::FileDescriptor Descriptor {
20       get { return descriptor; }
21     }
22     private static pbr::FileDescriptor descriptor;
23 
HelloworldReflection()24     static HelloworldReflection() {
25       byte[] descriptorData = global::System.Convert.FromBase64String(
26           string.Concat(
27             "ChBoZWxsb3dvcmxkLnByb3RvEgpoZWxsb3dvcmxkIhwKDEhlbGxvUmVxdWVz",
28             "dBIMCgRuYW1lGAEgASgJIh0KCkhlbGxvUmVwbHkSDwoHbWVzc2FnZRgBIAEo",
29             "CTJJCgdHcmVldGVyEj4KCFNheUhlbGxvEhguaGVsbG93b3JsZC5IZWxsb1Jl",
30             "cXVlc3QaFi5oZWxsb3dvcmxkLkhlbGxvUmVwbHkiAEI2Chtpby5ncnBjLmV4",
31             "YW1wbGVzLmhlbGxvd29ybGRCD0hlbGxvV29ybGRQcm90b1ABogIDSExXYgZw",
32             "cm90bzM="));
33       descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
34           new pbr::FileDescriptor[] { },
35           new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
36             new pbr::GeneratedClrTypeInfo(typeof(global::Helloworld.HelloRequest), global::Helloworld.HelloRequest.Parser, new[]{ "Name" }, null, null, null),
37             new pbr::GeneratedClrTypeInfo(typeof(global::Helloworld.HelloReply), global::Helloworld.HelloReply.Parser, new[]{ "Message" }, null, null, null)
38           }));
39     }
40     #endregion
41 
42   }
43   #region Messages
44   /// <summary>
45   /// The request message containing the user's name.
46   /// </summary>
47   public sealed partial class HelloRequest : pb::IMessage<HelloRequest> {
48     private static readonly pb::MessageParser<HelloRequest> _parser = new pb::MessageParser<HelloRequest>(() => new HelloRequest());
49     private pb::UnknownFieldSet _unknownFields;
50     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
51     public static pb::MessageParser<HelloRequest> Parser { get { return _parser; } }
52 
53     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
54     public static pbr::MessageDescriptor Descriptor {
55       get { return global::Helloworld.HelloworldReflection.Descriptor.MessageTypes[0]; }
56     }
57 
58     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
59     pbr::MessageDescriptor pb::IMessage.Descriptor {
60       get { return Descriptor; }
61     }
62 
63     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HelloRequest()64     public HelloRequest() {
65       OnConstruction();
66     }
67 
OnConstruction()68     partial void OnConstruction();
69 
70     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HelloRequest(HelloRequest other)71     public HelloRequest(HelloRequest other) : this() {
72       name_ = other.name_;
73       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
74     }
75 
76     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()77     public HelloRequest Clone() {
78       return new HelloRequest(this);
79     }
80 
81     /// <summary>Field number for the "name" field.</summary>
82     public const int NameFieldNumber = 1;
83     private string name_ = "";
84     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
85     public string Name {
86       get { return name_; }
87       set {
88         name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
89       }
90     }
91 
92     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)93     public override bool Equals(object other) {
94       return Equals(other as HelloRequest);
95     }
96 
97     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HelloRequest other)98     public bool Equals(HelloRequest other) {
99       if (ReferenceEquals(other, null)) {
100         return false;
101       }
102       if (ReferenceEquals(other, this)) {
103         return true;
104       }
105       if (Name != other.Name) return false;
106       return Equals(_unknownFields, other._unknownFields);
107     }
108 
109     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()110     public override int GetHashCode() {
111       int hash = 1;
112       if (Name.Length != 0) hash ^= Name.GetHashCode();
113       if (_unknownFields != null) {
114         hash ^= _unknownFields.GetHashCode();
115       }
116       return hash;
117     }
118 
119     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()120     public override string ToString() {
121       return pb::JsonFormatter.ToDiagnosticString(this);
122     }
123 
124     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)125     public void WriteTo(pb::CodedOutputStream output) {
126       if (Name.Length != 0) {
127         output.WriteRawTag(10);
128         output.WriteString(Name);
129       }
130       if (_unknownFields != null) {
131         _unknownFields.WriteTo(output);
132       }
133     }
134 
135     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()136     public int CalculateSize() {
137       int size = 0;
138       if (Name.Length != 0) {
139         size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
140       }
141       if (_unknownFields != null) {
142         size += _unknownFields.CalculateSize();
143       }
144       return size;
145     }
146 
147     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HelloRequest other)148     public void MergeFrom(HelloRequest other) {
149       if (other == null) {
150         return;
151       }
152       if (other.Name.Length != 0) {
153         Name = other.Name;
154       }
155       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
156     }
157 
158     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)159     public void MergeFrom(pb::CodedInputStream input) {
160       uint tag;
161       while ((tag = input.ReadTag()) != 0) {
162         switch(tag) {
163           default:
164             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
165             break;
166           case 10: {
167             Name = input.ReadString();
168             break;
169           }
170         }
171       }
172     }
173 
174   }
175 
176   /// <summary>
177   /// The response message containing the greetings
178   /// </summary>
179   public sealed partial class HelloReply : pb::IMessage<HelloReply> {
180     private static readonly pb::MessageParser<HelloReply> _parser = new pb::MessageParser<HelloReply>(() => new HelloReply());
181     private pb::UnknownFieldSet _unknownFields;
182     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
183     public static pb::MessageParser<HelloReply> Parser { get { return _parser; } }
184 
185     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
186     public static pbr::MessageDescriptor Descriptor {
187       get { return global::Helloworld.HelloworldReflection.Descriptor.MessageTypes[1]; }
188     }
189 
190     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
191     pbr::MessageDescriptor pb::IMessage.Descriptor {
192       get { return Descriptor; }
193     }
194 
195     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HelloReply()196     public HelloReply() {
197       OnConstruction();
198     }
199 
OnConstruction()200     partial void OnConstruction();
201 
202     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
HelloReply(HelloReply other)203     public HelloReply(HelloReply other) : this() {
204       message_ = other.message_;
205       _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
206     }
207 
208     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Clone()209     public HelloReply Clone() {
210       return new HelloReply(this);
211     }
212 
213     /// <summary>Field number for the "message" field.</summary>
214     public const int MessageFieldNumber = 1;
215     private string message_ = "";
216     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
217     public string Message {
218       get { return message_; }
219       set {
220         message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
221       }
222     }
223 
224     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(object other)225     public override bool Equals(object other) {
226       return Equals(other as HelloReply);
227     }
228 
229     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Equals(HelloReply other)230     public bool Equals(HelloReply other) {
231       if (ReferenceEquals(other, null)) {
232         return false;
233       }
234       if (ReferenceEquals(other, this)) {
235         return true;
236       }
237       if (Message != other.Message) return false;
238       return Equals(_unknownFields, other._unknownFields);
239     }
240 
241     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
GetHashCode()242     public override int GetHashCode() {
243       int hash = 1;
244       if (Message.Length != 0) hash ^= Message.GetHashCode();
245       if (_unknownFields != null) {
246         hash ^= _unknownFields.GetHashCode();
247       }
248       return hash;
249     }
250 
251     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
ToString()252     public override string ToString() {
253       return pb::JsonFormatter.ToDiagnosticString(this);
254     }
255 
256     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
WriteTo(pb::CodedOutputStream output)257     public void WriteTo(pb::CodedOutputStream output) {
258       if (Message.Length != 0) {
259         output.WriteRawTag(10);
260         output.WriteString(Message);
261       }
262       if (_unknownFields != null) {
263         _unknownFields.WriteTo(output);
264       }
265     }
266 
267     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
CalculateSize()268     public int CalculateSize() {
269       int size = 0;
270       if (Message.Length != 0) {
271         size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
272       }
273       if (_unknownFields != null) {
274         size += _unknownFields.CalculateSize();
275       }
276       return size;
277     }
278 
279     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(HelloReply other)280     public void MergeFrom(HelloReply other) {
281       if (other == null) {
282         return;
283       }
284       if (other.Message.Length != 0) {
285         Message = other.Message;
286       }
287       _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
288     }
289 
290     [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
MergeFrom(pb::CodedInputStream input)291     public void MergeFrom(pb::CodedInputStream input) {
292       uint tag;
293       while ((tag = input.ReadTag()) != 0) {
294         switch(tag) {
295           default:
296             _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
297             break;
298           case 10: {
299             Message = input.ReadString();
300             break;
301           }
302         }
303       }
304     }
305 
306   }
307 
308   #endregion
309 
310 }
311 
312 #endregion Designer generated code
313