1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: helloworld.proto
3 #pragma warning disable 1591, 0612, 3021
4 #region Designer generated code
6 using pb = global::Google.Protobuf;
7 using pbc = global::Google.Protobuf.Collections;
8 using pbr = global::Google.Protobuf.Reflection;
9 using scg = global::System.Collections.Generic;
10 namespace Helloworld {
12 /// <summary>Holder for reflection information generated from helloworld.proto</summary>
13 public static partial class HelloworldReflection {
16 /// <summary>File descriptor for helloworld.proto</summary>
17 public static pbr::FileDescriptor Descriptor {
18 get { return descriptor; }
20 private static pbr::FileDescriptor descriptor;
22 static HelloworldReflection() {
23 byte[] descriptorData = global::System.Convert.FromBase64String(
25 "ChBoZWxsb3dvcmxkLnByb3RvEgpoZWxsb3dvcmxkIhwKDEhlbGxvUmVxdWVz",
26 "dBIMCgRuYW1lGAEgASgJIh0KCkhlbGxvUmVwbHkSDwoHbWVzc2FnZRgBIAEo",
27 "CTJJCgdHcmVldGVyEj4KCFNheUhlbGxvEhguaGVsbG93b3JsZC5IZWxsb1Jl",
28 "cXVlc3QaFi5oZWxsb3dvcmxkLkhlbGxvUmVwbHkiAEI2Chtpby5ncnBjLmV4",
29 "YW1wbGVzLmhlbGxvd29ybGRCD0hlbGxvV29ybGRQcm90b1ABogIDSExXYgZw",
31 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
32 new pbr::FileDescriptor[] { },
33 new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
34 new pbr::GeneratedClrTypeInfo(typeof(global::Helloworld.HelloRequest), global::Helloworld.HelloRequest.Parser, new[]{ "Name" }, null, null, null),
35 new pbr::GeneratedClrTypeInfo(typeof(global::Helloworld.HelloReply), global::Helloworld.HelloReply.Parser, new[]{ "Message" }, null, null, null)
43 /// The request message containing the user's name.
45 public sealed partial class HelloRequest : pb::IMessage<HelloRequest> {
46 private static readonly pb::MessageParser<HelloRequest> _parser = new pb::MessageParser<HelloRequest>(() => new HelloRequest());
47 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
48 public static pb::MessageParser<HelloRequest> Parser { get { return _parser; } }
50 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
51 public static pbr::MessageDescriptor Descriptor {
52 get { return global::Helloworld.HelloworldReflection.Descriptor.MessageTypes[0]; }
55 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
56 pbr::MessageDescriptor pb::IMessage.Descriptor {
57 get { return Descriptor; }
60 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
61 public HelloRequest() {
65 partial void OnConstruction();
67 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
68 public HelloRequest(HelloRequest other) : this() {
72 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
73 public HelloRequest Clone() {
74 return new HelloRequest(this);
77 /// <summary>Field number for the "name" field.</summary>
78 public const int NameFieldNumber = 1;
79 private string name_ = "";
80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
84 name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
88 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
89 public override bool Equals(object other) {
90 return Equals(other as HelloRequest);
93 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
94 public bool Equals(HelloRequest other) {
95 if (ReferenceEquals(other, null)) {
98 if (ReferenceEquals(other, this)) {
101 if (Name != other.Name) return false;
105 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
106 public override int GetHashCode() {
108 if (Name.Length != 0) hash ^= Name.GetHashCode();
112 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
113 public override string ToString() {
114 return pb::JsonFormatter.ToDiagnosticString(this);
117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
118 public void WriteTo(pb::CodedOutputStream output) {
119 if (Name.Length != 0) {
120 output.WriteRawTag(10);
121 output.WriteString(Name);
125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
126 public int CalculateSize() {
128 if (Name.Length != 0) {
129 size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
135 public void MergeFrom(HelloRequest other) {
139 if (other.Name.Length != 0) {
144 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
145 public void MergeFrom(pb::CodedInputStream input) {
147 while ((tag = input.ReadTag()) != 0) {
150 input.SkipLastField();
153 Name = input.ReadString();
163 /// The response message containing the greetings
165 public sealed partial class HelloReply : pb::IMessage<HelloReply> {
166 private static readonly pb::MessageParser<HelloReply> _parser = new pb::MessageParser<HelloReply>(() => new HelloReply());
167 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
168 public static pb::MessageParser<HelloReply> Parser { get { return _parser; } }
170 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
171 public static pbr::MessageDescriptor Descriptor {
172 get { return global::Helloworld.HelloworldReflection.Descriptor.MessageTypes[1]; }
175 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
176 pbr::MessageDescriptor pb::IMessage.Descriptor {
177 get { return Descriptor; }
180 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
181 public HelloReply() {
185 partial void OnConstruction();
187 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
188 public HelloReply(HelloReply other) : this() {
189 message_ = other.message_;
192 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
193 public HelloReply Clone() {
194 return new HelloReply(this);
197 /// <summary>Field number for the "message" field.</summary>
198 public const int MessageFieldNumber = 1;
199 private string message_ = "";
200 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
201 public string Message {
202 get { return message_; }
204 message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
208 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
209 public override bool Equals(object other) {
210 return Equals(other as HelloReply);
213 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
214 public bool Equals(HelloReply other) {
215 if (ReferenceEquals(other, null)) {
218 if (ReferenceEquals(other, this)) {
221 if (Message != other.Message) return false;
225 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
226 public override int GetHashCode() {
228 if (Message.Length != 0) hash ^= Message.GetHashCode();
232 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
233 public override string ToString() {
234 return pb::JsonFormatter.ToDiagnosticString(this);
237 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
238 public void WriteTo(pb::CodedOutputStream output) {
239 if (Message.Length != 0) {
240 output.WriteRawTag(10);
241 output.WriteString(Message);
245 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
246 public int CalculateSize() {
248 if (Message.Length != 0) {
249 size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
254 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
255 public void MergeFrom(HelloReply other) {
259 if (other.Message.Length != 0) {
260 Message = other.Message;
264 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
265 public void MergeFrom(pb::CodedInputStream input) {
267 while ((tag = input.ReadTag()) != 0) {
270 input.SkipLastField();
273 Message = input.ReadString();
286 #endregion Designer generated code