mirror of
https://github.com/MeowCraftMC/CrystalConnector
synced 2025-05-22 02:43:00 +00:00
* 🚧 WIP v2. Signed-off-by: 秋雨落 <i@rain.cx> * 🚧 WIP v2 * 2. Signed-off-by: 秋雨落 <i@rain.cx> * ✨ It works? Signed-off-by: 秋雨落 <i@rain.cx> * ✨ Publish to nexus. Signed-off-by: 秋雨落 <i@rain.cx> --------- Signed-off-by: 秋雨落 <i@rain.cx>
1800 lines
65 KiB
C#
1800 lines
65 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: messages.proto
|
|
// </auto-generated>
|
|
#pragma warning disable 1591, 0612, 3021, 8981
|
|
#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 CrystalConnector.Protocol.Messages {
|
|
|
|
/// <summary>Holder for reflection information generated from messages.proto</summary>
|
|
public static partial class MessagesReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for messages.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static MessagesReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cg5tZXNzYWdlcy5wcm90bxIQQ3J5c3RhbENvbm5lY3RvciIxCg5OYW1lc3Bh",
|
|
"Y2VkTmFtZRIRCgluYW1lc3BhY2UYASABKAkSDAoEbmFtZRgCIAEoCSIMCgpT",
|
|
"dWNjZXNzZnVsInAKBlJlc3VsdBIyCgpzdWNjZXNzZnVsGAEgASgLMhwuQ3J5",
|
|
"c3RhbENvbm5lY3Rvci5TdWNjZXNzZnVsSAASKAoFZXJyb3IYAiABKA4yFy5D",
|
|
"cnlzdGFsQ29ubmVjdG9yLkVycm9ySABCCAoGcmVzdWx0IpkBCgxBdXRoZW50",
|
|
"aWNhdGUSMwoJY2xpZW50X2lkGAEgASgLMiAuQ3J5c3RhbENvbm5lY3Rvci5O",
|
|
"YW1lc3BhY2VkTmFtZRITCgtjbGllbnRfbmFtZRgCIAEoCRISCgpzZWNyZXRf",
|
|
"a2V5GAMgASgJEisKCGNoYW5uZWxzGAQgAygLMhkuQ3J5c3RhbENvbm5lY3Rv",
|
|
"ci5DaGFubmVsIm4KB0NoYW5uZWwSLAoCaWQYASABKAsyIC5DcnlzdGFsQ29u",
|
|
"bmVjdG9yLk5hbWVzcGFjZWROYW1lEjUKCWRpcmVjdGlvbhgCIAEoDjIiLkNy",
|
|
"eXN0YWxDb25uZWN0b3IuTWVzc2FnZURpcmVjdGlvbiJNCgdQdWJsaXNoEjEK",
|
|
"B2NoYW5uZWwYASABKAsyIC5DcnlzdGFsQ29ubmVjdG9yLk5hbWVzcGFjZWRO",
|
|
"YW1lEg8KB3BheWxvYWQYAiABKAkiYAoHRm9yd2FyZBIRCglwdWJsaXNoZXIY",
|
|
"ASABKAkSMQoHY2hhbm5lbBgCIAEoCzIgLkNyeXN0YWxDb25uZWN0b3IuTmFt",
|
|
"ZXNwYWNlZE5hbWUSDwoHcGF5bG9hZBgDIAEoCSpBChBNZXNzYWdlRGlyZWN0",
|
|
"aW9uEggKBE5PTkUQABIMCghJTkNPTUlORxABEgwKCE9VVEdPSU5HEAISBwoD",
|
|
"QUxMEAMqdQoFRXJyb3ISCwoHVU5LTk9XThAAEhEKDUFVVEhFTlRJQ0FURUQQ",
|
|
"ARIPCgtOQU1FX0VYSVNUUxACEhMKD1VOQVVUSEVOVElDQVRFRBADEhgKFFVO",
|
|
"UkVHSVNURVJFRF9DSEFOTkVMEAQSDAoISU5URVJOQUwQBUIlqgIiQ3J5c3Rh",
|
|
"bENvbm5lY3Rvci5Qcm90b2NvbC5NZXNzYWdlc2IGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(new[] {typeof(global::CrystalConnector.Protocol.Messages.MessageDirection), typeof(global::CrystalConnector.Protocol.Messages.Error), }, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::CrystalConnector.Protocol.Messages.NamespacedName), global::CrystalConnector.Protocol.Messages.NamespacedName.Parser, new[]{ "Namespace", "Name" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::CrystalConnector.Protocol.Messages.Successful), global::CrystalConnector.Protocol.Messages.Successful.Parser, null, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::CrystalConnector.Protocol.Messages.Result), global::CrystalConnector.Protocol.Messages.Result.Parser, new[]{ "Successful", "Error" }, new[]{ "Result" }, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::CrystalConnector.Protocol.Messages.Authenticate), global::CrystalConnector.Protocol.Messages.Authenticate.Parser, new[]{ "ClientId", "ClientName", "SecretKey", "Channels" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::CrystalConnector.Protocol.Messages.Channel), global::CrystalConnector.Protocol.Messages.Channel.Parser, new[]{ "Id", "Direction" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::CrystalConnector.Protocol.Messages.Publish), global::CrystalConnector.Protocol.Messages.Publish.Parser, new[]{ "Channel", "Payload" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::CrystalConnector.Protocol.Messages.Forward), global::CrystalConnector.Protocol.Messages.Forward.Parser, new[]{ "Publisher", "Channel", "Payload" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Enums
|
|
public enum MessageDirection {
|
|
[pbr::OriginalName("NONE")] None = 0,
|
|
[pbr::OriginalName("INCOMING")] Incoming = 1,
|
|
[pbr::OriginalName("OUTGOING")] Outgoing = 2,
|
|
[pbr::OriginalName("ALL")] All = 3,
|
|
}
|
|
|
|
public enum Error {
|
|
[pbr::OriginalName("UNKNOWN")] Unknown = 0,
|
|
[pbr::OriginalName("AUTHENTICATED")] Authenticated = 1,
|
|
[pbr::OriginalName("NAME_EXISTS")] NameExists = 2,
|
|
[pbr::OriginalName("UNAUTHENTICATED")] Unauthenticated = 3,
|
|
[pbr::OriginalName("UNREGISTERED_CHANNEL")] UnregisteredChannel = 4,
|
|
[pbr::OriginalName("INTERNAL")] Internal = 5,
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class NamespacedName : pb::IMessage<NamespacedName>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<NamespacedName> _parser = new pb::MessageParser<NamespacedName>(() => new NamespacedName());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<NamespacedName> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::CrystalConnector.Protocol.Messages.MessagesReflection.Descriptor.MessageTypes[0]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public NamespacedName() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public NamespacedName(NamespacedName other) : this() {
|
|
namespace_ = other.namespace_;
|
|
name_ = other.name_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public NamespacedName Clone() {
|
|
return new NamespacedName(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "namespace" field.</summary>
|
|
public const int NamespaceFieldNumber = 1;
|
|
private string namespace_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Namespace {
|
|
get { return namespace_; }
|
|
set {
|
|
namespace_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
public const int NameFieldNumber = 2;
|
|
private string name_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Name {
|
|
get { return name_; }
|
|
set {
|
|
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as NamespacedName);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(NamespacedName other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Namespace != other.Namespace) return false;
|
|
if (Name != other.Name) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Namespace.Length != 0) hash ^= Namespace.GetHashCode();
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (Namespace.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Namespace);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (Namespace.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Namespace);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Namespace.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Namespace);
|
|
}
|
|
if (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(NamespacedName other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Namespace.Length != 0) {
|
|
Namespace = other.Namespace;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Namespace = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Namespace = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Successful : pb::IMessage<Successful>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Successful> _parser = new pb::MessageParser<Successful>(() => new Successful());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Successful> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::CrystalConnector.Protocol.Messages.MessagesReflection.Descriptor.MessageTypes[1]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Successful() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Successful(Successful other) : this() {
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Successful Clone() {
|
|
return new Successful(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Successful);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Successful other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Successful other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Result : pb::IMessage<Result>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Result> _parser = new pb::MessageParser<Result>(() => new Result());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Result> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::CrystalConnector.Protocol.Messages.MessagesReflection.Descriptor.MessageTypes[2]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Result() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Result(Result other) : this() {
|
|
switch (other.ResultCase) {
|
|
case ResultOneofCase.Successful:
|
|
Successful = other.Successful.Clone();
|
|
break;
|
|
case ResultOneofCase.Error:
|
|
Error = other.Error;
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Result Clone() {
|
|
return new Result(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "successful" field.</summary>
|
|
public const int SuccessfulFieldNumber = 1;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::CrystalConnector.Protocol.Messages.Successful Successful {
|
|
get { return resultCase_ == ResultOneofCase.Successful ? (global::CrystalConnector.Protocol.Messages.Successful) result_ : null; }
|
|
set {
|
|
result_ = value;
|
|
resultCase_ = value == null ? ResultOneofCase.None : ResultOneofCase.Successful;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "error" field.</summary>
|
|
public const int ErrorFieldNumber = 2;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::CrystalConnector.Protocol.Messages.Error Error {
|
|
get { return HasError ? (global::CrystalConnector.Protocol.Messages.Error) result_ : global::CrystalConnector.Protocol.Messages.Error.Unknown; }
|
|
set {
|
|
result_ = value;
|
|
resultCase_ = ResultOneofCase.Error;
|
|
}
|
|
}
|
|
/// <summary>Gets whether the "error" field is set</summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool HasError {
|
|
get { return resultCase_ == ResultOneofCase.Error; }
|
|
}
|
|
/// <summary> Clears the value of the oneof if it's currently set to "error" </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearError() {
|
|
if (HasError) {
|
|
ClearResult();
|
|
}
|
|
}
|
|
|
|
private object result_;
|
|
/// <summary>Enum of possible cases for the "result" oneof.</summary>
|
|
public enum ResultOneofCase {
|
|
None = 0,
|
|
Successful = 1,
|
|
Error = 2,
|
|
}
|
|
private ResultOneofCase resultCase_ = ResultOneofCase.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public ResultOneofCase ResultCase {
|
|
get { return resultCase_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void ClearResult() {
|
|
resultCase_ = ResultOneofCase.None;
|
|
result_ = null;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Result);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Result other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Successful, other.Successful)) return false;
|
|
if (Error != other.Error) return false;
|
|
if (ResultCase != other.ResultCase) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (resultCase_ == ResultOneofCase.Successful) hash ^= Successful.GetHashCode();
|
|
if (HasError) hash ^= Error.GetHashCode();
|
|
hash ^= (int) resultCase_;
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (resultCase_ == ResultOneofCase.Successful) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Successful);
|
|
}
|
|
if (HasError) {
|
|
output.WriteRawTag(16);
|
|
output.WriteEnum((int) Error);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (resultCase_ == ResultOneofCase.Successful) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Successful);
|
|
}
|
|
if (HasError) {
|
|
output.WriteRawTag(16);
|
|
output.WriteEnum((int) Error);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (resultCase_ == ResultOneofCase.Successful) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Successful);
|
|
}
|
|
if (HasError) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Error);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Result other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
switch (other.ResultCase) {
|
|
case ResultOneofCase.Successful:
|
|
if (Successful == null) {
|
|
Successful = new global::CrystalConnector.Protocol.Messages.Successful();
|
|
}
|
|
Successful.MergeFrom(other.Successful);
|
|
break;
|
|
case ResultOneofCase.Error:
|
|
Error = other.Error;
|
|
break;
|
|
}
|
|
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
global::CrystalConnector.Protocol.Messages.Successful subBuilder = new global::CrystalConnector.Protocol.Messages.Successful();
|
|
if (resultCase_ == ResultOneofCase.Successful) {
|
|
subBuilder.MergeFrom(Successful);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Successful = subBuilder;
|
|
break;
|
|
}
|
|
case 16: {
|
|
result_ = input.ReadEnum();
|
|
resultCase_ = ResultOneofCase.Error;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
global::CrystalConnector.Protocol.Messages.Successful subBuilder = new global::CrystalConnector.Protocol.Messages.Successful();
|
|
if (resultCase_ == ResultOneofCase.Successful) {
|
|
subBuilder.MergeFrom(Successful);
|
|
}
|
|
input.ReadMessage(subBuilder);
|
|
Successful = subBuilder;
|
|
break;
|
|
}
|
|
case 16: {
|
|
result_ = input.ReadEnum();
|
|
resultCase_ = ResultOneofCase.Error;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Authenticate : pb::IMessage<Authenticate>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Authenticate> _parser = new pb::MessageParser<Authenticate>(() => new Authenticate());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Authenticate> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::CrystalConnector.Protocol.Messages.MessagesReflection.Descriptor.MessageTypes[3]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Authenticate() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Authenticate(Authenticate other) : this() {
|
|
clientId_ = other.clientId_ != null ? other.clientId_.Clone() : null;
|
|
clientName_ = other.clientName_;
|
|
secretKey_ = other.secretKey_;
|
|
channels_ = other.channels_.Clone();
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Authenticate Clone() {
|
|
return new Authenticate(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "client_id" field.</summary>
|
|
public const int ClientIdFieldNumber = 1;
|
|
private global::CrystalConnector.Protocol.Messages.NamespacedName clientId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::CrystalConnector.Protocol.Messages.NamespacedName ClientId {
|
|
get { return clientId_; }
|
|
set {
|
|
clientId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "client_name" field.</summary>
|
|
public const int ClientNameFieldNumber = 2;
|
|
private string clientName_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string ClientName {
|
|
get { return clientName_; }
|
|
set {
|
|
clientName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "secret_key" field.</summary>
|
|
public const int SecretKeyFieldNumber = 3;
|
|
private string secretKey_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string SecretKey {
|
|
get { return secretKey_; }
|
|
set {
|
|
secretKey_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "channels" field.</summary>
|
|
public const int ChannelsFieldNumber = 4;
|
|
private static readonly pb::FieldCodec<global::CrystalConnector.Protocol.Messages.Channel> _repeated_channels_codec
|
|
= pb::FieldCodec.ForMessage(34, global::CrystalConnector.Protocol.Messages.Channel.Parser);
|
|
private readonly pbc::RepeatedField<global::CrystalConnector.Protocol.Messages.Channel> channels_ = new pbc::RepeatedField<global::CrystalConnector.Protocol.Messages.Channel>();
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public pbc::RepeatedField<global::CrystalConnector.Protocol.Messages.Channel> Channels {
|
|
get { return channels_; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Authenticate);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Authenticate other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(ClientId, other.ClientId)) return false;
|
|
if (ClientName != other.ClientName) return false;
|
|
if (SecretKey != other.SecretKey) return false;
|
|
if(!channels_.Equals(other.channels_)) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (clientId_ != null) hash ^= ClientId.GetHashCode();
|
|
if (ClientName.Length != 0) hash ^= ClientName.GetHashCode();
|
|
if (SecretKey.Length != 0) hash ^= SecretKey.GetHashCode();
|
|
hash ^= channels_.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (clientId_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ClientId);
|
|
}
|
|
if (ClientName.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(ClientName);
|
|
}
|
|
if (SecretKey.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(SecretKey);
|
|
}
|
|
channels_.WriteTo(output, _repeated_channels_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (clientId_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(ClientId);
|
|
}
|
|
if (ClientName.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(ClientName);
|
|
}
|
|
if (SecretKey.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(SecretKey);
|
|
}
|
|
channels_.WriteTo(ref output, _repeated_channels_codec);
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (clientId_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ClientId);
|
|
}
|
|
if (ClientName.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ClientName);
|
|
}
|
|
if (SecretKey.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(SecretKey);
|
|
}
|
|
size += channels_.CalculateSize(_repeated_channels_codec);
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Authenticate other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.clientId_ != null) {
|
|
if (clientId_ == null) {
|
|
ClientId = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
ClientId.MergeFrom(other.ClientId);
|
|
}
|
|
if (other.ClientName.Length != 0) {
|
|
ClientName = other.ClientName;
|
|
}
|
|
if (other.SecretKey.Length != 0) {
|
|
SecretKey = other.SecretKey;
|
|
}
|
|
channels_.Add(other.channels_);
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (clientId_ == null) {
|
|
ClientId = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(ClientId);
|
|
break;
|
|
}
|
|
case 18: {
|
|
ClientName = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
SecretKey = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
channels_.AddEntriesFrom(input, _repeated_channels_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
if (clientId_ == null) {
|
|
ClientId = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(ClientId);
|
|
break;
|
|
}
|
|
case 18: {
|
|
ClientName = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
SecretKey = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
channels_.AddEntriesFrom(ref input, _repeated_channels_codec);
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Channel : pb::IMessage<Channel>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Channel> _parser = new pb::MessageParser<Channel>(() => new Channel());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Channel> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::CrystalConnector.Protocol.Messages.MessagesReflection.Descriptor.MessageTypes[4]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Channel() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Channel(Channel other) : this() {
|
|
id_ = other.id_ != null ? other.id_.Clone() : null;
|
|
direction_ = other.direction_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Channel Clone() {
|
|
return new Channel(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private global::CrystalConnector.Protocol.Messages.NamespacedName id_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::CrystalConnector.Protocol.Messages.NamespacedName Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "direction" field.</summary>
|
|
public const int DirectionFieldNumber = 2;
|
|
private global::CrystalConnector.Protocol.Messages.MessageDirection direction_ = global::CrystalConnector.Protocol.Messages.MessageDirection.None;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::CrystalConnector.Protocol.Messages.MessageDirection Direction {
|
|
get { return direction_; }
|
|
set {
|
|
direction_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Channel);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Channel other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Id, other.Id)) return false;
|
|
if (Direction != other.Direction) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (id_ != null) hash ^= Id.GetHashCode();
|
|
if (Direction != global::CrystalConnector.Protocol.Messages.MessageDirection.None) hash ^= Direction.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (id_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Id);
|
|
}
|
|
if (Direction != global::CrystalConnector.Protocol.Messages.MessageDirection.None) {
|
|
output.WriteRawTag(16);
|
|
output.WriteEnum((int) Direction);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (id_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Id);
|
|
}
|
|
if (Direction != global::CrystalConnector.Protocol.Messages.MessageDirection.None) {
|
|
output.WriteRawTag(16);
|
|
output.WriteEnum((int) Direction);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (id_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Id);
|
|
}
|
|
if (Direction != global::CrystalConnector.Protocol.Messages.MessageDirection.None) {
|
|
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Direction);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Channel other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.id_ != null) {
|
|
if (id_ == null) {
|
|
Id = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
Id.MergeFrom(other.Id);
|
|
}
|
|
if (other.Direction != global::CrystalConnector.Protocol.Messages.MessageDirection.None) {
|
|
Direction = other.Direction;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (id_ == null) {
|
|
Id = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(Id);
|
|
break;
|
|
}
|
|
case 16: {
|
|
Direction = (global::CrystalConnector.Protocol.Messages.MessageDirection) input.ReadEnum();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
if (id_ == null) {
|
|
Id = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(Id);
|
|
break;
|
|
}
|
|
case 16: {
|
|
Direction = (global::CrystalConnector.Protocol.Messages.MessageDirection) input.ReadEnum();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Publish : pb::IMessage<Publish>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Publish> _parser = new pb::MessageParser<Publish>(() => new Publish());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Publish> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::CrystalConnector.Protocol.Messages.MessagesReflection.Descriptor.MessageTypes[5]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Publish() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Publish(Publish other) : this() {
|
|
channel_ = other.channel_ != null ? other.channel_.Clone() : null;
|
|
payload_ = other.payload_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Publish Clone() {
|
|
return new Publish(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "channel" field.</summary>
|
|
public const int ChannelFieldNumber = 1;
|
|
private global::CrystalConnector.Protocol.Messages.NamespacedName channel_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::CrystalConnector.Protocol.Messages.NamespacedName Channel {
|
|
get { return channel_; }
|
|
set {
|
|
channel_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "payload" field.</summary>
|
|
public const int PayloadFieldNumber = 2;
|
|
private string payload_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Payload {
|
|
get { return payload_; }
|
|
set {
|
|
payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Publish);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Publish other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (!object.Equals(Channel, other.Channel)) return false;
|
|
if (Payload != other.Payload) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (channel_ != null) hash ^= Channel.GetHashCode();
|
|
if (Payload.Length != 0) hash ^= Payload.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (channel_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Channel);
|
|
}
|
|
if (Payload.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (channel_ != null) {
|
|
output.WriteRawTag(10);
|
|
output.WriteMessage(Channel);
|
|
}
|
|
if (Payload.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (channel_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Channel);
|
|
}
|
|
if (Payload.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Publish other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.channel_ != null) {
|
|
if (channel_ == null) {
|
|
Channel = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
Channel.MergeFrom(other.Channel);
|
|
}
|
|
if (other.Payload.Length != 0) {
|
|
Payload = other.Payload;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
if (channel_ == null) {
|
|
Channel = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(Channel);
|
|
break;
|
|
}
|
|
case 18: {
|
|
Payload = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
if (channel_ == null) {
|
|
Channel = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(Channel);
|
|
break;
|
|
}
|
|
case 18: {
|
|
Payload = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class Forward : pb::IMessage<Forward>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<Forward> _parser = new pb::MessageParser<Forward>(() => new Forward());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<Forward> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::CrystalConnector.Protocol.Messages.MessagesReflection.Descriptor.MessageTypes[6]; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
|
get { return Descriptor; }
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Forward() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Forward(Forward other) : this() {
|
|
publisher_ = other.publisher_;
|
|
channel_ = other.channel_ != null ? other.channel_.Clone() : null;
|
|
payload_ = other.payload_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public Forward Clone() {
|
|
return new Forward(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "publisher" field.</summary>
|
|
public const int PublisherFieldNumber = 1;
|
|
private string publisher_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Publisher {
|
|
get { return publisher_; }
|
|
set {
|
|
publisher_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "channel" field.</summary>
|
|
public const int ChannelFieldNumber = 2;
|
|
private global::CrystalConnector.Protocol.Messages.NamespacedName channel_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public global::CrystalConnector.Protocol.Messages.NamespacedName Channel {
|
|
get { return channel_; }
|
|
set {
|
|
channel_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "payload" field.</summary>
|
|
public const int PayloadFieldNumber = 3;
|
|
private string payload_ = "";
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Payload {
|
|
get { return payload_; }
|
|
set {
|
|
payload_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as Forward);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(Forward other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Publisher != other.Publisher) return false;
|
|
if (!object.Equals(Channel, other.Channel)) return false;
|
|
if (Payload != other.Payload) return false;
|
|
return Equals(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override int GetHashCode() {
|
|
int hash = 1;
|
|
if (Publisher.Length != 0) hash ^= Publisher.GetHashCode();
|
|
if (channel_ != null) hash ^= Channel.GetHashCode();
|
|
if (Payload.Length != 0) hash ^= Payload.GetHashCode();
|
|
if (_unknownFields != null) {
|
|
hash ^= _unknownFields.GetHashCode();
|
|
}
|
|
return hash;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override string ToString() {
|
|
return pb::JsonFormatter.ToDiagnosticString(this);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void WriteTo(pb::CodedOutputStream output) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
output.WriteRawMessage(this);
|
|
#else
|
|
if (Publisher.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Publisher);
|
|
}
|
|
if (channel_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Channel);
|
|
}
|
|
if (Payload.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(output);
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
|
if (Publisher.Length != 0) {
|
|
output.WriteRawTag(10);
|
|
output.WriteString(Publisher);
|
|
}
|
|
if (channel_ != null) {
|
|
output.WriteRawTag(18);
|
|
output.WriteMessage(Channel);
|
|
}
|
|
if (Payload.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
_unknownFields.WriteTo(ref output);
|
|
}
|
|
}
|
|
#endif
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int CalculateSize() {
|
|
int size = 0;
|
|
if (Publisher.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Publisher);
|
|
}
|
|
if (channel_ != null) {
|
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Channel);
|
|
}
|
|
if (Payload.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Payload);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(Forward other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Publisher.Length != 0) {
|
|
Publisher = other.Publisher;
|
|
}
|
|
if (other.channel_ != null) {
|
|
if (channel_ == null) {
|
|
Channel = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
Channel.MergeFrom(other.Channel);
|
|
}
|
|
if (other.Payload.Length != 0) {
|
|
Payload = other.Payload;
|
|
}
|
|
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(pb::CodedInputStream input) {
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
input.ReadRawMessage(this);
|
|
#else
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
|
break;
|
|
case 10: {
|
|
Publisher = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (channel_ == null) {
|
|
Channel = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(Channel);
|
|
break;
|
|
}
|
|
case 26: {
|
|
Payload = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
}
|
|
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
|
uint tag;
|
|
while ((tag = input.ReadTag()) != 0) {
|
|
switch(tag) {
|
|
default:
|
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
|
break;
|
|
case 10: {
|
|
Publisher = input.ReadString();
|
|
break;
|
|
}
|
|
case 18: {
|
|
if (channel_ == null) {
|
|
Channel = new global::CrystalConnector.Protocol.Messages.NamespacedName();
|
|
}
|
|
input.ReadMessage(Channel);
|
|
break;
|
|
}
|
|
case 26: {
|
|
Payload = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
|
|
#endregion Designer generated code
|