You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1321 lines
42 KiB
C#
1321 lines
42 KiB
C#
3 years ago
|
// <auto-generated>
|
||
|
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||
|
// source: common.proto
|
||
|
// </auto-generated>
|
||
|
#pragma warning disable 1591, 0612, 3021
|
||
|
#region Designer generated code
|
||
|
|
||
|
using pb = global::Google.Protobuf;
|
||
|
using pbc = global::Google.Protobuf.Collections;
|
||
|
using pbr = global::Google.Protobuf.Reflection;
|
||
|
using scg = global::System.Collections.Generic;
|
||
|
namespace Pb.Common {
|
||
|
|
||
|
/// <summary>Holder for reflection information generated from common.proto</summary>
|
||
|
public static partial class CommonReflection {
|
||
|
|
||
|
#region Descriptor
|
||
|
/// <summary>File descriptor for common.proto</summary>
|
||
|
public static pbr::FileDescriptor Descriptor {
|
||
|
get { return descriptor; }
|
||
|
}
|
||
|
private static pbr::FileDescriptor descriptor;
|
||
|
|
||
|
static CommonReflection() {
|
||
|
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||
|
string.Concat(
|
||
|
"Cgxjb21tb24ucHJvdG8SCXBiLmNvbW1vbiJdCgZQYlVzZXISCwoDdUlkGAEg",
|
||
|
"ASgDEg0KBXVuYW1lGAIgASgJEg4KBmF2YXRhchgDIAEoCRIVCg1ub2JpbGl0",
|
||
|
"eUxldmVsGAQgASgFEhAKCGludGVncmFsGAUgASgDIlgKE1VzZXJJbnRlZ3Jh",
|
||
|
"bENoYW5nZWQSHwoEdXNlchgBIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXISDgoG",
|
||
|
"Y2hhbmdlGAIgASgDEhAKCGludGVncmFsGAMgASgDIj4KCkRhbm1ha3VNc2cS",
|
||
|
"HwoEdXNlchgBIAEoCzIRLnBiLmNvbW1vbi5QYlVzZXISDwoHY29udGVudBgC",
|
||
|
"IAEoCSJ4CgdHaWZ0TXNnEh8KBHVzZXIYASABKAsyES5wYi5jb21tb24uUGJV",
|
||
|
"c2VyEg4KBmdpZnRJZBgCIAEoAxILCgNudW0YAyABKAMSEAoIZ2lmdE5hbWUY",
|
||
|
"BCABKAkSDQoFcHJpY2UYBSABKAMSDgoGaXNQYWlkGAYgASgIQh1aG2RjZy9n",
|
||
|
"YW1lL3BiL2NvbW1vbjtwYkNvbW1vbmIGcHJvdG8z"));
|
||
|
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||
|
new pbr::FileDescriptor[] { },
|
||
|
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Common.PbUser), global::Pb.Common.PbUser.Parser, new[]{ "UId", "Uname", "Avatar", "NobilityLevel", "Integral" }, null, null, null, null),
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Common.UserIntegralChanged), global::Pb.Common.UserIntegralChanged.Parser, new[]{ "User", "Change", "Integral" }, null, null, null, null),
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Common.DanmakuMsg), global::Pb.Common.DanmakuMsg.Parser, new[]{ "User", "Content" }, null, null, null, null),
|
||
|
new pbr::GeneratedClrTypeInfo(typeof(global::Pb.Common.GiftMsg), global::Pb.Common.GiftMsg.Parser, new[]{ "User", "GiftId", "Num", "GiftName", "Price", "IsPaid" }, null, null, null, null)
|
||
|
}));
|
||
|
}
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
#region Messages
|
||
|
/// <summary>
|
||
|
/// PbUser 用户
|
||
|
/// </summary>
|
||
|
public sealed partial class PbUser : pb::IMessage<PbUser>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<PbUser> _parser = new pb::MessageParser<PbUser>(() => new PbUser());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<PbUser> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::Pb.Common.CommonReflection.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 PbUser() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public PbUser(PbUser other) : this() {
|
||
|
uId_ = other.uId_;
|
||
|
uname_ = other.uname_;
|
||
|
avatar_ = other.avatar_;
|
||
|
nobilityLevel_ = other.nobilityLevel_;
|
||
|
integral_ = other.integral_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public PbUser Clone() {
|
||
|
return new PbUser(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "uId" field.</summary>
|
||
|
public const int UIdFieldNumber = 1;
|
||
|
private long uId_;
|
||
|
/// <summary>
|
||
|
/// 用户id
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long UId {
|
||
|
get { return uId_; }
|
||
|
set {
|
||
|
uId_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "uname" field.</summary>
|
||
|
public const int UnameFieldNumber = 2;
|
||
|
private string uname_ = "";
|
||
|
/// <summary>
|
||
|
/// 用户名
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string Uname {
|
||
|
get { return uname_; }
|
||
|
set {
|
||
|
uname_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "avatar" field.</summary>
|
||
|
public const int AvatarFieldNumber = 3;
|
||
|
private string avatar_ = "";
|
||
|
/// <summary>
|
||
|
/// 头像
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string Avatar {
|
||
|
get { return avatar_; }
|
||
|
set {
|
||
|
avatar_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "nobilityLevel" field.</summary>
|
||
|
public const int NobilityLevelFieldNumber = 4;
|
||
|
private int nobilityLevel_;
|
||
|
/// <summary>
|
||
|
/// 贵族等级
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public int NobilityLevel {
|
||
|
get { return nobilityLevel_; }
|
||
|
set {
|
||
|
nobilityLevel_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "integral" field.</summary>
|
||
|
public const int IntegralFieldNumber = 5;
|
||
|
private long integral_;
|
||
|
/// <summary>
|
||
|
/// 用户当前积分
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long Integral {
|
||
|
get { return integral_; }
|
||
|
set {
|
||
|
integral_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as PbUser);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(PbUser other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (UId != other.UId) return false;
|
||
|
if (Uname != other.Uname) return false;
|
||
|
if (Avatar != other.Avatar) return false;
|
||
|
if (NobilityLevel != other.NobilityLevel) return false;
|
||
|
if (Integral != other.Integral) 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 (UId != 0L) hash ^= UId.GetHashCode();
|
||
|
if (Uname.Length != 0) hash ^= Uname.GetHashCode();
|
||
|
if (Avatar.Length != 0) hash ^= Avatar.GetHashCode();
|
||
|
if (NobilityLevel != 0) hash ^= NobilityLevel.GetHashCode();
|
||
|
if (Integral != 0L) hash ^= Integral.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 (UId != 0L) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt64(UId);
|
||
|
}
|
||
|
if (Uname.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(Uname);
|
||
|
}
|
||
|
if (Avatar.Length != 0) {
|
||
|
output.WriteRawTag(26);
|
||
|
output.WriteString(Avatar);
|
||
|
}
|
||
|
if (NobilityLevel != 0) {
|
||
|
output.WriteRawTag(32);
|
||
|
output.WriteInt32(NobilityLevel);
|
||
|
}
|
||
|
if (Integral != 0L) {
|
||
|
output.WriteRawTag(40);
|
||
|
output.WriteInt64(Integral);
|
||
|
}
|
||
|
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 (UId != 0L) {
|
||
|
output.WriteRawTag(8);
|
||
|
output.WriteInt64(UId);
|
||
|
}
|
||
|
if (Uname.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(Uname);
|
||
|
}
|
||
|
if (Avatar.Length != 0) {
|
||
|
output.WriteRawTag(26);
|
||
|
output.WriteString(Avatar);
|
||
|
}
|
||
|
if (NobilityLevel != 0) {
|
||
|
output.WriteRawTag(32);
|
||
|
output.WriteInt32(NobilityLevel);
|
||
|
}
|
||
|
if (Integral != 0L) {
|
||
|
output.WriteRawTag(40);
|
||
|
output.WriteInt64(Integral);
|
||
|
}
|
||
|
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 (UId != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(UId);
|
||
|
}
|
||
|
if (Uname.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Uname);
|
||
|
}
|
||
|
if (Avatar.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Avatar);
|
||
|
}
|
||
|
if (NobilityLevel != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NobilityLevel);
|
||
|
}
|
||
|
if (Integral != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Integral);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(PbUser other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.UId != 0L) {
|
||
|
UId = other.UId;
|
||
|
}
|
||
|
if (other.Uname.Length != 0) {
|
||
|
Uname = other.Uname;
|
||
|
}
|
||
|
if (other.Avatar.Length != 0) {
|
||
|
Avatar = other.Avatar;
|
||
|
}
|
||
|
if (other.NobilityLevel != 0) {
|
||
|
NobilityLevel = other.NobilityLevel;
|
||
|
}
|
||
|
if (other.Integral != 0L) {
|
||
|
Integral = other.Integral;
|
||
|
}
|
||
|
_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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
break;
|
||
|
case 8: {
|
||
|
UId = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
Uname = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 26: {
|
||
|
Avatar = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 32: {
|
||
|
NobilityLevel = input.ReadInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 40: {
|
||
|
Integral = input.ReadInt64();
|
||
|
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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
break;
|
||
|
case 8: {
|
||
|
UId = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
Uname = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 26: {
|
||
|
Avatar = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 32: {
|
||
|
NobilityLevel = input.ReadInt32();
|
||
|
break;
|
||
|
}
|
||
|
case 40: {
|
||
|
Integral = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// UserIntegralChanged 用户积分变更 push -> user.integral
|
||
|
/// </summary>
|
||
|
public sealed partial class UserIntegralChanged : pb::IMessage<UserIntegralChanged>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<UserIntegralChanged> _parser = new pb::MessageParser<UserIntegralChanged>(() => new UserIntegralChanged());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<UserIntegralChanged> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::Pb.Common.CommonReflection.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 UserIntegralChanged() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public UserIntegralChanged(UserIntegralChanged other) : this() {
|
||
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
||
|
change_ = other.change_;
|
||
|
integral_ = other.integral_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public UserIntegralChanged Clone() {
|
||
|
return new UserIntegralChanged(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "user" field.</summary>
|
||
|
public const int UserFieldNumber = 1;
|
||
|
private global::Pb.Common.PbUser user_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public global::Pb.Common.PbUser User {
|
||
|
get { return user_; }
|
||
|
set {
|
||
|
user_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "change" field.</summary>
|
||
|
public const int ChangeFieldNumber = 2;
|
||
|
private long change_;
|
||
|
/// <summary>
|
||
|
/// 变更量
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long Change {
|
||
|
get { return change_; }
|
||
|
set {
|
||
|
change_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "integral" field.</summary>
|
||
|
public const int IntegralFieldNumber = 3;
|
||
|
private long integral_;
|
||
|
/// <summary>
|
||
|
/// 现有量
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long Integral {
|
||
|
get { return integral_; }
|
||
|
set {
|
||
|
integral_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as UserIntegralChanged);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(UserIntegralChanged other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!object.Equals(User, other.User)) return false;
|
||
|
if (Change != other.Change) return false;
|
||
|
if (Integral != other.Integral) 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 (user_ != null) hash ^= User.GetHashCode();
|
||
|
if (Change != 0L) hash ^= Change.GetHashCode();
|
||
|
if (Integral != 0L) hash ^= Integral.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 (user_ != null) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteMessage(User);
|
||
|
}
|
||
|
if (Change != 0L) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteInt64(Change);
|
||
|
}
|
||
|
if (Integral != 0L) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteInt64(Integral);
|
||
|
}
|
||
|
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 (user_ != null) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteMessage(User);
|
||
|
}
|
||
|
if (Change != 0L) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteInt64(Change);
|
||
|
}
|
||
|
if (Integral != 0L) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteInt64(Integral);
|
||
|
}
|
||
|
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 (user_ != null) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
||
|
}
|
||
|
if (Change != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Change);
|
||
|
}
|
||
|
if (Integral != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Integral);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(UserIntegralChanged other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.user_ != null) {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
User.MergeFrom(other.User);
|
||
|
}
|
||
|
if (other.Change != 0L) {
|
||
|
Change = other.Change;
|
||
|
}
|
||
|
if (other.Integral != 0L) {
|
||
|
Integral = other.Integral;
|
||
|
}
|
||
|
_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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
break;
|
||
|
case 10: {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
input.ReadMessage(User);
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
Change = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Integral = input.ReadInt64();
|
||
|
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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
break;
|
||
|
case 10: {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
input.ReadMessage(User);
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
Change = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Integral = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// DanmakuMsg 普通弹幕消息 push -> live.danmaku
|
||
|
/// </summary>
|
||
|
public sealed partial class DanmakuMsg : pb::IMessage<DanmakuMsg>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<DanmakuMsg> _parser = new pb::MessageParser<DanmakuMsg>(() => new DanmakuMsg());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<DanmakuMsg> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::Pb.Common.CommonReflection.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 DanmakuMsg() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public DanmakuMsg(DanmakuMsg other) : this() {
|
||
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
||
|
content_ = other.content_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public DanmakuMsg Clone() {
|
||
|
return new DanmakuMsg(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "user" field.</summary>
|
||
|
public const int UserFieldNumber = 1;
|
||
|
private global::Pb.Common.PbUser user_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public global::Pb.Common.PbUser User {
|
||
|
get { return user_; }
|
||
|
set {
|
||
|
user_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "content" field.</summary>
|
||
|
public const int ContentFieldNumber = 2;
|
||
|
private string content_ = "";
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string Content {
|
||
|
get { return content_; }
|
||
|
set {
|
||
|
content_ = 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 DanmakuMsg);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(DanmakuMsg other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!object.Equals(User, other.User)) return false;
|
||
|
if (Content != other.Content) 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 (user_ != null) hash ^= User.GetHashCode();
|
||
|
if (Content.Length != 0) hash ^= Content.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 (user_ != null) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteMessage(User);
|
||
|
}
|
||
|
if (Content.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(Content);
|
||
|
}
|
||
|
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 (user_ != null) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteMessage(User);
|
||
|
}
|
||
|
if (Content.Length != 0) {
|
||
|
output.WriteRawTag(18);
|
||
|
output.WriteString(Content);
|
||
|
}
|
||
|
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 (user_ != null) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
||
|
}
|
||
|
if (Content.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(Content);
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(DanmakuMsg other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.user_ != null) {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
User.MergeFrom(other.User);
|
||
|
}
|
||
|
if (other.Content.Length != 0) {
|
||
|
Content = other.Content;
|
||
|
}
|
||
|
_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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
break;
|
||
|
case 10: {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
input.ReadMessage(User);
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
Content = 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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
break;
|
||
|
case 10: {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
input.ReadMessage(User);
|
||
|
break;
|
||
|
}
|
||
|
case 18: {
|
||
|
Content = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
/// <summary>
|
||
|
/// 赠送礼物 push -> game.gift
|
||
|
/// </summary>
|
||
|
public sealed partial class GiftMsg : pb::IMessage<GiftMsg>
|
||
|
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||
|
, pb::IBufferMessage
|
||
|
#endif
|
||
|
{
|
||
|
private static readonly pb::MessageParser<GiftMsg> _parser = new pb::MessageParser<GiftMsg>(() => new GiftMsg());
|
||
|
private pb::UnknownFieldSet _unknownFields;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pb::MessageParser<GiftMsg> Parser { get { return _parser; } }
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public static pbr::MessageDescriptor Descriptor {
|
||
|
get { return global::Pb.Common.CommonReflection.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 GiftMsg() {
|
||
|
OnConstruction();
|
||
|
}
|
||
|
|
||
|
partial void OnConstruction();
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public GiftMsg(GiftMsg other) : this() {
|
||
|
user_ = other.user_ != null ? other.user_.Clone() : null;
|
||
|
giftId_ = other.giftId_;
|
||
|
num_ = other.num_;
|
||
|
giftName_ = other.giftName_;
|
||
|
price_ = other.price_;
|
||
|
isPaid_ = other.isPaid_;
|
||
|
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public GiftMsg Clone() {
|
||
|
return new GiftMsg(this);
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "user" field.</summary>
|
||
|
public const int UserFieldNumber = 1;
|
||
|
private global::Pb.Common.PbUser user_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public global::Pb.Common.PbUser User {
|
||
|
get { return user_; }
|
||
|
set {
|
||
|
user_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "giftId" field.</summary>
|
||
|
public const int GiftIdFieldNumber = 2;
|
||
|
private long giftId_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long GiftId {
|
||
|
get { return giftId_; }
|
||
|
set {
|
||
|
giftId_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "num" field.</summary>
|
||
|
public const int NumFieldNumber = 3;
|
||
|
private long num_;
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long Num {
|
||
|
get { return num_; }
|
||
|
set {
|
||
|
num_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "giftName" field.</summary>
|
||
|
public const int GiftNameFieldNumber = 4;
|
||
|
private string giftName_ = "";
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public string GiftName {
|
||
|
get { return giftName_; }
|
||
|
set {
|
||
|
giftName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "price" field.</summary>
|
||
|
public const int PriceFieldNumber = 5;
|
||
|
private long price_;
|
||
|
/// <summary>
|
||
|
/// 单价
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public long Price {
|
||
|
get { return price_; }
|
||
|
set {
|
||
|
price_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// <summary>Field number for the "isPaid" field.</summary>
|
||
|
public const int IsPaidFieldNumber = 6;
|
||
|
private bool isPaid_;
|
||
|
/// <summary>
|
||
|
/// 是否收费礼物
|
||
|
/// </summary>
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool IsPaid {
|
||
|
get { return isPaid_; }
|
||
|
set {
|
||
|
isPaid_ = value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public override bool Equals(object other) {
|
||
|
return Equals(other as GiftMsg);
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public bool Equals(GiftMsg other) {
|
||
|
if (ReferenceEquals(other, null)) {
|
||
|
return false;
|
||
|
}
|
||
|
if (ReferenceEquals(other, this)) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!object.Equals(User, other.User)) return false;
|
||
|
if (GiftId != other.GiftId) return false;
|
||
|
if (Num != other.Num) return false;
|
||
|
if (GiftName != other.GiftName) return false;
|
||
|
if (Price != other.Price) return false;
|
||
|
if (IsPaid != other.IsPaid) 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 (user_ != null) hash ^= User.GetHashCode();
|
||
|
if (GiftId != 0L) hash ^= GiftId.GetHashCode();
|
||
|
if (Num != 0L) hash ^= Num.GetHashCode();
|
||
|
if (GiftName.Length != 0) hash ^= GiftName.GetHashCode();
|
||
|
if (Price != 0L) hash ^= Price.GetHashCode();
|
||
|
if (IsPaid != false) hash ^= IsPaid.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 (user_ != null) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteMessage(User);
|
||
|
}
|
||
|
if (GiftId != 0L) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteInt64(GiftId);
|
||
|
}
|
||
|
if (Num != 0L) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteInt64(Num);
|
||
|
}
|
||
|
if (GiftName.Length != 0) {
|
||
|
output.WriteRawTag(34);
|
||
|
output.WriteString(GiftName);
|
||
|
}
|
||
|
if (Price != 0L) {
|
||
|
output.WriteRawTag(40);
|
||
|
output.WriteInt64(Price);
|
||
|
}
|
||
|
if (IsPaid != false) {
|
||
|
output.WriteRawTag(48);
|
||
|
output.WriteBool(IsPaid);
|
||
|
}
|
||
|
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 (user_ != null) {
|
||
|
output.WriteRawTag(10);
|
||
|
output.WriteMessage(User);
|
||
|
}
|
||
|
if (GiftId != 0L) {
|
||
|
output.WriteRawTag(16);
|
||
|
output.WriteInt64(GiftId);
|
||
|
}
|
||
|
if (Num != 0L) {
|
||
|
output.WriteRawTag(24);
|
||
|
output.WriteInt64(Num);
|
||
|
}
|
||
|
if (GiftName.Length != 0) {
|
||
|
output.WriteRawTag(34);
|
||
|
output.WriteString(GiftName);
|
||
|
}
|
||
|
if (Price != 0L) {
|
||
|
output.WriteRawTag(40);
|
||
|
output.WriteInt64(Price);
|
||
|
}
|
||
|
if (IsPaid != false) {
|
||
|
output.WriteRawTag(48);
|
||
|
output.WriteBool(IsPaid);
|
||
|
}
|
||
|
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 (user_ != null) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeMessageSize(User);
|
||
|
}
|
||
|
if (GiftId != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(GiftId);
|
||
|
}
|
||
|
if (Num != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Num);
|
||
|
}
|
||
|
if (GiftName.Length != 0) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeStringSize(GiftName);
|
||
|
}
|
||
|
if (Price != 0L) {
|
||
|
size += 1 + pb::CodedOutputStream.ComputeInt64Size(Price);
|
||
|
}
|
||
|
if (IsPaid != false) {
|
||
|
size += 1 + 1;
|
||
|
}
|
||
|
if (_unknownFields != null) {
|
||
|
size += _unknownFields.CalculateSize();
|
||
|
}
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||
|
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||
|
public void MergeFrom(GiftMsg other) {
|
||
|
if (other == null) {
|
||
|
return;
|
||
|
}
|
||
|
if (other.user_ != null) {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
User.MergeFrom(other.User);
|
||
|
}
|
||
|
if (other.GiftId != 0L) {
|
||
|
GiftId = other.GiftId;
|
||
|
}
|
||
|
if (other.Num != 0L) {
|
||
|
Num = other.Num;
|
||
|
}
|
||
|
if (other.GiftName.Length != 0) {
|
||
|
GiftName = other.GiftName;
|
||
|
}
|
||
|
if (other.Price != 0L) {
|
||
|
Price = other.Price;
|
||
|
}
|
||
|
if (other.IsPaid != false) {
|
||
|
IsPaid = other.IsPaid;
|
||
|
}
|
||
|
_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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
|
||
|
break;
|
||
|
case 10: {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
input.ReadMessage(User);
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
GiftId = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Num = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 34: {
|
||
|
GiftName = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 40: {
|
||
|
Price = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 48: {
|
||
|
IsPaid = input.ReadBool();
|
||
|
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) {
|
||
|
switch(tag) {
|
||
|
default:
|
||
|
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||
|
break;
|
||
|
case 10: {
|
||
|
if (user_ == null) {
|
||
|
User = new global::Pb.Common.PbUser();
|
||
|
}
|
||
|
input.ReadMessage(User);
|
||
|
break;
|
||
|
}
|
||
|
case 16: {
|
||
|
GiftId = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 24: {
|
||
|
Num = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 34: {
|
||
|
GiftName = input.ReadString();
|
||
|
break;
|
||
|
}
|
||
|
case 40: {
|
||
|
Price = input.ReadInt64();
|
||
|
break;
|
||
|
}
|
||
|
case 48: {
|
||
|
IsPaid = input.ReadBool();
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion
|
||
|
|
||
|
}
|
||
|
|
||
|
#endregion Designer generated code
|