...
1// automatically generated by the FlatBuffers compiler, do not modify
2
3package NamespaceA.NamespaceB;
4
5import com.google.flatbuffers.FlatBufferBuilder;
6
7public class UnionInNestedNSUnion {
8 private byte type;
9 private Object value;
10
11 public byte getType() { return type; }
12
13 public void setType(byte type) { this.type = type; }
14
15 public Object getValue() { return value; }
16
17 public void setValue(Object value) { this.value = value; }
18
19 public UnionInNestedNSUnion() {
20 this.type = UnionInNestedNS.NONE;
21 this.value = null;
22 }
23
24 public NamespaceA.NamespaceB.TableInNestedNST asTableInNestedNS() { return (NamespaceA.NamespaceB.TableInNestedNST) value; }
25
26 public static int pack(FlatBufferBuilder builder, UnionInNestedNSUnion _o) {
27 switch (_o.type) {
28 case UnionInNestedNS.TableInNestedNS: return NamespaceA.NamespaceB.TableInNestedNS.pack(builder, _o.asTableInNestedNS());
29 default: return 0;
30 }
31 }
32}
33
View as plain text