blob: 06804c78a3d2a50c265fd6984f47ab84afaef71f [file] [log] [blame]
James Kuszmaul8e62b022022-03-22 09:33:25 -07001// automatically generated by the FlatBuffers compiler, do not modify
2
3package MyGame.Example;
4
5import java.nio.*;
6import java.lang.*;
7import java.util.*;
8import com.google.flatbuffers.*;
9
10public class MonsterT {
11 private MyGame.Example.Vec3T pos;
12 private short mana;
13 private short hp;
14 private String name;
15 private int[] inventory;
16 private int color;
17 private MyGame.Example.AnyUnion test;
18 private MyGame.Example.TestT[] test4;
19 private String[] testarrayofstring;
20 private MyGame.Example.MonsterT[] testarrayoftables;
21 private MyGame.Example.MonsterT enemy;
22 private int[] testnestedflatbuffer;
23 private MyGame.Example.StatT testempty;
24 private boolean testbool;
25 private int testhashs32Fnv1;
26 private long testhashu32Fnv1;
27 private long testhashs64Fnv1;
28 private long testhashu64Fnv1;
29 private int testhashs32Fnv1a;
30 private long testhashu32Fnv1a;
31 private long testhashs64Fnv1a;
32 private long testhashu64Fnv1a;
33 private boolean[] testarrayofbools;
34 private float testf;
35 private float testf2;
36 private float testf3;
37 private String[] testarrayofstring2;
38 private MyGame.Example.AbilityT[] testarrayofsortedstruct;
39 private int[] flex;
40 private MyGame.Example.TestT[] test5;
41 private long[] vectorOfLongs;
42 private double[] vectorOfDoubles;
43 private MyGame.InParentNamespaceT parentNamespaceTest;
44 private MyGame.Example.ReferrableT[] vectorOfReferrables;
45 private long singleWeakReference;
46 private long[] vectorOfWeakReferences;
47 private MyGame.Example.ReferrableT[] vectorOfStrongReferrables;
48 private long coOwningReference;
49 private long[] vectorOfCoOwningReferences;
50 private long nonOwningReference;
51 private long[] vectorOfNonOwningReferences;
52 private MyGame.Example.AnyUniqueAliasesUnion anyUnique;
53 private MyGame.Example.AnyAmbiguousAliasesUnion anyAmbiguous;
54 private int[] vectorOfEnums;
55 private byte signedEnum;
56 private int[] testrequirednestedflatbuffer;
57 private MyGame.Example.StatT[] scalarKeySortedTables;
58 private MyGame.Example.TestT nativeInline;
59 private long longEnumNonEnumDefault;
60 private long longEnumNormalDefault;
61
62 public MyGame.Example.Vec3T getPos() { return pos; }
63
64 public void setPos(MyGame.Example.Vec3T pos) { this.pos = pos; }
65
66 public short getMana() { return mana; }
67
68 public void setMana(short mana) { this.mana = mana; }
69
70 public short getHp() { return hp; }
71
72 public void setHp(short hp) { this.hp = hp; }
73
74 public String getName() { return name; }
75
76 public void setName(String name) { this.name = name; }
77
78 public int[] getInventory() { return inventory; }
79
80 public void setInventory(int[] inventory) { this.inventory = inventory; }
81
82 public int getColor() { return color; }
83
84 public void setColor(int color) { this.color = color; }
85
86 public MyGame.Example.AnyUnion getTest() { return test; }
87
88 public void setTest(MyGame.Example.AnyUnion test) { this.test = test; }
89
90 public MyGame.Example.TestT[] getTest4() { return test4; }
91
92 public void setTest4(MyGame.Example.TestT[] test4) { this.test4 = test4; }
93
94 public String[] getTestarrayofstring() { return testarrayofstring; }
95
96 public void setTestarrayofstring(String[] testarrayofstring) { this.testarrayofstring = testarrayofstring; }
97
98 public MyGame.Example.MonsterT[] getTestarrayoftables() { return testarrayoftables; }
99
100 public void setTestarrayoftables(MyGame.Example.MonsterT[] testarrayoftables) { this.testarrayoftables = testarrayoftables; }
101
102 public MyGame.Example.MonsterT getEnemy() { return enemy; }
103
104 public void setEnemy(MyGame.Example.MonsterT enemy) { this.enemy = enemy; }
105
106 public int[] getTestnestedflatbuffer() { return testnestedflatbuffer; }
107
108 public void setTestnestedflatbuffer(int[] testnestedflatbuffer) { this.testnestedflatbuffer = testnestedflatbuffer; }
109
110 public MyGame.Example.StatT getTestempty() { return testempty; }
111
112 public void setTestempty(MyGame.Example.StatT testempty) { this.testempty = testempty; }
113
114 public boolean getTestbool() { return testbool; }
115
116 public void setTestbool(boolean testbool) { this.testbool = testbool; }
117
118 public int getTesthashs32Fnv1() { return testhashs32Fnv1; }
119
120 public void setTesthashs32Fnv1(int testhashs32Fnv1) { this.testhashs32Fnv1 = testhashs32Fnv1; }
121
122 public long getTesthashu32Fnv1() { return testhashu32Fnv1; }
123
124 public void setTesthashu32Fnv1(long testhashu32Fnv1) { this.testhashu32Fnv1 = testhashu32Fnv1; }
125
126 public long getTesthashs64Fnv1() { return testhashs64Fnv1; }
127
128 public void setTesthashs64Fnv1(long testhashs64Fnv1) { this.testhashs64Fnv1 = testhashs64Fnv1; }
129
130 public long getTesthashu64Fnv1() { return testhashu64Fnv1; }
131
132 public void setTesthashu64Fnv1(long testhashu64Fnv1) { this.testhashu64Fnv1 = testhashu64Fnv1; }
133
134 public int getTesthashs32Fnv1a() { return testhashs32Fnv1a; }
135
136 public void setTesthashs32Fnv1a(int testhashs32Fnv1a) { this.testhashs32Fnv1a = testhashs32Fnv1a; }
137
138 public long getTesthashu32Fnv1a() { return testhashu32Fnv1a; }
139
140 public void setTesthashu32Fnv1a(long testhashu32Fnv1a) { this.testhashu32Fnv1a = testhashu32Fnv1a; }
141
142 public long getTesthashs64Fnv1a() { return testhashs64Fnv1a; }
143
144 public void setTesthashs64Fnv1a(long testhashs64Fnv1a) { this.testhashs64Fnv1a = testhashs64Fnv1a; }
145
146 public long getTesthashu64Fnv1a() { return testhashu64Fnv1a; }
147
148 public void setTesthashu64Fnv1a(long testhashu64Fnv1a) { this.testhashu64Fnv1a = testhashu64Fnv1a; }
149
150 public boolean[] getTestarrayofbools() { return testarrayofbools; }
151
152 public void setTestarrayofbools(boolean[] testarrayofbools) { this.testarrayofbools = testarrayofbools; }
153
154 public float getTestf() { return testf; }
155
156 public void setTestf(float testf) { this.testf = testf; }
157
158 public float getTestf2() { return testf2; }
159
160 public void setTestf2(float testf2) { this.testf2 = testf2; }
161
162 public float getTestf3() { return testf3; }
163
164 public void setTestf3(float testf3) { this.testf3 = testf3; }
165
166 public String[] getTestarrayofstring2() { return testarrayofstring2; }
167
168 public void setTestarrayofstring2(String[] testarrayofstring2) { this.testarrayofstring2 = testarrayofstring2; }
169
170 public MyGame.Example.AbilityT[] getTestarrayofsortedstruct() { return testarrayofsortedstruct; }
171
172 public void setTestarrayofsortedstruct(MyGame.Example.AbilityT[] testarrayofsortedstruct) { this.testarrayofsortedstruct = testarrayofsortedstruct; }
173
174 public int[] getFlex() { return flex; }
175
176 public void setFlex(int[] flex) { this.flex = flex; }
177
178 public MyGame.Example.TestT[] getTest5() { return test5; }
179
180 public void setTest5(MyGame.Example.TestT[] test5) { this.test5 = test5; }
181
182 public long[] getVectorOfLongs() { return vectorOfLongs; }
183
184 public void setVectorOfLongs(long[] vectorOfLongs) { this.vectorOfLongs = vectorOfLongs; }
185
186 public double[] getVectorOfDoubles() { return vectorOfDoubles; }
187
188 public void setVectorOfDoubles(double[] vectorOfDoubles) { this.vectorOfDoubles = vectorOfDoubles; }
189
190 public MyGame.InParentNamespaceT getParentNamespaceTest() { return parentNamespaceTest; }
191
192 public void setParentNamespaceTest(MyGame.InParentNamespaceT parentNamespaceTest) { this.parentNamespaceTest = parentNamespaceTest; }
193
194 public MyGame.Example.ReferrableT[] getVectorOfReferrables() { return vectorOfReferrables; }
195
196 public void setVectorOfReferrables(MyGame.Example.ReferrableT[] vectorOfReferrables) { this.vectorOfReferrables = vectorOfReferrables; }
197
198 public long getSingleWeakReference() { return singleWeakReference; }
199
200 public void setSingleWeakReference(long singleWeakReference) { this.singleWeakReference = singleWeakReference; }
201
202 public long[] getVectorOfWeakReferences() { return vectorOfWeakReferences; }
203
204 public void setVectorOfWeakReferences(long[] vectorOfWeakReferences) { this.vectorOfWeakReferences = vectorOfWeakReferences; }
205
206 public MyGame.Example.ReferrableT[] getVectorOfStrongReferrables() { return vectorOfStrongReferrables; }
207
208 public void setVectorOfStrongReferrables(MyGame.Example.ReferrableT[] vectorOfStrongReferrables) { this.vectorOfStrongReferrables = vectorOfStrongReferrables; }
209
210 public long getCoOwningReference() { return coOwningReference; }
211
212 public void setCoOwningReference(long coOwningReference) { this.coOwningReference = coOwningReference; }
213
214 public long[] getVectorOfCoOwningReferences() { return vectorOfCoOwningReferences; }
215
216 public void setVectorOfCoOwningReferences(long[] vectorOfCoOwningReferences) { this.vectorOfCoOwningReferences = vectorOfCoOwningReferences; }
217
218 public long getNonOwningReference() { return nonOwningReference; }
219
220 public void setNonOwningReference(long nonOwningReference) { this.nonOwningReference = nonOwningReference; }
221
222 public long[] getVectorOfNonOwningReferences() { return vectorOfNonOwningReferences; }
223
224 public void setVectorOfNonOwningReferences(long[] vectorOfNonOwningReferences) { this.vectorOfNonOwningReferences = vectorOfNonOwningReferences; }
225
226 public MyGame.Example.AnyUniqueAliasesUnion getAnyUnique() { return anyUnique; }
227
228 public void setAnyUnique(MyGame.Example.AnyUniqueAliasesUnion anyUnique) { this.anyUnique = anyUnique; }
229
230 public MyGame.Example.AnyAmbiguousAliasesUnion getAnyAmbiguous() { return anyAmbiguous; }
231
232 public void setAnyAmbiguous(MyGame.Example.AnyAmbiguousAliasesUnion anyAmbiguous) { this.anyAmbiguous = anyAmbiguous; }
233
234 public int[] getVectorOfEnums() { return vectorOfEnums; }
235
236 public void setVectorOfEnums(int[] vectorOfEnums) { this.vectorOfEnums = vectorOfEnums; }
237
238 public byte getSignedEnum() { return signedEnum; }
239
240 public void setSignedEnum(byte signedEnum) { this.signedEnum = signedEnum; }
241
242 public int[] getTestrequirednestedflatbuffer() { return testrequirednestedflatbuffer; }
243
244 public void setTestrequirednestedflatbuffer(int[] testrequirednestedflatbuffer) { this.testrequirednestedflatbuffer = testrequirednestedflatbuffer; }
245
246 public MyGame.Example.StatT[] getScalarKeySortedTables() { return scalarKeySortedTables; }
247
248 public void setScalarKeySortedTables(MyGame.Example.StatT[] scalarKeySortedTables) { this.scalarKeySortedTables = scalarKeySortedTables; }
249
250 public MyGame.Example.TestT getNativeInline() { return nativeInline; }
251
252 public void setNativeInline(MyGame.Example.TestT nativeInline) { this.nativeInline = nativeInline; }
253
254 public long getLongEnumNonEnumDefault() { return longEnumNonEnumDefault; }
255
256 public void setLongEnumNonEnumDefault(long longEnumNonEnumDefault) { this.longEnumNonEnumDefault = longEnumNonEnumDefault; }
257
258 public long getLongEnumNormalDefault() { return longEnumNormalDefault; }
259
260 public void setLongEnumNormalDefault(long longEnumNormalDefault) { this.longEnumNormalDefault = longEnumNormalDefault; }
261
262
263 public MonsterT() {
264 this.pos = new MyGame.Example.Vec3T();
265 this.mana = 150;
266 this.hp = 100;
267 this.name = null;
268 this.inventory = null;
269 this.color = 8;
270 this.test = null;
271 this.test4 = null;
272 this.testarrayofstring = null;
273 this.testarrayoftables = null;
274 this.enemy = null;
275 this.testnestedflatbuffer = null;
276 this.testempty = null;
277 this.testbool = false;
278 this.testhashs32Fnv1 = 0;
279 this.testhashu32Fnv1 = 0L;
280 this.testhashs64Fnv1 = 0L;
281 this.testhashu64Fnv1 = 0L;
282 this.testhashs32Fnv1a = 0;
283 this.testhashu32Fnv1a = 0L;
284 this.testhashs64Fnv1a = 0L;
285 this.testhashu64Fnv1a = 0L;
286 this.testarrayofbools = null;
287 this.testf = 3.14159f;
288 this.testf2 = 3.0f;
289 this.testf3 = 0.0f;
290 this.testarrayofstring2 = null;
291 this.testarrayofsortedstruct = null;
292 this.flex = null;
293 this.test5 = null;
294 this.vectorOfLongs = null;
295 this.vectorOfDoubles = null;
296 this.parentNamespaceTest = null;
297 this.vectorOfReferrables = null;
298 this.singleWeakReference = 0L;
299 this.vectorOfWeakReferences = null;
300 this.vectorOfStrongReferrables = null;
301 this.coOwningReference = 0L;
302 this.vectorOfCoOwningReferences = null;
303 this.nonOwningReference = 0L;
304 this.vectorOfNonOwningReferences = null;
305 this.anyUnique = null;
306 this.anyAmbiguous = null;
307 this.vectorOfEnums = null;
308 this.signedEnum = -1;
309 this.testrequirednestedflatbuffer = null;
310 this.scalarKeySortedTables = null;
311 this.nativeInline = new MyGame.Example.TestT();
312 this.longEnumNonEnumDefault = 0L;
313 this.longEnumNormalDefault = 2L;
314 }
315 public static MonsterT deserializeFromBinary(byte[] fbBuffer) {
316 return Monster.getRootAsMonster(ByteBuffer.wrap(fbBuffer)).unpack();
317 }
318 public byte[] serializeToBinary() {
319 FlatBufferBuilder fbb = new FlatBufferBuilder();
320 Monster.finishMonsterBuffer(fbb, Monster.pack(fbb, this));
321 return fbb.sizedByteArray();
322 }
323}
324