2098 lines
62 KiB
C#
2098 lines
62 KiB
C#
// <auto-generated>
|
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: prop.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 prop.proto</summary>
|
|
public static partial class PropReflection {
|
|
|
|
#region Descriptor
|
|
/// <summary>File descriptor for prop.proto</summary>
|
|
public static pbr::FileDescriptor Descriptor {
|
|
get { return descriptor; }
|
|
}
|
|
private static pbr::FileDescriptor descriptor;
|
|
|
|
static PropReflection() {
|
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
|
string.Concat(
|
|
"Cgpwcm9wLnByb3RvIoQBCgtQcm9wUmVxdWVzdBIOCgZwcm9wSWQYASABKAUS",
|
|
"DgoGYWN0aW9uGAIgASgFEhQKDHByb3BTZXJ2ZXJJZBgDIAEoCRIOCgZyb29t",
|
|
"SWQYBCABKAkSDgoGdXNlcklkGAUgASgJEgkKAVgYBiABKAESCQoBWRgHIAEo",
|
|
"ARIJCgFaGAggASgBImEKDFByb3BSZXNwb25zZRIOCgZwcm9wSWQYASABKAUS",
|
|
"FAoMcHJvcFNlcnZlcklkGAUgASgJEgwKBG5hbWUYAiABKAkSDAoEY29kZRgD",
|
|
"IAEoBRIPCgdtZXNzYWdlGAQgASgJIh4KEFByb3BNb2RlbFJlcXVlc3QSCgoC",
|
|
"aWQYASABKAUi9gIKEVByb3BNb2RlbFJlc3BvbnNlEgoKAmlkGAEgASgJEhAK",
|
|
"CGNhdGVnb3J5GAIgASgJEgwKBE5vdGUYAyABKAkSDAoETmFtZRgEIAEoCRIO",
|
|
"CgZXZWlnaHQYBSABKAkSDQoFU2NlbmUYBiABKAkSDAoESWNvbhgHIAEoCRIP",
|
|
"CgdSZXNQYXRoGAggASgJEhYKDkNvbnN1bWFibGVUeXBlGAkgASgJEhEKCUR1",
|
|
"cmF0aW9ucxgKIAEoCRIQCghJc1BpY2t1cBgLIAEoCRILCgNOdW0YDCABKAUS",
|
|
"EwoLQ2FsY3VsYXRpb24YDSABKAgSEAoITG9zc1RpbWUYDiABKAUSFAoMUHJv",
|
|
"cFNlcnZlcklkGA8gASgJEgwKBFVzZWQYECABKAgSDgoGVXNlcklkGBEgASgJ",
|
|
"Eg4KBlJvb21JZBgSIAEoCRIQCghUb3RhbE51bRgTIAEoBRIPCgdSZXN0TnVt",
|
|
"GBQgASgFEhEKCUF0dHJpYnV0ZRgVIAEoCUIHWgUuLztwYmIGcHJvdG8z"));
|
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
|
new pbr::FileDescriptor[] { },
|
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PropRequest), global::PropRequest.Parser, new[]{ "PropId", "Action", "PropServerId", "RoomId", "UserId", "X", "Y", "Z" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PropResponse), global::PropResponse.Parser, new[]{ "PropId", "PropServerId", "Name", "Code", "Message" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PropModelRequest), global::PropModelRequest.Parser, new[]{ "Id" }, null, null, null, null),
|
|
new pbr::GeneratedClrTypeInfo(typeof(global::PropModelResponse), global::PropModelResponse.Parser, new[]{ "Id", "Category", "Note", "Name", "Weight", "Scene", "Icon", "ResPath", "ConsumableType", "Durations", "IsPickup", "Num", "Calculation", "LossTime", "PropServerId", "Used", "UserId", "RoomId", "TotalNum", "RestNum", "Attribute" }, null, null, null, null)
|
|
}));
|
|
}
|
|
#endregion
|
|
|
|
}
|
|
#region Messages
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class PropRequest : pb::IMessage<PropRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<PropRequest> _parser = new pb::MessageParser<PropRequest>(() => new PropRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<PropRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::PropReflection.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 PropRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropRequest(PropRequest other) : this() {
|
|
propId_ = other.propId_;
|
|
action_ = other.action_;
|
|
propServerId_ = other.propServerId_;
|
|
roomId_ = other.roomId_;
|
|
userId_ = other.userId_;
|
|
x_ = other.x_;
|
|
y_ = other.y_;
|
|
z_ = other.z_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropRequest Clone() {
|
|
return new PropRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "propId" field.</summary>
|
|
public const int PropIdFieldNumber = 1;
|
|
private int propId_;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PropId {
|
|
get { return propId_; }
|
|
set {
|
|
propId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "action" field.</summary>
|
|
public const int ActionFieldNumber = 2;
|
|
private int action_;
|
|
/// <summary>
|
|
/// 1 使用 2 丢弃 3 转交
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Action {
|
|
get { return action_; }
|
|
set {
|
|
action_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "propServerId" field.</summary>
|
|
public const int PropServerIdFieldNumber = 3;
|
|
private string propServerId_ = "";
|
|
/// <summary>
|
|
/// 服务端ID 不存在这个id的时候为-1
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string PropServerId {
|
|
get { return propServerId_; }
|
|
set {
|
|
propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <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 "userId" field.</summary>
|
|
public const int UserIdFieldNumber = 5;
|
|
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 "X" field.</summary>
|
|
public const int XFieldNumber = 6;
|
|
private double x_;
|
|
/// <summary>
|
|
/// 位置x
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public double X {
|
|
get { return x_; }
|
|
set {
|
|
x_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Y" field.</summary>
|
|
public const int YFieldNumber = 7;
|
|
private double y_;
|
|
/// <summary>
|
|
/// 位置y
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public double Y {
|
|
get { return y_; }
|
|
set {
|
|
y_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Z" field.</summary>
|
|
public const int ZFieldNumber = 8;
|
|
private double z_;
|
|
/// <summary>
|
|
/// 位置z
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public double Z {
|
|
get { return z_; }
|
|
set {
|
|
z_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as PropRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(PropRequest other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (PropId != other.PropId) return false;
|
|
if (Action != other.Action) return false;
|
|
if (PropServerId != other.PropServerId) return false;
|
|
if (RoomId != other.RoomId) return false;
|
|
if (UserId != other.UserId) return false;
|
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(X, other.X)) return false;
|
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Y, other.Y)) return false;
|
|
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Z, other.Z)) 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 (PropId != 0) hash ^= PropId.GetHashCode();
|
|
if (Action != 0) hash ^= Action.GetHashCode();
|
|
if (PropServerId.Length != 0) hash ^= PropServerId.GetHashCode();
|
|
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
if (X != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(X);
|
|
if (Y != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Y);
|
|
if (Z != 0D) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Z);
|
|
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 (PropId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(PropId);
|
|
}
|
|
if (Action != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(Action);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(PropServerId);
|
|
}
|
|
if (RoomId.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(RoomId);
|
|
}
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (X != 0D) {
|
|
output.WriteRawTag(49);
|
|
output.WriteDouble(X);
|
|
}
|
|
if (Y != 0D) {
|
|
output.WriteRawTag(57);
|
|
output.WriteDouble(Y);
|
|
}
|
|
if (Z != 0D) {
|
|
output.WriteRawTag(65);
|
|
output.WriteDouble(Z);
|
|
}
|
|
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 (PropId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(PropId);
|
|
}
|
|
if (Action != 0) {
|
|
output.WriteRawTag(16);
|
|
output.WriteInt32(Action);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(PropServerId);
|
|
}
|
|
if (RoomId.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(RoomId);
|
|
}
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (X != 0D) {
|
|
output.WriteRawTag(49);
|
|
output.WriteDouble(X);
|
|
}
|
|
if (Y != 0D) {
|
|
output.WriteRawTag(57);
|
|
output.WriteDouble(Y);
|
|
}
|
|
if (Z != 0D) {
|
|
output.WriteRawTag(65);
|
|
output.WriteDouble(Z);
|
|
}
|
|
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 (PropId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropId);
|
|
}
|
|
if (Action != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Action);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(PropServerId);
|
|
}
|
|
if (RoomId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
|
}
|
|
if (UserId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
if (X != 0D) {
|
|
size += 1 + 8;
|
|
}
|
|
if (Y != 0D) {
|
|
size += 1 + 8;
|
|
}
|
|
if (Z != 0D) {
|
|
size += 1 + 8;
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(PropRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.PropId != 0) {
|
|
PropId = other.PropId;
|
|
}
|
|
if (other.Action != 0) {
|
|
Action = other.Action;
|
|
}
|
|
if (other.PropServerId.Length != 0) {
|
|
PropServerId = other.PropServerId;
|
|
}
|
|
if (other.RoomId.Length != 0) {
|
|
RoomId = other.RoomId;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
if (other.X != 0D) {
|
|
X = other.X;
|
|
}
|
|
if (other.Y != 0D) {
|
|
Y = other.Y;
|
|
}
|
|
if (other.Z != 0D) {
|
|
Z = other.Z;
|
|
}
|
|
_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 8: {
|
|
PropId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Action = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 26: {
|
|
PropServerId = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
RoomId = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 49: {
|
|
X = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 57: {
|
|
Y = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 65: {
|
|
Z = input.ReadDouble();
|
|
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 8: {
|
|
PropId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 16: {
|
|
Action = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 26: {
|
|
PropServerId = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
RoomId = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 49: {
|
|
X = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 57: {
|
|
Y = input.ReadDouble();
|
|
break;
|
|
}
|
|
case 65: {
|
|
Z = input.ReadDouble();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class PropResponse : pb::IMessage<PropResponse>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<PropResponse> _parser = new pb::MessageParser<PropResponse>(() => new PropResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<PropResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::PropReflection.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 PropResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropResponse(PropResponse other) : this() {
|
|
propId_ = other.propId_;
|
|
propServerId_ = other.propServerId_;
|
|
name_ = other.name_;
|
|
code_ = other.code_;
|
|
message_ = other.message_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropResponse Clone() {
|
|
return new PropResponse(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "propId" field.</summary>
|
|
public const int PropIdFieldNumber = 1;
|
|
private int propId_;
|
|
/// <summary>
|
|
/// 道具ID
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int PropId {
|
|
get { return propId_; }
|
|
set {
|
|
propId_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "propServerId" field.</summary>
|
|
public const int PropServerIdFieldNumber = 5;
|
|
private string propServerId_ = "";
|
|
/// <summary>
|
|
/// 服务端ID
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string PropServerId {
|
|
get { return propServerId_; }
|
|
set {
|
|
propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "name" field.</summary>
|
|
public const int NameFieldNumber = 2;
|
|
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 "code" field.</summary>
|
|
public const int CodeFieldNumber = 3;
|
|
private int code_;
|
|
/// <summary>
|
|
/// 道具编码
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Code {
|
|
get { return code_; }
|
|
set {
|
|
code_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "message" field.</summary>
|
|
public const int MessageFieldNumber = 4;
|
|
private string message_ = "";
|
|
/// <summary>
|
|
/// 道具提示信息
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Message {
|
|
get { return message_; }
|
|
set {
|
|
message_ = 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 PropResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(PropResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (PropId != other.PropId) return false;
|
|
if (PropServerId != other.PropServerId) return false;
|
|
if (Name != other.Name) return false;
|
|
if (Code != other.Code) return false;
|
|
if (Message != other.Message) 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 (PropId != 0) hash ^= PropId.GetHashCode();
|
|
if (PropServerId.Length != 0) hash ^= PropServerId.GetHashCode();
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (Code != 0) hash ^= Code.GetHashCode();
|
|
if (Message.Length != 0) hash ^= Message.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 (PropId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(PropId);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Code != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(Code);
|
|
}
|
|
if (Message.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Message);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(PropServerId);
|
|
}
|
|
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 (PropId != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(PropId);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Code != 0) {
|
|
output.WriteRawTag(24);
|
|
output.WriteInt32(Code);
|
|
}
|
|
if (Message.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Message);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(PropServerId);
|
|
}
|
|
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 (PropId != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(PropId);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(PropServerId);
|
|
}
|
|
if (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (Code != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Code);
|
|
}
|
|
if (Message.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Message);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(PropResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.PropId != 0) {
|
|
PropId = other.PropId;
|
|
}
|
|
if (other.PropServerId.Length != 0) {
|
|
PropServerId = other.PropServerId;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.Code != 0) {
|
|
Code = other.Code;
|
|
}
|
|
if (other.Message.Length != 0) {
|
|
Message = other.Message;
|
|
}
|
|
_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 8: {
|
|
PropId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Code = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Message = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
PropServerId = 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 8: {
|
|
PropId = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 18: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 24: {
|
|
Code = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Message = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
PropServerId = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class PropModelRequest : pb::IMessage<PropModelRequest>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<PropModelRequest> _parser = new pb::MessageParser<PropModelRequest>(() => new PropModelRequest());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<PropModelRequest> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::PropReflection.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 PropModelRequest() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropModelRequest(PropModelRequest other) : this() {
|
|
id_ = other.id_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropModelRequest Clone() {
|
|
return new PropModelRequest(this);
|
|
}
|
|
|
|
/// <summary>Field number for the "id" field.</summary>
|
|
public const int IdFieldNumber = 1;
|
|
private int id_;
|
|
/// <summary>
|
|
/// 道具ID
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Id {
|
|
get { return id_; }
|
|
set {
|
|
id_ = value;
|
|
}
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public override bool Equals(object other) {
|
|
return Equals(other as PropModelRequest);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(PropModelRequest 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 != 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 != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(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 != 0) {
|
|
output.WriteRawTag(8);
|
|
output.WriteInt32(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 != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Id);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(PropModelRequest other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id != 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 8: {
|
|
Id = input.ReadInt32();
|
|
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 8: {
|
|
Id = input.ReadInt32();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
|
public sealed partial class PropModelResponse : pb::IMessage<PropModelResponse>
|
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
|
, pb::IBufferMessage
|
|
#endif
|
|
{
|
|
private static readonly pb::MessageParser<PropModelResponse> _parser = new pb::MessageParser<PropModelResponse>(() => new PropModelResponse());
|
|
private pb::UnknownFieldSet _unknownFields;
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pb::MessageParser<PropModelResponse> Parser { get { return _parser; } }
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public static pbr::MessageDescriptor Descriptor {
|
|
get { return global::PropReflection.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 PropModelResponse() {
|
|
OnConstruction();
|
|
}
|
|
|
|
partial void OnConstruction();
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropModelResponse(PropModelResponse other) : this() {
|
|
id_ = other.id_;
|
|
category_ = other.category_;
|
|
note_ = other.note_;
|
|
name_ = other.name_;
|
|
weight_ = other.weight_;
|
|
scene_ = other.scene_;
|
|
icon_ = other.icon_;
|
|
resPath_ = other.resPath_;
|
|
consumableType_ = other.consumableType_;
|
|
durations_ = other.durations_;
|
|
isPickup_ = other.isPickup_;
|
|
num_ = other.num_;
|
|
calculation_ = other.calculation_;
|
|
lossTime_ = other.lossTime_;
|
|
propServerId_ = other.propServerId_;
|
|
used_ = other.used_;
|
|
userId_ = other.userId_;
|
|
roomId_ = other.roomId_;
|
|
totalNum_ = other.totalNum_;
|
|
restNum_ = other.restNum_;
|
|
attribute_ = other.attribute_;
|
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public PropModelResponse Clone() {
|
|
return new PropModelResponse(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 "category" field.</summary>
|
|
public const int CategoryFieldNumber = 2;
|
|
private string category_ = "";
|
|
/// <summary>
|
|
/// 物资分类
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Category {
|
|
get { return category_; }
|
|
set {
|
|
category_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Note" field.</summary>
|
|
public const int NoteFieldNumber = 3;
|
|
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 = 4;
|
|
private string name_ = "";
|
|
/// <summary>
|
|
/// 关联到文本表ID
|
|
/// </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 "Weight" field.</summary>
|
|
public const int WeightFieldNumber = 5;
|
|
private string weight_ = "";
|
|
/// <summary>
|
|
/// 重量
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Weight {
|
|
get { return weight_; }
|
|
set {
|
|
weight_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Scene" field.</summary>
|
|
public const int SceneFieldNumber = 6;
|
|
private string scene_ = "";
|
|
/// <summary>
|
|
/// 使用场景
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Scene {
|
|
get { return scene_; }
|
|
set {
|
|
scene_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Icon" field.</summary>
|
|
public const int IconFieldNumber = 7;
|
|
private string icon_ = "";
|
|
/// <summary>
|
|
/// 图标
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Icon {
|
|
get { return icon_; }
|
|
set {
|
|
icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "ResPath" field.</summary>
|
|
public const int ResPathFieldNumber = 8;
|
|
private string resPath_ = "";
|
|
/// <summary>
|
|
/// 图片资源
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string ResPath {
|
|
get { return resPath_; }
|
|
set {
|
|
resPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "ConsumableType" field.</summary>
|
|
public const int ConsumableTypeFieldNumber = 9;
|
|
private string consumableType_ = "";
|
|
/// <summary>
|
|
/// 是否消耗品 0=非消耗品 1=消耗品 2=穿戴类 3=可穿戴消耗品
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string ConsumableType {
|
|
get { return consumableType_; }
|
|
set {
|
|
consumableType_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Durations" field.</summary>
|
|
public const int DurationsFieldNumber = 10;
|
|
private string durations_ = "";
|
|
/// <summary>
|
|
/// 有效时间 -1 无限制 单位 秒
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Durations {
|
|
get { return durations_; }
|
|
set {
|
|
durations_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "IsPickup" field.</summary>
|
|
public const int IsPickupFieldNumber = 11;
|
|
private string isPickup_ = "";
|
|
/// <summary>
|
|
/// 可被拾取 职业ID1,是否可拾取1|职业ID2,是否可拾取2
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string IsPickup {
|
|
get { return isPickup_; }
|
|
set {
|
|
isPickup_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Num" field.</summary>
|
|
public const int NumFieldNumber = 12;
|
|
private int num_;
|
|
/// <summary>
|
|
/// 道具数量
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int Num {
|
|
get { return num_; }
|
|
set {
|
|
num_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Calculation" field.</summary>
|
|
public const int CalculationFieldNumber = 13;
|
|
private bool calculation_;
|
|
/// <summary>
|
|
/// 是否计算属性 true=计算 false=不计算
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Calculation {
|
|
get { return calculation_; }
|
|
set {
|
|
calculation_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "LossTime" field.</summary>
|
|
public const int LossTimeFieldNumber = 14;
|
|
private int lossTime_;
|
|
/// <summary>
|
|
/// 剩余时间
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int LossTime {
|
|
get { return lossTime_; }
|
|
set {
|
|
lossTime_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "PropServerId" field.</summary>
|
|
public const int PropServerIdFieldNumber = 15;
|
|
private string propServerId_ = "";
|
|
/// <summary>
|
|
/// 道具服务器ID
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string PropServerId {
|
|
get { return propServerId_; }
|
|
set {
|
|
propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Used" field.</summary>
|
|
public const int UsedFieldNumber = 16;
|
|
private bool used_;
|
|
/// <summary>
|
|
/// 是否正在使用 true=正在使用 false=未使用
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Used {
|
|
get { return used_; }
|
|
set {
|
|
used_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "UserId" field.</summary>
|
|
public const int UserIdFieldNumber = 17;
|
|
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 = 18;
|
|
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 "TotalNum" field.</summary>
|
|
public const int TotalNumFieldNumber = 19;
|
|
private int totalNum_;
|
|
/// <summary>
|
|
/// 总数量
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int TotalNum {
|
|
get { return totalNum_; }
|
|
set {
|
|
totalNum_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "RestNum" field.</summary>
|
|
public const int RestNumFieldNumber = 20;
|
|
private int restNum_;
|
|
/// <summary>
|
|
/// 剩余数量
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public int RestNum {
|
|
get { return restNum_; }
|
|
set {
|
|
restNum_ = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>Field number for the "Attribute" field.</summary>
|
|
public const int AttributeFieldNumber = 21;
|
|
private string attribute_ = "";
|
|
/// <summary>
|
|
/// 属性种类,属性值
|
|
/// </summary>
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public string Attribute {
|
|
get { return attribute_; }
|
|
set {
|
|
attribute_ = 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 PropModelResponse);
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public bool Equals(PropModelResponse other) {
|
|
if (ReferenceEquals(other, null)) {
|
|
return false;
|
|
}
|
|
if (ReferenceEquals(other, this)) {
|
|
return true;
|
|
}
|
|
if (Id != other.Id) return false;
|
|
if (Category != other.Category) return false;
|
|
if (Note != other.Note) return false;
|
|
if (Name != other.Name) return false;
|
|
if (Weight != other.Weight) return false;
|
|
if (Scene != other.Scene) return false;
|
|
if (Icon != other.Icon) return false;
|
|
if (ResPath != other.ResPath) return false;
|
|
if (ConsumableType != other.ConsumableType) return false;
|
|
if (Durations != other.Durations) return false;
|
|
if (IsPickup != other.IsPickup) return false;
|
|
if (Num != other.Num) return false;
|
|
if (Calculation != other.Calculation) return false;
|
|
if (LossTime != other.LossTime) return false;
|
|
if (PropServerId != other.PropServerId) return false;
|
|
if (Used != other.Used) return false;
|
|
if (UserId != other.UserId) return false;
|
|
if (RoomId != other.RoomId) return false;
|
|
if (TotalNum != other.TotalNum) return false;
|
|
if (RestNum != other.RestNum) return false;
|
|
if (Attribute != other.Attribute) 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 (Category.Length != 0) hash ^= Category.GetHashCode();
|
|
if (Note.Length != 0) hash ^= Note.GetHashCode();
|
|
if (Name.Length != 0) hash ^= Name.GetHashCode();
|
|
if (Weight.Length != 0) hash ^= Weight.GetHashCode();
|
|
if (Scene.Length != 0) hash ^= Scene.GetHashCode();
|
|
if (Icon.Length != 0) hash ^= Icon.GetHashCode();
|
|
if (ResPath.Length != 0) hash ^= ResPath.GetHashCode();
|
|
if (ConsumableType.Length != 0) hash ^= ConsumableType.GetHashCode();
|
|
if (Durations.Length != 0) hash ^= Durations.GetHashCode();
|
|
if (IsPickup.Length != 0) hash ^= IsPickup.GetHashCode();
|
|
if (Num != 0) hash ^= Num.GetHashCode();
|
|
if (Calculation != false) hash ^= Calculation.GetHashCode();
|
|
if (LossTime != 0) hash ^= LossTime.GetHashCode();
|
|
if (PropServerId.Length != 0) hash ^= PropServerId.GetHashCode();
|
|
if (Used != false) hash ^= Used.GetHashCode();
|
|
if (UserId.Length != 0) hash ^= UserId.GetHashCode();
|
|
if (RoomId.Length != 0) hash ^= RoomId.GetHashCode();
|
|
if (TotalNum != 0) hash ^= TotalNum.GetHashCode();
|
|
if (RestNum != 0) hash ^= RestNum.GetHashCode();
|
|
if (Attribute.Length != 0) hash ^= Attribute.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 (Category.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Category);
|
|
}
|
|
if (Note.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Note);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Weight.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(Weight);
|
|
}
|
|
if (Scene.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(Scene);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(Icon);
|
|
}
|
|
if (ResPath.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(ResPath);
|
|
}
|
|
if (ConsumableType.Length != 0) {
|
|
output.WriteRawTag(74);
|
|
output.WriteString(ConsumableType);
|
|
}
|
|
if (Durations.Length != 0) {
|
|
output.WriteRawTag(82);
|
|
output.WriteString(Durations);
|
|
}
|
|
if (IsPickup.Length != 0) {
|
|
output.WriteRawTag(90);
|
|
output.WriteString(IsPickup);
|
|
}
|
|
if (Num != 0) {
|
|
output.WriteRawTag(96);
|
|
output.WriteInt32(Num);
|
|
}
|
|
if (Calculation != false) {
|
|
output.WriteRawTag(104);
|
|
output.WriteBool(Calculation);
|
|
}
|
|
if (LossTime != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteInt32(LossTime);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
output.WriteRawTag(122);
|
|
output.WriteString(PropServerId);
|
|
}
|
|
if (Used != false) {
|
|
output.WriteRawTag(128, 1);
|
|
output.WriteBool(Used);
|
|
}
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (RoomId.Length != 0) {
|
|
output.WriteRawTag(146, 1);
|
|
output.WriteString(RoomId);
|
|
}
|
|
if (TotalNum != 0) {
|
|
output.WriteRawTag(152, 1);
|
|
output.WriteInt32(TotalNum);
|
|
}
|
|
if (RestNum != 0) {
|
|
output.WriteRawTag(160, 1);
|
|
output.WriteInt32(RestNum);
|
|
}
|
|
if (Attribute.Length != 0) {
|
|
output.WriteRawTag(170, 1);
|
|
output.WriteString(Attribute);
|
|
}
|
|
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 (Category.Length != 0) {
|
|
output.WriteRawTag(18);
|
|
output.WriteString(Category);
|
|
}
|
|
if (Note.Length != 0) {
|
|
output.WriteRawTag(26);
|
|
output.WriteString(Note);
|
|
}
|
|
if (Name.Length != 0) {
|
|
output.WriteRawTag(34);
|
|
output.WriteString(Name);
|
|
}
|
|
if (Weight.Length != 0) {
|
|
output.WriteRawTag(42);
|
|
output.WriteString(Weight);
|
|
}
|
|
if (Scene.Length != 0) {
|
|
output.WriteRawTag(50);
|
|
output.WriteString(Scene);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
output.WriteRawTag(58);
|
|
output.WriteString(Icon);
|
|
}
|
|
if (ResPath.Length != 0) {
|
|
output.WriteRawTag(66);
|
|
output.WriteString(ResPath);
|
|
}
|
|
if (ConsumableType.Length != 0) {
|
|
output.WriteRawTag(74);
|
|
output.WriteString(ConsumableType);
|
|
}
|
|
if (Durations.Length != 0) {
|
|
output.WriteRawTag(82);
|
|
output.WriteString(Durations);
|
|
}
|
|
if (IsPickup.Length != 0) {
|
|
output.WriteRawTag(90);
|
|
output.WriteString(IsPickup);
|
|
}
|
|
if (Num != 0) {
|
|
output.WriteRawTag(96);
|
|
output.WriteInt32(Num);
|
|
}
|
|
if (Calculation != false) {
|
|
output.WriteRawTag(104);
|
|
output.WriteBool(Calculation);
|
|
}
|
|
if (LossTime != 0) {
|
|
output.WriteRawTag(112);
|
|
output.WriteInt32(LossTime);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
output.WriteRawTag(122);
|
|
output.WriteString(PropServerId);
|
|
}
|
|
if (Used != false) {
|
|
output.WriteRawTag(128, 1);
|
|
output.WriteBool(Used);
|
|
}
|
|
if (UserId.Length != 0) {
|
|
output.WriteRawTag(138, 1);
|
|
output.WriteString(UserId);
|
|
}
|
|
if (RoomId.Length != 0) {
|
|
output.WriteRawTag(146, 1);
|
|
output.WriteString(RoomId);
|
|
}
|
|
if (TotalNum != 0) {
|
|
output.WriteRawTag(152, 1);
|
|
output.WriteInt32(TotalNum);
|
|
}
|
|
if (RestNum != 0) {
|
|
output.WriteRawTag(160, 1);
|
|
output.WriteInt32(RestNum);
|
|
}
|
|
if (Attribute.Length != 0) {
|
|
output.WriteRawTag(170, 1);
|
|
output.WriteString(Attribute);
|
|
}
|
|
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 (Category.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Category);
|
|
}
|
|
if (Note.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Note);
|
|
}
|
|
if (Name.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
|
|
}
|
|
if (Weight.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Weight);
|
|
}
|
|
if (Scene.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Scene);
|
|
}
|
|
if (Icon.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon);
|
|
}
|
|
if (ResPath.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ResPath);
|
|
}
|
|
if (ConsumableType.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(ConsumableType);
|
|
}
|
|
if (Durations.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Durations);
|
|
}
|
|
if (IsPickup.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(IsPickup);
|
|
}
|
|
if (Num != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Num);
|
|
}
|
|
if (Calculation != false) {
|
|
size += 1 + 1;
|
|
}
|
|
if (LossTime != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LossTime);
|
|
}
|
|
if (PropServerId.Length != 0) {
|
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(PropServerId);
|
|
}
|
|
if (Used != false) {
|
|
size += 2 + 1;
|
|
}
|
|
if (UserId.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(UserId);
|
|
}
|
|
if (RoomId.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(RoomId);
|
|
}
|
|
if (TotalNum != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeInt32Size(TotalNum);
|
|
}
|
|
if (RestNum != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeInt32Size(RestNum);
|
|
}
|
|
if (Attribute.Length != 0) {
|
|
size += 2 + pb::CodedOutputStream.ComputeStringSize(Attribute);
|
|
}
|
|
if (_unknownFields != null) {
|
|
size += _unknownFields.CalculateSize();
|
|
}
|
|
return size;
|
|
}
|
|
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
|
public void MergeFrom(PropModelResponse other) {
|
|
if (other == null) {
|
|
return;
|
|
}
|
|
if (other.Id.Length != 0) {
|
|
Id = other.Id;
|
|
}
|
|
if (other.Category.Length != 0) {
|
|
Category = other.Category;
|
|
}
|
|
if (other.Note.Length != 0) {
|
|
Note = other.Note;
|
|
}
|
|
if (other.Name.Length != 0) {
|
|
Name = other.Name;
|
|
}
|
|
if (other.Weight.Length != 0) {
|
|
Weight = other.Weight;
|
|
}
|
|
if (other.Scene.Length != 0) {
|
|
Scene = other.Scene;
|
|
}
|
|
if (other.Icon.Length != 0) {
|
|
Icon = other.Icon;
|
|
}
|
|
if (other.ResPath.Length != 0) {
|
|
ResPath = other.ResPath;
|
|
}
|
|
if (other.ConsumableType.Length != 0) {
|
|
ConsumableType = other.ConsumableType;
|
|
}
|
|
if (other.Durations.Length != 0) {
|
|
Durations = other.Durations;
|
|
}
|
|
if (other.IsPickup.Length != 0) {
|
|
IsPickup = other.IsPickup;
|
|
}
|
|
if (other.Num != 0) {
|
|
Num = other.Num;
|
|
}
|
|
if (other.Calculation != false) {
|
|
Calculation = other.Calculation;
|
|
}
|
|
if (other.LossTime != 0) {
|
|
LossTime = other.LossTime;
|
|
}
|
|
if (other.PropServerId.Length != 0) {
|
|
PropServerId = other.PropServerId;
|
|
}
|
|
if (other.Used != false) {
|
|
Used = other.Used;
|
|
}
|
|
if (other.UserId.Length != 0) {
|
|
UserId = other.UserId;
|
|
}
|
|
if (other.RoomId.Length != 0) {
|
|
RoomId = other.RoomId;
|
|
}
|
|
if (other.TotalNum != 0) {
|
|
TotalNum = other.TotalNum;
|
|
}
|
|
if (other.RestNum != 0) {
|
|
RestNum = other.RestNum;
|
|
}
|
|
if (other.Attribute.Length != 0) {
|
|
Attribute = other.Attribute;
|
|
}
|
|
_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: {
|
|
Category = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Note = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
Weight = input.ReadString();
|
|
break;
|
|
}
|
|
case 50: {
|
|
Scene = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
Icon = input.ReadString();
|
|
break;
|
|
}
|
|
case 66: {
|
|
ResPath = input.ReadString();
|
|
break;
|
|
}
|
|
case 74: {
|
|
ConsumableType = input.ReadString();
|
|
break;
|
|
}
|
|
case 82: {
|
|
Durations = input.ReadString();
|
|
break;
|
|
}
|
|
case 90: {
|
|
IsPickup = input.ReadString();
|
|
break;
|
|
}
|
|
case 96: {
|
|
Num = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Calculation = input.ReadBool();
|
|
break;
|
|
}
|
|
case 112: {
|
|
LossTime = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 122: {
|
|
PropServerId = input.ReadString();
|
|
break;
|
|
}
|
|
case 128: {
|
|
Used = input.ReadBool();
|
|
break;
|
|
}
|
|
case 138: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 146: {
|
|
RoomId = input.ReadString();
|
|
break;
|
|
}
|
|
case 152: {
|
|
TotalNum = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 160: {
|
|
RestNum = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 170: {
|
|
Attribute = 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: {
|
|
Category = input.ReadString();
|
|
break;
|
|
}
|
|
case 26: {
|
|
Note = input.ReadString();
|
|
break;
|
|
}
|
|
case 34: {
|
|
Name = input.ReadString();
|
|
break;
|
|
}
|
|
case 42: {
|
|
Weight = input.ReadString();
|
|
break;
|
|
}
|
|
case 50: {
|
|
Scene = input.ReadString();
|
|
break;
|
|
}
|
|
case 58: {
|
|
Icon = input.ReadString();
|
|
break;
|
|
}
|
|
case 66: {
|
|
ResPath = input.ReadString();
|
|
break;
|
|
}
|
|
case 74: {
|
|
ConsumableType = input.ReadString();
|
|
break;
|
|
}
|
|
case 82: {
|
|
Durations = input.ReadString();
|
|
break;
|
|
}
|
|
case 90: {
|
|
IsPickup = input.ReadString();
|
|
break;
|
|
}
|
|
case 96: {
|
|
Num = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 104: {
|
|
Calculation = input.ReadBool();
|
|
break;
|
|
}
|
|
case 112: {
|
|
LossTime = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 122: {
|
|
PropServerId = input.ReadString();
|
|
break;
|
|
}
|
|
case 128: {
|
|
Used = input.ReadBool();
|
|
break;
|
|
}
|
|
case 138: {
|
|
UserId = input.ReadString();
|
|
break;
|
|
}
|
|
case 146: {
|
|
RoomId = input.ReadString();
|
|
break;
|
|
}
|
|
case 152: {
|
|
TotalNum = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 160: {
|
|
RestNum = input.ReadInt32();
|
|
break;
|
|
}
|
|
case 170: {
|
|
Attribute = input.ReadString();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
#endif
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
#endregion Designer generated code
|