public static Offset <CatapultUpgradeTransactionBuffer> CreateCatapultUpgradeTransactionBuffer(FlatBufferBuilder builder,
                                                                                                uint size = 0,
                                                                                                VectorOffset signatureOffset = default(VectorOffset),
                                                                                                VectorOffset signerOffset    = default(VectorOffset),
                                                                                                uint version = 0,
                                                                                                ushort type  = 0,
                                                                                                VectorOffset maxFeeOffset             = default(VectorOffset),
                                                                                                VectorOffset deadlineOffset           = default(VectorOffset),
                                                                                                VectorOffset upgradePeriodOffset      = default(VectorOffset),
                                                                                                VectorOffset newCatapultVersionOffset = default(VectorOffset))
 {
     builder.StartObject(9);
     CatapultUpgradeTransactionBuffer.AddNewCatapultVersion(builder, newCatapultVersionOffset);
     CatapultUpgradeTransactionBuffer.AddUpgradePeriod(builder, upgradePeriodOffset);
     CatapultUpgradeTransactionBuffer.AddDeadline(builder, deadlineOffset);
     CatapultUpgradeTransactionBuffer.AddMaxFee(builder, maxFeeOffset);
     CatapultUpgradeTransactionBuffer.AddVersion(builder, version);
     CatapultUpgradeTransactionBuffer.AddSigner(builder, signerOffset);
     CatapultUpgradeTransactionBuffer.AddSignature(builder, signatureOffset);
     CatapultUpgradeTransactionBuffer.AddSize(builder, size);
     CatapultUpgradeTransactionBuffer.AddType(builder, type);
     return(CatapultUpgradeTransactionBuffer.EndCatapultUpgradeTransactionBuffer(builder));
 }
 public static CatapultUpgradeTransactionBuffer GetRootAsCatapultUpgradeTransactionBuffer(ByteBuffer _bb, CatapultUpgradeTransactionBuffer obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }