// // Generated by the protocol buffer compiler. DO NOT EDIT! // source: prop.proto // #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; /// Holder for reflection information generated from prop.proto public static partial class PropReflection { #region Descriptor /// File descriptor for prop.proto public static pbr::FileDescriptor Descriptor { get { return descriptor; } } private static pbr::FileDescriptor descriptor; static PropReflection() { byte[] descriptorData = global::System.Convert.FromBase64String( string.Concat( "Cgpwcm9wLnByb3RvIlMKC1Byb3BSZXF1ZXN0Eg4KBnByb3BJZBgBIAEoBRIO", "CgZhY3Rpb24YAiABKAUSFAoMcHJvcFNlcnZlcklkGAMgASgJEg4KBnJvb21J", "ZBgEIAEoCSJhCgxQcm9wUmVzcG9uc2USDgoGcHJvcElkGAEgASgFEhQKDHBy", "b3BTZXJ2ZXJJZBgFIAEoCRIMCgRuYW1lGAIgASgJEgwKBGNvZGUYAyABKAUS", "DwoHbWVzc2FnZRgEIAEoCSIeChBQcm9wTW9kZWxSZXF1ZXN0EgoKAmlkGAEg", "ASgFIvYCChFQcm9wTW9kZWxSZXNwb25zZRIKCgJpZBgBIAEoCRIQCghjYXRl", "Z29yeRgCIAEoCRIMCgROb3RlGAMgASgJEgwKBE5hbWUYBCABKAkSDgoGV2Vp", "Z2h0GAUgASgJEg0KBVNjZW5lGAYgASgJEgwKBEljb24YByABKAkSDwoHUmVz", "UGF0aBgIIAEoCRIWCg5Db25zdW1hYmxlVHlwZRgJIAEoCRIRCglEdXJhdGlv", "bnMYCiABKAkSEAoISXNQaWNrdXAYCyABKAkSCwoDTnVtGAwgASgFEhMKC0Nh", "bGN1bGF0aW9uGA0gASgIEhAKCExvc3NUaW1lGA4gASgFEhQKDFByb3BTZXJ2", "ZXJJZBgPIAEoCRIMCgRVc2VkGBAgASgIEg4KBlVzZXJJZBgRIAEoCRIOCgZS", "b29tSWQYEiABKAkSEAoIVG90YWxOdW0YEyABKAUSDwoHUmVzdE51bRgUIAEo", "BRIRCglBdHRyaWJ1dGUYFSABKAlCB1oFLi87cGJiBnByb3RvMw==")); 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" }, 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 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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_; _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public PropRequest Clone() { return new PropRequest(this); } /// Field number for the "propId" field. 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; } } /// Field number for the "action" field. public const int ActionFieldNumber = 2; private int action_; /// /// 1 使用 2 丢弃 3 转交 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Action { get { return action_; } set { action_ = value; } } /// Field number for the "propServerId" field. public const int PropServerIdFieldNumber = 3; private string propServerId_ = ""; /// /// 服务端ID 不存在这个id的时候为-1 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PropServerId { get { return propServerId_; } set { propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "roomId" field. public const int RoomIdFieldNumber = 4; private string roomId_ = ""; /// /// 房间ID /// [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 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; 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 (_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 (_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 (_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 (_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; } _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; } } } #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; } } } } #endif } [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] public sealed partial class PropResponse : pb::IMessage #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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); } /// Field number for the "propId" field. public const int PropIdFieldNumber = 1; private int propId_; /// /// 道具ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int PropId { get { return propId_; } set { propId_ = value; } } /// Field number for the "propServerId" field. public const int PropServerIdFieldNumber = 5; private string propServerId_ = ""; /// /// 服务端ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PropServerId { get { return propServerId_; } set { propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "name" field. public const int NameFieldNumber = 2; private string name_ = ""; /// /// 道具名称 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "code" field. public const int CodeFieldNumber = 3; private int code_; /// /// 道具编码 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Code { get { return code_; } set { code_ = value; } } /// Field number for the "message" field. public const int MessageFieldNumber = 4; private string message_ = ""; /// /// 道具提示信息 /// [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 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropModelRequest()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private int id_; /// /// 道具ID /// [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 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE , pb::IBufferMessage #endif { private static readonly pb::MessageParser _parser = new pb::MessageParser(() => new PropModelResponse()); private pb::UnknownFieldSet _unknownFields; [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public static pb::MessageParser 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); } /// Field number for the "id" field. public const int IdFieldNumber = 1; private string id_ = ""; /// /// 物资id /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Id { get { return id_; } set { id_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "category" field. public const int CategoryFieldNumber = 2; private string category_ = ""; /// /// 物资分类 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Category { get { return category_; } set { category_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Note" field. public const int NoteFieldNumber = 3; private string note_ = ""; /// /// 备注 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Note { get { return note_; } set { note_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Name" field. public const int NameFieldNumber = 4; private string name_ = ""; /// /// 关联到文本表ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Name { get { return name_; } set { name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Weight" field. public const int WeightFieldNumber = 5; private string weight_ = ""; /// /// 重量 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Weight { get { return weight_; } set { weight_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Scene" field. public const int SceneFieldNumber = 6; private string scene_ = ""; /// /// 使用场景 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Scene { get { return scene_; } set { scene_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Icon" field. public const int IconFieldNumber = 7; private string icon_ = ""; /// /// 图标 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Icon { get { return icon_; } set { icon_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "ResPath" field. public const int ResPathFieldNumber = 8; private string resPath_ = ""; /// /// 图片资源 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ResPath { get { return resPath_; } set { resPath_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "ConsumableType" field. public const int ConsumableTypeFieldNumber = 9; private string consumableType_ = ""; /// /// 是否消耗品 0=非消耗品 1=消耗品 2=穿戴类 3=可穿戴消耗品 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string ConsumableType { get { return consumableType_; } set { consumableType_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Durations" field. public const int DurationsFieldNumber = 10; private string durations_ = ""; /// /// 有效时间 -1 无限制 单位 秒 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string Durations { get { return durations_; } set { durations_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "IsPickup" field. public const int IsPickupFieldNumber = 11; private string isPickup_ = ""; /// /// 可被拾取 职业ID1,是否可拾取1|职业ID2,是否可拾取2 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string IsPickup { get { return isPickup_; } set { isPickup_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Num" field. public const int NumFieldNumber = 12; private int num_; /// /// 道具数量 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int Num { get { return num_; } set { num_ = value; } } /// Field number for the "Calculation" field. public const int CalculationFieldNumber = 13; private bool calculation_; /// /// 是否计算属性 true=计算 false=不计算 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Calculation { get { return calculation_; } set { calculation_ = value; } } /// Field number for the "LossTime" field. public const int LossTimeFieldNumber = 14; private int lossTime_; /// /// 剩余时间 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int LossTime { get { return lossTime_; } set { lossTime_ = value; } } /// Field number for the "PropServerId" field. public const int PropServerIdFieldNumber = 15; private string propServerId_ = ""; /// /// 道具服务器ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string PropServerId { get { return propServerId_; } set { propServerId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "Used" field. public const int UsedFieldNumber = 16; private bool used_; /// /// 是否正在使用 true=正在使用 false=未使用 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public bool Used { get { return used_; } set { used_ = value; } } /// Field number for the "UserId" field. public const int UserIdFieldNumber = 17; private string userId_ = ""; /// /// 用户ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string UserId { get { return userId_; } set { userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "RoomId" field. public const int RoomIdFieldNumber = 18; private string roomId_ = ""; /// /// 房间ID /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public string RoomId { get { return roomId_; } set { roomId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); } } /// Field number for the "TotalNum" field. public const int TotalNumFieldNumber = 19; private int totalNum_; /// /// 总数量 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int TotalNum { get { return totalNum_; } set { totalNum_ = value; } } /// Field number for the "RestNum" field. public const int RestNumFieldNumber = 20; private int restNum_; /// /// 剩余数量 /// [global::System.Diagnostics.DebuggerNonUserCodeAttribute] [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] public int RestNum { get { return restNum_; } set { restNum_ = value; } } /// Field number for the "Attribute" field. public const int AttributeFieldNumber = 21; private string attribute_ = ""; /// /// 属性种类,属性值 /// [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