1 // automatically generated by the FlatBuffers compiler, do not modify 2 3 package NamespaceA.NamespaceB; 4 5 import com.google.flatbuffers.FlatBufferBuilder; 6 7 public class UnionInNestedNSUnion { 8 private byte type; 9 private Object value; 10 getType()11 public byte getType() { return type; } 12 setType(byte type)13 public void setType(byte type) { this.type = type; } 14 getValue()15 public Object getValue() { return value; } 16 setValue(Object value)17 public void setValue(Object value) { this.value = value; } 18 UnionInNestedNSUnion()19 public UnionInNestedNSUnion() { 20 this.type = UnionInNestedNS.NONE; 21 this.value = null; 22 } 23 asTableInNestedNS()24 public NamespaceA.NamespaceB.TableInNestedNST asTableInNestedNS() { return (NamespaceA.NamespaceB.TableInNestedNST) value; } 25 pack(FlatBufferBuilder builder, UnionInNestedNSUnion _o)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 34