mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-16 16:34:44 +01:00
Init commit
This commit is contained in:
991
NTR.Common/protos/Gacha.cs
Normal file
991
NTR.Common/protos/Gacha.cs
Normal file
@@ -0,0 +1,991 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: Gacha.proto
|
||||
// </auto-generated>
|
||||
#pragma warning disable 1591, 0612, 3021, 8981
|
||||
#region Designer generated code
|
||||
|
||||
using pb = global::Google.Protobuf;
|
||||
using pbc = global::Google.Protobuf.Collections;
|
||||
using pbr = global::Google.Protobuf.Reflection;
|
||||
using scg = global::System.Collections.Generic;
|
||||
namespace Nova.Client {
|
||||
|
||||
/// <summary>Holder for reflection information generated from Gacha.proto</summary>
|
||||
public static partial class GachaReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for Gacha.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static GachaReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CgtHYWNoYS5wcm90byKyAwoFR2FjaGESCgoCaWQYASABKAUSEgoKZGVmYXVs",
|
||||
"dF9pZBgCIAEoBRITCgtkZWZhdWx0X3F0eRgDIAEoBRIPCgdjb3N0X2lkGAQg",
|
||||
"ASgFEhAKCGNvc3RfcXR5GAUgASgFEhYKDm9uY2VfcHJlZmVycmVkGAYgASgJ",
|
||||
"EhsKE3Rlbl90aW1lc19wcmVmZXJyZWQYByABKAkSEwoLbGltaXRfdGltZXMY",
|
||||
"CCABKAUSGwoTYV90eXBlX3VwX3Nob3dfcHJvYhgJIAEoBRIbChNiX3R5cGVf",
|
||||
"dXBfc2hvd19wcm9iGAogASgFEhIKCnN0b3JhZ2VfaWQYCyABKAUSEgoKc3Rh",
|
||||
"cnRfdGltZRgMIAEoCRIQCghlbmRfdGltZRgNIAEoCRIMCgRzb3J0GA4gASgF",
|
||||
"EgwKBGljb24YDyABKAkSDQoFaW1hZ2UYECABKAkSFQoNdV9wX2NoYXJhY3Rl",
|
||||
"chgRIAMoBRISCgp1X3Bfb3V0Zml0GBIgAygFEhEKCWNoYXJhY3RlchgTIAMo",
|
||||
"BRIOCgZvdXRmaXQYFCADKAUSCwoDdGFnGBUgASgJEg0KBXZvaWNlGBYgASgJ",
|
||||
"Qg6qAgtOb3ZhLkNsaWVudGIGcHJvdG8z"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Nova.Client.Gacha), global::Nova.Client.Gacha.Parser, new[]{ "Id", "DefaultId", "DefaultQty", "CostId", "CostQty", "OncePreferred", "TenTimesPreferred", "LimitTimes", "ATypeUpShowProb", "BTypeUpShowProb", "StorageId", "StartTime", "EndTime", "Sort", "Icon", "Image", "UPCharacter", "UPOutfit", "Character", "Outfit", "Tag", "Voice" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
|
||||
public sealed partial class Gacha : pb::IMessage<Gacha>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Gacha> _parser = new pb::MessageParser<Gacha>(() => new Gacha());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Gacha> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Nova.Client.GachaReflection.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 Gacha() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Gacha(Gacha other) : this() {
|
||||
id_ = other.id_;
|
||||
defaultId_ = other.defaultId_;
|
||||
defaultQty_ = other.defaultQty_;
|
||||
costId_ = other.costId_;
|
||||
costQty_ = other.costQty_;
|
||||
oncePreferred_ = other.oncePreferred_;
|
||||
tenTimesPreferred_ = other.tenTimesPreferred_;
|
||||
limitTimes_ = other.limitTimes_;
|
||||
aTypeUpShowProb_ = other.aTypeUpShowProb_;
|
||||
bTypeUpShowProb_ = other.bTypeUpShowProb_;
|
||||
storageId_ = other.storageId_;
|
||||
startTime_ = other.startTime_;
|
||||
endTime_ = other.endTime_;
|
||||
sort_ = other.sort_;
|
||||
icon_ = other.icon_;
|
||||
image_ = other.image_;
|
||||
uPCharacter_ = other.uPCharacter_.Clone();
|
||||
uPOutfit_ = other.uPOutfit_.Clone();
|
||||
character_ = other.character_.Clone();
|
||||
outfit_ = other.outfit_.Clone();
|
||||
tag_ = other.tag_;
|
||||
voice_ = other.voice_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Gacha Clone() {
|
||||
return new Gacha(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "id" field.</summary>
|
||||
public const int IdFieldNumber = 1;
|
||||
private int id_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Id {
|
||||
get { return id_; }
|
||||
set {
|
||||
id_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "default_id" field.</summary>
|
||||
public const int DefaultIdFieldNumber = 2;
|
||||
private int defaultId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int DefaultId {
|
||||
get { return defaultId_; }
|
||||
set {
|
||||
defaultId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "default_qty" field.</summary>
|
||||
public const int DefaultQtyFieldNumber = 3;
|
||||
private int defaultQty_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int DefaultQty {
|
||||
get { return defaultQty_; }
|
||||
set {
|
||||
defaultQty_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "cost_id" field.</summary>
|
||||
public const int CostIdFieldNumber = 4;
|
||||
private int costId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CostId {
|
||||
get { return costId_; }
|
||||
set {
|
||||
costId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "cost_qty" field.</summary>
|
||||
public const int CostQtyFieldNumber = 5;
|
||||
private int costQty_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CostQty {
|
||||
get { return costQty_; }
|
||||
set {
|
||||
costQty_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "once_preferred" field.</summary>
|
||||
public const int OncePreferredFieldNumber = 6;
|
||||
private string oncePreferred_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string OncePreferred {
|
||||
get { return oncePreferred_; }
|
||||
set {
|
||||
oncePreferred_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "ten_times_preferred" field.</summary>
|
||||
public const int TenTimesPreferredFieldNumber = 7;
|
||||
private string tenTimesPreferred_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string TenTimesPreferred {
|
||||
get { return tenTimesPreferred_; }
|
||||
set {
|
||||
tenTimesPreferred_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "limit_times" field.</summary>
|
||||
public const int LimitTimesFieldNumber = 8;
|
||||
private int limitTimes_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int LimitTimes {
|
||||
get { return limitTimes_; }
|
||||
set {
|
||||
limitTimes_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "a_type_up_show_prob" field.</summary>
|
||||
public const int ATypeUpShowProbFieldNumber = 9;
|
||||
private int aTypeUpShowProb_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int ATypeUpShowProb {
|
||||
get { return aTypeUpShowProb_; }
|
||||
set {
|
||||
aTypeUpShowProb_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "b_type_up_show_prob" field.</summary>
|
||||
public const int BTypeUpShowProbFieldNumber = 10;
|
||||
private int bTypeUpShowProb_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int BTypeUpShowProb {
|
||||
get { return bTypeUpShowProb_; }
|
||||
set {
|
||||
bTypeUpShowProb_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "storage_id" field.</summary>
|
||||
public const int StorageIdFieldNumber = 11;
|
||||
private int storageId_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int StorageId {
|
||||
get { return storageId_; }
|
||||
set {
|
||||
storageId_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "start_time" field.</summary>
|
||||
public const int StartTimeFieldNumber = 12;
|
||||
private string startTime_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string StartTime {
|
||||
get { return startTime_; }
|
||||
set {
|
||||
startTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "end_time" field.</summary>
|
||||
public const int EndTimeFieldNumber = 13;
|
||||
private string endTime_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string EndTime {
|
||||
get { return endTime_; }
|
||||
set {
|
||||
endTime_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sort" field.</summary>
|
||||
public const int SortFieldNumber = 14;
|
||||
private int sort_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Sort {
|
||||
get { return sort_; }
|
||||
set {
|
||||
sort_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "icon" field.</summary>
|
||||
public const int IconFieldNumber = 15;
|
||||
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");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "image" field.</summary>
|
||||
public const int ImageFieldNumber = 16;
|
||||
private string image_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Image {
|
||||
get { return image_; }
|
||||
set {
|
||||
image_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "u_p_character" field.</summary>
|
||||
public const int UPCharacterFieldNumber = 17;
|
||||
private static readonly pb::FieldCodec<int> _repeated_uPCharacter_codec
|
||||
= pb::FieldCodec.ForInt32(138);
|
||||
private readonly pbc::RepeatedField<int> uPCharacter_ = new pbc::RepeatedField<int>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<int> UPCharacter {
|
||||
get { return uPCharacter_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "u_p_outfit" field.</summary>
|
||||
public const int UPOutfitFieldNumber = 18;
|
||||
private static readonly pb::FieldCodec<int> _repeated_uPOutfit_codec
|
||||
= pb::FieldCodec.ForInt32(146);
|
||||
private readonly pbc::RepeatedField<int> uPOutfit_ = new pbc::RepeatedField<int>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<int> UPOutfit {
|
||||
get { return uPOutfit_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "character" field.</summary>
|
||||
public const int CharacterFieldNumber = 19;
|
||||
private static readonly pb::FieldCodec<int> _repeated_character_codec
|
||||
= pb::FieldCodec.ForInt32(154);
|
||||
private readonly pbc::RepeatedField<int> character_ = new pbc::RepeatedField<int>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<int> Character {
|
||||
get { return character_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "outfit" field.</summary>
|
||||
public const int OutfitFieldNumber = 20;
|
||||
private static readonly pb::FieldCodec<int> _repeated_outfit_codec
|
||||
= pb::FieldCodec.ForInt32(162);
|
||||
private readonly pbc::RepeatedField<int> outfit_ = new pbc::RepeatedField<int>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<int> Outfit {
|
||||
get { return outfit_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "tag" field.</summary>
|
||||
public const int TagFieldNumber = 21;
|
||||
private string tag_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Tag {
|
||||
get { return tag_; }
|
||||
set {
|
||||
tag_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "voice" field.</summary>
|
||||
public const int VoiceFieldNumber = 22;
|
||||
private string voice_ = "";
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Voice {
|
||||
get { return voice_; }
|
||||
set {
|
||||
voice_ = 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 Gacha);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Gacha other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Id != other.Id) return false;
|
||||
if (DefaultId != other.DefaultId) return false;
|
||||
if (DefaultQty != other.DefaultQty) return false;
|
||||
if (CostId != other.CostId) return false;
|
||||
if (CostQty != other.CostQty) return false;
|
||||
if (OncePreferred != other.OncePreferred) return false;
|
||||
if (TenTimesPreferred != other.TenTimesPreferred) return false;
|
||||
if (LimitTimes != other.LimitTimes) return false;
|
||||
if (ATypeUpShowProb != other.ATypeUpShowProb) return false;
|
||||
if (BTypeUpShowProb != other.BTypeUpShowProb) return false;
|
||||
if (StorageId != other.StorageId) return false;
|
||||
if (StartTime != other.StartTime) return false;
|
||||
if (EndTime != other.EndTime) return false;
|
||||
if (Sort != other.Sort) return false;
|
||||
if (Icon != other.Icon) return false;
|
||||
if (Image != other.Image) return false;
|
||||
if(!uPCharacter_.Equals(other.uPCharacter_)) return false;
|
||||
if(!uPOutfit_.Equals(other.uPOutfit_)) return false;
|
||||
if(!character_.Equals(other.character_)) return false;
|
||||
if(!outfit_.Equals(other.outfit_)) return false;
|
||||
if (Tag != other.Tag) return false;
|
||||
if (Voice != other.Voice) 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 (DefaultId != 0) hash ^= DefaultId.GetHashCode();
|
||||
if (DefaultQty != 0) hash ^= DefaultQty.GetHashCode();
|
||||
if (CostId != 0) hash ^= CostId.GetHashCode();
|
||||
if (CostQty != 0) hash ^= CostQty.GetHashCode();
|
||||
if (OncePreferred.Length != 0) hash ^= OncePreferred.GetHashCode();
|
||||
if (TenTimesPreferred.Length != 0) hash ^= TenTimesPreferred.GetHashCode();
|
||||
if (LimitTimes != 0) hash ^= LimitTimes.GetHashCode();
|
||||
if (ATypeUpShowProb != 0) hash ^= ATypeUpShowProb.GetHashCode();
|
||||
if (BTypeUpShowProb != 0) hash ^= BTypeUpShowProb.GetHashCode();
|
||||
if (StorageId != 0) hash ^= StorageId.GetHashCode();
|
||||
if (StartTime.Length != 0) hash ^= StartTime.GetHashCode();
|
||||
if (EndTime.Length != 0) hash ^= EndTime.GetHashCode();
|
||||
if (Sort != 0) hash ^= Sort.GetHashCode();
|
||||
if (Icon.Length != 0) hash ^= Icon.GetHashCode();
|
||||
if (Image.Length != 0) hash ^= Image.GetHashCode();
|
||||
hash ^= uPCharacter_.GetHashCode();
|
||||
hash ^= uPOutfit_.GetHashCode();
|
||||
hash ^= character_.GetHashCode();
|
||||
hash ^= outfit_.GetHashCode();
|
||||
if (Tag.Length != 0) hash ^= Tag.GetHashCode();
|
||||
if (Voice.Length != 0) hash ^= Voice.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 (DefaultId != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(DefaultId);
|
||||
}
|
||||
if (DefaultQty != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(DefaultQty);
|
||||
}
|
||||
if (CostId != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(CostId);
|
||||
}
|
||||
if (CostQty != 0) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(CostQty);
|
||||
}
|
||||
if (OncePreferred.Length != 0) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteString(OncePreferred);
|
||||
}
|
||||
if (TenTimesPreferred.Length != 0) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(TenTimesPreferred);
|
||||
}
|
||||
if (LimitTimes != 0) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteInt32(LimitTimes);
|
||||
}
|
||||
if (ATypeUpShowProb != 0) {
|
||||
output.WriteRawTag(72);
|
||||
output.WriteInt32(ATypeUpShowProb);
|
||||
}
|
||||
if (BTypeUpShowProb != 0) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteInt32(BTypeUpShowProb);
|
||||
}
|
||||
if (StorageId != 0) {
|
||||
output.WriteRawTag(88);
|
||||
output.WriteInt32(StorageId);
|
||||
}
|
||||
if (StartTime.Length != 0) {
|
||||
output.WriteRawTag(98);
|
||||
output.WriteString(StartTime);
|
||||
}
|
||||
if (EndTime.Length != 0) {
|
||||
output.WriteRawTag(106);
|
||||
output.WriteString(EndTime);
|
||||
}
|
||||
if (Sort != 0) {
|
||||
output.WriteRawTag(112);
|
||||
output.WriteInt32(Sort);
|
||||
}
|
||||
if (Icon.Length != 0) {
|
||||
output.WriteRawTag(122);
|
||||
output.WriteString(Icon);
|
||||
}
|
||||
if (Image.Length != 0) {
|
||||
output.WriteRawTag(130, 1);
|
||||
output.WriteString(Image);
|
||||
}
|
||||
uPCharacter_.WriteTo(output, _repeated_uPCharacter_codec);
|
||||
uPOutfit_.WriteTo(output, _repeated_uPOutfit_codec);
|
||||
character_.WriteTo(output, _repeated_character_codec);
|
||||
outfit_.WriteTo(output, _repeated_outfit_codec);
|
||||
if (Tag.Length != 0) {
|
||||
output.WriteRawTag(170, 1);
|
||||
output.WriteString(Tag);
|
||||
}
|
||||
if (Voice.Length != 0) {
|
||||
output.WriteRawTag(178, 1);
|
||||
output.WriteString(Voice);
|
||||
}
|
||||
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 (DefaultId != 0) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(DefaultId);
|
||||
}
|
||||
if (DefaultQty != 0) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(DefaultQty);
|
||||
}
|
||||
if (CostId != 0) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteInt32(CostId);
|
||||
}
|
||||
if (CostQty != 0) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteInt32(CostQty);
|
||||
}
|
||||
if (OncePreferred.Length != 0) {
|
||||
output.WriteRawTag(50);
|
||||
output.WriteString(OncePreferred);
|
||||
}
|
||||
if (TenTimesPreferred.Length != 0) {
|
||||
output.WriteRawTag(58);
|
||||
output.WriteString(TenTimesPreferred);
|
||||
}
|
||||
if (LimitTimes != 0) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteInt32(LimitTimes);
|
||||
}
|
||||
if (ATypeUpShowProb != 0) {
|
||||
output.WriteRawTag(72);
|
||||
output.WriteInt32(ATypeUpShowProb);
|
||||
}
|
||||
if (BTypeUpShowProb != 0) {
|
||||
output.WriteRawTag(80);
|
||||
output.WriteInt32(BTypeUpShowProb);
|
||||
}
|
||||
if (StorageId != 0) {
|
||||
output.WriteRawTag(88);
|
||||
output.WriteInt32(StorageId);
|
||||
}
|
||||
if (StartTime.Length != 0) {
|
||||
output.WriteRawTag(98);
|
||||
output.WriteString(StartTime);
|
||||
}
|
||||
if (EndTime.Length != 0) {
|
||||
output.WriteRawTag(106);
|
||||
output.WriteString(EndTime);
|
||||
}
|
||||
if (Sort != 0) {
|
||||
output.WriteRawTag(112);
|
||||
output.WriteInt32(Sort);
|
||||
}
|
||||
if (Icon.Length != 0) {
|
||||
output.WriteRawTag(122);
|
||||
output.WriteString(Icon);
|
||||
}
|
||||
if (Image.Length != 0) {
|
||||
output.WriteRawTag(130, 1);
|
||||
output.WriteString(Image);
|
||||
}
|
||||
uPCharacter_.WriteTo(ref output, _repeated_uPCharacter_codec);
|
||||
uPOutfit_.WriteTo(ref output, _repeated_uPOutfit_codec);
|
||||
character_.WriteTo(ref output, _repeated_character_codec);
|
||||
outfit_.WriteTo(ref output, _repeated_outfit_codec);
|
||||
if (Tag.Length != 0) {
|
||||
output.WriteRawTag(170, 1);
|
||||
output.WriteString(Tag);
|
||||
}
|
||||
if (Voice.Length != 0) {
|
||||
output.WriteRawTag(178, 1);
|
||||
output.WriteString(Voice);
|
||||
}
|
||||
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 (DefaultId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultId);
|
||||
}
|
||||
if (DefaultQty != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(DefaultQty);
|
||||
}
|
||||
if (CostId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CostId);
|
||||
}
|
||||
if (CostQty != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CostQty);
|
||||
}
|
||||
if (OncePreferred.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(OncePreferred);
|
||||
}
|
||||
if (TenTimesPreferred.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(TenTimesPreferred);
|
||||
}
|
||||
if (LimitTimes != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LimitTimes);
|
||||
}
|
||||
if (ATypeUpShowProb != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ATypeUpShowProb);
|
||||
}
|
||||
if (BTypeUpShowProb != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(BTypeUpShowProb);
|
||||
}
|
||||
if (StorageId != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(StorageId);
|
||||
}
|
||||
if (StartTime.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(StartTime);
|
||||
}
|
||||
if (EndTime.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(EndTime);
|
||||
}
|
||||
if (Sort != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Sort);
|
||||
}
|
||||
if (Icon.Length != 0) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Icon);
|
||||
}
|
||||
if (Image.Length != 0) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeStringSize(Image);
|
||||
}
|
||||
size += uPCharacter_.CalculateSize(_repeated_uPCharacter_codec);
|
||||
size += uPOutfit_.CalculateSize(_repeated_uPOutfit_codec);
|
||||
size += character_.CalculateSize(_repeated_character_codec);
|
||||
size += outfit_.CalculateSize(_repeated_outfit_codec);
|
||||
if (Tag.Length != 0) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeStringSize(Tag);
|
||||
}
|
||||
if (Voice.Length != 0) {
|
||||
size += 2 + pb::CodedOutputStream.ComputeStringSize(Voice);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(Gacha other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.Id != 0) {
|
||||
Id = other.Id;
|
||||
}
|
||||
if (other.DefaultId != 0) {
|
||||
DefaultId = other.DefaultId;
|
||||
}
|
||||
if (other.DefaultQty != 0) {
|
||||
DefaultQty = other.DefaultQty;
|
||||
}
|
||||
if (other.CostId != 0) {
|
||||
CostId = other.CostId;
|
||||
}
|
||||
if (other.CostQty != 0) {
|
||||
CostQty = other.CostQty;
|
||||
}
|
||||
if (other.OncePreferred.Length != 0) {
|
||||
OncePreferred = other.OncePreferred;
|
||||
}
|
||||
if (other.TenTimesPreferred.Length != 0) {
|
||||
TenTimesPreferred = other.TenTimesPreferred;
|
||||
}
|
||||
if (other.LimitTimes != 0) {
|
||||
LimitTimes = other.LimitTimes;
|
||||
}
|
||||
if (other.ATypeUpShowProb != 0) {
|
||||
ATypeUpShowProb = other.ATypeUpShowProb;
|
||||
}
|
||||
if (other.BTypeUpShowProb != 0) {
|
||||
BTypeUpShowProb = other.BTypeUpShowProb;
|
||||
}
|
||||
if (other.StorageId != 0) {
|
||||
StorageId = other.StorageId;
|
||||
}
|
||||
if (other.StartTime.Length != 0) {
|
||||
StartTime = other.StartTime;
|
||||
}
|
||||
if (other.EndTime.Length != 0) {
|
||||
EndTime = other.EndTime;
|
||||
}
|
||||
if (other.Sort != 0) {
|
||||
Sort = other.Sort;
|
||||
}
|
||||
if (other.Icon.Length != 0) {
|
||||
Icon = other.Icon;
|
||||
}
|
||||
if (other.Image.Length != 0) {
|
||||
Image = other.Image;
|
||||
}
|
||||
uPCharacter_.Add(other.uPCharacter_);
|
||||
uPOutfit_.Add(other.uPOutfit_);
|
||||
character_.Add(other.character_);
|
||||
outfit_.Add(other.outfit_);
|
||||
if (other.Tag.Length != 0) {
|
||||
Tag = other.Tag;
|
||||
}
|
||||
if (other.Voice.Length != 0) {
|
||||
Voice = other.Voice;
|
||||
}
|
||||
_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;
|
||||
}
|
||||
case 16: {
|
||||
DefaultId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
DefaultQty = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
CostId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
CostQty = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
OncePreferred = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
TenTimesPreferred = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
LimitTimes = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
ATypeUpShowProb = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
BTypeUpShowProb = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
StorageId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
StartTime = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 106: {
|
||||
EndTime = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
Sort = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 122: {
|
||||
Icon = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 130: {
|
||||
Image = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 138:
|
||||
case 136: {
|
||||
uPCharacter_.AddEntriesFrom(input, _repeated_uPCharacter_codec);
|
||||
break;
|
||||
}
|
||||
case 146:
|
||||
case 144: {
|
||||
uPOutfit_.AddEntriesFrom(input, _repeated_uPOutfit_codec);
|
||||
break;
|
||||
}
|
||||
case 154:
|
||||
case 152: {
|
||||
character_.AddEntriesFrom(input, _repeated_character_codec);
|
||||
break;
|
||||
}
|
||||
case 162:
|
||||
case 160: {
|
||||
outfit_.AddEntriesFrom(input, _repeated_outfit_codec);
|
||||
break;
|
||||
}
|
||||
case 170: {
|
||||
Tag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 178: {
|
||||
Voice = 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: {
|
||||
Id = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
DefaultId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
DefaultQty = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
CostId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
CostQty = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 50: {
|
||||
OncePreferred = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 58: {
|
||||
TenTimesPreferred = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
LimitTimes = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 72: {
|
||||
ATypeUpShowProb = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 80: {
|
||||
BTypeUpShowProb = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 88: {
|
||||
StorageId = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 98: {
|
||||
StartTime = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 106: {
|
||||
EndTime = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 112: {
|
||||
Sort = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 122: {
|
||||
Icon = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 130: {
|
||||
Image = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 138:
|
||||
case 136: {
|
||||
uPCharacter_.AddEntriesFrom(ref input, _repeated_uPCharacter_codec);
|
||||
break;
|
||||
}
|
||||
case 146:
|
||||
case 144: {
|
||||
uPOutfit_.AddEntriesFrom(ref input, _repeated_uPOutfit_codec);
|
||||
break;
|
||||
}
|
||||
case 154:
|
||||
case 152: {
|
||||
character_.AddEntriesFrom(ref input, _repeated_character_codec);
|
||||
break;
|
||||
}
|
||||
case 162:
|
||||
case 160: {
|
||||
outfit_.AddEntriesFrom(ref input, _repeated_outfit_codec);
|
||||
break;
|
||||
}
|
||||
case 170: {
|
||||
Tag = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 178: {
|
||||
Voice = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
Reference in New Issue
Block a user