Use optional elements. It is up to you to decide whether the elements should be there.
In Thrift, basically everything is optional so you can test whether or not elements are present to get the effect you like. On Tue, Jan 24, 2012 at 7:39 AM, Mike Stoddart <[email protected]> wrote: > Does Thrift support conditional logic? For example, I have a protocol that > uses the bits in a byte field to determine which of the subsequent optional > fields are present. Thanks >
