// Generated by the protocol buffer compiler. DO NOT EDIT! // source: smCs.proto #pragma warning disable 1591, 0612, 3021 #region Designer generated code using pb = global::Google.Protobuf; using pbc = global::Google.Protobuf.Collections; using pbr = global::Google.Protobuf.Reflection; using scg = global::System.Collections.Generic; namespace Google.Protobuf.WellKnownTypes { /// Holder for reflection information generated from smCs.proto public static partial class SmCsReflection { #region Descriptor /// File descriptor for smCs.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static SmCsReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "CgpzbUNzLnByb3RvEg9nb29nbGUucHJvdG9idWYiFQoGU01QaW5nEgsKA3Nl", "cRgBIAEoBSI5Cg5TTUNsaWVudFJlZ1JlcRISCgpjbGllbnRUeXBlGAEgASgF", "EhMKC21hY2hpbmVOYW1lGAIgASgJIjQKDlNNQ2xpZW50UmVnUmVzEhAKCHNl", "cnZlcklkGAEgAygNEhAKCHdvcmtwYXRoGAIgASgJIiYKE1NNQ29uc29sZUNv", "bW1hbmRSZXESDwoHY29tbWFuZBgBIAEoCSJKChNTTUNvbnNvbGVDb21tYW5k", "UmVzEg8KB2NvbW1hbmQYASABKAkSDwoHbWVzc2FnZRgCIAEoCRIRCglub25l", "d2xpbmUYAyABKAUi6AEKE1NNQWdlbnREb0NvbW1hbmRSZXESDgoGc2VxTnVt", "GAEgASgFEhAKCHNlcnZlcklkGAIgASgNEg8KB2NvbW1hbmQYAyABKAkSEwoL", "ZXhlRmlsZU5hbWUYBCABKAkSDwoHY21kQXJncxgFIAEoCRIQCgh3b3JrUGF0", "aBgGIAEoCRITCgtzdG9wVGltZW91dBgHIAEoBRISCgpjZW50ZXJOYW1lGAgg", "ASgJEisKCGZpbGVMaXN0GAkgAygLMhkuZ29vZ2xlLnByb3RvYnVmLkZpbGVB", "dHRyEhAKCHRlc3RNb2RlGAogASgFItgBChNTTUFnZW50RG9Db21tYW5kUmVz", "Eg4KBnNlcU51bRgBIAEoBRIQCghzZXJ2ZXJJZBgCIAEoDRIPCgdjb21tYW5k", "GAMgASgJEjIKCnJlc3VsdENvZGUYBCABKA4yHi5nb29nbGUucHJvdG9idWYu", "UmVzUmVzdWx0Q29kZRIOCgZyZXN1bHQYBSABKAkSEAoIaG9zdE5hbWUYBiAB", "KAkSDwoHYWRkSW5mbxgHIAEoCRITCgtzZXJ2ZXJJZFN0chgIIAEoCRISCgpz", "ZXJ2ZXJUeXBlGAkgASgJImMKCEZpbGVBdHRyEhAKCGZpbGVOYW1lGAEgASgJ", "Eg8KB2ZpbGVNZDUYAiABKAkSEAoIZmlsZVNpemUYAyABKAUSEAoIZmlsZVBh", "dGgYBCABKAkSEAoIZmlsZVRpbWUYBSABKAMiZAoRU01UcmFuc0ZpbGVOb3Rp", "ZnkSEAoIaG9zdE5hbWUYASABKAkSKwoIZmlsZUxpc3QYAiADKAsyGS5nb29n", "bGUucHJvdG9idWYuRmlsZUF0dHISEAoIdHJhbnNTZXEYAyABKAMicAoQU01G", "aWxlQ29udGVudFJlcRIQCghmaWxlTmFtZRgBIAEoCRIPCgdmaWxlTWQ1GAIg", "ASgJEhAKCGhvc3ROYW1lGAMgASgJEhUKDWNvbnRlbnRPZmZzZXQYBCABKAUS", "EAoIdHJhbnNTZXEYBSABKAMijgEKEFNNRmlsZUNvbnRlbnRSZXMSCwoDcmV0", "GAEgASgFEhAKCGZpbGVOYW1lGAIgASgJEg8KB2ZpbGVNZDUYAyABKAkSFQoN", "Y29udGVudE9mZnNldBgEIAEoBRIPCgdjb250ZW50GAUgASgMEhAKCGhvc3RO", "YW1lGAYgASgJEhAKCHRyYW5zU2VxGAcgASgDIlIKEVNNVHJhbnNTdWNjTm90", "aWZ5EhAKCGhvc3ROYW1lGAEgASgJEisKCGZpbGVBdHRyGAIgASgLMhkuZ29v", "Z2xlLnByb3RvYnVmLkZpbGVBdHRyIkUKDUZpbGVSZWN2U3RhdGUSEAoIZmls", "ZU5hbWUYASABKAkSDwoHZmlsZU1kNRgCIAEoCRIRCglyZWN2U3RhdGUYAyAB", "KAUiagoSU01GaWxlUmVjdlN0YXRlUmVxEhAKCHRyYW5zU2VxGAEgASgDEhAK", "CGhvc3ROYW1lGAIgASgJEjAKCGZpbGVMaXN0GAMgAygLMh4uZ29vZ2xlLnBy", "b3RvYnVmLkZpbGVSZWN2U3RhdGUiOAoSU01GaWxlUmVjdlN0YXRlUmVzEhAK", "CHRyYW5zU2VxGAEgASgDEhAKCGhvc3ROYW1lGAIgASgJIjkKE1NNQ2FuY2Vs", "VHJhbnNOb3RpZnkSEAoIdHJhbnNTZXEYASABKAMSEAoIaG9zdE5hbWUYAiAB", "KAkqtwMKB1NNTXNnSUQSEQoNU01fTVNHSURfTk9ORRAAEhEKDVNNX01TR0lE", "X1BJTkcQChIbChdTTV9NU0dJRF9DTElFTlRfUkVHX1JFURALEhsKF1NNX01T", "R0lEX0NMSUVOVF9SRUdfUkVTEAwSIAocU01fTVNHSURfQ09OU09MRV9DT01N", "QU5EX1JFURANEiAKHFNNX01TR0lEX0NPTlNPTEVfQ09NTUFORF9SRVMQDhIh", "Ch1TTV9NU0dJRF9BR0VOVF9ET19DT01NQU5EX1JFURAPEiEKHVNNX01TR0lE", "X0FHRU5UX0RPX0NPTU1BTkRfUkVTEBASHgoaU01fTVNHSURfVFJBTlNfRklM", "RV9OT1RJRlkQERIdChlTTV9NU0dJRF9GSUxFX0NPTlRFTlRfUkVREBMSHQoZ", "U01fTVNHSURfRklMRV9DT05URU5UX1JFUxAUEiAKHFNNX01TR0lEX0ZJTEVf", "UkVDVl9TVEFURV9SRVEQFRIgChxTTV9NU0dJRF9GSUxFX1JFQ1ZfU1RBVEVf", "UkVTEBYSIAocU01fTVNHSURfQ0FOQ0VMX1RSQU5TX05PVElGWRAXKswBCg1S", "ZXNSZXN1bHRDb2RlEhcKE1Jlc1Jlc3VsdENvZGVfTm9SZXMQABIZChVSZXNS", "ZXN1bHRDb2RlX1N1Y2Nlc3MQARIWChJSZXNSZXN1bHRDb2RlX0ZhaWwQAhIb", "ChdSZXNSZXN1bHRDb2RlX0V4Y2VwdGlvbhADEhkKFVJlc1Jlc3VsdENvZGVf", "VGltZU91dBAEEhkKFVJlc1Jlc3VsdENvZGVfUnVubmluZxAFEhwKGFJlc1Jl", "c3VsdENvZGVfTm90UnVubmluZxAGQoEBChNjb20uZ29vZ2xlLnByb3RvYnVm", "QgtTdHJ1Y3RQcm90b1ABWjFnaXRodWIuY29tL2dvbGFuZy9wcm90b2J1Zi9w", "dHlwZXMvc3RydWN0O3N0cnVjdHBioAEBogIDR1BCqgIeR29vZ2xlLlByb3Rv", "YnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM=")); descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, new pbr::FileDescriptor[] { }, new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.WellKnownTypes.SMMsgID), typeof(global::Google.Protobuf.WellKnownTypes.ResResultCode), }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMPing), global::Google.Protobuf.WellKnownTypes.SMPing.Parser, new[]{ "Seq" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMClientRegReq), global::Google.Protobuf.WellKnownTypes.SMClientRegReq.Parser, new[]{ "ClientType", "MachineName" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMClientRegRes), global::Google.Protobuf.WellKnownTypes.SMClientRegRes.Parser, new[]{ "ServerId", "Workpath" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMConsoleCommandReq), global::Google.Protobuf.WellKnownTypes.SMConsoleCommandReq.Parser, new[]{ "Command" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMConsoleCommandRes), global::Google.Protobuf.WellKnownTypes.SMConsoleCommandRes.Parser, new[]{ "Command", "Message", "Nonewline" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMAgentDoCommandReq), global::Google.Protobuf.WellKnownTypes.SMAgentDoCommandReq.Parser, new[]{ "SeqNum", "ServerId", "Command", "ExeFileName", "CmdArgs", "WorkPath", "StopTimeout", "CenterName", "FileList", "TestMode" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMAgentDoCommandRes), global::Google.Protobuf.WellKnownTypes.SMAgentDoCommandRes.Parser, new[]{ "SeqNum", "ServerId", "Command", "ResultCode", "Result", "HostName", "AddInfo", "ServerIdStr", "ServerType" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.FileAttr), global::Google.Protobuf.WellKnownTypes.FileAttr.Parser, new[]{ "FileName", "FileMd5", "FileSize", "FilePath", "FileTime" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMTransFileNotify), global::Google.Protobuf.WellKnownTypes.SMTransFileNotify.Parser, new[]{ "HostName", "FileList", "TransSeq" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMFileContentReq), global::Google.Protobuf.WellKnownTypes.SMFileContentReq.Parser, new[]{ "FileName", "FileMd5", "HostName", "ContentOffset", "TransSeq" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMFileContentRes), global::Google.Protobuf.WellKnownTypes.SMFileContentRes.Parser, new[]{ "Ret", "FileName", "FileMd5", "ContentOffset", "Content", "HostName", "TransSeq" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMTransSuccNotify), global::Google.Protobuf.WellKnownTypes.SMTransSuccNotify.Parser, new[]{ "HostName", "FileAttr" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.FileRecvState), global::Google.Protobuf.WellKnownTypes.FileRecvState.Parser, new[]{ "FileName", "FileMd5", "RecvState" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMFileRecvStateReq), global::Google.Protobuf.WellKnownTypes.SMFileRecvStateReq.Parser, new[]{ "TransSeq", "HostName", "FileList" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMFileRecvStateRes), global::Google.Protobuf.WellKnownTypes.SMFileRecvStateRes.Parser, new[]{ "TransSeq", "HostName" }, null, null, null), new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.WellKnownTypes.SMCancelTransNotify), global::Google.Protobuf.WellKnownTypes.SMCancelTransNotify.Parser, new[]{ "TransSeq", "HostName" }, null, null, null) })); } #endregion } #region Enums public enum SMMsgID { [pbr::OriginalName("SM_MSGID_NONE")] None = 0, [pbr::OriginalName("SM_MSGID_PING")] Ping = 10, [pbr::OriginalName("SM_MSGID_CLIENT_REG_REQ")] ClientRegReq = 11, [pbr::OriginalName("SM_MSGID_CLIENT_REG_RES")] ClientRegRes = 12, [pbr::OriginalName("SM_MSGID_CONSOLE_COMMAND_REQ")] ConsoleCommandReq = 13, [pbr::OriginalName("SM_MSGID_CONSOLE_COMMAND_RES")] ConsoleCommandRes = 14, [pbr::OriginalName("SM_MSGID_AGENT_DO_COMMAND_REQ")] AgentDoCommandReq = 15, [pbr::OriginalName("SM_MSGID_AGENT_DO_COMMAND_RES")] AgentDoCommandRes = 16, [pbr::OriginalName("SM_MSGID_TRANS_FILE_NOTIFY")] TransFileNotify = 17, [pbr::OriginalName("SM_MSGID_FILE_CONTENT_REQ")] FileContentReq = 19, [pbr::OriginalName("SM_MSGID_FILE_CONTENT_RES")] FileContentRes = 20, /// /// 文件接收结果通知 /// [pbr::OriginalName("SM_MSGID_FILE_RECV_STATE_REQ")] FileRecvStateReq = 21, [pbr::OriginalName("SM_MSGID_FILE_RECV_STATE_RES")] FileRecvStateRes = 22, /// /// 取消传送通知, 由center通知agent取消传送 /// [pbr::OriginalName("SM_MSGID_CANCEL_TRANS_NOTIFY")] CancelTransNotify = 23, } public enum ResResultCode { [pbr::OriginalName("ResResultCode_NoRes")] NoRes = 0, [pbr::OriginalName("ResResultCode_Success")] Success = 1, [pbr::OriginalName("ResResultCode_Fail")] Fail = 2, [pbr::OriginalName("ResResultCode_Exception")] Exception = 3, [pbr::OriginalName("ResResultCode_TimeOut")] TimeOut = 4, [pbr::OriginalName("ResResultCode_Running")] Running = 5, [pbr::OriginalName("ResResultCode_NotRunning")] NotRunning = 6, } #endregion #region Messages /// /// CS_MSGID_PING /// public sealed partial class SMPing : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMPing()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[0]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMPing() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMPing(SMPing other) : this() { seq_ = other.seq_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMPing Clone() { return new SMPing(this); } /// Field number for the "seq" field. public const int SeqFieldNumber = 1; private int seq_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Seq { get { return seq_; } set { seq_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMPing); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMPing other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Seq != other.Seq) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Seq != 0) hash ^= Seq.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 (Seq != 0) { output.WriteRawTag(8); output.WriteInt32(Seq); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Seq != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Seq); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMPing other) { if (other == null) { return; } if (other.Seq != 0) { Seq = other.Seq; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { Seq = input.ReadInt32(); break; } } } } } /// /// CS_MSGID_CLIENT_REG_REQ /// public sealed partial class SMClientRegReq : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMClientRegReq()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[1]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMClientRegReq() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMClientRegReq(SMClientRegReq other) : this() { clientType_ = other.clientType_; machineName_ = other.machineName_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMClientRegReq Clone() { return new SMClientRegReq(this); } /// Field number for the "clientType" field. public const int ClientTypeFieldNumber = 1; private int clientType_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int ClientType { get { return clientType_; } set { clientType_ = value; } } /// Field number for the "machineName" field. public const int MachineNameFieldNumber = 2; private string machineName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string MachineName { get { return machineName_; } set { machineName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMClientRegReq); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMClientRegReq other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (ClientType != other.ClientType) return false; if (MachineName != other.MachineName) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (ClientType != 0) hash ^= ClientType.GetHashCode(); if (MachineName.Length != 0) hash ^= MachineName.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 (ClientType != 0) { output.WriteRawTag(8); output.WriteInt32(ClientType); } if (MachineName.Length != 0) { output.WriteRawTag(18); output.WriteString(MachineName); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (ClientType != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ClientType); } if (MachineName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(MachineName); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMClientRegReq other) { if (other == null) { return; } if (other.ClientType != 0) { ClientType = other.ClientType; } if (other.MachineName.Length != 0) { MachineName = other.MachineName; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { ClientType = input.ReadInt32(); break; } case 18: { MachineName = input.ReadString(); break; } } } } } /// /// SM_MSGID_CLIENT_REG_RES 注册成功后应答, 告诉agent有多少sogloader 总数 /// public sealed partial class SMClientRegRes : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMClientRegRes()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[2]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMClientRegRes() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMClientRegRes(SMClientRegRes other) : this() { serverId_ = other.serverId_.Clone(); workpath_ = other.workpath_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMClientRegRes Clone() { return new SMClientRegRes(this); } /// Field number for the "serverId" field. public const int ServerIdFieldNumber = 1; private static readonly pb::FieldCodec _repeated_serverId_codec = pb::FieldCodec.ForUInt32(10); private readonly pbc::RepeatedField serverId_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField ServerId { get { return serverId_; } } /// Field number for the "workpath" field. public const int WorkpathFieldNumber = 2; private string workpath_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Workpath { get { return workpath_; } set { workpath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMClientRegRes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMClientRegRes other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if(!serverId_.Equals(other.serverId_)) return false; if (Workpath != other.Workpath) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; hash ^= serverId_.GetHashCode(); if (Workpath.Length != 0) hash ^= Workpath.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) { serverId_.WriteTo(output, _repeated_serverId_codec); if (Workpath.Length != 0) { output.WriteRawTag(18); output.WriteString(Workpath); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; size += serverId_.CalculateSize(_repeated_serverId_codec); if (Workpath.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Workpath); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMClientRegRes other) { if (other == null) { return; } serverId_.Add(other.serverId_); if (other.Workpath.Length != 0) { Workpath = other.Workpath; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: case 8: { serverId_.AddEntriesFrom(input, _repeated_serverId_codec); break; } case 18: { Workpath = input.ReadString(); break; } } } } } public sealed partial class SMConsoleCommandReq : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMConsoleCommandReq()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[3]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMConsoleCommandReq() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMConsoleCommandReq(SMConsoleCommandReq other) : this() { command_ = other.command_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMConsoleCommandReq Clone() { return new SMConsoleCommandReq(this); } /// Field number for the "command" field. public const int CommandFieldNumber = 1; private string command_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Command { get { return command_; } set { command_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMConsoleCommandReq); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMConsoleCommandReq other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Command != other.Command) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Command.Length != 0) hash ^= Command.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 (Command.Length != 0) { output.WriteRawTag(10); output.WriteString(Command); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Command.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMConsoleCommandReq other) { if (other == null) { return; } if (other.Command.Length != 0) { Command = other.Command; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { Command = input.ReadString(); break; } } } } } public sealed partial class SMConsoleCommandRes : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMConsoleCommandRes()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[4]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMConsoleCommandRes() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMConsoleCommandRes(SMConsoleCommandRes other) : this() { command_ = other.command_; message_ = other.message_; nonewline_ = other.nonewline_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMConsoleCommandRes Clone() { return new SMConsoleCommandRes(this); } /// Field number for the "command" field. public const int CommandFieldNumber = 1; private string command_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Command { get { return command_; } set { command_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "message" field. public const int MessageFieldNumber = 2; private string message_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Message { get { return message_; } set { message_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "nonewline" field. public const int NonewlineFieldNumber = 3; private int nonewline_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Nonewline { get { return nonewline_; } set { nonewline_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMConsoleCommandRes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMConsoleCommandRes other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Command != other.Command) return false; if (Message != other.Message) return false; if (Nonewline != other.Nonewline) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Command.Length != 0) hash ^= Command.GetHashCode(); if (Message.Length != 0) hash ^= Message.GetHashCode(); if (Nonewline != 0) hash ^= Nonewline.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 (Command.Length != 0) { output.WriteRawTag(10); output.WriteString(Command); } if (Message.Length != 0) { output.WriteRawTag(18); output.WriteString(Message); } if (Nonewline != 0) { output.WriteRawTag(24); output.WriteInt32(Nonewline); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Command.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); } if (Message.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Message); } if (Nonewline != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Nonewline); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMConsoleCommandRes other) { if (other == null) { return; } if (other.Command.Length != 0) { Command = other.Command; } if (other.Message.Length != 0) { Message = other.Message; } if (other.Nonewline != 0) { Nonewline = other.Nonewline; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { Command = input.ReadString(); break; } case 18: { Message = input.ReadString(); break; } case 24: { Nonewline = input.ReadInt32(); break; } } } } } public sealed partial class SMAgentDoCommandReq : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMAgentDoCommandReq()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[5]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMAgentDoCommandReq() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMAgentDoCommandReq(SMAgentDoCommandReq other) : this() { seqNum_ = other.seqNum_; serverId_ = other.serverId_; command_ = other.command_; exeFileName_ = other.exeFileName_; cmdArgs_ = other.cmdArgs_; workPath_ = other.workPath_; stopTimeout_ = other.stopTimeout_; centerName_ = other.centerName_; fileList_ = other.fileList_.Clone(); testMode_ = other.testMode_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMAgentDoCommandReq Clone() { return new SMAgentDoCommandReq(this); } /// Field number for the "seqNum" field. public const int SeqNumFieldNumber = 1; private int seqNum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int SeqNum { get { return seqNum_; } set { seqNum_ = value; } } /// Field number for the "serverId" field. public const int ServerIdFieldNumber = 2; private uint serverId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint ServerId { get { return serverId_; } set { serverId_ = value; } } /// Field number for the "command" field. public const int CommandFieldNumber = 3; private string command_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Command { get { return command_; } set { command_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "exeFileName" field. public const int ExeFileNameFieldNumber = 4; private string exeFileName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ExeFileName { get { return exeFileName_; } set { exeFileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "cmdArgs" field. public const int CmdArgsFieldNumber = 5; private string cmdArgs_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string CmdArgs { get { return cmdArgs_; } set { cmdArgs_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "workPath" field. public const int WorkPathFieldNumber = 6; private string workPath_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string WorkPath { get { return workPath_; } set { workPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "stopTimeout" field. public const int StopTimeoutFieldNumber = 7; private int stopTimeout_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int StopTimeout { get { return stopTimeout_; } set { stopTimeout_ = value; } } /// Field number for the "centerName" field. public const int CenterNameFieldNumber = 8; private string centerName_ = ""; /// /// 发起请求的center hostName /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string CenterName { get { return centerName_; } set { centerName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileList" field. public const int FileListFieldNumber = 9; private static readonly pb::FieldCodec _repeated_fileList_codec = pb::FieldCodec.ForMessage(74, global::Google.Protobuf.WellKnownTypes.FileAttr.Parser); private readonly pbc::RepeatedField fileList_ = new pbc::RepeatedField(); /// /// 检查文件MD5之类的需求 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField FileList { get { return fileList_; } } /// Field number for the "testMode" field. public const int TestModeFieldNumber = 10; private int testMode_; /// /// 测试模式 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int TestMode { get { return testMode_; } set { testMode_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMAgentDoCommandReq); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMAgentDoCommandReq other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SeqNum != other.SeqNum) return false; if (ServerId != other.ServerId) return false; if (Command != other.Command) return false; if (ExeFileName != other.ExeFileName) return false; if (CmdArgs != other.CmdArgs) return false; if (WorkPath != other.WorkPath) return false; if (StopTimeout != other.StopTimeout) return false; if (CenterName != other.CenterName) return false; if(!fileList_.Equals(other.fileList_)) return false; if (TestMode != other.TestMode) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (SeqNum != 0) hash ^= SeqNum.GetHashCode(); if (ServerId != 0) hash ^= ServerId.GetHashCode(); if (Command.Length != 0) hash ^= Command.GetHashCode(); if (ExeFileName.Length != 0) hash ^= ExeFileName.GetHashCode(); if (CmdArgs.Length != 0) hash ^= CmdArgs.GetHashCode(); if (WorkPath.Length != 0) hash ^= WorkPath.GetHashCode(); if (StopTimeout != 0) hash ^= StopTimeout.GetHashCode(); if (CenterName.Length != 0) hash ^= CenterName.GetHashCode(); hash ^= fileList_.GetHashCode(); if (TestMode != 0) hash ^= TestMode.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 (SeqNum != 0) { output.WriteRawTag(8); output.WriteInt32(SeqNum); } if (ServerId != 0) { output.WriteRawTag(16); output.WriteUInt32(ServerId); } if (Command.Length != 0) { output.WriteRawTag(26); output.WriteString(Command); } if (ExeFileName.Length != 0) { output.WriteRawTag(34); output.WriteString(ExeFileName); } if (CmdArgs.Length != 0) { output.WriteRawTag(42); output.WriteString(CmdArgs); } if (WorkPath.Length != 0) { output.WriteRawTag(50); output.WriteString(WorkPath); } if (StopTimeout != 0) { output.WriteRawTag(56); output.WriteInt32(StopTimeout); } if (CenterName.Length != 0) { output.WriteRawTag(66); output.WriteString(CenterName); } fileList_.WriteTo(output, _repeated_fileList_codec); if (TestMode != 0) { output.WriteRawTag(80); output.WriteInt32(TestMode); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (SeqNum != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SeqNum); } if (ServerId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServerId); } if (Command.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); } if (ExeFileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ExeFileName); } if (CmdArgs.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CmdArgs); } if (WorkPath.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(WorkPath); } if (StopTimeout != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(StopTimeout); } if (CenterName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(CenterName); } size += fileList_.CalculateSize(_repeated_fileList_codec); if (TestMode != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(TestMode); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMAgentDoCommandReq other) { if (other == null) { return; } if (other.SeqNum != 0) { SeqNum = other.SeqNum; } if (other.ServerId != 0) { ServerId = other.ServerId; } if (other.Command.Length != 0) { Command = other.Command; } if (other.ExeFileName.Length != 0) { ExeFileName = other.ExeFileName; } if (other.CmdArgs.Length != 0) { CmdArgs = other.CmdArgs; } if (other.WorkPath.Length != 0) { WorkPath = other.WorkPath; } if (other.StopTimeout != 0) { StopTimeout = other.StopTimeout; } if (other.CenterName.Length != 0) { CenterName = other.CenterName; } fileList_.Add(other.fileList_); if (other.TestMode != 0) { TestMode = other.TestMode; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { SeqNum = input.ReadInt32(); break; } case 16: { ServerId = input.ReadUInt32(); break; } case 26: { Command = input.ReadString(); break; } case 34: { ExeFileName = input.ReadString(); break; } case 42: { CmdArgs = input.ReadString(); break; } case 50: { WorkPath = input.ReadString(); break; } case 56: { StopTimeout = input.ReadInt32(); break; } case 66: { CenterName = input.ReadString(); break; } case 74: { fileList_.AddEntriesFrom(input, _repeated_fileList_codec); break; } case 80: { TestMode = input.ReadInt32(); break; } } } } } public sealed partial class SMAgentDoCommandRes : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMAgentDoCommandRes()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[6]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMAgentDoCommandRes() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMAgentDoCommandRes(SMAgentDoCommandRes other) : this() { seqNum_ = other.seqNum_; serverId_ = other.serverId_; command_ = other.command_; resultCode_ = other.resultCode_; result_ = other.result_; hostName_ = other.hostName_; addInfo_ = other.addInfo_; serverIdStr_ = other.serverIdStr_; serverType_ = other.serverType_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMAgentDoCommandRes Clone() { return new SMAgentDoCommandRes(this); } /// Field number for the "seqNum" field. public const int SeqNumFieldNumber = 1; private int seqNum_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int SeqNum { get { return seqNum_; } set { seqNum_ = value; } } /// Field number for the "serverId" field. public const int ServerIdFieldNumber = 2; private uint serverId_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public uint ServerId { get { return serverId_; } set { serverId_ = value; } } /// Field number for the "command" field. public const int CommandFieldNumber = 3; private string command_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Command { get { return command_; } set { command_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "resultCode" field. public const int ResultCodeFieldNumber = 4; private global::Google.Protobuf.WellKnownTypes.ResResultCode resultCode_ = 0; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Protobuf.WellKnownTypes.ResResultCode ResultCode { get { return resultCode_; } set { resultCode_ = value; } } /// Field number for the "result" field. public const int ResultFieldNumber = 5; private string result_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string Result { get { return result_; } set { result_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 6; private string hostName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "addInfo" field. public const int AddInfoFieldNumber = 7; private string addInfo_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string AddInfo { get { return addInfo_; } set { addInfo_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "serverIdStr" field. public const int ServerIdStrFieldNumber = 8; private string serverIdStr_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ServerIdStr { get { return serverIdStr_; } set { serverIdStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "serverType" field. public const int ServerTypeFieldNumber = 9; private string serverType_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string ServerType { get { return serverType_; } set { serverType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMAgentDoCommandRes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMAgentDoCommandRes other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (SeqNum != other.SeqNum) return false; if (ServerId != other.ServerId) return false; if (Command != other.Command) return false; if (ResultCode != other.ResultCode) return false; if (Result != other.Result) return false; if (HostName != other.HostName) return false; if (AddInfo != other.AddInfo) return false; if (ServerIdStr != other.ServerIdStr) return false; if (ServerType != other.ServerType) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (SeqNum != 0) hash ^= SeqNum.GetHashCode(); if (ServerId != 0) hash ^= ServerId.GetHashCode(); if (Command.Length != 0) hash ^= Command.GetHashCode(); if (ResultCode != 0) hash ^= ResultCode.GetHashCode(); if (Result.Length != 0) hash ^= Result.GetHashCode(); if (HostName.Length != 0) hash ^= HostName.GetHashCode(); if (AddInfo.Length != 0) hash ^= AddInfo.GetHashCode(); if (ServerIdStr.Length != 0) hash ^= ServerIdStr.GetHashCode(); if (ServerType.Length != 0) hash ^= ServerType.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 (SeqNum != 0) { output.WriteRawTag(8); output.WriteInt32(SeqNum); } if (ServerId != 0) { output.WriteRawTag(16); output.WriteUInt32(ServerId); } if (Command.Length != 0) { output.WriteRawTag(26); output.WriteString(Command); } if (ResultCode != 0) { output.WriteRawTag(32); output.WriteEnum((int) ResultCode); } if (Result.Length != 0) { output.WriteRawTag(42); output.WriteString(Result); } if (HostName.Length != 0) { output.WriteRawTag(50); output.WriteString(HostName); } if (AddInfo.Length != 0) { output.WriteRawTag(58); output.WriteString(AddInfo); } if (ServerIdStr.Length != 0) { output.WriteRawTag(66); output.WriteString(ServerIdStr); } if (ServerType.Length != 0) { output.WriteRawTag(74); output.WriteString(ServerType); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (SeqNum != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(SeqNum); } if (ServerId != 0) { size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ServerId); } if (Command.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Command); } if (ResultCode != 0) { size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ResultCode); } if (Result.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(Result); } if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } if (AddInfo.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(AddInfo); } if (ServerIdStr.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerIdStr); } if (ServerType.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(ServerType); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMAgentDoCommandRes other) { if (other == null) { return; } if (other.SeqNum != 0) { SeqNum = other.SeqNum; } if (other.ServerId != 0) { ServerId = other.ServerId; } if (other.Command.Length != 0) { Command = other.Command; } if (other.ResultCode != 0) { ResultCode = other.ResultCode; } if (other.Result.Length != 0) { Result = other.Result; } if (other.HostName.Length != 0) { HostName = other.HostName; } if (other.AddInfo.Length != 0) { AddInfo = other.AddInfo; } if (other.ServerIdStr.Length != 0) { ServerIdStr = other.ServerIdStr; } if (other.ServerType.Length != 0) { ServerType = other.ServerType; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { SeqNum = input.ReadInt32(); break; } case 16: { ServerId = input.ReadUInt32(); break; } case 26: { Command = input.ReadString(); break; } case 32: { resultCode_ = (global::Google.Protobuf.WellKnownTypes.ResResultCode) input.ReadEnum(); break; } case 42: { Result = input.ReadString(); break; } case 50: { HostName = input.ReadString(); break; } case 58: { AddInfo = input.ReadString(); break; } case 66: { ServerIdStr = input.ReadString(); break; } case 74: { ServerType = input.ReadString(); break; } } } } } public sealed partial class FileAttr : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileAttr()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[7]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileAttr() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileAttr(FileAttr other) : this() { fileName_ = other.fileName_; fileMd5_ = other.fileMd5_; fileSize_ = other.fileSize_; filePath_ = other.filePath_; fileTime_ = other.fileTime_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileAttr Clone() { return new FileAttr(this); } /// Field number for the "fileName" field. public const int FileNameFieldNumber = 1; private string fileName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileName { get { return fileName_; } set { fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileMd5" field. public const int FileMd5FieldNumber = 2; private string fileMd5_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileMd5 { get { return fileMd5_; } set { fileMd5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileSize" field. public const int FileSizeFieldNumber = 3; private int fileSize_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int FileSize { get { return fileSize_; } set { fileSize_ = value; } } /// Field number for the "filePath" field. public const int FilePathFieldNumber = 4; private string filePath_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FilePath { get { return filePath_; } set { filePath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileTime" field. public const int FileTimeFieldNumber = 5; private long fileTime_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long FileTime { get { return fileTime_; } set { fileTime_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FileAttr); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FileAttr other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (FileName != other.FileName) return false; if (FileMd5 != other.FileMd5) return false; if (FileSize != other.FileSize) return false; if (FilePath != other.FilePath) return false; if (FileTime != other.FileTime) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (FileName.Length != 0) hash ^= FileName.GetHashCode(); if (FileMd5.Length != 0) hash ^= FileMd5.GetHashCode(); if (FileSize != 0) hash ^= FileSize.GetHashCode(); if (FilePath.Length != 0) hash ^= FilePath.GetHashCode(); if (FileTime != 0L) hash ^= FileTime.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 (FileName.Length != 0) { output.WriteRawTag(10); output.WriteString(FileName); } if (FileMd5.Length != 0) { output.WriteRawTag(18); output.WriteString(FileMd5); } if (FileSize != 0) { output.WriteRawTag(24); output.WriteInt32(FileSize); } if (FilePath.Length != 0) { output.WriteRawTag(34); output.WriteString(FilePath); } if (FileTime != 0L) { output.WriteRawTag(40); output.WriteInt64(FileTime); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (FileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); } if (FileMd5.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileMd5); } if (FileSize != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(FileSize); } if (FilePath.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FilePath); } if (FileTime != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(FileTime); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FileAttr other) { if (other == null) { return; } if (other.FileName.Length != 0) { FileName = other.FileName; } if (other.FileMd5.Length != 0) { FileMd5 = other.FileMd5; } if (other.FileSize != 0) { FileSize = other.FileSize; } if (other.FilePath.Length != 0) { FilePath = other.FilePath; } if (other.FileTime != 0L) { FileTime = other.FileTime; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { FileName = input.ReadString(); break; } case 18: { FileMd5 = input.ReadString(); break; } case 24: { FileSize = input.ReadInt32(); break; } case 34: { FilePath = input.ReadString(); break; } case 40: { FileTime = input.ReadInt64(); break; } } } } } /// /// 通知有文件要传送 /// public sealed partial class SMTransFileNotify : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMTransFileNotify()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[8]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMTransFileNotify() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMTransFileNotify(SMTransFileNotify other) : this() { hostName_ = other.hostName_; fileList_ = other.fileList_.Clone(); transSeq_ = other.transSeq_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMTransFileNotify Clone() { return new SMTransFileNotify(this); } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 1; private string hostName_ = ""; /// /// 文件存放的host /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileList" field. public const int FileListFieldNumber = 2; private static readonly pb::FieldCodec _repeated_fileList_codec = pb::FieldCodec.ForMessage(18, global::Google.Protobuf.WellKnownTypes.FileAttr.Parser); private readonly pbc::RepeatedField fileList_ = new pbc::RepeatedField(); /// /// 文件列表 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField FileList { get { return fileList_; } } /// Field number for the "transSeq" field. public const int TransSeqFieldNumber = 3; private long transSeq_; /// /// 序列号, 快速判断是否同一次传送, 比对比fileList快 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long TransSeq { get { return transSeq_; } set { transSeq_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMTransFileNotify); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMTransFileNotify other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HostName != other.HostName) return false; if(!fileList_.Equals(other.fileList_)) return false; if (TransSeq != other.TransSeq) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HostName.Length != 0) hash ^= HostName.GetHashCode(); hash ^= fileList_.GetHashCode(); if (TransSeq != 0L) hash ^= TransSeq.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 (HostName.Length != 0) { output.WriteRawTag(10); output.WriteString(HostName); } fileList_.WriteTo(output, _repeated_fileList_codec); if (TransSeq != 0L) { output.WriteRawTag(24); output.WriteInt64(TransSeq); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } size += fileList_.CalculateSize(_repeated_fileList_codec); if (TransSeq != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TransSeq); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMTransFileNotify other) { if (other == null) { return; } if (other.HostName.Length != 0) { HostName = other.HostName; } fileList_.Add(other.fileList_); if (other.TransSeq != 0L) { TransSeq = other.TransSeq; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { HostName = input.ReadString(); break; } case 18: { fileList_.AddEntriesFrom(input, _repeated_fileList_codec); break; } case 24: { TransSeq = input.ReadInt64(); break; } } } } } /// /// 请求文件内容 /// SM_MSGID_FILE_CONTENT_REQ /// public sealed partial class SMFileContentReq : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMFileContentReq()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[9]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileContentReq() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileContentReq(SMFileContentReq other) : this() { fileName_ = other.fileName_; fileMd5_ = other.fileMd5_; hostName_ = other.hostName_; contentOffset_ = other.contentOffset_; transSeq_ = other.transSeq_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileContentReq Clone() { return new SMFileContentReq(this); } /// Field number for the "fileName" field. public const int FileNameFieldNumber = 1; private string fileName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileName { get { return fileName_; } set { fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileMd5" field. public const int FileMd5FieldNumber = 2; private string fileMd5_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileMd5 { get { return fileMd5_; } set { fileMd5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 3; private string hostName_ = ""; /// /// 请求数据的host /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "contentOffset" field. public const int ContentOffsetFieldNumber = 4; private int contentOffset_; /// /// 偏移值从0开始 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int ContentOffset { get { return contentOffset_; } set { contentOffset_ = value; } } /// Field number for the "transSeq" field. public const int TransSeqFieldNumber = 5; private long transSeq_; /// /// 序列号, 快速判断是否同一次传送, 比对比fileList快 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long TransSeq { get { return transSeq_; } set { transSeq_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMFileContentReq); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMFileContentReq other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (FileName != other.FileName) return false; if (FileMd5 != other.FileMd5) return false; if (HostName != other.HostName) return false; if (ContentOffset != other.ContentOffset) return false; if (TransSeq != other.TransSeq) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (FileName.Length != 0) hash ^= FileName.GetHashCode(); if (FileMd5.Length != 0) hash ^= FileMd5.GetHashCode(); if (HostName.Length != 0) hash ^= HostName.GetHashCode(); if (ContentOffset != 0) hash ^= ContentOffset.GetHashCode(); if (TransSeq != 0L) hash ^= TransSeq.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 (FileName.Length != 0) { output.WriteRawTag(10); output.WriteString(FileName); } if (FileMd5.Length != 0) { output.WriteRawTag(18); output.WriteString(FileMd5); } if (HostName.Length != 0) { output.WriteRawTag(26); output.WriteString(HostName); } if (ContentOffset != 0) { output.WriteRawTag(32); output.WriteInt32(ContentOffset); } if (TransSeq != 0L) { output.WriteRawTag(40); output.WriteInt64(TransSeq); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (FileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); } if (FileMd5.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileMd5); } if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } if (ContentOffset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ContentOffset); } if (TransSeq != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TransSeq); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMFileContentReq other) { if (other == null) { return; } if (other.FileName.Length != 0) { FileName = other.FileName; } if (other.FileMd5.Length != 0) { FileMd5 = other.FileMd5; } if (other.HostName.Length != 0) { HostName = other.HostName; } if (other.ContentOffset != 0) { ContentOffset = other.ContentOffset; } if (other.TransSeq != 0L) { TransSeq = other.TransSeq; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { FileName = input.ReadString(); break; } case 18: { FileMd5 = input.ReadString(); break; } case 26: { HostName = input.ReadString(); break; } case 32: { ContentOffset = input.ReadInt32(); break; } case 40: { TransSeq = input.ReadInt64(); break; } } } } } /// /// SM_MSGID_FILE_CONTENT_RES /// public sealed partial class SMFileContentRes : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMFileContentRes()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[10]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileContentRes() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileContentRes(SMFileContentRes other) : this() { ret_ = other.ret_; fileName_ = other.fileName_; fileMd5_ = other.fileMd5_; contentOffset_ = other.contentOffset_; content_ = other.content_; hostName_ = other.hostName_; transSeq_ = other.transSeq_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileContentRes Clone() { return new SMFileContentRes(this); } /// Field number for the "ret" field. public const int RetFieldNumber = 1; private int ret_; /// /// 0 内容有效 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int Ret { get { return ret_; } set { ret_ = value; } } /// Field number for the "fileName" field. public const int FileNameFieldNumber = 2; private string fileName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileName { get { return fileName_; } set { fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileMd5" field. public const int FileMd5FieldNumber = 3; private string fileMd5_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileMd5 { get { return fileMd5_; } set { fileMd5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "contentOffset" field. public const int ContentOffsetFieldNumber = 4; private int contentOffset_; /// /// 偏移值从0开始 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int ContentOffset { get { return contentOffset_; } set { contentOffset_ = value; } } /// Field number for the "content" field. public const int ContentFieldNumber = 5; 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"); } } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 6; private string hostName_ = ""; /// /// 发送数据的host /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "transSeq" field. public const int TransSeqFieldNumber = 7; private long transSeq_; /// /// 序列号, 快速判断是否同一次传送, 比对比fileList快 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long TransSeq { get { return transSeq_; } set { transSeq_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMFileContentRes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMFileContentRes other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (Ret != other.Ret) return false; if (FileName != other.FileName) return false; if (FileMd5 != other.FileMd5) return false; if (ContentOffset != other.ContentOffset) return false; if (Content != other.Content) return false; if (HostName != other.HostName) return false; if (TransSeq != other.TransSeq) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (Ret != 0) hash ^= Ret.GetHashCode(); if (FileName.Length != 0) hash ^= FileName.GetHashCode(); if (FileMd5.Length != 0) hash ^= FileMd5.GetHashCode(); if (ContentOffset != 0) hash ^= ContentOffset.GetHashCode(); if (Content.Length != 0) hash ^= Content.GetHashCode(); if (HostName.Length != 0) hash ^= HostName.GetHashCode(); if (TransSeq != 0L) hash ^= TransSeq.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 (Ret != 0) { output.WriteRawTag(8); output.WriteInt32(Ret); } if (FileName.Length != 0) { output.WriteRawTag(18); output.WriteString(FileName); } if (FileMd5.Length != 0) { output.WriteRawTag(26); output.WriteString(FileMd5); } if (ContentOffset != 0) { output.WriteRawTag(32); output.WriteInt32(ContentOffset); } if (Content.Length != 0) { output.WriteRawTag(42); output.WriteBytes(Content); } if (HostName.Length != 0) { output.WriteRawTag(50); output.WriteString(HostName); } if (TransSeq != 0L) { output.WriteRawTag(56); output.WriteInt64(TransSeq); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (Ret != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(Ret); } if (FileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); } if (FileMd5.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileMd5); } if (ContentOffset != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(ContentOffset); } if (Content.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeBytesSize(Content); } if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } if (TransSeq != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TransSeq); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMFileContentRes other) { if (other == null) { return; } if (other.Ret != 0) { Ret = other.Ret; } if (other.FileName.Length != 0) { FileName = other.FileName; } if (other.FileMd5.Length != 0) { FileMd5 = other.FileMd5; } if (other.ContentOffset != 0) { ContentOffset = other.ContentOffset; } if (other.Content.Length != 0) { Content = other.Content; } if (other.HostName.Length != 0) { HostName = other.HostName; } if (other.TransSeq != 0L) { TransSeq = other.TransSeq; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { Ret = input.ReadInt32(); break; } case 18: { FileName = input.ReadString(); break; } case 26: { FileMd5 = input.ReadString(); break; } case 32: { ContentOffset = input.ReadInt32(); break; } case 42: { Content = input.ReadBytes(); break; } case 50: { HostName = input.ReadString(); break; } case 56: { TransSeq = input.ReadInt64(); break; } } } } } /// /// agent通知center文件传送成功,出错时不通知,center将按超时处理 /// public sealed partial class SMTransSuccNotify : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMTransSuccNotify()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[11]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMTransSuccNotify() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMTransSuccNotify(SMTransSuccNotify other) : this() { hostName_ = other.hostName_; FileAttr = other.fileAttr_ != null ? other.FileAttr.Clone() : null; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMTransSuccNotify Clone() { return new SMTransSuccNotify(this); } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 1; private string hostName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileAttr" field. public const int FileAttrFieldNumber = 2; private global::Google.Protobuf.WellKnownTypes.FileAttr fileAttr_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public global::Google.Protobuf.WellKnownTypes.FileAttr FileAttr { get { return fileAttr_; } set { fileAttr_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMTransSuccNotify); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMTransSuccNotify other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (HostName != other.HostName) return false; if (!object.Equals(FileAttr, other.FileAttr)) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (HostName.Length != 0) hash ^= HostName.GetHashCode(); if (fileAttr_ != null) hash ^= FileAttr.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 (HostName.Length != 0) { output.WriteRawTag(10); output.WriteString(HostName); } if (fileAttr_ != null) { output.WriteRawTag(18); output.WriteMessage(FileAttr); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } if (fileAttr_ != null) { size += 1 + pb::CodedOutputStream.ComputeMessageSize(FileAttr); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMTransSuccNotify other) { if (other == null) { return; } if (other.HostName.Length != 0) { HostName = other.HostName; } if (other.fileAttr_ != null) { if (fileAttr_ == null) { fileAttr_ = new global::Google.Protobuf.WellKnownTypes.FileAttr(); } FileAttr.MergeFrom(other.FileAttr); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { HostName = input.ReadString(); break; } case 18: { if (fileAttr_ == null) { fileAttr_ = new global::Google.Protobuf.WellKnownTypes.FileAttr(); } input.ReadMessage(fileAttr_); break; } } } } } public sealed partial class FileRecvState : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new FileRecvState()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[12]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileRecvState() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileRecvState(FileRecvState other) : this() { fileName_ = other.fileName_; fileMd5_ = other.fileMd5_; recvState_ = other.recvState_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public FileRecvState Clone() { return new FileRecvState(this); } /// Field number for the "fileName" field. public const int FileNameFieldNumber = 1; private string fileName_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileName { get { return fileName_; } set { fileName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileMd5" field. public const int FileMd5FieldNumber = 2; private string fileMd5_ = ""; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string FileMd5 { get { return fileMd5_; } set { fileMd5_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "recvState" field. public const int RecvStateFieldNumber = 3; private int recvState_; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int RecvState { get { return recvState_; } set { recvState_ = value; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as FileRecvState); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(FileRecvState other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (FileName != other.FileName) return false; if (FileMd5 != other.FileMd5) return false; if (RecvState != other.RecvState) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (FileName.Length != 0) hash ^= FileName.GetHashCode(); if (FileMd5.Length != 0) hash ^= FileMd5.GetHashCode(); if (RecvState != 0) hash ^= RecvState.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 (FileName.Length != 0) { output.WriteRawTag(10); output.WriteString(FileName); } if (FileMd5.Length != 0) { output.WriteRawTag(18); output.WriteString(FileMd5); } if (RecvState != 0) { output.WriteRawTag(24); output.WriteInt32(RecvState); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (FileName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileName); } if (FileMd5.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(FileMd5); } if (RecvState != 0) { size += 1 + pb::CodedOutputStream.ComputeInt32Size(RecvState); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(FileRecvState other) { if (other == null) { return; } if (other.FileName.Length != 0) { FileName = other.FileName; } if (other.FileMd5.Length != 0) { FileMd5 = other.FileMd5; } if (other.RecvState != 0) { RecvState = other.RecvState; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 10: { FileName = input.ReadString(); break; } case 18: { FileMd5 = input.ReadString(); break; } case 24: { RecvState = input.ReadInt32(); break; } } } } } /// /// 文件接收结果req /// SM_MSGID_FILE_RECV_STATE_REQ /// public sealed partial class SMFileRecvStateReq : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMFileRecvStateReq()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[13]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileRecvStateReq() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileRecvStateReq(SMFileRecvStateReq other) : this() { transSeq_ = other.transSeq_; hostName_ = other.hostName_; fileList_ = other.fileList_.Clone(); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileRecvStateReq Clone() { return new SMFileRecvStateReq(this); } /// Field number for the "transSeq" field. public const int TransSeqFieldNumber = 1; private long transSeq_; /// /// 序列号, 快速判断是否同一次传送, 比对比fileList快 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long TransSeq { get { return transSeq_; } set { transSeq_ = value; } } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 2; private string hostName_ = ""; /// /// 接收文件的host /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "fileList" field. public const int FileListFieldNumber = 3; private static readonly pb::FieldCodec _repeated_fileList_codec = pb::FieldCodec.ForMessage(26, global::Google.Protobuf.WellKnownTypes.FileRecvState.Parser); private readonly pbc::RepeatedField fileList_ = new pbc::RepeatedField(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public pbc::RepeatedField FileList { get { return fileList_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMFileRecvStateReq); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMFileRecvStateReq other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (TransSeq != other.TransSeq) return false; if (HostName != other.HostName) return false; if(!fileList_.Equals(other.fileList_)) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (TransSeq != 0L) hash ^= TransSeq.GetHashCode(); if (HostName.Length != 0) hash ^= HostName.GetHashCode(); hash ^= fileList_.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 (TransSeq != 0L) { output.WriteRawTag(8); output.WriteInt64(TransSeq); } if (HostName.Length != 0) { output.WriteRawTag(18); output.WriteString(HostName); } fileList_.WriteTo(output, _repeated_fileList_codec); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (TransSeq != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TransSeq); } if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } size += fileList_.CalculateSize(_repeated_fileList_codec); return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMFileRecvStateReq other) { if (other == null) { return; } if (other.TransSeq != 0L) { TransSeq = other.TransSeq; } if (other.HostName.Length != 0) { HostName = other.HostName; } fileList_.Add(other.fileList_); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { TransSeq = input.ReadInt64(); break; } case 18: { HostName = input.ReadString(); break; } case 26: { fileList_.AddEntriesFrom(input, _repeated_fileList_codec); break; } } } } } /// /// 文件传送结果通知res /// SM_MSGID_FILE_RECV_STATE_RES /// public sealed partial class SMFileRecvStateRes : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMFileRecvStateRes()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[14]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileRecvStateRes() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileRecvStateRes(SMFileRecvStateRes other) : this() { transSeq_ = other.transSeq_; hostName_ = other.hostName_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMFileRecvStateRes Clone() { return new SMFileRecvStateRes(this); } /// Field number for the "transSeq" field. public const int TransSeqFieldNumber = 1; private long transSeq_; /// /// 序列号, 快速判断是否同一次传送, 比对比fileList快 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long TransSeq { get { return transSeq_; } set { transSeq_ = value; } } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 2; private string hostName_ = ""; /// /// 发送文件的host /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMFileRecvStateRes); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMFileRecvStateRes other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (TransSeq != other.TransSeq) return false; if (HostName != other.HostName) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (TransSeq != 0L) hash ^= TransSeq.GetHashCode(); if (HostName.Length != 0) hash ^= HostName.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 (TransSeq != 0L) { output.WriteRawTag(8); output.WriteInt64(TransSeq); } if (HostName.Length != 0) { output.WriteRawTag(18); output.WriteString(HostName); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (TransSeq != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TransSeq); } if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMFileRecvStateRes other) { if (other == null) { return; } if (other.TransSeq != 0L) { TransSeq = other.TransSeq; } if (other.HostName.Length != 0) { HostName = other.HostName; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { TransSeq = input.ReadInt64(); break; } case 18: { HostName = input.ReadString(); break; } } } } } /// /// 取消传送 /// SM_MSGID_CANCEL_TRANS_NOTIFY /// public sealed partial class SMCancelTransNotify : pb::IMessage { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new SMCancelTransNotify()); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pb::MessageParser Parser { get { return _parser; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public static pbr::MessageDescriptor Descriptor { get { return global::Google.Protobuf.WellKnownTypes.SmCsReflection.Descriptor.MessageTypes[15]; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] pbr::MessageDescriptor pb::IMessage.Descriptor { get { return Descriptor; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMCancelTransNotify() { OnConstruction(); } partial void OnConstruction(); [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMCancelTransNotify(SMCancelTransNotify other) : this() { transSeq_ = other.transSeq_; hostName_ = other.hostName_; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public SMCancelTransNotify Clone() { return new SMCancelTransNotify(this); } /// Field number for the "transSeq" field. public const int TransSeqFieldNumber = 1; private long transSeq_; /// /// 序列号, 快速判断是否同一次传送, 比对比fileList快 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public long TransSeq { get { return transSeq_; } set { transSeq_ = value; } } /// Field number for the "hostName" field. public const int HostNameFieldNumber = 2; private string hostName_ = ""; /// /// 发起取消的host /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public string HostName { get { return hostName_; } set { hostName_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as SMCancelTransNotify); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public bool Equals(SMCancelTransNotify other) { if (ReferenceEquals(other, null)) { return false; } if (ReferenceEquals(other, this)) { return true; } if (TransSeq != other.TransSeq) return false; if (HostName != other.HostName) return false; return true; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override int GetHashCode() { int hash = 1; if (TransSeq != 0L) hash ^= TransSeq.GetHashCode(); if (HostName.Length != 0) hash ^= HostName.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 (TransSeq != 0L) { output.WriteRawTag(8); output.WriteInt64(TransSeq); } if (HostName.Length != 0) { output.WriteRawTag(18); output.WriteString(HostName); } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public int CalculateSize() { int size = 0; if (TransSeq != 0L) { size += 1 + pb::CodedOutputStream.ComputeInt64Size(TransSeq); } if (HostName.Length != 0) { size += 1 + pb::CodedOutputStream.ComputeStringSize(HostName); } return size; } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(SMCancelTransNotify other) { if (other == null) { return; } if (other.TransSeq != 0L) { TransSeq = other.TransSeq; } if (other.HostName.Length != 0) { HostName = other.HostName; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch(tag) { default: input.SkipLastField(); break; case 8: { TransSeq = input.ReadInt64(); break; } case 18: { HostName = input.ReadString(); break; } } } } } #endregion } #endregion Designer generated code