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