mirror of https://github.com/grpc/grpc.git
The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)
https://grpc.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
287 lines
8.8 KiB
287 lines
8.8 KiB
9 years ago
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
// source: helloworld.proto
|
||
|
#pragma warning disable 1591, 0612, 3021
|
||
|
#region Designer generated code
|
||
|
|
||
|
using pb = global::Google.Protobuf;
|
||
|
using pbc = global::Google.Protobuf.Collections;
|
||
|
using pbr = global::Google.Protobuf.Reflection;
|
||
|
using scg = global::System.Collections.Generic;
|
||
|
namespace Helloworld {
|
||
|
|
||
9 years ago
|
/// <summary>Holder for reflection information generated from helloworld.proto</summary>
|
||
|
public static partial class HelloworldReflection {
|
||
9 years ago
|
|
||
|
#region Descriptor
|
||
9 years ago
|
/// <summary>File descriptor for helloworld.proto</summary>
|
||
9 years ago
|
public static pbr::FileDescriptor Descriptor {
|
||
|
get { return descriptor; }
|
||
|
}
|
||
|
private static pbr::FileDescriptor descriptor;
|
||
|
|
||
9 years ago
|
static HelloworldReflection() {
|
||
9 years ago
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||
|
string.Concat(
|
||
9 years ago
|
"ChBoZWxsb3dvcmxkLnByb3RvEgpoZWxsb3dvcmxkIhwKDEhlbGxvUmVxdWVz",
|
||
|
"dBIMCgRuYW1lGAEgASgJIh0KCkhlbGxvUmVwbHkSDwoHbWVzc2FnZRgBIAEo",
|
||
|
"CTJJCgdHcmVldGVyEj4KCFNheUhlbGxvEhguaGVsbG93b3JsZC5IZWxsb1Jl",
|
||
9 years ago
|
"cXVlc3QaFi5oZWxsb3dvcmxkLkhlbGxvUmVwbHkiAEI2Chtpby5ncnBjLmV4",
|
||
|
"YW1wbGVzLmhlbGxvd29ybGRCD0hlbGxvV29ybGRQcm90b1ABogIDSExXYgZw",
|
||
|
"cm90bzM="));
|
||
9 years ago
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||
9 years ago
|
new pbr::FileDescriptor[] { },
|
||
9 years ago
|
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::Helloworld.HelloRequest), global::Helloworld.HelloRequest.Parser, new[]{ "Name" }, null, null, null),
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::Helloworld.HelloReply), global::Helloworld.HelloReply.Parser, new[]{ "Message" }, null, null, null)
|
||
9 years ago
|
}));
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
#region Messages
|
||
9 years ago
|
/// <summary>
|
||
8 years ago
|
/// The request message containing the user's name.
|
||
9 years ago
|
/// </summary>
|
||
9 years ago
|
public sealed partial class HelloRequest : pb::IMessage<HelloRequest> {
|
||
|
private static readonly pb::MessageParser<HelloRequest> _parser = new pb::MessageParser<HelloRequest>(() => new HelloRequest());
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public static pb::MessageParser<HelloRequest> Parser { get { return _parser; } }
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public static pbr::MessageDescriptor Descriptor {
|
||
9 years ago
|
get { return global::Helloworld.HelloworldReflection.Descriptor.MessageTypes[0]; }
|
||
9 years ago
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||
|
get { return Descriptor; }
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public HelloRequest() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public HelloRequest(HelloRequest other) : this() {
|
||
|
name_ = other.name_;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public HelloRequest Clone() {
|
||
|
return new HelloRequest(this);
|
||
|
}
|
||
|
|
||
9 years ago
|
/// <summary>Field number for the "name" field.</summary>
|
||
9 years ago
|
public const int NameFieldNumber = 1;
|
||
|
private string name_ = "";
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public string Name {
|
||
|
get { return name_; }
|
||
|
set {
|
||
9 years ago
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
9 years ago
|
}
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public override bool Equals(object other) {
|
||
|
return Equals(other as HelloRequest);
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public bool Equals(HelloRequest other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (Name != other.Name) return false;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public override int GetHashCode() {
|
||
|
int hash = 1;
|
||
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
||
|
return hash;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public override string ToString() {
|
||
9 years ago
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
||
9 years ago
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public void WriteTo(pb::CodedOutputStream output) {
|
||
|
if (Name.Length != 0) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteString(Name);
|
||
|
}
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public int CalculateSize() {
|
||
|
int size = 0;
|
||
|
if (Name.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public void MergeFrom(HelloRequest other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.Name.Length != 0) {
|
||
|
Name = other.Name;
|
||
|
}
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public void MergeFrom(pb::CodedInputStream input) {
|
||
|
uint tag;
|
||
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
input.SkipLastField();
|
||
|
break;
|
||
|
case 10: {
|
||
|
Name = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
9 years ago
|
/// <summary>
|
||
8 years ago
|
/// The response message containing the greetings
|
||
9 years ago
|
/// </summary>
|
||
9 years ago
|
public sealed partial class HelloReply : pb::IMessage<HelloReply> {
|
||
|
private static readonly pb::MessageParser<HelloReply> _parser = new pb::MessageParser<HelloReply>(() => new HelloReply());
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public static pb::MessageParser<HelloReply> Parser { get { return _parser; } }
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public static pbr::MessageDescriptor Descriptor {
|
||
9 years ago
|
get { return global::Helloworld.HelloworldReflection.Descriptor.MessageTypes[1]; }
|
||
9 years ago
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||
|
get { return Descriptor; }
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public HelloReply() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public HelloReply(HelloReply other) : this() {
|
||
|
message_ = other.message_;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public HelloReply Clone() {
|
||
|
return new HelloReply(this);
|
||
|
}
|
||
|
|
||
9 years ago
|
/// <summary>Field number for the "message" field.</summary>
|
||
9 years ago
|
public const int MessageFieldNumber = 1;
|
||
|
private string message_ = "";
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public string Message {
|
||
|
get { return message_; }
|
||
|
set {
|
||
9 years ago
|
message_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
9 years ago
|
}
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public override bool Equals(object other) {
|
||
|
return Equals(other as HelloReply);
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public bool Equals(HelloReply other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (Message != other.Message) return false;
|
||
|
return true;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public override int GetHashCode() {
|
||
|
int hash = 1;
|
||
|
if (Message.Length != 0) hash ^= Message.GetHashCode();
|
||
|
return hash;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public override string ToString() {
|
||
9 years ago
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
||
9 years ago
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public void WriteTo(pb::CodedOutputStream output) {
|
||
|
if (Message.Length != 0) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteString(Message);
|
||
|
}
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public int CalculateSize() {
|
||
|
int size = 0;
|
||
|
if (Message.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public void MergeFrom(HelloReply other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.Message.Length != 0) {
|
||
|
Message = other.Message;
|
||
|
}
|
||
|
}
|
||
|
|
||
8 years ago
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
9 years ago
|
public void MergeFrom(pb::CodedInputStream input) {
|
||
|
uint tag;
|
||
|
while ((tag = input.ReadTag()) != 0) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
input.SkipLastField();
|
||
|
break;
|
||
|
case 10: {
|
||
|
Message = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion Designer generated code
|