4867 lines
148 KiB
C#
4867 lines
148 KiB
C#
// <auto-generated>
|
||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
// source: task.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;
|
||
/// <summary>Holder for reflection information generated from task.proto</summary>
|
||
public static partial class TaskReflection {
|
||
|
||
#region Descriptor
|
||
/// <summary>File descriptor for task.proto</summary>
|
||
public static pbr::FileDescriptor Descriptor {
|
||
get { return descriptor; }
|
||
}
|
||
private static pbr::FileDescriptor descriptor;
|
||
|
||
static TaskReflection() {
|
||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||
string.Concat(
|
||
"Cgp0YXNrLnByb3RvIiMKEVRhc2tDcmVhdGVSZXF1ZXN0Eg4KBnJvb21JZBgB",
|
||
"IAEoCSIWCghCYXNlVGFzaxIKCgJJZBgBIAEoCSJvChJUYXNrQ3JlYXRlUmVz",
|
||
"cG9uc2USCgoCSWQYASABKAkSCQoBWBgCIAEoAhIJCgFZGAMgASgCEgkKAVoY",
|
||
"BCABKAISDAoEVHlwZRgFIAEoBRIOCgZSb29tSWQYBiABKAkSDgoGVXNlcklk",
|
||
"GAcgASgJIu0BChFUYXNrVXBkYXRlUmVxdWVzdBIOCgZSb29tSWQYASABKAkS",
|
||
"DgoGVGFza0lkGAIgASgJEg4KBlVzZXJJZBgDIAEoCRIQCghTZWxlY3RJZBgE",
|
||
"IAEoCRIQCghUb1VzZXJJZBgFIAEoCRIQCghVc2VyTmFtZRgGIAEoCRIOCgZQ",
|
||
"cm9wSWQYByABKAkSEAoIUHJvcE5hbWUYCCABKAkSEAoISW5wdXROdW0YCSAB",
|
||
"KAUSDgoGU3RhdHVzGAogASgJEhoKEkhhbmRsZUJ1dHRvbkNhbGxJZBgLIAEo",
|
||
"CRISCgpUYXJnZXRUeXBlGAwgASgJIjAKEFRhc2tMaXN0UmVzcG9uc2USHAoF",
|
||
"dGFza3MYASADKAsyDS5UYXNrUmVzcG9uc2UisgIKDFRhc2tSZXNwb25zZRIO",
|
||
"CgZUYXNrSWQYASABKAkSDgoGU3RhdHVzGAIgASgJEg4KBlJvb21JZBgDIAEo",
|
||
"CRIJCgFYGAQgASgCEgkKAVkYBSABKAISCQoBWhgGIAEoAhIMCgRUeXBlGAcg",
|
||
"ASgJEhEKCVRpbWVMaW1pdBgIIAEoAxIMCgREZXNjGAkgASgJEg8KB1RyaWdn",
|
||
"ZXIYCiABKAkSEQoJTmV4dFRhc2tzGAsgASgJEhIKClRhcmdldFR5cGUYDCAB",
|
||
"KAkSDgoGUmV3YXJkGA0gASgJEgwKBE5vdGUYDiABKAkSEgoKQ3JlYXRlVGlt",
|
||
"ZRgPIAEoCRISCgpVcGRhdGVUaW1lGBAgASgJEhAKCFRvVXNlcklkGBEgASgJ",
|
||
"EhIKCkJhc2VUYXNrSWQYEiABKAkigwEKC1Rhc2tUcmlnZ2VyEg4KBlVzZXJJ",
|
||
"ZBgBIAEoCRIOCgZSb29tSWQYAiABKAkSEQoJVHJpZ2dlcklkGAMgASgJEg8K",
|
||
"B1R5cGVTdHIYBCABKAkSEAoIVGFyZ2V0SWQYBSABKAkSDgoGVGFza0lkGAYg",
|
||
"ASgJEg4KBlJvbGVJZBgHIAEoCSIjCg5UYXNrT3JtUmVxdWVzdBIRCglzdWJq",
|
||
"ZWN0SWQYASABKAki1gEKFFNlbGVjdEhhbmRsZVRhc2tDb25mEg4KBlRhc2tJ",
|
||
"ZBgBIAEoCRIOCgZVc2VySWQYAiABKAkSDwoHVXNlcklkcxgDIAMoCRIOCgZS",
|
||
"b29tSWQYBCABKAkSEAoIU2VsZWN0SWQYBSABKAkSDgoGUm9sZUlkGAYgASgJ",
|
||
"EhAKCFRyaWdnZXJzGAcgAygJEhIKClRyaWdnZXJTdHIYCCABKAkSEAoIVGFy",
|
||
"Z2V0SWQYCSABKAkSIwoMQmFza1Rhc2tDb25mGAogASgLMg0uQmFzZVRhc2tD",
|
||
"b25mIooDCgxCYXNlVGFza0NvbmYSCgoCSWQYASABKAkSDAoETm90ZRgCIAEo",
|
||
"CRIMCgROYW1lGAMgASgJEgwKBFR5cGUYBCABKAkSDAoERGVzYxgFIAEoCRIS",
|
||
"CgpQbGF5U2NyaXB0GAYgASgJEg8KB1RyaWdnZXIYByABKAkSEwoLT3ZlcnNl",
|
||
"ZUNvbmQYCCABKAkSEQoJVGltZUxpbWl0GAkgASgFEgwKBFJvbGUYCiABKAkS",
|
||
"DwoHU2VsZWN0cxgLIAEoCRISCgpUYXJnZXRUeXBlGAwgASgJEhAKCFRhcmdl",
|
||
"dHMxGA0gASgJEhAKCFRhcmdldHMyGA4gASgJEhUKDVRhcmdldHMyTG9naWMY",
|
||
"DyABKAkSEgoKRXh0cmFWYWx1ZRgQIAEoCRIQCghOZXh0VGFzaxgRIAEoCRIM",
|
||
"CgRTb3J0GBIgASgFEg4KBklzU2hvdxgTIAEoBRIRCglFeGNsdXNpdmUYFCAB",
|
||
"KAkSDgoGUmV3YXJkGBUgASgJEhQKDFRyaWdnZXJMb2dpYxgWIAEoCUIHWgUu",
|
||
"LztwYmIGcHJvdG8z"));
|
||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||
new pbr::FileDescriptor[] { },
|
||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::TaskCreateRequest), global::TaskCreateRequest.Parser, new[]{ "RoomId" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::BaseTask), global::BaseTask.Parser, new[]{ "Id" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::TaskCreateResponse), global::TaskCreateResponse.Parser, new[]{ "Id", "X", "Y", "Z", "Type", "RoomId", "UserId" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::TaskUpdateRequest), global::TaskUpdateRequest.Parser, new[]{ "RoomId", "TaskId", "UserId", "SelectId", "ToUserId", "UserName", "PropId", "PropName", "InputNum", "Status", "HandleButtonCallId", "TargetType" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::TaskListResponse), global::TaskListResponse.Parser, new[]{ "Tasks" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::TaskResponse), global::TaskResponse.Parser, new[]{ "TaskId", "Status", "RoomId", "X", "Y", "Z", "Type", "TimeLimit", "Desc", "Trigger", "NextTasks", "TargetType", "Reward", "Note", "CreateTime", "UpdateTime", "ToUserId", "BaseTaskId" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::TaskTrigger), global::TaskTrigger.Parser, new[]{ "UserId", "RoomId", "TriggerId", "TypeStr", "TargetId", "TaskId", "RoleId" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::TaskOrmRequest), global::TaskOrmRequest.Parser, new[]{ "SubjectId" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::SelectHandleTaskConf), global::SelectHandleTaskConf.Parser, new[]{ "TaskId", "UserId", "UserIds", "RoomId", "SelectId", "RoleId", "Triggers", "TriggerStr", "TargetId", "BaskTaskConf" }, null, null, null, null),
|
||
new pbr::GeneratedClrTypeInfo(typeof(global::BaseTaskConf), global::BaseTaskConf.Parser, new[]{ "Id", "Note", "Name", "Type", "Desc", "PlayScript", "Trigger", "OverseeCond", "TimeLimit", "Role", "Selects", "TargetType", "Targets1", "Targets2", "Targets2Logic", "ExtraValue", "NextTask", "Sort", "IsShow", "Exclusive", "Reward", "TriggerLogic" }, null, null, null, null)
|
||
}));
|
||
}
|
||
#endregion
|
||
|
||
}
|
||
#region Messages
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class TaskCreateRequest : pb::IMessage<TaskCreateRequest>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<TaskCreateRequest> _parser = new pb::MessageParser<TaskCreateRequest>(() => new TaskCreateRequest());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<TaskCreateRequest> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.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 TaskCreateRequest() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskCreateRequest(TaskCreateRequest other) : this() {
|
||
roomId_ = other.roomId_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskCreateRequest Clone() {
|
||
return new TaskCreateRequest(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "roomId" field.</summary>
|
||
public const int RoomIdFieldNumber = 1;
|
||
private string roomId_ = "";
|
||
/// <summary>
|
||
/// 房间id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoomId {
|
||
get { return roomId_; }
|
||
set {
|
||
roomId_ = 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 TaskCreateRequest);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(TaskCreateRequest other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (RoomId != other.RoomId) 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 (RoomId.Length != 0) hash ^= RoomId.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 (RoomId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(RoomId);
|
||
}
|
||
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 (RoomId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(RoomId);
|
||
}
|
||
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 (RoomId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(TaskCreateRequest other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.RoomId.Length != 0) {
|
||
RoomId = other.RoomId;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
RoomId = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class BaseTask : pb::IMessage<BaseTask>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<BaseTask> _parser = new pb::MessageParser<BaseTask>(() => new BaseTask());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<BaseTask> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.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 BaseTask() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public BaseTask(BaseTask other) : this() {
|
||
id_ = other.id_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public BaseTask Clone() {
|
||
return new BaseTask(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "Id" field.</summary>
|
||
public const int IdFieldNumber = 1;
|
||
private string id_ = "";
|
||
/// <summary>
|
||
/// 任务id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Id {
|
||
get { return id_; }
|
||
set {
|
||
id_ = 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 BaseTask);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(BaseTask other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (Id != other.Id) return false;
|
||
return Equals(_unknownFields, other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public override int GetHashCode() {
|
||
int hash = 1;
|
||
if (Id.Length != 0) hash ^= Id.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.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(Id);
|
||
}
|
||
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.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(Id);
|
||
}
|
||
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.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(BaseTask other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.Id.Length != 0) {
|
||
Id = other.Id;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
Id = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
Id = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class TaskCreateResponse : pb::IMessage<TaskCreateResponse>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<TaskCreateResponse> _parser = new pb::MessageParser<TaskCreateResponse>(() => new TaskCreateResponse());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<TaskCreateResponse> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.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 TaskCreateResponse() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskCreateResponse(TaskCreateResponse other) : this() {
|
||
id_ = other.id_;
|
||
x_ = other.x_;
|
||
y_ = other.y_;
|
||
z_ = other.z_;
|
||
type_ = other.type_;
|
||
roomId_ = other.roomId_;
|
||
userId_ = other.userId_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskCreateResponse Clone() {
|
||
return new TaskCreateResponse(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "Id" field.</summary>
|
||
public const int IdFieldNumber = 1;
|
||
private string id_ = "";
|
||
/// <summary>
|
||
/// 任务id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Id {
|
||
get { return id_; }
|
||
set {
|
||
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "X" field.</summary>
|
||
public const int XFieldNumber = 2;
|
||
private float x_;
|
||
/// <summary>
|
||
/// x坐标
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public float X {
|
||
get { return x_; }
|
||
set {
|
||
x_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Y" field.</summary>
|
||
public const int YFieldNumber = 3;
|
||
private float y_;
|
||
/// <summary>
|
||
/// y坐标
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public float Y {
|
||
get { return y_; }
|
||
set {
|
||
y_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Z" field.</summary>
|
||
public const int ZFieldNumber = 4;
|
||
private float z_;
|
||
/// <summary>
|
||
/// z坐标
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public float Z {
|
||
get { return z_; }
|
||
set {
|
||
z_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Type" field.</summary>
|
||
public const int TypeFieldNumber = 5;
|
||
private int type_;
|
||
/// <summary>
|
||
/// 类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public int Type {
|
||
get { return type_; }
|
||
set {
|
||
type_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "RoomId" field.</summary>
|
||
public const int RoomIdFieldNumber = 6;
|
||
private string roomId_ = "";
|
||
/// <summary>
|
||
/// 房间id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoomId {
|
||
get { return roomId_; }
|
||
set {
|
||
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "UserId" field.</summary>
|
||
public const int UserIdFieldNumber = 7;
|
||
private string userId_ = "";
|
||
/// <summary>
|
||
/// 用户id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string UserId {
|
||
get { return userId_; }
|
||
set {
|
||
userId_ = 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 TaskCreateResponse);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(TaskCreateResponse other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (Id != other.Id) return false;
|
||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
|
||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
|
||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
|
||
if (Type != other.Type) return false;
|
||
if (RoomId != other.RoomId) return false;
|
||
if (UserId != other.UserId) 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.Length != 0) hash ^= Id.GetHashCode();
|
||
if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
|
||
if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
|
||
if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
|
||
if (Type != 0) hash ^= Type.GetHashCode();
|
||
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||
if (UserId.Length != 0) hash ^= UserId.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.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(Id);
|
||
}
|
||
if (X != 0F) {
|
||
output.WriteRawTag(21);
|
||
output.WriteFloat(X);
|
||
}
|
||
if (Y != 0F) {
|
||
output.WriteRawTag(29);
|
||
output.WriteFloat(Y);
|
||
}
|
||
if (Z != 0F) {
|
||
output.WriteRawTag(37);
|
||
output.WriteFloat(Z);
|
||
}
|
||
if (Type != 0) {
|
||
output.WriteRawTag(40);
|
||
output.WriteInt32(Type);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(UserId);
|
||
}
|
||
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.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(Id);
|
||
}
|
||
if (X != 0F) {
|
||
output.WriteRawTag(21);
|
||
output.WriteFloat(X);
|
||
}
|
||
if (Y != 0F) {
|
||
output.WriteRawTag(29);
|
||
output.WriteFloat(Y);
|
||
}
|
||
if (Z != 0F) {
|
||
output.WriteRawTag(37);
|
||
output.WriteFloat(Z);
|
||
}
|
||
if (Type != 0) {
|
||
output.WriteRawTag(40);
|
||
output.WriteInt32(Type);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(UserId);
|
||
}
|
||
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.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
||
}
|
||
if (X != 0F) {
|
||
size += 1 + 4;
|
||
}
|
||
if (Y != 0F) {
|
||
size += 1 + 4;
|
||
}
|
||
if (Z != 0F) {
|
||
size += 1 + 4;
|
||
}
|
||
if (Type != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Type);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(TaskCreateResponse other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.Id.Length != 0) {
|
||
Id = other.Id;
|
||
}
|
||
if (other.X != 0F) {
|
||
X = other.X;
|
||
}
|
||
if (other.Y != 0F) {
|
||
Y = other.Y;
|
||
}
|
||
if (other.Z != 0F) {
|
||
Z = other.Z;
|
||
}
|
||
if (other.Type != 0) {
|
||
Type = other.Type;
|
||
}
|
||
if (other.RoomId.Length != 0) {
|
||
RoomId = other.RoomId;
|
||
}
|
||
if (other.UserId.Length != 0) {
|
||
UserId = other.UserId;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
Id = input.ReadString();
|
||
break;
|
||
}
|
||
case 21: {
|
||
X = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 29: {
|
||
Y = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 37: {
|
||
Z = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 40: {
|
||
Type = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 50: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
UserId = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
Id = input.ReadString();
|
||
break;
|
||
}
|
||
case 21: {
|
||
X = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 29: {
|
||
Y = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 37: {
|
||
Z = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 40: {
|
||
Type = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 50: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
UserId = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class TaskUpdateRequest : pb::IMessage<TaskUpdateRequest>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<TaskUpdateRequest> _parser = new pb::MessageParser<TaskUpdateRequest>(() => new TaskUpdateRequest());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<TaskUpdateRequest> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.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 TaskUpdateRequest() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskUpdateRequest(TaskUpdateRequest other) : this() {
|
||
roomId_ = other.roomId_;
|
||
taskId_ = other.taskId_;
|
||
userId_ = other.userId_;
|
||
selectId_ = other.selectId_;
|
||
toUserId_ = other.toUserId_;
|
||
userName_ = other.userName_;
|
||
propId_ = other.propId_;
|
||
propName_ = other.propName_;
|
||
inputNum_ = other.inputNum_;
|
||
status_ = other.status_;
|
||
handleButtonCallId_ = other.handleButtonCallId_;
|
||
targetType_ = other.targetType_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskUpdateRequest Clone() {
|
||
return new TaskUpdateRequest(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "RoomId" field.</summary>
|
||
public const int RoomIdFieldNumber = 1;
|
||
private string roomId_ = "";
|
||
/// <summary>
|
||
/// 房间id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoomId {
|
||
get { return roomId_; }
|
||
set {
|
||
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TaskId" field.</summary>
|
||
public const int TaskIdFieldNumber = 2;
|
||
private string taskId_ = "";
|
||
/// <summary>
|
||
/// 任务id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TaskId {
|
||
get { return taskId_; }
|
||
set {
|
||
taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "UserId" field.</summary>
|
||
public const int UserIdFieldNumber = 3;
|
||
private string userId_ = "";
|
||
/// <summary>
|
||
/// 用户id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string UserId {
|
||
get { return userId_; }
|
||
set {
|
||
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "SelectId" field.</summary>
|
||
public const int SelectIdFieldNumber = 4;
|
||
private string selectId_ = "";
|
||
/// <summary>
|
||
/// 选项ID 界面按钮
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string SelectId {
|
||
get { return selectId_; }
|
||
set {
|
||
selectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "ToUserId" field.</summary>
|
||
public const int ToUserIdFieldNumber = 5;
|
||
private string toUserId_ = "";
|
||
/// <summary>
|
||
/// 目标用户id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string ToUserId {
|
||
get { return toUserId_; }
|
||
set {
|
||
toUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "UserName" field.</summary>
|
||
public const int UserNameFieldNumber = 6;
|
||
private string userName_ = "";
|
||
/// <summary>
|
||
/// 用户名
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string UserName {
|
||
get { return userName_; }
|
||
set {
|
||
userName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "PropId" field.</summary>
|
||
public const int PropIdFieldNumber = 7;
|
||
private string propId_ = "";
|
||
/// <summary>
|
||
///道具id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string PropId {
|
||
get { return propId_; }
|
||
set {
|
||
propId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "PropName" field.</summary>
|
||
public const int PropNameFieldNumber = 8;
|
||
private string propName_ = "";
|
||
/// <summary>
|
||
///道具名称
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string PropName {
|
||
get { return propName_; }
|
||
set {
|
||
propName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "InputNum" field.</summary>
|
||
public const int InputNumFieldNumber = 9;
|
||
private int inputNum_;
|
||
/// <summary>
|
||
///道具数量
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public int InputNum {
|
||
get { return inputNum_; }
|
||
set {
|
||
inputNum_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Status" field.</summary>
|
||
public const int StatusFieldNumber = 10;
|
||
private string status_ = "";
|
||
/// <summary>
|
||
/// 任务状态
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Status {
|
||
get { return status_; }
|
||
set {
|
||
status_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "HandleButtonCallId" field.</summary>
|
||
public const int HandleButtonCallIdFieldNumber = 11;
|
||
private string handleButtonCallId_ = "";
|
||
/// <summary>
|
||
/// 处理按钮调用id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string HandleButtonCallId {
|
||
get { return handleButtonCallId_; }
|
||
set {
|
||
handleButtonCallId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TargetType" field.</summary>
|
||
public const int TargetTypeFieldNumber = 12;
|
||
private string targetType_ = "";
|
||
/// <summary>
|
||
/// 任务完成类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TargetType {
|
||
get { return targetType_; }
|
||
set {
|
||
targetType_ = 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 TaskUpdateRequest);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(TaskUpdateRequest other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (RoomId != other.RoomId) return false;
|
||
if (TaskId != other.TaskId) return false;
|
||
if (UserId != other.UserId) return false;
|
||
if (SelectId != other.SelectId) return false;
|
||
if (ToUserId != other.ToUserId) return false;
|
||
if (UserName != other.UserName) return false;
|
||
if (PropId != other.PropId) return false;
|
||
if (PropName != other.PropName) return false;
|
||
if (InputNum != other.InputNum) return false;
|
||
if (Status != other.Status) return false;
|
||
if (HandleButtonCallId != other.HandleButtonCallId) return false;
|
||
if (TargetType != other.TargetType) 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 (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||
if (TaskId.Length != 0) hash ^= TaskId.GetHashCode();
|
||
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
||
if (SelectId.Length != 0) hash ^= SelectId.GetHashCode();
|
||
if (ToUserId.Length != 0) hash ^= ToUserId.GetHashCode();
|
||
if (UserName.Length != 0) hash ^= UserName.GetHashCode();
|
||
if (PropId.Length != 0) hash ^= PropId.GetHashCode();
|
||
if (PropName.Length != 0) hash ^= PropName.GetHashCode();
|
||
if (InputNum != 0) hash ^= InputNum.GetHashCode();
|
||
if (Status.Length != 0) hash ^= Status.GetHashCode();
|
||
if (HandleButtonCallId.Length != 0) hash ^= HandleButtonCallId.GetHashCode();
|
||
if (TargetType.Length != 0) hash ^= TargetType.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 (RoomId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (TaskId.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(UserId);
|
||
}
|
||
if (SelectId.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(SelectId);
|
||
}
|
||
if (ToUserId.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(ToUserId);
|
||
}
|
||
if (UserName.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(UserName);
|
||
}
|
||
if (PropId.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(PropId);
|
||
}
|
||
if (PropName.Length != 0) {
|
||
output.WriteRawTag(66);
|
||
output.WriteString(PropName);
|
||
}
|
||
if (InputNum != 0) {
|
||
output.WriteRawTag(72);
|
||
output.WriteInt32(InputNum);
|
||
}
|
||
if (Status.Length != 0) {
|
||
output.WriteRawTag(82);
|
||
output.WriteString(Status);
|
||
}
|
||
if (HandleButtonCallId.Length != 0) {
|
||
output.WriteRawTag(90);
|
||
output.WriteString(HandleButtonCallId);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
output.WriteRawTag(98);
|
||
output.WriteString(TargetType);
|
||
}
|
||
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 (RoomId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (TaskId.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(UserId);
|
||
}
|
||
if (SelectId.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(SelectId);
|
||
}
|
||
if (ToUserId.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(ToUserId);
|
||
}
|
||
if (UserName.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(UserName);
|
||
}
|
||
if (PropId.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(PropId);
|
||
}
|
||
if (PropName.Length != 0) {
|
||
output.WriteRawTag(66);
|
||
output.WriteString(PropName);
|
||
}
|
||
if (InputNum != 0) {
|
||
output.WriteRawTag(72);
|
||
output.WriteInt32(InputNum);
|
||
}
|
||
if (Status.Length != 0) {
|
||
output.WriteRawTag(82);
|
||
output.WriteString(Status);
|
||
}
|
||
if (HandleButtonCallId.Length != 0) {
|
||
output.WriteRawTag(90);
|
||
output.WriteString(HandleButtonCallId);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
output.WriteRawTag(98);
|
||
output.WriteString(TargetType);
|
||
}
|
||
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 (RoomId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||
}
|
||
if (TaskId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
||
}
|
||
if (SelectId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectId);
|
||
}
|
||
if (ToUserId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(ToUserId);
|
||
}
|
||
if (UserName.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserName);
|
||
}
|
||
if (PropId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(PropId);
|
||
}
|
||
if (PropName.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(PropName);
|
||
}
|
||
if (InputNum != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(InputNum);
|
||
}
|
||
if (Status.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Status);
|
||
}
|
||
if (HandleButtonCallId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(HandleButtonCallId);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetType);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(TaskUpdateRequest other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.RoomId.Length != 0) {
|
||
RoomId = other.RoomId;
|
||
}
|
||
if (other.TaskId.Length != 0) {
|
||
TaskId = other.TaskId;
|
||
}
|
||
if (other.UserId.Length != 0) {
|
||
UserId = other.UserId;
|
||
}
|
||
if (other.SelectId.Length != 0) {
|
||
SelectId = other.SelectId;
|
||
}
|
||
if (other.ToUserId.Length != 0) {
|
||
ToUserId = other.ToUserId;
|
||
}
|
||
if (other.UserName.Length != 0) {
|
||
UserName = other.UserName;
|
||
}
|
||
if (other.PropId.Length != 0) {
|
||
PropId = other.PropId;
|
||
}
|
||
if (other.PropName.Length != 0) {
|
||
PropName = other.PropName;
|
||
}
|
||
if (other.InputNum != 0) {
|
||
InputNum = other.InputNum;
|
||
}
|
||
if (other.Status.Length != 0) {
|
||
Status = other.Status;
|
||
}
|
||
if (other.HandleButtonCallId.Length != 0) {
|
||
HandleButtonCallId = other.HandleButtonCallId;
|
||
}
|
||
if (other.TargetType.Length != 0) {
|
||
TargetType = other.TargetType;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
UserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 34: {
|
||
SelectId = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
ToUserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
UserName = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
PropId = input.ReadString();
|
||
break;
|
||
}
|
||
case 66: {
|
||
PropName = input.ReadString();
|
||
break;
|
||
}
|
||
case 72: {
|
||
InputNum = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 82: {
|
||
Status = input.ReadString();
|
||
break;
|
||
}
|
||
case 90: {
|
||
HandleButtonCallId = input.ReadString();
|
||
break;
|
||
}
|
||
case 98: {
|
||
TargetType = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
UserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 34: {
|
||
SelectId = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
ToUserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
UserName = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
PropId = input.ReadString();
|
||
break;
|
||
}
|
||
case 66: {
|
||
PropName = input.ReadString();
|
||
break;
|
||
}
|
||
case 72: {
|
||
InputNum = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 82: {
|
||
Status = input.ReadString();
|
||
break;
|
||
}
|
||
case 90: {
|
||
HandleButtonCallId = input.ReadString();
|
||
break;
|
||
}
|
||
case 98: {
|
||
TargetType = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class TaskListResponse : pb::IMessage<TaskListResponse>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<TaskListResponse> _parser = new pb::MessageParser<TaskListResponse>(() => new TaskListResponse());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<TaskListResponse> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.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 TaskListResponse() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskListResponse(TaskListResponse other) : this() {
|
||
tasks_ = other.tasks_.Clone();
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskListResponse Clone() {
|
||
return new TaskListResponse(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "tasks" field.</summary>
|
||
public const int TasksFieldNumber = 1;
|
||
private static readonly pb::FieldCodec<global::TaskResponse> _repeated_tasks_codec
|
||
= pb::FieldCodec.ForMessage(10, global::TaskResponse.Parser);
|
||
private readonly pbc::RepeatedField<global::TaskResponse> tasks_ = new pbc::RepeatedField<global::TaskResponse>();
|
||
/// <summary>
|
||
/// 任务列表
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public pbc::RepeatedField<global::TaskResponse> Tasks {
|
||
get { return tasks_; }
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public override bool Equals(object other) {
|
||
return Equals(other as TaskListResponse);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(TaskListResponse other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if(!tasks_.Equals(other.tasks_)) 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;
|
||
hash ^= tasks_.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
|
||
tasks_.WriteTo(output, _repeated_tasks_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) {
|
||
tasks_.WriteTo(ref output, _repeated_tasks_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;
|
||
size += tasks_.CalculateSize(_repeated_tasks_codec);
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(TaskListResponse other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
tasks_.Add(other.tasks_);
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
tasks_.AddEntriesFrom(input, _repeated_tasks_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
tasks_.AddEntriesFrom(ref input, _repeated_tasks_codec);
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class TaskResponse : pb::IMessage<TaskResponse>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<TaskResponse> _parser = new pb::MessageParser<TaskResponse>(() => new TaskResponse());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<TaskResponse> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.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 TaskResponse() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskResponse(TaskResponse other) : this() {
|
||
taskId_ = other.taskId_;
|
||
status_ = other.status_;
|
||
roomId_ = other.roomId_;
|
||
x_ = other.x_;
|
||
y_ = other.y_;
|
||
z_ = other.z_;
|
||
type_ = other.type_;
|
||
timeLimit_ = other.timeLimit_;
|
||
desc_ = other.desc_;
|
||
trigger_ = other.trigger_;
|
||
nextTasks_ = other.nextTasks_;
|
||
targetType_ = other.targetType_;
|
||
reward_ = other.reward_;
|
||
note_ = other.note_;
|
||
createTime_ = other.createTime_;
|
||
updateTime_ = other.updateTime_;
|
||
toUserId_ = other.toUserId_;
|
||
baseTaskId_ = other.baseTaskId_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskResponse Clone() {
|
||
return new TaskResponse(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "TaskId" field.</summary>
|
||
public const int TaskIdFieldNumber = 1;
|
||
private string taskId_ = "";
|
||
/// <summary>
|
||
/// 任务id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TaskId {
|
||
get { return taskId_; }
|
||
set {
|
||
taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Status" field.</summary>
|
||
public const int StatusFieldNumber = 2;
|
||
private string status_ = "";
|
||
/// <summary>
|
||
/// 状态 任务状态 0=未完成 1=已完成 2=超时 3=失败 4=取消
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Status {
|
||
get { return status_; }
|
||
set {
|
||
status_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "RoomId" field.</summary>
|
||
public const int RoomIdFieldNumber = 3;
|
||
private string roomId_ = "";
|
||
/// <summary>
|
||
/// 房间id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoomId {
|
||
get { return roomId_; }
|
||
set {
|
||
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "X" field.</summary>
|
||
public const int XFieldNumber = 4;
|
||
private float x_;
|
||
/// <summary>
|
||
/// x坐标
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public float X {
|
||
get { return x_; }
|
||
set {
|
||
x_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Y" field.</summary>
|
||
public const int YFieldNumber = 5;
|
||
private float y_;
|
||
/// <summary>
|
||
/// y坐标
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public float Y {
|
||
get { return y_; }
|
||
set {
|
||
y_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Z" field.</summary>
|
||
public const int ZFieldNumber = 6;
|
||
private float z_;
|
||
/// <summary>
|
||
/// z坐标
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public float Z {
|
||
get { return z_; }
|
||
set {
|
||
z_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Type" field.</summary>
|
||
public const int TypeFieldNumber = 7;
|
||
private string type_ = "";
|
||
/// <summary>
|
||
/// 类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Type {
|
||
get { return type_; }
|
||
set {
|
||
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TimeLimit" field.</summary>
|
||
public const int TimeLimitFieldNumber = 8;
|
||
private long timeLimit_;
|
||
/// <summary>
|
||
/// 时间限制
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public long TimeLimit {
|
||
get { return timeLimit_; }
|
||
set {
|
||
timeLimit_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Desc" field.</summary>
|
||
public const int DescFieldNumber = 9;
|
||
private string desc_ = "";
|
||
/// <summary>
|
||
/// 描述
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Desc {
|
||
get { return desc_; }
|
||
set {
|
||
desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Trigger" field.</summary>
|
||
public const int TriggerFieldNumber = 10;
|
||
private string trigger_ = "";
|
||
/// <summary>
|
||
/// 触发条件
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Trigger {
|
||
get { return trigger_; }
|
||
set {
|
||
trigger_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "NextTasks" field.</summary>
|
||
public const int NextTasksFieldNumber = 11;
|
||
private string nextTasks_ = "";
|
||
/// <summary>
|
||
/// 下一步任务
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string NextTasks {
|
||
get { return nextTasks_; }
|
||
set {
|
||
nextTasks_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TargetType" field.</summary>
|
||
public const int TargetTypeFieldNumber = 12;
|
||
private string targetType_ = "";
|
||
/// <summary>
|
||
/// 目标类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TargetType {
|
||
get { return targetType_; }
|
||
set {
|
||
targetType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Reward" field.</summary>
|
||
public const int RewardFieldNumber = 13;
|
||
private string reward_ = "";
|
||
/// <summary>
|
||
/// 奖励
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Reward {
|
||
get { return reward_; }
|
||
set {
|
||
reward_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Note" field.</summary>
|
||
public const int NoteFieldNumber = 14;
|
||
private string note_ = "";
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Note {
|
||
get { return note_; }
|
||
set {
|
||
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "CreateTime" field.</summary>
|
||
public const int CreateTimeFieldNumber = 15;
|
||
private string createTime_ = "";
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string CreateTime {
|
||
get { return createTime_; }
|
||
set {
|
||
createTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "UpdateTime" field.</summary>
|
||
public const int UpdateTimeFieldNumber = 16;
|
||
private string updateTime_ = "";
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string UpdateTime {
|
||
get { return updateTime_; }
|
||
set {
|
||
updateTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "ToUserId" field.</summary>
|
||
public const int ToUserIdFieldNumber = 17;
|
||
private string toUserId_ = "";
|
||
/// <summary>
|
||
/// 目标用户id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string ToUserId {
|
||
get { return toUserId_; }
|
||
set {
|
||
toUserId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "BaseTaskId" field.</summary>
|
||
public const int BaseTaskIdFieldNumber = 18;
|
||
private string baseTaskId_ = "";
|
||
/// <summary>
|
||
/// 基础任务id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string BaseTaskId {
|
||
get { return baseTaskId_; }
|
||
set {
|
||
baseTaskId_ = 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 TaskResponse);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(TaskResponse other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (TaskId != other.TaskId) return false;
|
||
if (Status != other.Status) return false;
|
||
if (RoomId != other.RoomId) return false;
|
||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
|
||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) return false;
|
||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Z, other.Z)) return false;
|
||
if (Type != other.Type) return false;
|
||
if (TimeLimit != other.TimeLimit) return false;
|
||
if (Desc != other.Desc) return false;
|
||
if (Trigger != other.Trigger) return false;
|
||
if (NextTasks != other.NextTasks) return false;
|
||
if (TargetType != other.TargetType) return false;
|
||
if (Reward != other.Reward) return false;
|
||
if (Note != other.Note) return false;
|
||
if (CreateTime != other.CreateTime) return false;
|
||
if (UpdateTime != other.UpdateTime) return false;
|
||
if (ToUserId != other.ToUserId) return false;
|
||
if (BaseTaskId != other.BaseTaskId) 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 (TaskId.Length != 0) hash ^= TaskId.GetHashCode();
|
||
if (Status.Length != 0) hash ^= Status.GetHashCode();
|
||
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||
if (X != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
|
||
if (Y != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
|
||
if (Z != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Z);
|
||
if (Type.Length != 0) hash ^= Type.GetHashCode();
|
||
if (TimeLimit != 0L) hash ^= TimeLimit.GetHashCode();
|
||
if (Desc.Length != 0) hash ^= Desc.GetHashCode();
|
||
if (Trigger.Length != 0) hash ^= Trigger.GetHashCode();
|
||
if (NextTasks.Length != 0) hash ^= NextTasks.GetHashCode();
|
||
if (TargetType.Length != 0) hash ^= TargetType.GetHashCode();
|
||
if (Reward.Length != 0) hash ^= Reward.GetHashCode();
|
||
if (Note.Length != 0) hash ^= Note.GetHashCode();
|
||
if (CreateTime.Length != 0) hash ^= CreateTime.GetHashCode();
|
||
if (UpdateTime.Length != 0) hash ^= UpdateTime.GetHashCode();
|
||
if (ToUserId.Length != 0) hash ^= ToUserId.GetHashCode();
|
||
if (BaseTaskId.Length != 0) hash ^= BaseTaskId.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 (TaskId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (Status.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(Status);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (X != 0F) {
|
||
output.WriteRawTag(37);
|
||
output.WriteFloat(X);
|
||
}
|
||
if (Y != 0F) {
|
||
output.WriteRawTag(45);
|
||
output.WriteFloat(Y);
|
||
}
|
||
if (Z != 0F) {
|
||
output.WriteRawTag(53);
|
||
output.WriteFloat(Z);
|
||
}
|
||
if (Type.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(Type);
|
||
}
|
||
if (TimeLimit != 0L) {
|
||
output.WriteRawTag(64);
|
||
output.WriteInt64(TimeLimit);
|
||
}
|
||
if (Desc.Length != 0) {
|
||
output.WriteRawTag(74);
|
||
output.WriteString(Desc);
|
||
}
|
||
if (Trigger.Length != 0) {
|
||
output.WriteRawTag(82);
|
||
output.WriteString(Trigger);
|
||
}
|
||
if (NextTasks.Length != 0) {
|
||
output.WriteRawTag(90);
|
||
output.WriteString(NextTasks);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
output.WriteRawTag(98);
|
||
output.WriteString(TargetType);
|
||
}
|
||
if (Reward.Length != 0) {
|
||
output.WriteRawTag(106);
|
||
output.WriteString(Reward);
|
||
}
|
||
if (Note.Length != 0) {
|
||
output.WriteRawTag(114);
|
||
output.WriteString(Note);
|
||
}
|
||
if (CreateTime.Length != 0) {
|
||
output.WriteRawTag(122);
|
||
output.WriteString(CreateTime);
|
||
}
|
||
if (UpdateTime.Length != 0) {
|
||
output.WriteRawTag(130, 1);
|
||
output.WriteString(UpdateTime);
|
||
}
|
||
if (ToUserId.Length != 0) {
|
||
output.WriteRawTag(138, 1);
|
||
output.WriteString(ToUserId);
|
||
}
|
||
if (BaseTaskId.Length != 0) {
|
||
output.WriteRawTag(146, 1);
|
||
output.WriteString(BaseTaskId);
|
||
}
|
||
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 (TaskId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (Status.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(Status);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (X != 0F) {
|
||
output.WriteRawTag(37);
|
||
output.WriteFloat(X);
|
||
}
|
||
if (Y != 0F) {
|
||
output.WriteRawTag(45);
|
||
output.WriteFloat(Y);
|
||
}
|
||
if (Z != 0F) {
|
||
output.WriteRawTag(53);
|
||
output.WriteFloat(Z);
|
||
}
|
||
if (Type.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(Type);
|
||
}
|
||
if (TimeLimit != 0L) {
|
||
output.WriteRawTag(64);
|
||
output.WriteInt64(TimeLimit);
|
||
}
|
||
if (Desc.Length != 0) {
|
||
output.WriteRawTag(74);
|
||
output.WriteString(Desc);
|
||
}
|
||
if (Trigger.Length != 0) {
|
||
output.WriteRawTag(82);
|
||
output.WriteString(Trigger);
|
||
}
|
||
if (NextTasks.Length != 0) {
|
||
output.WriteRawTag(90);
|
||
output.WriteString(NextTasks);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
output.WriteRawTag(98);
|
||
output.WriteString(TargetType);
|
||
}
|
||
if (Reward.Length != 0) {
|
||
output.WriteRawTag(106);
|
||
output.WriteString(Reward);
|
||
}
|
||
if (Note.Length != 0) {
|
||
output.WriteRawTag(114);
|
||
output.WriteString(Note);
|
||
}
|
||
if (CreateTime.Length != 0) {
|
||
output.WriteRawTag(122);
|
||
output.WriteString(CreateTime);
|
||
}
|
||
if (UpdateTime.Length != 0) {
|
||
output.WriteRawTag(130, 1);
|
||
output.WriteString(UpdateTime);
|
||
}
|
||
if (ToUserId.Length != 0) {
|
||
output.WriteRawTag(138, 1);
|
||
output.WriteString(ToUserId);
|
||
}
|
||
if (BaseTaskId.Length != 0) {
|
||
output.WriteRawTag(146, 1);
|
||
output.WriteString(BaseTaskId);
|
||
}
|
||
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 (TaskId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId);
|
||
}
|
||
if (Status.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Status);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||
}
|
||
if (X != 0F) {
|
||
size += 1 + 4;
|
||
}
|
||
if (Y != 0F) {
|
||
size += 1 + 4;
|
||
}
|
||
if (Z != 0F) {
|
||
size += 1 + 4;
|
||
}
|
||
if (Type.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
|
||
}
|
||
if (TimeLimit != 0L) {
|
||
size += 1 + pb::CodedOutputStream.ComputeInt64Size(TimeLimit);
|
||
}
|
||
if (Desc.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc);
|
||
}
|
||
if (Trigger.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Trigger);
|
||
}
|
||
if (NextTasks.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(NextTasks);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetType);
|
||
}
|
||
if (Reward.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Reward);
|
||
}
|
||
if (Note.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
|
||
}
|
||
if (CreateTime.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(CreateTime);
|
||
}
|
||
if (UpdateTime.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(UpdateTime);
|
||
}
|
||
if (ToUserId.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(ToUserId);
|
||
}
|
||
if (BaseTaskId.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(BaseTaskId);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(TaskResponse other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.TaskId.Length != 0) {
|
||
TaskId = other.TaskId;
|
||
}
|
||
if (other.Status.Length != 0) {
|
||
Status = other.Status;
|
||
}
|
||
if (other.RoomId.Length != 0) {
|
||
RoomId = other.RoomId;
|
||
}
|
||
if (other.X != 0F) {
|
||
X = other.X;
|
||
}
|
||
if (other.Y != 0F) {
|
||
Y = other.Y;
|
||
}
|
||
if (other.Z != 0F) {
|
||
Z = other.Z;
|
||
}
|
||
if (other.Type.Length != 0) {
|
||
Type = other.Type;
|
||
}
|
||
if (other.TimeLimit != 0L) {
|
||
TimeLimit = other.TimeLimit;
|
||
}
|
||
if (other.Desc.Length != 0) {
|
||
Desc = other.Desc;
|
||
}
|
||
if (other.Trigger.Length != 0) {
|
||
Trigger = other.Trigger;
|
||
}
|
||
if (other.NextTasks.Length != 0) {
|
||
NextTasks = other.NextTasks;
|
||
}
|
||
if (other.TargetType.Length != 0) {
|
||
TargetType = other.TargetType;
|
||
}
|
||
if (other.Reward.Length != 0) {
|
||
Reward = other.Reward;
|
||
}
|
||
if (other.Note.Length != 0) {
|
||
Note = other.Note;
|
||
}
|
||
if (other.CreateTime.Length != 0) {
|
||
CreateTime = other.CreateTime;
|
||
}
|
||
if (other.UpdateTime.Length != 0) {
|
||
UpdateTime = other.UpdateTime;
|
||
}
|
||
if (other.ToUserId.Length != 0) {
|
||
ToUserId = other.ToUserId;
|
||
}
|
||
if (other.BaseTaskId.Length != 0) {
|
||
BaseTaskId = other.BaseTaskId;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
Status = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 37: {
|
||
X = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 45: {
|
||
Y = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 53: {
|
||
Z = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 58: {
|
||
Type = input.ReadString();
|
||
break;
|
||
}
|
||
case 64: {
|
||
TimeLimit = input.ReadInt64();
|
||
break;
|
||
}
|
||
case 74: {
|
||
Desc = input.ReadString();
|
||
break;
|
||
}
|
||
case 82: {
|
||
Trigger = input.ReadString();
|
||
break;
|
||
}
|
||
case 90: {
|
||
NextTasks = input.ReadString();
|
||
break;
|
||
}
|
||
case 98: {
|
||
TargetType = input.ReadString();
|
||
break;
|
||
}
|
||
case 106: {
|
||
Reward = input.ReadString();
|
||
break;
|
||
}
|
||
case 114: {
|
||
Note = input.ReadString();
|
||
break;
|
||
}
|
||
case 122: {
|
||
CreateTime = input.ReadString();
|
||
break;
|
||
}
|
||
case 130: {
|
||
UpdateTime = input.ReadString();
|
||
break;
|
||
}
|
||
case 138: {
|
||
ToUserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 146: {
|
||
BaseTaskId = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
Status = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 37: {
|
||
X = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 45: {
|
||
Y = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 53: {
|
||
Z = input.ReadFloat();
|
||
break;
|
||
}
|
||
case 58: {
|
||
Type = input.ReadString();
|
||
break;
|
||
}
|
||
case 64: {
|
||
TimeLimit = input.ReadInt64();
|
||
break;
|
||
}
|
||
case 74: {
|
||
Desc = input.ReadString();
|
||
break;
|
||
}
|
||
case 82: {
|
||
Trigger = input.ReadString();
|
||
break;
|
||
}
|
||
case 90: {
|
||
NextTasks = input.ReadString();
|
||
break;
|
||
}
|
||
case 98: {
|
||
TargetType = input.ReadString();
|
||
break;
|
||
}
|
||
case 106: {
|
||
Reward = input.ReadString();
|
||
break;
|
||
}
|
||
case 114: {
|
||
Note = input.ReadString();
|
||
break;
|
||
}
|
||
case 122: {
|
||
CreateTime = input.ReadString();
|
||
break;
|
||
}
|
||
case 130: {
|
||
UpdateTime = input.ReadString();
|
||
break;
|
||
}
|
||
case 138: {
|
||
ToUserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 146: {
|
||
BaseTaskId = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class TaskTrigger : pb::IMessage<TaskTrigger>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<TaskTrigger> _parser = new pb::MessageParser<TaskTrigger>(() => new TaskTrigger());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<TaskTrigger> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.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 TaskTrigger() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskTrigger(TaskTrigger other) : this() {
|
||
userId_ = other.userId_;
|
||
roomId_ = other.roomId_;
|
||
triggerId_ = other.triggerId_;
|
||
typeStr_ = other.typeStr_;
|
||
targetId_ = other.targetId_;
|
||
taskId_ = other.taskId_;
|
||
roleId_ = other.roleId_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskTrigger Clone() {
|
||
return new TaskTrigger(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "UserId" field.</summary>
|
||
public const int UserIdFieldNumber = 1;
|
||
private string userId_ = "";
|
||
/// <summary>
|
||
/// 用户id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string UserId {
|
||
get { return userId_; }
|
||
set {
|
||
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "RoomId" field.</summary>
|
||
public const int RoomIdFieldNumber = 2;
|
||
private string roomId_ = "";
|
||
/// <summary>
|
||
/// 房间id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoomId {
|
||
get { return roomId_; }
|
||
set {
|
||
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TriggerId" field.</summary>
|
||
public const int TriggerIdFieldNumber = 3;
|
||
private string triggerId_ = "";
|
||
/// <summary>
|
||
/// 触发器id
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TriggerId {
|
||
get { return triggerId_; }
|
||
set {
|
||
triggerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TypeStr" field.</summary>
|
||
public const int TypeStrFieldNumber = 4;
|
||
private string typeStr_ = "";
|
||
/// <summary>
|
||
/// 触发器类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TypeStr {
|
||
get { return typeStr_; }
|
||
set {
|
||
typeStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TargetId" field.</summary>
|
||
public const int TargetIdFieldNumber = 5;
|
||
private string targetId_ = "";
|
||
/// <summary>
|
||
/// 目标id 例如消防栓ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TargetId {
|
||
get { return targetId_; }
|
||
set {
|
||
targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TaskId" field.</summary>
|
||
public const int TaskIdFieldNumber = 6;
|
||
private string taskId_ = "";
|
||
/// <summary>
|
||
/// 任务id(当前操作选项相关的任务ID)
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TaskId {
|
||
get { return taskId_; }
|
||
set {
|
||
taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "RoleId" field.</summary>
|
||
public const int RoleIdFieldNumber = 7;
|
||
private string roleId_ = "";
|
||
/// <summary>
|
||
/// 角色id(当前选择的角色ID)
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoleId {
|
||
get { return roleId_; }
|
||
set {
|
||
roleId_ = 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 TaskTrigger);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(TaskTrigger other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (UserId != other.UserId) return false;
|
||
if (RoomId != other.RoomId) return false;
|
||
if (TriggerId != other.TriggerId) return false;
|
||
if (TypeStr != other.TypeStr) return false;
|
||
if (TargetId != other.TargetId) return false;
|
||
if (TaskId != other.TaskId) return false;
|
||
if (RoleId != other.RoleId) 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 (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
||
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||
if (TriggerId.Length != 0) hash ^= TriggerId.GetHashCode();
|
||
if (TypeStr.Length != 0) hash ^= TypeStr.GetHashCode();
|
||
if (TargetId.Length != 0) hash ^= TargetId.GetHashCode();
|
||
if (TaskId.Length != 0) hash ^= TaskId.GetHashCode();
|
||
if (RoleId.Length != 0) hash ^= RoleId.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 (UserId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(UserId);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (TriggerId.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(TriggerId);
|
||
}
|
||
if (TypeStr.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(TypeStr);
|
||
}
|
||
if (TargetId.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(TargetId);
|
||
}
|
||
if (TaskId.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (RoleId.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(RoleId);
|
||
}
|
||
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 (UserId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(UserId);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (TriggerId.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(TriggerId);
|
||
}
|
||
if (TypeStr.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(TypeStr);
|
||
}
|
||
if (TargetId.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(TargetId);
|
||
}
|
||
if (TaskId.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (RoleId.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(RoleId);
|
||
}
|
||
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 (UserId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
||
}
|
||
if (RoomId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||
}
|
||
if (TriggerId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerId);
|
||
}
|
||
if (TypeStr.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TypeStr);
|
||
}
|
||
if (TargetId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId);
|
||
}
|
||
if (TaskId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId);
|
||
}
|
||
if (RoleId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(TaskTrigger other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.UserId.Length != 0) {
|
||
UserId = other.UserId;
|
||
}
|
||
if (other.RoomId.Length != 0) {
|
||
RoomId = other.RoomId;
|
||
}
|
||
if (other.TriggerId.Length != 0) {
|
||
TriggerId = other.TriggerId;
|
||
}
|
||
if (other.TypeStr.Length != 0) {
|
||
TypeStr = other.TypeStr;
|
||
}
|
||
if (other.TargetId.Length != 0) {
|
||
TargetId = other.TargetId;
|
||
}
|
||
if (other.TaskId.Length != 0) {
|
||
TaskId = other.TaskId;
|
||
}
|
||
if (other.RoleId.Length != 0) {
|
||
RoleId = other.RoleId;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
UserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
TriggerId = input.ReadString();
|
||
break;
|
||
}
|
||
case 34: {
|
||
TypeStr = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
TargetId = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
RoleId = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
UserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
TriggerId = input.ReadString();
|
||
break;
|
||
}
|
||
case 34: {
|
||
TypeStr = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
TargetId = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
RoleId = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class TaskOrmRequest : pb::IMessage<TaskOrmRequest>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<TaskOrmRequest> _parser = new pb::MessageParser<TaskOrmRequest>(() => new TaskOrmRequest());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<TaskOrmRequest> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.Descriptor.MessageTypes[7]; }
|
||
}
|
||
|
||
[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 TaskOrmRequest() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskOrmRequest(TaskOrmRequest other) : this() {
|
||
subjectId_ = other.subjectId_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public TaskOrmRequest Clone() {
|
||
return new TaskOrmRequest(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "subjectId" field.</summary>
|
||
public const int SubjectIdFieldNumber = 1;
|
||
private string subjectId_ = "";
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string SubjectId {
|
||
get { return subjectId_; }
|
||
set {
|
||
subjectId_ = 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 TaskOrmRequest);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(TaskOrmRequest other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (SubjectId != other.SubjectId) 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 (SubjectId.Length != 0) hash ^= SubjectId.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 (SubjectId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(SubjectId);
|
||
}
|
||
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 (SubjectId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(SubjectId);
|
||
}
|
||
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 (SubjectId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(SubjectId);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(TaskOrmRequest other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.SubjectId.Length != 0) {
|
||
SubjectId = other.SubjectId;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
SubjectId = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
SubjectId = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class SelectHandleTaskConf : pb::IMessage<SelectHandleTaskConf>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<SelectHandleTaskConf> _parser = new pb::MessageParser<SelectHandleTaskConf>(() => new SelectHandleTaskConf());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<SelectHandleTaskConf> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.Descriptor.MessageTypes[8]; }
|
||
}
|
||
|
||
[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 SelectHandleTaskConf() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public SelectHandleTaskConf(SelectHandleTaskConf other) : this() {
|
||
taskId_ = other.taskId_;
|
||
userId_ = other.userId_;
|
||
userIds_ = other.userIds_.Clone();
|
||
roomId_ = other.roomId_;
|
||
selectId_ = other.selectId_;
|
||
roleId_ = other.roleId_;
|
||
triggers_ = other.triggers_.Clone();
|
||
triggerStr_ = other.triggerStr_;
|
||
targetId_ = other.targetId_;
|
||
baskTaskConf_ = other.baskTaskConf_ != null ? other.baskTaskConf_.Clone() : null;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public SelectHandleTaskConf Clone() {
|
||
return new SelectHandleTaskConf(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "TaskId" field.</summary>
|
||
public const int TaskIdFieldNumber = 1;
|
||
private string taskId_ = "";
|
||
/// <summary>
|
||
/// 任务ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TaskId {
|
||
get { return taskId_; }
|
||
set {
|
||
taskId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "UserId" field.</summary>
|
||
public const int UserIdFieldNumber = 2;
|
||
private string userId_ = "";
|
||
/// <summary>
|
||
/// 用户ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string UserId {
|
||
get { return userId_; }
|
||
set {
|
||
userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "UserIds" field.</summary>
|
||
public const int UserIdsFieldNumber = 3;
|
||
private static readonly pb::FieldCodec<string> _repeated_userIds_codec
|
||
= pb::FieldCodec.ForString(26);
|
||
private readonly pbc::RepeatedField<string> userIds_ = new pbc::RepeatedField<string>();
|
||
/// <summary>
|
||
/// 参与者ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public pbc::RepeatedField<string> UserIds {
|
||
get { return userIds_; }
|
||
}
|
||
|
||
/// <summary>Field number for the "RoomId" field.</summary>
|
||
public const int RoomIdFieldNumber = 4;
|
||
private string roomId_ = "";
|
||
/// <summary>
|
||
/// 房间ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoomId {
|
||
get { return roomId_; }
|
||
set {
|
||
roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "SelectId" field.</summary>
|
||
public const int SelectIdFieldNumber = 5;
|
||
private string selectId_ = "";
|
||
/// <summary>
|
||
/// 选项ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string SelectId {
|
||
get { return selectId_; }
|
||
set {
|
||
selectId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "RoleId" field.</summary>
|
||
public const int RoleIdFieldNumber = 6;
|
||
private string roleId_ = "";
|
||
/// <summary>
|
||
/// 角色ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string RoleId {
|
||
get { return roleId_; }
|
||
set {
|
||
roleId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Triggers" field.</summary>
|
||
public const int TriggersFieldNumber = 7;
|
||
private static readonly pb::FieldCodec<string> _repeated_triggers_codec
|
||
= pb::FieldCodec.ForString(58);
|
||
private readonly pbc::RepeatedField<string> triggers_ = new pbc::RepeatedField<string>();
|
||
/// <summary>
|
||
/// 触发器ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public pbc::RepeatedField<string> Triggers {
|
||
get { return triggers_; }
|
||
}
|
||
|
||
/// <summary>Field number for the "TriggerStr" field.</summary>
|
||
public const int TriggerStrFieldNumber = 8;
|
||
private string triggerStr_ = "";
|
||
/// <summary>
|
||
/// 触发器类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TriggerStr {
|
||
get { return triggerStr_; }
|
||
set {
|
||
triggerStr_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TargetId" field.</summary>
|
||
public const int TargetIdFieldNumber = 9;
|
||
private string targetId_ = "";
|
||
/// <summary>
|
||
/// 目标类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TargetId {
|
||
get { return targetId_; }
|
||
set {
|
||
targetId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "BaskTaskConf" field.</summary>
|
||
public const int BaskTaskConfFieldNumber = 10;
|
||
private global::BaseTaskConf baskTaskConf_;
|
||
/// <summary>
|
||
/// 参与者ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public global::BaseTaskConf BaskTaskConf {
|
||
get { return baskTaskConf_; }
|
||
set {
|
||
baskTaskConf_ = value;
|
||
}
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public override bool Equals(object other) {
|
||
return Equals(other as SelectHandleTaskConf);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(SelectHandleTaskConf other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (TaskId != other.TaskId) return false;
|
||
if (UserId != other.UserId) return false;
|
||
if(!userIds_.Equals(other.userIds_)) return false;
|
||
if (RoomId != other.RoomId) return false;
|
||
if (SelectId != other.SelectId) return false;
|
||
if (RoleId != other.RoleId) return false;
|
||
if(!triggers_.Equals(other.triggers_)) return false;
|
||
if (TriggerStr != other.TriggerStr) return false;
|
||
if (TargetId != other.TargetId) return false;
|
||
if (!object.Equals(BaskTaskConf, other.BaskTaskConf)) 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 (TaskId.Length != 0) hash ^= TaskId.GetHashCode();
|
||
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
||
hash ^= userIds_.GetHashCode();
|
||
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
||
if (SelectId.Length != 0) hash ^= SelectId.GetHashCode();
|
||
if (RoleId.Length != 0) hash ^= RoleId.GetHashCode();
|
||
hash ^= triggers_.GetHashCode();
|
||
if (TriggerStr.Length != 0) hash ^= TriggerStr.GetHashCode();
|
||
if (TargetId.Length != 0) hash ^= TargetId.GetHashCode();
|
||
if (baskTaskConf_ != null) hash ^= BaskTaskConf.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 (TaskId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(UserId);
|
||
}
|
||
userIds_.WriteTo(output, _repeated_userIds_codec);
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (SelectId.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(SelectId);
|
||
}
|
||
if (RoleId.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(RoleId);
|
||
}
|
||
triggers_.WriteTo(output, _repeated_triggers_codec);
|
||
if (TriggerStr.Length != 0) {
|
||
output.WriteRawTag(66);
|
||
output.WriteString(TriggerStr);
|
||
}
|
||
if (TargetId.Length != 0) {
|
||
output.WriteRawTag(74);
|
||
output.WriteString(TargetId);
|
||
}
|
||
if (baskTaskConf_ != null) {
|
||
output.WriteRawTag(82);
|
||
output.WriteMessage(BaskTaskConf);
|
||
}
|
||
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 (TaskId.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(TaskId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(UserId);
|
||
}
|
||
userIds_.WriteTo(ref output, _repeated_userIds_codec);
|
||
if (RoomId.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(RoomId);
|
||
}
|
||
if (SelectId.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(SelectId);
|
||
}
|
||
if (RoleId.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(RoleId);
|
||
}
|
||
triggers_.WriteTo(ref output, _repeated_triggers_codec);
|
||
if (TriggerStr.Length != 0) {
|
||
output.WriteRawTag(66);
|
||
output.WriteString(TriggerStr);
|
||
}
|
||
if (TargetId.Length != 0) {
|
||
output.WriteRawTag(74);
|
||
output.WriteString(TargetId);
|
||
}
|
||
if (baskTaskConf_ != null) {
|
||
output.WriteRawTag(82);
|
||
output.WriteMessage(BaskTaskConf);
|
||
}
|
||
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 (TaskId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TaskId);
|
||
}
|
||
if (UserId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
||
}
|
||
size += userIds_.CalculateSize(_repeated_userIds_codec);
|
||
if (RoomId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
||
}
|
||
if (SelectId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(SelectId);
|
||
}
|
||
if (RoleId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoleId);
|
||
}
|
||
size += triggers_.CalculateSize(_repeated_triggers_codec);
|
||
if (TriggerStr.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TriggerStr);
|
||
}
|
||
if (TargetId.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetId);
|
||
}
|
||
if (baskTaskConf_ != null) {
|
||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(BaskTaskConf);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(SelectHandleTaskConf other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.TaskId.Length != 0) {
|
||
TaskId = other.TaskId;
|
||
}
|
||
if (other.UserId.Length != 0) {
|
||
UserId = other.UserId;
|
||
}
|
||
userIds_.Add(other.userIds_);
|
||
if (other.RoomId.Length != 0) {
|
||
RoomId = other.RoomId;
|
||
}
|
||
if (other.SelectId.Length != 0) {
|
||
SelectId = other.SelectId;
|
||
}
|
||
if (other.RoleId.Length != 0) {
|
||
RoleId = other.RoleId;
|
||
}
|
||
triggers_.Add(other.triggers_);
|
||
if (other.TriggerStr.Length != 0) {
|
||
TriggerStr = other.TriggerStr;
|
||
}
|
||
if (other.TargetId.Length != 0) {
|
||
TargetId = other.TargetId;
|
||
}
|
||
if (other.baskTaskConf_ != null) {
|
||
if (baskTaskConf_ == null) {
|
||
BaskTaskConf = new global::BaseTaskConf();
|
||
}
|
||
BaskTaskConf.MergeFrom(other.BaskTaskConf);
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
UserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
userIds_.AddEntriesFrom(input, _repeated_userIds_codec);
|
||
break;
|
||
}
|
||
case 34: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
SelectId = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
RoleId = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
triggers_.AddEntriesFrom(input, _repeated_triggers_codec);
|
||
break;
|
||
}
|
||
case 66: {
|
||
TriggerStr = input.ReadString();
|
||
break;
|
||
}
|
||
case 74: {
|
||
TargetId = input.ReadString();
|
||
break;
|
||
}
|
||
case 82: {
|
||
if (baskTaskConf_ == null) {
|
||
BaskTaskConf = new global::BaseTaskConf();
|
||
}
|
||
input.ReadMessage(BaskTaskConf);
|
||
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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
TaskId = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
UserId = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
userIds_.AddEntriesFrom(ref input, _repeated_userIds_codec);
|
||
break;
|
||
}
|
||
case 34: {
|
||
RoomId = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
SelectId = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
RoleId = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
triggers_.AddEntriesFrom(ref input, _repeated_triggers_codec);
|
||
break;
|
||
}
|
||
case 66: {
|
||
TriggerStr = input.ReadString();
|
||
break;
|
||
}
|
||
case 74: {
|
||
TargetId = input.ReadString();
|
||
break;
|
||
}
|
||
case 82: {
|
||
if (baskTaskConf_ == null) {
|
||
BaskTaskConf = new global::BaseTaskConf();
|
||
}
|
||
input.ReadMessage(BaskTaskConf);
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||
public sealed partial class BaseTaskConf : pb::IMessage<BaseTaskConf>
|
||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
, pb::IBufferMessage
|
||
#endif
|
||
{
|
||
private static readonly pb::MessageParser<BaseTaskConf> _parser = new pb::MessageParser<BaseTaskConf>(() => new BaseTaskConf());
|
||
private pb::UnknownFieldSet _unknownFields;
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pb::MessageParser<BaseTaskConf> Parser { get { return _parser; } }
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public static pbr::MessageDescriptor Descriptor {
|
||
get { return global::TaskReflection.Descriptor.MessageTypes[9]; }
|
||
}
|
||
|
||
[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 BaseTaskConf() {
|
||
OnConstruction();
|
||
}
|
||
|
||
partial void OnConstruction();
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public BaseTaskConf(BaseTaskConf other) : this() {
|
||
id_ = other.id_;
|
||
note_ = other.note_;
|
||
name_ = other.name_;
|
||
type_ = other.type_;
|
||
desc_ = other.desc_;
|
||
playScript_ = other.playScript_;
|
||
trigger_ = other.trigger_;
|
||
overseeCond_ = other.overseeCond_;
|
||
timeLimit_ = other.timeLimit_;
|
||
role_ = other.role_;
|
||
selects_ = other.selects_;
|
||
targetType_ = other.targetType_;
|
||
targets1_ = other.targets1_;
|
||
targets2_ = other.targets2_;
|
||
targets2Logic_ = other.targets2Logic_;
|
||
extraValue_ = other.extraValue_;
|
||
nextTask_ = other.nextTask_;
|
||
sort_ = other.sort_;
|
||
isShow_ = other.isShow_;
|
||
exclusive_ = other.exclusive_;
|
||
reward_ = other.reward_;
|
||
triggerLogic_ = other.triggerLogic_;
|
||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public BaseTaskConf Clone() {
|
||
return new BaseTaskConf(this);
|
||
}
|
||
|
||
/// <summary>Field number for the "Id" field.</summary>
|
||
public const int IdFieldNumber = 1;
|
||
private string id_ = "";
|
||
/// <summary>
|
||
/// 任务ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Id {
|
||
get { return id_; }
|
||
set {
|
||
id_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Note" field.</summary>
|
||
public const int NoteFieldNumber = 2;
|
||
private string note_ = "";
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Note {
|
||
get { return note_; }
|
||
set {
|
||
note_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Name" field.</summary>
|
||
public const int NameFieldNumber = 3;
|
||
private string name_ = "";
|
||
/// <summary>
|
||
/// 名称
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Name {
|
||
get { return name_; }
|
||
set {
|
||
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Type" field.</summary>
|
||
public const int TypeFieldNumber = 4;
|
||
private string type_ = "";
|
||
/// <summary>
|
||
/// 任务类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Type {
|
||
get { return type_; }
|
||
set {
|
||
type_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Desc" field.</summary>
|
||
public const int DescFieldNumber = 5;
|
||
private string desc_ = "";
|
||
/// <summary>
|
||
/// 描述
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Desc {
|
||
get { return desc_; }
|
||
set {
|
||
desc_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "PlayScript" field.</summary>
|
||
public const int PlayScriptFieldNumber = 6;
|
||
private string playScript_ = "";
|
||
/// <summary>
|
||
/// 执行脚本
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string PlayScript {
|
||
get { return playScript_; }
|
||
set {
|
||
playScript_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Trigger" field.</summary>
|
||
public const int TriggerFieldNumber = 7;
|
||
private string trigger_ = "";
|
||
/// <summary>
|
||
/// 触发条件
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Trigger {
|
||
get { return trigger_; }
|
||
set {
|
||
trigger_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "OverseeCond" field.</summary>
|
||
public const int OverseeCondFieldNumber = 8;
|
||
private string overseeCond_ = "";
|
||
/// <summary>
|
||
/// 监控条件
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string OverseeCond {
|
||
get { return overseeCond_; }
|
||
set {
|
||
overseeCond_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TimeLimit" field.</summary>
|
||
public const int TimeLimitFieldNumber = 9;
|
||
private int timeLimit_;
|
||
/// <summary>
|
||
/// 时间限制
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public int TimeLimit {
|
||
get { return timeLimit_; }
|
||
set {
|
||
timeLimit_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Role" field.</summary>
|
||
public const int RoleFieldNumber = 10;
|
||
private string role_ = "";
|
||
/// <summary>
|
||
/// 角色ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Role {
|
||
get { return role_; }
|
||
set {
|
||
role_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Selects" field.</summary>
|
||
public const int SelectsFieldNumber = 11;
|
||
private string selects_ = "";
|
||
/// <summary>
|
||
/// 指令ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Selects {
|
||
get { return selects_; }
|
||
set {
|
||
selects_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TargetType" field.</summary>
|
||
public const int TargetTypeFieldNumber = 12;
|
||
private string targetType_ = "";
|
||
/// <summary>
|
||
/// 目标类型
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TargetType {
|
||
get { return targetType_; }
|
||
set {
|
||
targetType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Targets1" field.</summary>
|
||
public const int Targets1FieldNumber = 13;
|
||
private string targets1_ = "";
|
||
/// <summary>
|
||
/// 目标对象1
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Targets1 {
|
||
get { return targets1_; }
|
||
set {
|
||
targets1_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Targets2" field.</summary>
|
||
public const int Targets2FieldNumber = 14;
|
||
private string targets2_ = "";
|
||
/// <summary>
|
||
/// 目标对象2
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Targets2 {
|
||
get { return targets2_; }
|
||
set {
|
||
targets2_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Targets2Logic" field.</summary>
|
||
public const int Targets2LogicFieldNumber = 15;
|
||
private string targets2Logic_ = "";
|
||
/// <summary>
|
||
/// 目标对象2逻辑运算符 1=并且 2=或者
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Targets2Logic {
|
||
get { return targets2Logic_; }
|
||
set {
|
||
targets2Logic_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "ExtraValue" field.</summary>
|
||
public const int ExtraValueFieldNumber = 16;
|
||
private string extraValue_ = "";
|
||
/// <summary>
|
||
/// 额外值
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string ExtraValue {
|
||
get { return extraValue_; }
|
||
set {
|
||
extraValue_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "NextTask" field.</summary>
|
||
public const int NextTaskFieldNumber = 17;
|
||
private string nextTask_ = "";
|
||
/// <summary>
|
||
/// 后续任务ID
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string NextTask {
|
||
get { return nextTask_; }
|
||
set {
|
||
nextTask_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Sort" field.</summary>
|
||
public const int SortFieldNumber = 18;
|
||
private int sort_;
|
||
/// <summary>
|
||
/// 排序
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public int Sort {
|
||
get { return sort_; }
|
||
set {
|
||
sort_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "IsShow" field.</summary>
|
||
public const int IsShowFieldNumber = 19;
|
||
private int isShow_;
|
||
/// <summary>
|
||
/// 是否显示
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public int IsShow {
|
||
get { return isShow_; }
|
||
set {
|
||
isShow_ = value;
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Exclusive" field.</summary>
|
||
public const int ExclusiveFieldNumber = 20;
|
||
private string exclusive_ = "";
|
||
/// <summary>
|
||
/// 互斥任务
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Exclusive {
|
||
get { return exclusive_; }
|
||
set {
|
||
exclusive_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "Reward" field.</summary>
|
||
public const int RewardFieldNumber = 21;
|
||
private string reward_ = "";
|
||
/// <summary>
|
||
/// 奖励
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string Reward {
|
||
get { return reward_; }
|
||
set {
|
||
reward_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
}
|
||
}
|
||
|
||
/// <summary>Field number for the "TriggerLogic" field.</summary>
|
||
public const int TriggerLogicFieldNumber = 22;
|
||
private string triggerLogic_ = "";
|
||
/// <summary>
|
||
/// 触发器逻辑
|
||
/// </summary>
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public string TriggerLogic {
|
||
get { return triggerLogic_; }
|
||
set {
|
||
triggerLogic_ = 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 BaseTaskConf);
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public bool Equals(BaseTaskConf other) {
|
||
if (ReferenceEquals(other, null)) {
|
||
return false;
|
||
}
|
||
if (ReferenceEquals(other, this)) {
|
||
return true;
|
||
}
|
||
if (Id != other.Id) return false;
|
||
if (Note != other.Note) return false;
|
||
if (Name != other.Name) return false;
|
||
if (Type != other.Type) return false;
|
||
if (Desc != other.Desc) return false;
|
||
if (PlayScript != other.PlayScript) return false;
|
||
if (Trigger != other.Trigger) return false;
|
||
if (OverseeCond != other.OverseeCond) return false;
|
||
if (TimeLimit != other.TimeLimit) return false;
|
||
if (Role != other.Role) return false;
|
||
if (Selects != other.Selects) return false;
|
||
if (TargetType != other.TargetType) return false;
|
||
if (Targets1 != other.Targets1) return false;
|
||
if (Targets2 != other.Targets2) return false;
|
||
if (Targets2Logic != other.Targets2Logic) return false;
|
||
if (ExtraValue != other.ExtraValue) return false;
|
||
if (NextTask != other.NextTask) return false;
|
||
if (Sort != other.Sort) return false;
|
||
if (IsShow != other.IsShow) return false;
|
||
if (Exclusive != other.Exclusive) return false;
|
||
if (Reward != other.Reward) return false;
|
||
if (TriggerLogic != other.TriggerLogic) 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.Length != 0) hash ^= Id.GetHashCode();
|
||
if (Note.Length != 0) hash ^= Note.GetHashCode();
|
||
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
||
if (Type.Length != 0) hash ^= Type.GetHashCode();
|
||
if (Desc.Length != 0) hash ^= Desc.GetHashCode();
|
||
if (PlayScript.Length != 0) hash ^= PlayScript.GetHashCode();
|
||
if (Trigger.Length != 0) hash ^= Trigger.GetHashCode();
|
||
if (OverseeCond.Length != 0) hash ^= OverseeCond.GetHashCode();
|
||
if (TimeLimit != 0) hash ^= TimeLimit.GetHashCode();
|
||
if (Role.Length != 0) hash ^= Role.GetHashCode();
|
||
if (Selects.Length != 0) hash ^= Selects.GetHashCode();
|
||
if (TargetType.Length != 0) hash ^= TargetType.GetHashCode();
|
||
if (Targets1.Length != 0) hash ^= Targets1.GetHashCode();
|
||
if (Targets2.Length != 0) hash ^= Targets2.GetHashCode();
|
||
if (Targets2Logic.Length != 0) hash ^= Targets2Logic.GetHashCode();
|
||
if (ExtraValue.Length != 0) hash ^= ExtraValue.GetHashCode();
|
||
if (NextTask.Length != 0) hash ^= NextTask.GetHashCode();
|
||
if (Sort != 0) hash ^= Sort.GetHashCode();
|
||
if (IsShow != 0) hash ^= IsShow.GetHashCode();
|
||
if (Exclusive.Length != 0) hash ^= Exclusive.GetHashCode();
|
||
if (Reward.Length != 0) hash ^= Reward.GetHashCode();
|
||
if (TriggerLogic.Length != 0) hash ^= TriggerLogic.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.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(Id);
|
||
}
|
||
if (Note.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(Note);
|
||
}
|
||
if (Name.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(Name);
|
||
}
|
||
if (Type.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(Type);
|
||
}
|
||
if (Desc.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(Desc);
|
||
}
|
||
if (PlayScript.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(PlayScript);
|
||
}
|
||
if (Trigger.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(Trigger);
|
||
}
|
||
if (OverseeCond.Length != 0) {
|
||
output.WriteRawTag(66);
|
||
output.WriteString(OverseeCond);
|
||
}
|
||
if (TimeLimit != 0) {
|
||
output.WriteRawTag(72);
|
||
output.WriteInt32(TimeLimit);
|
||
}
|
||
if (Role.Length != 0) {
|
||
output.WriteRawTag(82);
|
||
output.WriteString(Role);
|
||
}
|
||
if (Selects.Length != 0) {
|
||
output.WriteRawTag(90);
|
||
output.WriteString(Selects);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
output.WriteRawTag(98);
|
||
output.WriteString(TargetType);
|
||
}
|
||
if (Targets1.Length != 0) {
|
||
output.WriteRawTag(106);
|
||
output.WriteString(Targets1);
|
||
}
|
||
if (Targets2.Length != 0) {
|
||
output.WriteRawTag(114);
|
||
output.WriteString(Targets2);
|
||
}
|
||
if (Targets2Logic.Length != 0) {
|
||
output.WriteRawTag(122);
|
||
output.WriteString(Targets2Logic);
|
||
}
|
||
if (ExtraValue.Length != 0) {
|
||
output.WriteRawTag(130, 1);
|
||
output.WriteString(ExtraValue);
|
||
}
|
||
if (NextTask.Length != 0) {
|
||
output.WriteRawTag(138, 1);
|
||
output.WriteString(NextTask);
|
||
}
|
||
if (Sort != 0) {
|
||
output.WriteRawTag(144, 1);
|
||
output.WriteInt32(Sort);
|
||
}
|
||
if (IsShow != 0) {
|
||
output.WriteRawTag(152, 1);
|
||
output.WriteInt32(IsShow);
|
||
}
|
||
if (Exclusive.Length != 0) {
|
||
output.WriteRawTag(162, 1);
|
||
output.WriteString(Exclusive);
|
||
}
|
||
if (Reward.Length != 0) {
|
||
output.WriteRawTag(170, 1);
|
||
output.WriteString(Reward);
|
||
}
|
||
if (TriggerLogic.Length != 0) {
|
||
output.WriteRawTag(178, 1);
|
||
output.WriteString(TriggerLogic);
|
||
}
|
||
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.Length != 0) {
|
||
output.WriteRawTag(10);
|
||
output.WriteString(Id);
|
||
}
|
||
if (Note.Length != 0) {
|
||
output.WriteRawTag(18);
|
||
output.WriteString(Note);
|
||
}
|
||
if (Name.Length != 0) {
|
||
output.WriteRawTag(26);
|
||
output.WriteString(Name);
|
||
}
|
||
if (Type.Length != 0) {
|
||
output.WriteRawTag(34);
|
||
output.WriteString(Type);
|
||
}
|
||
if (Desc.Length != 0) {
|
||
output.WriteRawTag(42);
|
||
output.WriteString(Desc);
|
||
}
|
||
if (PlayScript.Length != 0) {
|
||
output.WriteRawTag(50);
|
||
output.WriteString(PlayScript);
|
||
}
|
||
if (Trigger.Length != 0) {
|
||
output.WriteRawTag(58);
|
||
output.WriteString(Trigger);
|
||
}
|
||
if (OverseeCond.Length != 0) {
|
||
output.WriteRawTag(66);
|
||
output.WriteString(OverseeCond);
|
||
}
|
||
if (TimeLimit != 0) {
|
||
output.WriteRawTag(72);
|
||
output.WriteInt32(TimeLimit);
|
||
}
|
||
if (Role.Length != 0) {
|
||
output.WriteRawTag(82);
|
||
output.WriteString(Role);
|
||
}
|
||
if (Selects.Length != 0) {
|
||
output.WriteRawTag(90);
|
||
output.WriteString(Selects);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
output.WriteRawTag(98);
|
||
output.WriteString(TargetType);
|
||
}
|
||
if (Targets1.Length != 0) {
|
||
output.WriteRawTag(106);
|
||
output.WriteString(Targets1);
|
||
}
|
||
if (Targets2.Length != 0) {
|
||
output.WriteRawTag(114);
|
||
output.WriteString(Targets2);
|
||
}
|
||
if (Targets2Logic.Length != 0) {
|
||
output.WriteRawTag(122);
|
||
output.WriteString(Targets2Logic);
|
||
}
|
||
if (ExtraValue.Length != 0) {
|
||
output.WriteRawTag(130, 1);
|
||
output.WriteString(ExtraValue);
|
||
}
|
||
if (NextTask.Length != 0) {
|
||
output.WriteRawTag(138, 1);
|
||
output.WriteString(NextTask);
|
||
}
|
||
if (Sort != 0) {
|
||
output.WriteRawTag(144, 1);
|
||
output.WriteInt32(Sort);
|
||
}
|
||
if (IsShow != 0) {
|
||
output.WriteRawTag(152, 1);
|
||
output.WriteInt32(IsShow);
|
||
}
|
||
if (Exclusive.Length != 0) {
|
||
output.WriteRawTag(162, 1);
|
||
output.WriteString(Exclusive);
|
||
}
|
||
if (Reward.Length != 0) {
|
||
output.WriteRawTag(170, 1);
|
||
output.WriteString(Reward);
|
||
}
|
||
if (TriggerLogic.Length != 0) {
|
||
output.WriteRawTag(178, 1);
|
||
output.WriteString(TriggerLogic);
|
||
}
|
||
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.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Id);
|
||
}
|
||
if (Note.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
|
||
}
|
||
if (Name.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
||
}
|
||
if (Type.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Type);
|
||
}
|
||
if (Desc.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Desc);
|
||
}
|
||
if (PlayScript.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(PlayScript);
|
||
}
|
||
if (Trigger.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Trigger);
|
||
}
|
||
if (OverseeCond.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(OverseeCond);
|
||
}
|
||
if (TimeLimit != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(TimeLimit);
|
||
}
|
||
if (Role.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Role);
|
||
}
|
||
if (Selects.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Selects);
|
||
}
|
||
if (TargetType.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TargetType);
|
||
}
|
||
if (Targets1.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Targets1);
|
||
}
|
||
if (Targets2.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Targets2);
|
||
}
|
||
if (Targets2Logic.Length != 0) {
|
||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Targets2Logic);
|
||
}
|
||
if (ExtraValue.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(ExtraValue);
|
||
}
|
||
if (NextTask.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(NextTask);
|
||
}
|
||
if (Sort != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeInt32Size(Sort);
|
||
}
|
||
if (IsShow != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeInt32Size(IsShow);
|
||
}
|
||
if (Exclusive.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(Exclusive);
|
||
}
|
||
if (Reward.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(Reward);
|
||
}
|
||
if (TriggerLogic.Length != 0) {
|
||
size += 2 + pb::CodedOutputStream.ComputeStringSize(TriggerLogic);
|
||
}
|
||
if (_unknownFields != null) {
|
||
size += _unknownFields.CalculateSize();
|
||
}
|
||
return size;
|
||
}
|
||
|
||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
public void MergeFrom(BaseTaskConf other) {
|
||
if (other == null) {
|
||
return;
|
||
}
|
||
if (other.Id.Length != 0) {
|
||
Id = other.Id;
|
||
}
|
||
if (other.Note.Length != 0) {
|
||
Note = other.Note;
|
||
}
|
||
if (other.Name.Length != 0) {
|
||
Name = other.Name;
|
||
}
|
||
if (other.Type.Length != 0) {
|
||
Type = other.Type;
|
||
}
|
||
if (other.Desc.Length != 0) {
|
||
Desc = other.Desc;
|
||
}
|
||
if (other.PlayScript.Length != 0) {
|
||
PlayScript = other.PlayScript;
|
||
}
|
||
if (other.Trigger.Length != 0) {
|
||
Trigger = other.Trigger;
|
||
}
|
||
if (other.OverseeCond.Length != 0) {
|
||
OverseeCond = other.OverseeCond;
|
||
}
|
||
if (other.TimeLimit != 0) {
|
||
TimeLimit = other.TimeLimit;
|
||
}
|
||
if (other.Role.Length != 0) {
|
||
Role = other.Role;
|
||
}
|
||
if (other.Selects.Length != 0) {
|
||
Selects = other.Selects;
|
||
}
|
||
if (other.TargetType.Length != 0) {
|
||
TargetType = other.TargetType;
|
||
}
|
||
if (other.Targets1.Length != 0) {
|
||
Targets1 = other.Targets1;
|
||
}
|
||
if (other.Targets2.Length != 0) {
|
||
Targets2 = other.Targets2;
|
||
}
|
||
if (other.Targets2Logic.Length != 0) {
|
||
Targets2Logic = other.Targets2Logic;
|
||
}
|
||
if (other.ExtraValue.Length != 0) {
|
||
ExtraValue = other.ExtraValue;
|
||
}
|
||
if (other.NextTask.Length != 0) {
|
||
NextTask = other.NextTask;
|
||
}
|
||
if (other.Sort != 0) {
|
||
Sort = other.Sort;
|
||
}
|
||
if (other.IsShow != 0) {
|
||
IsShow = other.IsShow;
|
||
}
|
||
if (other.Exclusive.Length != 0) {
|
||
Exclusive = other.Exclusive;
|
||
}
|
||
if (other.Reward.Length != 0) {
|
||
Reward = other.Reward;
|
||
}
|
||
if (other.TriggerLogic.Length != 0) {
|
||
TriggerLogic = other.TriggerLogic;
|
||
}
|
||
_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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
break;
|
||
case 10: {
|
||
Id = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
Note = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
Name = input.ReadString();
|
||
break;
|
||
}
|
||
case 34: {
|
||
Type = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
Desc = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
PlayScript = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
Trigger = input.ReadString();
|
||
break;
|
||
}
|
||
case 66: {
|
||
OverseeCond = input.ReadString();
|
||
break;
|
||
}
|
||
case 72: {
|
||
TimeLimit = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 82: {
|
||
Role = input.ReadString();
|
||
break;
|
||
}
|
||
case 90: {
|
||
Selects = input.ReadString();
|
||
break;
|
||
}
|
||
case 98: {
|
||
TargetType = input.ReadString();
|
||
break;
|
||
}
|
||
case 106: {
|
||
Targets1 = input.ReadString();
|
||
break;
|
||
}
|
||
case 114: {
|
||
Targets2 = input.ReadString();
|
||
break;
|
||
}
|
||
case 122: {
|
||
Targets2Logic = input.ReadString();
|
||
break;
|
||
}
|
||
case 130: {
|
||
ExtraValue = input.ReadString();
|
||
break;
|
||
}
|
||
case 138: {
|
||
NextTask = input.ReadString();
|
||
break;
|
||
}
|
||
case 144: {
|
||
Sort = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 152: {
|
||
IsShow = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 162: {
|
||
Exclusive = input.ReadString();
|
||
break;
|
||
}
|
||
case 170: {
|
||
Reward = input.ReadString();
|
||
break;
|
||
}
|
||
case 178: {
|
||
TriggerLogic = 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) {
|
||
if ((tag & 7) == 4) {
|
||
// Abort on any end group tag.
|
||
return;
|
||
}
|
||
switch(tag) {
|
||
default:
|
||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
break;
|
||
case 10: {
|
||
Id = input.ReadString();
|
||
break;
|
||
}
|
||
case 18: {
|
||
Note = input.ReadString();
|
||
break;
|
||
}
|
||
case 26: {
|
||
Name = input.ReadString();
|
||
break;
|
||
}
|
||
case 34: {
|
||
Type = input.ReadString();
|
||
break;
|
||
}
|
||
case 42: {
|
||
Desc = input.ReadString();
|
||
break;
|
||
}
|
||
case 50: {
|
||
PlayScript = input.ReadString();
|
||
break;
|
||
}
|
||
case 58: {
|
||
Trigger = input.ReadString();
|
||
break;
|
||
}
|
||
case 66: {
|
||
OverseeCond = input.ReadString();
|
||
break;
|
||
}
|
||
case 72: {
|
||
TimeLimit = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 82: {
|
||
Role = input.ReadString();
|
||
break;
|
||
}
|
||
case 90: {
|
||
Selects = input.ReadString();
|
||
break;
|
||
}
|
||
case 98: {
|
||
TargetType = input.ReadString();
|
||
break;
|
||
}
|
||
case 106: {
|
||
Targets1 = input.ReadString();
|
||
break;
|
||
}
|
||
case 114: {
|
||
Targets2 = input.ReadString();
|
||
break;
|
||
}
|
||
case 122: {
|
||
Targets2Logic = input.ReadString();
|
||
break;
|
||
}
|
||
case 130: {
|
||
ExtraValue = input.ReadString();
|
||
break;
|
||
}
|
||
case 138: {
|
||
NextTask = input.ReadString();
|
||
break;
|
||
}
|
||
case 144: {
|
||
Sort = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 152: {
|
||
IsShow = input.ReadInt32();
|
||
break;
|
||
}
|
||
case 162: {
|
||
Exclusive = input.ReadString();
|
||
break;
|
||
}
|
||
case 170: {
|
||
Reward = input.ReadString();
|
||
break;
|
||
}
|
||
case 178: {
|
||
TriggerLogic = input.ReadString();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
}
|
||
#endif
|
||
|
||
}
|
||
|
||
#endregion
|
||
|
||
|
||
#endregion Designer generated code
|