parent
2173301c84
commit
8559efa37b
6 changed files with 1044 additions and 0 deletions
@ -0,0 +1,33 @@ |
|||||||
|
syntax = "proto3"; |
||||||
|
|
||||||
|
package UltraCombos.Frozen.RoyalGallery; |
||||||
|
|
||||||
|
service Resource { |
||||||
|
rpc GetPage (Device) returns (Page) {} |
||||||
|
rpc SendData (DataRequest) returns (DataReply) {} |
||||||
|
} |
||||||
|
|
||||||
|
message Empty {} |
||||||
|
|
||||||
|
message Device { |
||||||
|
int32 id = 1; |
||||||
|
} |
||||||
|
|
||||||
|
message Page { |
||||||
|
string id = 1; |
||||||
|
string serial = 2; |
||||||
|
string message = 3; |
||||||
|
} |
||||||
|
|
||||||
|
message DataRequest { |
||||||
|
string id = 1; |
||||||
|
string serial = 2; |
||||||
|
string message = 3; |
||||||
|
bytes content = 4; |
||||||
|
bytes signature = 5; |
||||||
|
bytes thumbnail = 6; |
||||||
|
} |
||||||
|
|
||||||
|
message DataReply { |
||||||
|
string result = 1; |
||||||
|
} |
||||||
@ -0,0 +1,128 @@ |
|||||||
|
// <auto-generated> |
||||||
|
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||||
|
// source: Ultracombos.Frozen.RoyalGallery.proto |
||||||
|
// </auto-generated> |
||||||
|
#pragma warning disable 0414, 1591 |
||||||
|
#region Designer generated code |
||||||
|
|
||||||
|
using grpc = global::Grpc.Core; |
||||||
|
|
||||||
|
namespace UltraCombos.Frozen.RoyalGallery { |
||||||
|
public static partial class Resource |
||||||
|
{ |
||||||
|
static readonly string __ServiceName = "UltraCombos.Frozen.RoyalGallery.Resource"; |
||||||
|
|
||||||
|
static readonly grpc::Marshaller<global::UltraCombos.Frozen.RoyalGallery.Device> __Marshaller_UltraCombos_Frozen_RoyalGallery_Device = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Frozen.RoyalGallery.Device.Parser.ParseFrom); |
||||||
|
static readonly grpc::Marshaller<global::UltraCombos.Frozen.RoyalGallery.Page> __Marshaller_UltraCombos_Frozen_RoyalGallery_Page = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Frozen.RoyalGallery.Page.Parser.ParseFrom); |
||||||
|
static readonly grpc::Marshaller<global::UltraCombos.Frozen.RoyalGallery.DataRequest> __Marshaller_UltraCombos_Frozen_RoyalGallery_DataRequest = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Frozen.RoyalGallery.DataRequest.Parser.ParseFrom); |
||||||
|
static readonly grpc::Marshaller<global::UltraCombos.Frozen.RoyalGallery.DataReply> __Marshaller_UltraCombos_Frozen_RoyalGallery_DataReply = grpc::Marshallers.Create((arg) => global::Google.Protobuf.MessageExtensions.ToByteArray(arg), global::UltraCombos.Frozen.RoyalGallery.DataReply.Parser.ParseFrom); |
||||||
|
|
||||||
|
static readonly grpc::Method<global::UltraCombos.Frozen.RoyalGallery.Device, global::UltraCombos.Frozen.RoyalGallery.Page> __Method_GetPage = new grpc::Method<global::UltraCombos.Frozen.RoyalGallery.Device, global::UltraCombos.Frozen.RoyalGallery.Page>( |
||||||
|
grpc::MethodType.Unary, |
||||||
|
__ServiceName, |
||||||
|
"GetPage", |
||||||
|
__Marshaller_UltraCombos_Frozen_RoyalGallery_Device, |
||||||
|
__Marshaller_UltraCombos_Frozen_RoyalGallery_Page); |
||||||
|
|
||||||
|
static readonly grpc::Method<global::UltraCombos.Frozen.RoyalGallery.DataRequest, global::UltraCombos.Frozen.RoyalGallery.DataReply> __Method_SendData = new grpc::Method<global::UltraCombos.Frozen.RoyalGallery.DataRequest, global::UltraCombos.Frozen.RoyalGallery.DataReply>( |
||||||
|
grpc::MethodType.Unary, |
||||||
|
__ServiceName, |
||||||
|
"SendData", |
||||||
|
__Marshaller_UltraCombos_Frozen_RoyalGallery_DataRequest, |
||||||
|
__Marshaller_UltraCombos_Frozen_RoyalGallery_DataReply); |
||||||
|
|
||||||
|
/// <summary>Service descriptor</summary> |
||||||
|
public static global::Google.Protobuf.Reflection.ServiceDescriptor Descriptor |
||||||
|
{ |
||||||
|
get { return global::UltraCombos.Frozen.RoyalGallery.UltracombosFrozenRoyalGalleryReflection.Descriptor.Services[0]; } |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Base class for server-side implementations of Resource</summary> |
||||||
|
public abstract partial class ResourceBase |
||||||
|
{ |
||||||
|
public virtual global::System.Threading.Tasks.Task<global::UltraCombos.Frozen.RoyalGallery.Page> GetPage(global::UltraCombos.Frozen.RoyalGallery.Device request, grpc::ServerCallContext context) |
||||||
|
{ |
||||||
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); |
||||||
|
} |
||||||
|
|
||||||
|
public virtual global::System.Threading.Tasks.Task<global::UltraCombos.Frozen.RoyalGallery.DataReply> SendData(global::UltraCombos.Frozen.RoyalGallery.DataRequest request, grpc::ServerCallContext context) |
||||||
|
{ |
||||||
|
throw new grpc::RpcException(new grpc::Status(grpc::StatusCode.Unimplemented, "")); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Client for Resource</summary> |
||||||
|
public partial class ResourceClient : grpc::ClientBase<ResourceClient> |
||||||
|
{ |
||||||
|
/// <summary>Creates a new client for Resource</summary> |
||||||
|
/// <param name="channel">The channel to use to make remote calls.</param> |
||||||
|
public ResourceClient(grpc::Channel channel) : base(channel) |
||||||
|
{ |
||||||
|
} |
||||||
|
/// <summary>Creates a new client for Resource that uses a custom <c>CallInvoker</c>.</summary> |
||||||
|
/// <param name="callInvoker">The callInvoker to use to make remote calls.</param> |
||||||
|
public ResourceClient(grpc::CallInvoker callInvoker) : base(callInvoker) |
||||||
|
{ |
||||||
|
} |
||||||
|
/// <summary>Protected parameterless constructor to allow creation of test doubles.</summary> |
||||||
|
protected ResourceClient() : base() |
||||||
|
{ |
||||||
|
} |
||||||
|
/// <summary>Protected constructor to allow creation of configured clients.</summary> |
||||||
|
/// <param name="configuration">The client configuration.</param> |
||||||
|
protected ResourceClient(ClientBaseConfiguration configuration) : base(configuration) |
||||||
|
{ |
||||||
|
} |
||||||
|
|
||||||
|
public virtual global::UltraCombos.Frozen.RoyalGallery.Page GetPage(global::UltraCombos.Frozen.RoyalGallery.Device request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) |
||||||
|
{ |
||||||
|
return GetPage(request, new grpc::CallOptions(headers, deadline, cancellationToken)); |
||||||
|
} |
||||||
|
public virtual global::UltraCombos.Frozen.RoyalGallery.Page GetPage(global::UltraCombos.Frozen.RoyalGallery.Device request, grpc::CallOptions options) |
||||||
|
{ |
||||||
|
return CallInvoker.BlockingUnaryCall(__Method_GetPage, null, options, request); |
||||||
|
} |
||||||
|
public virtual grpc::AsyncUnaryCall<global::UltraCombos.Frozen.RoyalGallery.Page> GetPageAsync(global::UltraCombos.Frozen.RoyalGallery.Device request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) |
||||||
|
{ |
||||||
|
return GetPageAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); |
||||||
|
} |
||||||
|
public virtual grpc::AsyncUnaryCall<global::UltraCombos.Frozen.RoyalGallery.Page> GetPageAsync(global::UltraCombos.Frozen.RoyalGallery.Device request, grpc::CallOptions options) |
||||||
|
{ |
||||||
|
return CallInvoker.AsyncUnaryCall(__Method_GetPage, null, options, request); |
||||||
|
} |
||||||
|
public virtual global::UltraCombos.Frozen.RoyalGallery.DataReply SendData(global::UltraCombos.Frozen.RoyalGallery.DataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) |
||||||
|
{ |
||||||
|
return SendData(request, new grpc::CallOptions(headers, deadline, cancellationToken)); |
||||||
|
} |
||||||
|
public virtual global::UltraCombos.Frozen.RoyalGallery.DataReply SendData(global::UltraCombos.Frozen.RoyalGallery.DataRequest request, grpc::CallOptions options) |
||||||
|
{ |
||||||
|
return CallInvoker.BlockingUnaryCall(__Method_SendData, null, options, request); |
||||||
|
} |
||||||
|
public virtual grpc::AsyncUnaryCall<global::UltraCombos.Frozen.RoyalGallery.DataReply> SendDataAsync(global::UltraCombos.Frozen.RoyalGallery.DataRequest request, grpc::Metadata headers = null, global::System.DateTime? deadline = null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threading.CancellationToken)) |
||||||
|
{ |
||||||
|
return SendDataAsync(request, new grpc::CallOptions(headers, deadline, cancellationToken)); |
||||||
|
} |
||||||
|
public virtual grpc::AsyncUnaryCall<global::UltraCombos.Frozen.RoyalGallery.DataReply> SendDataAsync(global::UltraCombos.Frozen.RoyalGallery.DataRequest request, grpc::CallOptions options) |
||||||
|
{ |
||||||
|
return CallInvoker.AsyncUnaryCall(__Method_SendData, null, options, request); |
||||||
|
} |
||||||
|
/// <summary>Creates a new instance of client from given <c>ClientBaseConfiguration</c>.</summary> |
||||||
|
protected override ResourceClient NewInstance(ClientBaseConfiguration configuration) |
||||||
|
{ |
||||||
|
return new ResourceClient(configuration); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Creates service definition that can be registered with a server</summary> |
||||||
|
/// <param name="serviceImpl">An object implementing the server-side handling logic.</param> |
||||||
|
public static grpc::ServerServiceDefinition BindService(ResourceBase serviceImpl) |
||||||
|
{ |
||||||
|
return grpc::ServerServiceDefinition.CreateBuilder() |
||||||
|
.AddMethod(__Method_GetPage, serviceImpl.GetPage) |
||||||
|
.AddMethod(__Method_SendData, serviceImpl.SendData).Build(); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
#endregion |
||||||
@ -0,0 +1,870 @@ |
|||||||
|
// <auto-generated> |
||||||
|
// Generated by the protocol buffer compiler. DO NOT EDIT! |
||||||
|
// source: Ultracombos.Frozen.RoyalGallery.proto |
||||||
|
// </auto-generated> |
||||||
|
#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 UltraCombos.Frozen.RoyalGallery { |
||||||
|
|
||||||
|
/// <summary>Holder for reflection information generated from Ultracombos.Frozen.RoyalGallery.proto</summary> |
||||||
|
public static partial class UltracombosFrozenRoyalGalleryReflection { |
||||||
|
|
||||||
|
#region Descriptor |
||||||
|
/// <summary>File descriptor for Ultracombos.Frozen.RoyalGallery.proto</summary> |
||||||
|
public static pbr::FileDescriptor Descriptor { |
||||||
|
get { return descriptor; } |
||||||
|
} |
||||||
|
private static pbr::FileDescriptor descriptor; |
||||||
|
|
||||||
|
static UltracombosFrozenRoyalGalleryReflection() { |
||||||
|
byte[] descriptorData = global::System.Convert.FromBase64String( |
||||||
|
string.Concat( |
||||||
|
"CiVVbHRyYWNvbWJvcy5Gcm96ZW4uUm95YWxHYWxsZXJ5LnByb3RvEh9VbHRy", |
||||||
|
"YUNvbWJvcy5Gcm96ZW4uUm95YWxHYWxsZXJ5IgcKBUVtcHR5IhQKBkRldmlj", |
||||||
|
"ZRIKCgJpZBgBIAEoBSIzCgRQYWdlEgoKAmlkGAEgASgJEg4KBnNlcmlhbBgC", |
||||||
|
"IAEoCRIPCgdtZXNzYWdlGAMgASgJInEKC0RhdGFSZXF1ZXN0EgoKAmlkGAEg", |
||||||
|
"ASgJEg4KBnNlcmlhbBgCIAEoCRIPCgdtZXNzYWdlGAMgASgJEg8KB2NvbnRl", |
||||||
|
"bnQYBCABKAwSEQoJc2lnbmF0dXJlGAUgASgMEhEKCXRodW1ibmFpbBgGIAEo", |
||||||
|
"DCIbCglEYXRhUmVwbHkSDgoGcmVzdWx0GAEgASgJMs8BCghSZXNvdXJjZRJb", |
||||||
|
"CgdHZXRQYWdlEicuVWx0cmFDb21ib3MuRnJvemVuLlJveWFsR2FsbGVyeS5E", |
||||||
|
"ZXZpY2UaJS5VbHRyYUNvbWJvcy5Gcm96ZW4uUm95YWxHYWxsZXJ5LlBhZ2Ui", |
||||||
|
"ABJmCghTZW5kRGF0YRIsLlVsdHJhQ29tYm9zLkZyb3plbi5Sb3lhbEdhbGxl", |
||||||
|
"cnkuRGF0YVJlcXVlc3QaKi5VbHRyYUNvbWJvcy5Gcm96ZW4uUm95YWxHYWxs", |
||||||
|
"ZXJ5LkRhdGFSZXBseSIAYgZwcm90bzM=")); |
||||||
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
||||||
|
new pbr::FileDescriptor[] { }, |
||||||
|
new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
||||||
|
new pbr::GeneratedClrTypeInfo(typeof(global::UltraCombos.Frozen.RoyalGallery.Empty), global::UltraCombos.Frozen.RoyalGallery.Empty.Parser, null, null, null, null), |
||||||
|
new pbr::GeneratedClrTypeInfo(typeof(global::UltraCombos.Frozen.RoyalGallery.Device), global::UltraCombos.Frozen.RoyalGallery.Device.Parser, new[]{ "Id" }, null, null, null), |
||||||
|
new pbr::GeneratedClrTypeInfo(typeof(global::UltraCombos.Frozen.RoyalGallery.Page), global::UltraCombos.Frozen.RoyalGallery.Page.Parser, new[]{ "Id", "Serial", "Message" }, null, null, null), |
||||||
|
new pbr::GeneratedClrTypeInfo(typeof(global::UltraCombos.Frozen.RoyalGallery.DataRequest), global::UltraCombos.Frozen.RoyalGallery.DataRequest.Parser, new[]{ "Id", "Serial", "Message", "Content", "Signature", "Thumbnail" }, null, null, null), |
||||||
|
new pbr::GeneratedClrTypeInfo(typeof(global::UltraCombos.Frozen.RoyalGallery.DataReply), global::UltraCombos.Frozen.RoyalGallery.DataReply.Parser, new[]{ "Result" }, null, null, null) |
||||||
|
})); |
||||||
|
} |
||||||
|
#endregion |
||||||
|
|
||||||
|
} |
||||||
|
#region Messages |
||||||
|
public sealed partial class Empty : pb::IMessage<Empty> { |
||||||
|
private static readonly pb::MessageParser<Empty> _parser = new pb::MessageParser<Empty>(() => new Empty()); |
||||||
|
private pb::UnknownFieldSet _unknownFields; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pb::MessageParser<Empty> Parser { get { return _parser; } } |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pbr::MessageDescriptor Descriptor { |
||||||
|
get { return global::UltraCombos.Frozen.RoyalGallery.UltracombosFrozenRoyalGalleryReflection.Descriptor.MessageTypes[0]; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
||||||
|
get { return Descriptor; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Empty() { |
||||||
|
OnConstruction(); |
||||||
|
} |
||||||
|
|
||||||
|
partial void OnConstruction(); |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Empty(Empty other) : this() { |
||||||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Empty Clone() { |
||||||
|
return new Empty(this); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override bool Equals(object other) { |
||||||
|
return Equals(other as Empty); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public bool Equals(Empty other) { |
||||||
|
if (ReferenceEquals(other, null)) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (ReferenceEquals(other, this)) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
return Equals(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override int GetHashCode() { |
||||||
|
int hash = 1; |
||||||
|
if (_unknownFields != null) { |
||||||
|
hash ^= _unknownFields.GetHashCode(); |
||||||
|
} |
||||||
|
return hash; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override string ToString() { |
||||||
|
return pb::JsonFormatter.ToDiagnosticString(this); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void WriteTo(pb::CodedOutputStream output) { |
||||||
|
if (_unknownFields != null) { |
||||||
|
_unknownFields.WriteTo(output); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public int CalculateSize() { |
||||||
|
int size = 0; |
||||||
|
if (_unknownFields != null) { |
||||||
|
size += _unknownFields.CalculateSize(); |
||||||
|
} |
||||||
|
return size; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(Empty other) { |
||||||
|
if (other == null) { |
||||||
|
return; |
||||||
|
} |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(pb::CodedInputStream input) { |
||||||
|
uint tag; |
||||||
|
while ((tag = input.ReadTag()) != 0) { |
||||||
|
switch(tag) { |
||||||
|
default: |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public sealed partial class Device : pb::IMessage<Device> { |
||||||
|
private static readonly pb::MessageParser<Device> _parser = new pb::MessageParser<Device>(() => new Device()); |
||||||
|
private pb::UnknownFieldSet _unknownFields; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pb::MessageParser<Device> Parser { get { return _parser; } } |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pbr::MessageDescriptor Descriptor { |
||||||
|
get { return global::UltraCombos.Frozen.RoyalGallery.UltracombosFrozenRoyalGalleryReflection.Descriptor.MessageTypes[1]; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
||||||
|
get { return Descriptor; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Device() { |
||||||
|
OnConstruction(); |
||||||
|
} |
||||||
|
|
||||||
|
partial void OnConstruction(); |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Device(Device other) : this() { |
||||||
|
id_ = other.id_; |
||||||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Device Clone() { |
||||||
|
return new Device(this); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "id" field.</summary> |
||||||
|
public const int IdFieldNumber = 1; |
||||||
|
private int id_; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public int Id { |
||||||
|
get { return id_; } |
||||||
|
set { |
||||||
|
id_ = value; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override bool Equals(object other) { |
||||||
|
return Equals(other as Device); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public bool Equals(Device other) { |
||||||
|
if (ReferenceEquals(other, null)) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (ReferenceEquals(other, this)) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
if (Id != other.Id) return false; |
||||||
|
return Equals(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override int GetHashCode() { |
||||||
|
int hash = 1; |
||||||
|
if (Id != 0) hash ^= Id.GetHashCode(); |
||||||
|
if (_unknownFields != null) { |
||||||
|
hash ^= _unknownFields.GetHashCode(); |
||||||
|
} |
||||||
|
return hash; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override string ToString() { |
||||||
|
return pb::JsonFormatter.ToDiagnosticString(this); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void WriteTo(pb::CodedOutputStream output) { |
||||||
|
if (Id != 0) { |
||||||
|
output.WriteRawTag(8); |
||||||
|
output.WriteInt32(Id); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
_unknownFields.WriteTo(output); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public int CalculateSize() { |
||||||
|
int size = 0; |
||||||
|
if (Id != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
size += _unknownFields.CalculateSize(); |
||||||
|
} |
||||||
|
return size; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(Device other) { |
||||||
|
if (other == null) { |
||||||
|
return; |
||||||
|
} |
||||||
|
if (other.Id != 0) { |
||||||
|
Id = other.Id; |
||||||
|
} |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(pb::CodedInputStream input) { |
||||||
|
uint tag; |
||||||
|
while ((tag = input.ReadTag()) != 0) { |
||||||
|
switch(tag) { |
||||||
|
default: |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
||||||
|
break; |
||||||
|
case 8: { |
||||||
|
Id = input.ReadInt32(); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public sealed partial class Page : pb::IMessage<Page> { |
||||||
|
private static readonly pb::MessageParser<Page> _parser = new pb::MessageParser<Page>(() => new Page()); |
||||||
|
private pb::UnknownFieldSet _unknownFields; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pb::MessageParser<Page> Parser { get { return _parser; } } |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pbr::MessageDescriptor Descriptor { |
||||||
|
get { return global::UltraCombos.Frozen.RoyalGallery.UltracombosFrozenRoyalGalleryReflection.Descriptor.MessageTypes[2]; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
||||||
|
get { return Descriptor; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Page() { |
||||||
|
OnConstruction(); |
||||||
|
} |
||||||
|
|
||||||
|
partial void OnConstruction(); |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Page(Page other) : this() { |
||||||
|
id_ = other.id_; |
||||||
|
serial_ = other.serial_; |
||||||
|
message_ = other.message_; |
||||||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public Page Clone() { |
||||||
|
return new Page(this); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "id" field.</summary> |
||||||
|
public const int IdFieldNumber = 1; |
||||||
|
private string id_ = ""; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public string Id { |
||||||
|
get { return id_; } |
||||||
|
set { |
||||||
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "serial" field.</summary> |
||||||
|
public const int SerialFieldNumber = 2; |
||||||
|
private string serial_ = ""; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public string Serial { |
||||||
|
get { return serial_; } |
||||||
|
set { |
||||||
|
serial_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "message" field.</summary> |
||||||
|
public const int MessageFieldNumber = 3; |
||||||
|
private string message_ = ""; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public string Message { |
||||||
|
get { return message_; } |
||||||
|
set { |
||||||
|
message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override bool Equals(object other) { |
||||||
|
return Equals(other as Page); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public bool Equals(Page other) { |
||||||
|
if (ReferenceEquals(other, null)) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (ReferenceEquals(other, this)) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
if (Id != other.Id) return false; |
||||||
|
if (Serial != other.Serial) return false; |
||||||
|
if (Message != other.Message) return false; |
||||||
|
return Equals(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override int GetHashCode() { |
||||||
|
int hash = 1; |
||||||
|
if (Id.Length != 0) hash ^= Id.GetHashCode(); |
||||||
|
if (Serial.Length != 0) hash ^= Serial.GetHashCode(); |
||||||
|
if (Message.Length != 0) hash ^= Message.GetHashCode(); |
||||||
|
if (_unknownFields != null) { |
||||||
|
hash ^= _unknownFields.GetHashCode(); |
||||||
|
} |
||||||
|
return hash; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override string ToString() { |
||||||
|
return pb::JsonFormatter.ToDiagnosticString(this); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void WriteTo(pb::CodedOutputStream output) { |
||||||
|
if (Id.Length != 0) { |
||||||
|
output.WriteRawTag(10); |
||||||
|
output.WriteString(Id); |
||||||
|
} |
||||||
|
if (Serial.Length != 0) { |
||||||
|
output.WriteRawTag(18); |
||||||
|
output.WriteString(Serial); |
||||||
|
} |
||||||
|
if (Message.Length != 0) { |
||||||
|
output.WriteRawTag(26); |
||||||
|
output.WriteString(Message); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
_unknownFields.WriteTo(output); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public int CalculateSize() { |
||||||
|
int size = 0; |
||||||
|
if (Id.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); |
||||||
|
} |
||||||
|
if (Serial.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Serial); |
||||||
|
} |
||||||
|
if (Message.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
size += _unknownFields.CalculateSize(); |
||||||
|
} |
||||||
|
return size; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(Page other) { |
||||||
|
if (other == null) { |
||||||
|
return; |
||||||
|
} |
||||||
|
if (other.Id.Length != 0) { |
||||||
|
Id = other.Id; |
||||||
|
} |
||||||
|
if (other.Serial.Length != 0) { |
||||||
|
Serial = other.Serial; |
||||||
|
} |
||||||
|
if (other.Message.Length != 0) { |
||||||
|
Message = other.Message; |
||||||
|
} |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(pb::CodedInputStream input) { |
||||||
|
uint tag; |
||||||
|
while ((tag = input.ReadTag()) != 0) { |
||||||
|
switch(tag) { |
||||||
|
default: |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
||||||
|
break; |
||||||
|
case 10: { |
||||||
|
Id = input.ReadString(); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 18: { |
||||||
|
Serial = input.ReadString(); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 26: { |
||||||
|
Message = input.ReadString(); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public sealed partial class DataRequest : pb::IMessage<DataRequest> { |
||||||
|
private static readonly pb::MessageParser<DataRequest> _parser = new pb::MessageParser<DataRequest>(() => new DataRequest()); |
||||||
|
private pb::UnknownFieldSet _unknownFields; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pb::MessageParser<DataRequest> Parser { get { return _parser; } } |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pbr::MessageDescriptor Descriptor { |
||||||
|
get { return global::UltraCombos.Frozen.RoyalGallery.UltracombosFrozenRoyalGalleryReflection.Descriptor.MessageTypes[3]; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
||||||
|
get { return Descriptor; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public DataRequest() { |
||||||
|
OnConstruction(); |
||||||
|
} |
||||||
|
|
||||||
|
partial void OnConstruction(); |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public DataRequest(DataRequest other) : this() { |
||||||
|
id_ = other.id_; |
||||||
|
serial_ = other.serial_; |
||||||
|
message_ = other.message_; |
||||||
|
content_ = other.content_; |
||||||
|
signature_ = other.signature_; |
||||||
|
thumbnail_ = other.thumbnail_; |
||||||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public DataRequest Clone() { |
||||||
|
return new DataRequest(this); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "id" field.</summary> |
||||||
|
public const int IdFieldNumber = 1; |
||||||
|
private string id_ = ""; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public string Id { |
||||||
|
get { return id_; } |
||||||
|
set { |
||||||
|
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "serial" field.</summary> |
||||||
|
public const int SerialFieldNumber = 2; |
||||||
|
private string serial_ = ""; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public string Serial { |
||||||
|
get { return serial_; } |
||||||
|
set { |
||||||
|
serial_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "message" field.</summary> |
||||||
|
public const int MessageFieldNumber = 3; |
||||||
|
private string message_ = ""; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public string Message { |
||||||
|
get { return message_; } |
||||||
|
set { |
||||||
|
message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "content" field.</summary> |
||||||
|
public const int ContentFieldNumber = 4; |
||||||
|
private pb::ByteString content_ = pb::ByteString.Empty; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public pb::ByteString Content { |
||||||
|
get { return content_; } |
||||||
|
set { |
||||||
|
content_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "signature" field.</summary> |
||||||
|
public const int SignatureFieldNumber = 5; |
||||||
|
private pb::ByteString signature_ = pb::ByteString.Empty; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public pb::ByteString Signature { |
||||||
|
get { return signature_; } |
||||||
|
set { |
||||||
|
signature_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "thumbnail" field.</summary> |
||||||
|
public const int ThumbnailFieldNumber = 6; |
||||||
|
private pb::ByteString thumbnail_ = pb::ByteString.Empty; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public pb::ByteString Thumbnail { |
||||||
|
get { return thumbnail_; } |
||||||
|
set { |
||||||
|
thumbnail_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override bool Equals(object other) { |
||||||
|
return Equals(other as DataRequest); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public bool Equals(DataRequest other) { |
||||||
|
if (ReferenceEquals(other, null)) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (ReferenceEquals(other, this)) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
if (Id != other.Id) return false; |
||||||
|
if (Serial != other.Serial) return false; |
||||||
|
if (Message != other.Message) return false; |
||||||
|
if (Content != other.Content) return false; |
||||||
|
if (Signature != other.Signature) return false; |
||||||
|
if (Thumbnail != other.Thumbnail) return false; |
||||||
|
return Equals(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override int GetHashCode() { |
||||||
|
int hash = 1; |
||||||
|
if (Id.Length != 0) hash ^= Id.GetHashCode(); |
||||||
|
if (Serial.Length != 0) hash ^= Serial.GetHashCode(); |
||||||
|
if (Message.Length != 0) hash ^= Message.GetHashCode(); |
||||||
|
if (Content.Length != 0) hash ^= Content.GetHashCode(); |
||||||
|
if (Signature.Length != 0) hash ^= Signature.GetHashCode(); |
||||||
|
if (Thumbnail.Length != 0) hash ^= Thumbnail.GetHashCode(); |
||||||
|
if (_unknownFields != null) { |
||||||
|
hash ^= _unknownFields.GetHashCode(); |
||||||
|
} |
||||||
|
return hash; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override string ToString() { |
||||||
|
return pb::JsonFormatter.ToDiagnosticString(this); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void WriteTo(pb::CodedOutputStream output) { |
||||||
|
if (Id.Length != 0) { |
||||||
|
output.WriteRawTag(10); |
||||||
|
output.WriteString(Id); |
||||||
|
} |
||||||
|
if (Serial.Length != 0) { |
||||||
|
output.WriteRawTag(18); |
||||||
|
output.WriteString(Serial); |
||||||
|
} |
||||||
|
if (Message.Length != 0) { |
||||||
|
output.WriteRawTag(26); |
||||||
|
output.WriteString(Message); |
||||||
|
} |
||||||
|
if (Content.Length != 0) { |
||||||
|
output.WriteRawTag(34); |
||||||
|
output.WriteBytes(Content); |
||||||
|
} |
||||||
|
if (Signature.Length != 0) { |
||||||
|
output.WriteRawTag(42); |
||||||
|
output.WriteBytes(Signature); |
||||||
|
} |
||||||
|
if (Thumbnail.Length != 0) { |
||||||
|
output.WriteRawTag(50); |
||||||
|
output.WriteBytes(Thumbnail); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
_unknownFields.WriteTo(output); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public int CalculateSize() { |
||||||
|
int size = 0; |
||||||
|
if (Id.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id); |
||||||
|
} |
||||||
|
if (Serial.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Serial); |
||||||
|
} |
||||||
|
if (Message.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); |
||||||
|
} |
||||||
|
if (Content.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content); |
||||||
|
} |
||||||
|
if (Signature.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Signature); |
||||||
|
} |
||||||
|
if (Thumbnail.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeBytesSize(Thumbnail); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
size += _unknownFields.CalculateSize(); |
||||||
|
} |
||||||
|
return size; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(DataRequest other) { |
||||||
|
if (other == null) { |
||||||
|
return; |
||||||
|
} |
||||||
|
if (other.Id.Length != 0) { |
||||||
|
Id = other.Id; |
||||||
|
} |
||||||
|
if (other.Serial.Length != 0) { |
||||||
|
Serial = other.Serial; |
||||||
|
} |
||||||
|
if (other.Message.Length != 0) { |
||||||
|
Message = other.Message; |
||||||
|
} |
||||||
|
if (other.Content.Length != 0) { |
||||||
|
Content = other.Content; |
||||||
|
} |
||||||
|
if (other.Signature.Length != 0) { |
||||||
|
Signature = other.Signature; |
||||||
|
} |
||||||
|
if (other.Thumbnail.Length != 0) { |
||||||
|
Thumbnail = other.Thumbnail; |
||||||
|
} |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(pb::CodedInputStream input) { |
||||||
|
uint tag; |
||||||
|
while ((tag = input.ReadTag()) != 0) { |
||||||
|
switch(tag) { |
||||||
|
default: |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
||||||
|
break; |
||||||
|
case 10: { |
||||||
|
Id = input.ReadString(); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 18: { |
||||||
|
Serial = input.ReadString(); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 26: { |
||||||
|
Message = input.ReadString(); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 34: { |
||||||
|
Content = input.ReadBytes(); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 42: { |
||||||
|
Signature = input.ReadBytes(); |
||||||
|
break; |
||||||
|
} |
||||||
|
case 50: { |
||||||
|
Thumbnail = input.ReadBytes(); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
public sealed partial class DataReply : pb::IMessage<DataReply> { |
||||||
|
private static readonly pb::MessageParser<DataReply> _parser = new pb::MessageParser<DataReply>(() => new DataReply()); |
||||||
|
private pb::UnknownFieldSet _unknownFields; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pb::MessageParser<DataReply> Parser { get { return _parser; } } |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public static pbr::MessageDescriptor Descriptor { |
||||||
|
get { return global::UltraCombos.Frozen.RoyalGallery.UltracombosFrozenRoyalGalleryReflection.Descriptor.MessageTypes[4]; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
pbr::MessageDescriptor pb::IMessage.Descriptor { |
||||||
|
get { return Descriptor; } |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public DataReply() { |
||||||
|
OnConstruction(); |
||||||
|
} |
||||||
|
|
||||||
|
partial void OnConstruction(); |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public DataReply(DataReply other) : this() { |
||||||
|
result_ = other.result_; |
||||||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public DataReply Clone() { |
||||||
|
return new DataReply(this); |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>Field number for the "result" field.</summary> |
||||||
|
public const int ResultFieldNumber = 1; |
||||||
|
private string result_ = ""; |
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public string Result { |
||||||
|
get { return result_; } |
||||||
|
set { |
||||||
|
result_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override bool Equals(object other) { |
||||||
|
return Equals(other as DataReply); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public bool Equals(DataReply other) { |
||||||
|
if (ReferenceEquals(other, null)) { |
||||||
|
return false; |
||||||
|
} |
||||||
|
if (ReferenceEquals(other, this)) { |
||||||
|
return true; |
||||||
|
} |
||||||
|
if (Result != other.Result) return false; |
||||||
|
return Equals(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override int GetHashCode() { |
||||||
|
int hash = 1; |
||||||
|
if (Result.Length != 0) hash ^= Result.GetHashCode(); |
||||||
|
if (_unknownFields != null) { |
||||||
|
hash ^= _unknownFields.GetHashCode(); |
||||||
|
} |
||||||
|
return hash; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public override string ToString() { |
||||||
|
return pb::JsonFormatter.ToDiagnosticString(this); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void WriteTo(pb::CodedOutputStream output) { |
||||||
|
if (Result.Length != 0) { |
||||||
|
output.WriteRawTag(10); |
||||||
|
output.WriteString(Result); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
_unknownFields.WriteTo(output); |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public int CalculateSize() { |
||||||
|
int size = 0; |
||||||
|
if (Result.Length != 0) { |
||||||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Result); |
||||||
|
} |
||||||
|
if (_unknownFields != null) { |
||||||
|
size += _unknownFields.CalculateSize(); |
||||||
|
} |
||||||
|
return size; |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(DataReply other) { |
||||||
|
if (other == null) { |
||||||
|
return; |
||||||
|
} |
||||||
|
if (other.Result.Length != 0) { |
||||||
|
Result = other.Result; |
||||||
|
} |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
||||||
|
} |
||||||
|
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
||||||
|
public void MergeFrom(pb::CodedInputStream input) { |
||||||
|
uint tag; |
||||||
|
while ((tag = input.ReadTag()) != 0) { |
||||||
|
switch(tag) { |
||||||
|
default: |
||||||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
||||||
|
break; |
||||||
|
case 10: { |
||||||
|
Result = input.ReadString(); |
||||||
|
break; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
#endregion |
||||||
|
|
||||||
|
} |
||||||
|
|
||||||
|
#endregion Designer generated code |
||||||
@ -0,0 +1,13 @@ |
|||||||
|
set name=%~n1 |
||||||
|
set output_path_csharp=%name%\csharp |
||||||
|
set plugin_path_csharp=grpc_csharp_plugin.exe |
||||||
|
md %name% |
||||||
|
md %output_path_csharp% |
||||||
|
|
||||||
|
protoc.exe --proto_path=.\^ |
||||||
|
--plugin=protoc-gen-grpc=%plugin_path_csharp%^ |
||||||
|
--grpc_out=%output_path_csharp%^ |
||||||
|
--csharp_out=%output_path_csharp%^ |
||||||
|
%name%.proto |
||||||
|
|
||||||
|
pause |
||||||
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue