_xiaofang/xiaofang/Assets/ProtoBuf/Proto/Task.cs

2868 lines
86 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",
"GAcgASgJIrwBChFUYXNrVXBkYXRlUmVxdWVzdBIOCgZSb29tSWQYASABKAkS",
"DgoGVGFza0lkGAIgASgJEg4KBlVzZXJJZBgDIAEoCRIQCghTZWxlY3RJZBgE",
"IAEoCRIQCghUb1VzZXJJZBgFIAEoCRIQCghVc2VyTmFtZRgGIAEoCRIOCgZQ",
"cm9wSWQYByABKAkSEAoIUHJvcE5hbWUYCCABKAkSDwoHUHJvcE51bRgJIAEo",
"BRIOCgZTdGF0dXMYCiABKAkingIKDFRhc2tSZXNwb25zZRIOCgZUYXNrSWQY",
"ASABKAkSDgoGU3RhdHVzGAIgASgJEg4KBlJvb21JZBgDIAEoCRIJCgFYGAQg",
"ASgCEgkKAVkYBSABKAISCQoBWhgGIAEoAhIMCgRUeXBlGAcgASgJEhEKCVRp",
"bWVMaW1pdBgIIAEoAxIMCgREZXNjGAkgASgJEg8KB1RyaWdnZXIYCiABKAkS",
"EQoJTmV4dFRhc2tzGAsgASgJEhIKClRhcmdldFR5cGUYDCABKAkSDgoGUmV3",
"YXJkGA0gASgJEgwKBE5vdGUYDiABKAkSEgoKQ3JlYXRlVGltZRgPIAEoCRIS",
"CgpVcGRhdGVUaW1lGBAgASgJEhAKCFRvVXNlcklkGBEgASgJImMKC1Rhc2tU",
"cmlnZ2VyEg4KBlVzZXJJZBgCIAEoCRIOCgZSb29tSWQYAyABKAkSEQoJVHJp",
"Z2dlcklkGAQgASgJEg8KB1R5cGVTdHIYBSABKAkSEAoIVGFyZ2V0SWQYBiAB",
"KAkiIwoOVGFza09ybVJlcXVlc3QSEQoJc3ViamVjdElkGAEgASgJQgdaBS4v",
"O3BiYgZwcm90bzM="));
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", "PropNum", "Status" }, 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" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::TaskTrigger), global::TaskTrigger.Parser, new[]{ "UserId", "RoomId", "TriggerId", "TypeStr", "TargetId" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::TaskOrmRequest), global::TaskOrmRequest.Parser, new[]{ "SubjectId" }, 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_;
propNum_ = other.propNum_;
status_ = other.status_;
_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 "PropNum" field.</summary>
public const int PropNumFieldNumber = 9;
private int propNum_;
/// <summary>
///道具数量
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int PropNum {
get { return propNum_; }
set {
propNum_ = 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");
}
}
[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 (PropNum != other.PropNum) return false;
if (Status != other.Status) 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 (PropNum != 0) hash ^= PropNum.GetHashCode();
if (Status.Length != 0) hash ^= Status.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 (PropNum != 0) {
output.WriteRawTag(72);
output.WriteInt32(PropNum);
}
if (Status.Length != 0) {
output.WriteRawTag(82);
output.WriteString(Status);
}
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 (PropNum != 0) {
output.WriteRawTag(72);
output.WriteInt32(PropNum);
}
if (Status.Length != 0) {
output.WriteRawTag(82);
output.WriteString(Status);
}
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 (PropNum != 0) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropNum);
}
if (Status.Length != 0) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Status);
}
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.PropNum != 0) {
PropNum = other.PropNum;
}
if (other.Status.Length != 0) {
Status = other.Status;
}
_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: {
PropNum = input.ReadInt32();
break;
}
case 82: {
Status = 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: {
PropNum = input.ReadInt32();
break;
}
case 82: {
Status = input.ReadString();
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[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 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_;
_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>
/// 状态
/// </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");
}
}
[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;
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 (_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 (_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 (_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 (_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;
}
_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;
}
}
}
#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;
}
}
}
}
#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[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 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_;
_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 = 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 "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 "TriggerId" field.</summary>
public const int TriggerIdFieldNumber = 4;
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 = 5;
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 = 6;
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");
}
}
[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;
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 (_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(18);
output.WriteString(UserId);
}
if (RoomId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomId);
}
if (TriggerId.Length != 0) {
output.WriteRawTag(34);
output.WriteString(TriggerId);
}
if (TypeStr.Length != 0) {
output.WriteRawTag(42);
output.WriteString(TypeStr);
}
if (TargetId.Length != 0) {
output.WriteRawTag(50);
output.WriteString(TargetId);
}
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(18);
output.WriteString(UserId);
}
if (RoomId.Length != 0) {
output.WriteRawTag(26);
output.WriteString(RoomId);
}
if (TriggerId.Length != 0) {
output.WriteRawTag(34);
output.WriteString(TriggerId);
}
if (TypeStr.Length != 0) {
output.WriteRawTag(42);
output.WriteString(TypeStr);
}
if (TargetId.Length != 0) {
output.WriteRawTag(50);
output.WriteString(TargetId);
}
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 (_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;
}
_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 18: {
UserId = input.ReadString();
break;
}
case 26: {
RoomId = input.ReadString();
break;
}
case 34: {
TriggerId = input.ReadString();
break;
}
case 42: {
TypeStr = input.ReadString();
break;
}
case 50: {
TargetId = 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 18: {
UserId = input.ReadString();
break;
}
case 26: {
RoomId = input.ReadString();
break;
}
case 34: {
TriggerId = input.ReadString();
break;
}
case 42: {
TypeStr = input.ReadString();
break;
}
case 50: {
TargetId = 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[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 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
}
#endregion
#endregion Designer generated code