public void write(org.apache.thrift.protocol.TProtocol oprot, Adjacency struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(struct.node); oprot.writeFieldEnd(); } if (struct.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.children.size())); for (String _iter3 : struct.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(struct.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, Adjacency struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(struct.node); oprot.writeFieldEnd(); } if (struct.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.children.size())); for (String _iter3 : struct.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(struct.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();
struct.validate();
public void write(org.apache.thrift.protocol.TProtocol oprot, Adjacency struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(struct.node); oprot.writeFieldEnd(); } if (struct.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.children.size())); for (String _iter3 : struct.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (struct.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(struct.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
public void write(TProtocol oprot) throws TException { validate(); oprot.writeStructBegin(STRUCT_DESC); if (this.node != null) { oprot.writeFieldBegin(NODE_FIELD_DESC); oprot.writeString(this.node); oprot.writeFieldEnd(); } if (this.children != null) { oprot.writeFieldBegin(CHILDREN_FIELD_DESC); { oprot.writeListBegin(new TList(TType.STRING, this.children.size())); for (String _iter3 : this.children) { oprot.writeString(_iter3); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } if (this.adjacencyType != null) { oprot.writeFieldBegin(ADJACENCY_TYPE_FIELD_DESC); oprot.writeI32(this.adjacencyType.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }