2024-04-21 00:21:57 +00:00
|
|
|
// <auto-generated>
|
|
|
|
// automatically generated by the FlatBuffers compiler, do not modify
|
|
|
|
// </auto-generated>
|
|
|
|
|
|
|
|
namespace SCHALE.Common.FlatData
|
|
|
|
{
|
|
|
|
|
|
|
|
using global::System;
|
|
|
|
using global::System.Collections.Generic;
|
2024-04-29 15:52:45 +00:00
|
|
|
using global::SCHALE.Common.Crypto;
|
2024-04-21 00:21:57 +00:00
|
|
|
using global::Google.FlatBuffers;
|
|
|
|
|
|
|
|
public struct ContentEnterCostReduceExcel : IFlatbufferObject
|
|
|
|
{
|
|
|
|
private Table __p;
|
|
|
|
public ByteBuffer ByteBuffer { get { return __p.bb; } }
|
|
|
|
public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); }
|
|
|
|
public static ContentEnterCostReduceExcel GetRootAsContentEnterCostReduceExcel(ByteBuffer _bb) { return GetRootAsContentEnterCostReduceExcel(_bb, new ContentEnterCostReduceExcel()); }
|
|
|
|
public static ContentEnterCostReduceExcel GetRootAsContentEnterCostReduceExcel(ByteBuffer _bb, ContentEnterCostReduceExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); }
|
|
|
|
public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); }
|
|
|
|
public ContentEnterCostReduceExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; }
|
|
|
|
|
|
|
|
public long EnterCostReduceGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-12-29 16:52:25 +00:00
|
|
|
public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public long StageId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
2024-12-29 16:52:25 +00:00
|
|
|
public SCHALE.Common.FlatData.ParcelType ReduceEnterCostType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } }
|
2024-04-21 00:21:57 +00:00
|
|
|
public long ReduceEnterCostId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
public long ReduceAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } }
|
|
|
|
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ContentEnterCostReduceExcel> CreateContentEnterCostReduceExcel(FlatBufferBuilder builder,
|
|
|
|
long EnterCostReduceGroupId = 0,
|
2024-12-29 16:52:25 +00:00
|
|
|
SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_,
|
2024-04-21 00:21:57 +00:00
|
|
|
long StageId = 0,
|
2024-12-29 16:52:25 +00:00
|
|
|
SCHALE.Common.FlatData.ParcelType ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None_,
|
2024-04-21 00:21:57 +00:00
|
|
|
long ReduceEnterCostId = 0,
|
|
|
|
long ReduceAmount = 0) {
|
|
|
|
builder.StartTable(6);
|
|
|
|
ContentEnterCostReduceExcel.AddReduceAmount(builder, ReduceAmount);
|
|
|
|
ContentEnterCostReduceExcel.AddReduceEnterCostId(builder, ReduceEnterCostId);
|
|
|
|
ContentEnterCostReduceExcel.AddStageId(builder, StageId);
|
|
|
|
ContentEnterCostReduceExcel.AddEnterCostReduceGroupId(builder, EnterCostReduceGroupId);
|
|
|
|
ContentEnterCostReduceExcel.AddReduceEnterCostType(builder, ReduceEnterCostType);
|
2024-11-08 10:52:05 +00:00
|
|
|
ContentEnterCostReduceExcel.AddContentType_(builder, ContentType_);
|
2024-04-21 00:21:57 +00:00
|
|
|
return ContentEnterCostReduceExcel.EndContentEnterCostReduceExcel(builder);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void StartContentEnterCostReduceExcel(FlatBufferBuilder builder) { builder.StartTable(6); }
|
|
|
|
public static void AddEnterCostReduceGroupId(FlatBufferBuilder builder, long enterCostReduceGroupId) { builder.AddLong(0, enterCostReduceGroupId, 0); }
|
2024-11-08 10:52:05 +00:00
|
|
|
public static void AddContentType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ContentType contentType_) { builder.AddInt(1, (int)contentType_, 0); }
|
2024-04-21 00:21:57 +00:00
|
|
|
public static void AddStageId(FlatBufferBuilder builder, long stageId) { builder.AddLong(2, stageId, 0); }
|
|
|
|
public static void AddReduceEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType reduceEnterCostType) { builder.AddInt(3, (int)reduceEnterCostType, 0); }
|
|
|
|
public static void AddReduceEnterCostId(FlatBufferBuilder builder, long reduceEnterCostId) { builder.AddLong(4, reduceEnterCostId, 0); }
|
|
|
|
public static void AddReduceAmount(FlatBufferBuilder builder, long reduceAmount) { builder.AddLong(5, reduceAmount, 0); }
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ContentEnterCostReduceExcel> EndContentEnterCostReduceExcel(FlatBufferBuilder builder) {
|
|
|
|
int o = builder.EndTable();
|
|
|
|
return new Offset<SCHALE.Common.FlatData.ContentEnterCostReduceExcel>(o);
|
|
|
|
}
|
2024-04-29 15:52:45 +00:00
|
|
|
public ContentEnterCostReduceExcelT UnPack() {
|
|
|
|
var _o = new ContentEnterCostReduceExcelT();
|
|
|
|
this.UnPackTo(_o);
|
|
|
|
return _o;
|
|
|
|
}
|
|
|
|
public void UnPackTo(ContentEnterCostReduceExcelT _o) {
|
|
|
|
byte[] key = TableEncryptionService.CreateKey("ContentEnterCostReduce");
|
|
|
|
_o.EnterCostReduceGroupId = TableEncryptionService.Convert(this.EnterCostReduceGroupId, key);
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.ContentType_ = TableEncryptionService.Convert(this.ContentType_, key);
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.StageId = TableEncryptionService.Convert(this.StageId, key);
|
|
|
|
_o.ReduceEnterCostType = TableEncryptionService.Convert(this.ReduceEnterCostType, key);
|
|
|
|
_o.ReduceEnterCostId = TableEncryptionService.Convert(this.ReduceEnterCostId, key);
|
|
|
|
_o.ReduceAmount = TableEncryptionService.Convert(this.ReduceAmount, key);
|
|
|
|
}
|
|
|
|
public static Offset<SCHALE.Common.FlatData.ContentEnterCostReduceExcel> Pack(FlatBufferBuilder builder, ContentEnterCostReduceExcelT _o) {
|
|
|
|
if (_o == null) return default(Offset<SCHALE.Common.FlatData.ContentEnterCostReduceExcel>);
|
|
|
|
return CreateContentEnterCostReduceExcel(
|
|
|
|
builder,
|
|
|
|
_o.EnterCostReduceGroupId,
|
2024-11-08 10:52:05 +00:00
|
|
|
_o.ContentType_,
|
2024-04-29 15:52:45 +00:00
|
|
|
_o.StageId,
|
|
|
|
_o.ReduceEnterCostType,
|
|
|
|
_o.ReduceEnterCostId,
|
|
|
|
_o.ReduceAmount);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class ContentEnterCostReduceExcelT
|
|
|
|
{
|
|
|
|
public long EnterCostReduceGroupId { get; set; }
|
2024-11-08 10:52:05 +00:00
|
|
|
public SCHALE.Common.FlatData.ContentType ContentType_ { get; set; }
|
2024-04-29 15:52:45 +00:00
|
|
|
public long StageId { get; set; }
|
|
|
|
public SCHALE.Common.FlatData.ParcelType ReduceEnterCostType { get; set; }
|
|
|
|
public long ReduceEnterCostId { get; set; }
|
|
|
|
public long ReduceAmount { get; set; }
|
|
|
|
|
|
|
|
public ContentEnterCostReduceExcelT() {
|
|
|
|
this.EnterCostReduceGroupId = 0;
|
2024-12-29 16:52:25 +00:00
|
|
|
this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.StageId = 0;
|
2024-12-29 16:52:25 +00:00
|
|
|
this.ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None_;
|
2024-04-29 15:52:45 +00:00
|
|
|
this.ReduceEnterCostId = 0;
|
|
|
|
this.ReduceAmount = 0;
|
|
|
|
}
|
2024-04-21 00:21:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static public class ContentEnterCostReduceExcelVerify
|
|
|
|
{
|
|
|
|
static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos)
|
|
|
|
{
|
|
|
|
return verifier.VerifyTableStart(tablePos)
|
|
|
|
&& verifier.VerifyField(tablePos, 4 /*EnterCostReduceGroupId*/, 8 /*long*/, 8, false)
|
2024-11-08 10:52:05 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 6 /*ContentType_*/, 4 /*SCHALE.Common.FlatData.ContentType*/, 4, false)
|
2024-04-21 00:21:57 +00:00
|
|
|
&& verifier.VerifyField(tablePos, 8 /*StageId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 10 /*ReduceEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 12 /*ReduceEnterCostId*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyField(tablePos, 14 /*ReduceAmount*/, 8 /*long*/, 8, false)
|
|
|
|
&& verifier.VerifyTableEnd(tablePos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|