Set all of the fields of the new ThriftStruct.
Set all of the fields of the new ThriftStruct. A value must be present for all fields required to construct the ThriftStruct and in the correct order.
a sequence of values ordered by field index.
Set the field at index
with value
.
Set the field at index
with value
.
When called on a builder that was created from an existing instance of T, all the other fields will be the same as that struct.
When called on a static builder, the other fields will not have defaults so
the caller must ensure that all the other fields are set before calling build()
.
the index of the field list for the ThriftStruct.
the value to use for the field in ThriftStruct.
The error message used when build()
throws an InvalidFieldsException when
values are not present in the fieldArray or when the values are invalid.
The error message used when build()
throws an InvalidFieldsException when
values are not present in the fieldArray or when the values are invalid.
the name of the ThriftStruct to include in the error message.
A class that provides an interface for building a new ThriftStruct from an existing ThriftStruct or statically from T.
We pass in a list of ClassTags which describe each of the struct's field types so that we can validate the values we are setting at runtime.