public void Write(TProtocol oprot) {
TStruct struc = new TStruct("getSyncChunk_args");
oprot.WriteStructBegin(struc);
TField field = new TField();
if (AuthenticationToken != null && __isset.authenticationToken) {
field.Name = "authenticationToken";
field.Type = TType.String;
field.ID = 1;
oprot.WriteFieldBegin(field);
oprot.WriteString(AuthenticationToken);
oprot.WriteFieldEnd();
}
if (__isset.afterUSN) {
field.Name = "afterUSN";
field.Type = TType.I32;
field.ID = 2;
oprot.WriteFieldBegin(field);
oprot.WriteI32(AfterUSN);
oprot.WriteFieldEnd();
}
if (__isset.maxEntries) {
field.Name = "maxEntries";
field.Type = TType.I32;
field.ID = 3;
oprot.WriteFieldBegin(field);
oprot.WriteI32(MaxEntries);
oprot.WriteFieldEnd();
}
if (__isset.fullSyncOnly) {
field.Name = "fullSyncOnly";
field.Type = TType.Bool;
field.ID = 4;
oprot.WriteFieldBegin(field);
oprot.WriteBool(FullSyncOnly);
oprot.WriteFieldEnd();
}
oprot.WriteFieldStop();
oprot.WriteStructEnd();
}