Rev 68 | Blame | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.model.v1.order;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.apache.thrift.*;import org.apache.thrift.meta_data.*;import org.apache.thrift.protocol.*;public class TransactionService {public interface Iface {public long createTransaction(Transaction transaction) throws TransactionServiceException, TException;/*** Get transaction methods.* *** @param id*/public Transaction getTransaction(long id) throws TransactionServiceException, TException;public List<Transaction> getAllTransactions(TransactionStatus status, long from_date, long to_date) throws TransactionServiceException, TException;public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TransactionServiceException, TException;public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException;public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TransactionServiceException, TException;public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException;public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException;public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException;/*** Get and set individual objects in it* *** @param transactionId*/public OrderInfo getOrderInfo(long transactionId) throws TransactionServiceException, TException;public ShipmentInfo getShippingInfo(long transactionId) throws TransactionServiceException, TException;public BillingInfo getBillingInfo(long transactionId) throws TransactionServiceException, TException;public boolean addBilling(long tranactionId, Billing billing) throws TransactionServiceException, TException;public boolean setShippingTracker(long transactionId, long shippingId, String trackingId, String airwayBillNo, String provider) throws TransactionServiceException, TException;public boolean setShippingDate(long transactionId, long shippingId, long timestamp) throws TransactionServiceException, TException;public boolean setDeliveryDate(long transactionId, long shippingid, long timestamp) throws TransactionServiceException, TException;public boolean changeShippingStatus(long transactionId, long shippingId, ShipmentStatus status, String description) throws TransactionServiceException, TException;public boolean addTrail(long transactionId, String description) throws TransactionServiceException, TException;}public static class Client implements Iface {public Client(TProtocol prot){this(prot, prot);}public Client(TProtocol iprot, TProtocol oprot){iprot_ = iprot;oprot_ = oprot;}protected TProtocol iprot_;protected TProtocol oprot_;protected int seqid_;public TProtocol getInputProtocol(){return this.iprot_;}public TProtocol getOutputProtocol(){return this.oprot_;}public long createTransaction(Transaction transaction) throws TransactionServiceException, TException{send_createTransaction(transaction);return recv_createTransaction();}public void send_createTransaction(Transaction transaction) throws TException{oprot_.writeMessageBegin(new TMessage("createTransaction", TMessageType.CALL, seqid_));createTransaction_args args = new createTransaction_args();args.transaction = transaction;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public long recv_createTransaction() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}createTransaction_result result = new createTransaction_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");}public Transaction getTransaction(long id) throws TransactionServiceException, TException{send_getTransaction(id);return recv_getTransaction();}public void send_getTransaction(long id) throws TException{oprot_.writeMessageBegin(new TMessage("getTransaction", TMessageType.CALL, seqid_));getTransaction_args args = new getTransaction_args();args.id = id;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public Transaction recv_getTransaction() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTransaction_result result = new getTransaction_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");}public List<Transaction> getAllTransactions(TransactionStatus status, long from_date, long to_date) throws TransactionServiceException, TException{send_getAllTransactions(status, from_date, to_date);return recv_getAllTransactions();}public void send_getAllTransactions(TransactionStatus status, long from_date, long to_date) throws TException{oprot_.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.CALL, seqid_));getAllTransactions_args args = new getAllTransactions_args();args.status = status;args.from_date = from_date;args.to_date = to_date;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Transaction> recv_getAllTransactions() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getAllTransactions_result result = new getAllTransactions_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllTransactions failed: unknown result");}public List<Transaction> getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TransactionServiceException, TException{send_getTransactionsForShipmentStatus(status, from_date, to_date);return recv_getTransactionsForShipmentStatus();}public void send_getTransactionsForShipmentStatus(ShipmentStatus status, long from_date, long to_date) throws TException{oprot_.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.CALL, seqid_));getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();args.status = status;args.from_date = from_date;args.to_date = to_date;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Transaction> recv_getTransactionsForShipmentStatus() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTransactionsForShipmentStatus_result result = new getTransactionsForShipmentStatus_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShipmentStatus failed: unknown result");}public List<Transaction> getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TransactionServiceException, TException{send_getTransactionsForCustomer(customerId, from_date, to_date, status);return recv_getTransactionsForCustomer();}public void send_getTransactionsForCustomer(long customerId, long from_date, long to_date, TransactionStatus status) throws TException{oprot_.writeMessageBegin(new TMessage("getTransactionsForCustomer", TMessageType.CALL, seqid_));getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();args.customerId = customerId;args.from_date = from_date;args.to_date = to_date;args.status = status;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Transaction> recv_getTransactionsForCustomer() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");}public List<Transaction> getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TransactionServiceException, TException{send_getTransactionsForCustomerAndShipmentStatus(customerId, from_date, to_date, status);return recv_getTransactionsForCustomerAndShipmentStatus();}public void send_getTransactionsForCustomerAndShipmentStatus(long customerId, long from_date, long to_date, ShipmentStatus status) throws TException{oprot_.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.CALL, seqid_));getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();args.customerId = customerId;args.from_date = from_date;args.to_date = to_date;args.status = status;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Transaction> recv_getTransactionsForCustomerAndShipmentStatus() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTransactionsForCustomerAndShipmentStatus_result result = new getTransactionsForCustomerAndShipmentStatus_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");}public List<Transaction> getTransactionsForShoppingCartId(long shoppingCartId) throws TransactionServiceException, TException{send_getTransactionsForShoppingCartId(shoppingCartId);return recv_getTransactionsForShoppingCartId();}public void send_getTransactionsForShoppingCartId(long shoppingCartId) throws TException{oprot_.writeMessageBegin(new TMessage("getTransactionsForShoppingCartId", TMessageType.CALL, seqid_));getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();args.shoppingCartId = shoppingCartId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public List<Transaction> recv_getTransactionsForShoppingCartId() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");}public TransactionStatus getTransactionStatus(long transactionId) throws TransactionServiceException, TException{send_getTransactionStatus(transactionId);return recv_getTransactionStatus();}public void send_getTransactionStatus(long transactionId) throws TException{oprot_.writeMessageBegin(new TMessage("getTransactionStatus", TMessageType.CALL, seqid_));getTransactionStatus_args args = new getTransactionStatus_args();args.transactionId = transactionId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public TransactionStatus recv_getTransactionStatus() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getTransactionStatus_result result = new getTransactionStatus_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");}public boolean changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TransactionServiceException, TException{send_changeTransactionStatus(transactionId, status, description);return recv_changeTransactionStatus();}public void send_changeTransactionStatus(long transactionId, TransactionStatus status, String description) throws TException{oprot_.writeMessageBegin(new TMessage("changeTransactionStatus", TMessageType.CALL, seqid_));changeTransactionStatus_args args = new changeTransactionStatus_args();args.transactionId = transactionId;args.status = status;args.description = description;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_changeTransactionStatus() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}changeTransactionStatus_result result = new changeTransactionStatus_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");}public OrderInfo getOrderInfo(long transactionId) throws TransactionServiceException, TException{send_getOrderInfo(transactionId);return recv_getOrderInfo();}public void send_getOrderInfo(long transactionId) throws TException{oprot_.writeMessageBegin(new TMessage("getOrderInfo", TMessageType.CALL, seqid_));getOrderInfo_args args = new getOrderInfo_args();args.transactionId = transactionId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public OrderInfo recv_getOrderInfo() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getOrderInfo_result result = new getOrderInfo_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOrderInfo failed: unknown result");}public ShipmentInfo getShippingInfo(long transactionId) throws TransactionServiceException, TException{send_getShippingInfo(transactionId);return recv_getShippingInfo();}public void send_getShippingInfo(long transactionId) throws TException{oprot_.writeMessageBegin(new TMessage("getShippingInfo", TMessageType.CALL, seqid_));getShippingInfo_args args = new getShippingInfo_args();args.transactionId = transactionId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public ShipmentInfo recv_getShippingInfo() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getShippingInfo_result result = new getShippingInfo_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getShippingInfo failed: unknown result");}public BillingInfo getBillingInfo(long transactionId) throws TransactionServiceException, TException{send_getBillingInfo(transactionId);return recv_getBillingInfo();}public void send_getBillingInfo(long transactionId) throws TException{oprot_.writeMessageBegin(new TMessage("getBillingInfo", TMessageType.CALL, seqid_));getBillingInfo_args args = new getBillingInfo_args();args.transactionId = transactionId;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public BillingInfo recv_getBillingInfo() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}getBillingInfo_result result = new getBillingInfo_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "getBillingInfo failed: unknown result");}public boolean addBilling(long tranactionId, Billing billing) throws TransactionServiceException, TException{send_addBilling(tranactionId, billing);return recv_addBilling();}public void send_addBilling(long tranactionId, Billing billing) throws TException{oprot_.writeMessageBegin(new TMessage("addBilling", TMessageType.CALL, seqid_));addBilling_args args = new addBilling_args();args.tranactionId = tranactionId;args.billing = billing;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_addBilling() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}addBilling_result result = new addBilling_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "addBilling failed: unknown result");}public boolean setShippingTracker(long transactionId, long shippingId, String trackingId, String airwayBillNo, String provider) throws TransactionServiceException, TException{send_setShippingTracker(transactionId, shippingId, trackingId, airwayBillNo, provider);return recv_setShippingTracker();}public void send_setShippingTracker(long transactionId, long shippingId, String trackingId, String airwayBillNo, String provider) throws TException{oprot_.writeMessageBegin(new TMessage("setShippingTracker", TMessageType.CALL, seqid_));setShippingTracker_args args = new setShippingTracker_args();args.transactionId = transactionId;args.shippingId = shippingId;args.trackingId = trackingId;args.airwayBillNo = airwayBillNo;args.provider = provider;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_setShippingTracker() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}setShippingTracker_result result = new setShippingTracker_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "setShippingTracker failed: unknown result");}public boolean setShippingDate(long transactionId, long shippingId, long timestamp) throws TransactionServiceException, TException{send_setShippingDate(transactionId, shippingId, timestamp);return recv_setShippingDate();}public void send_setShippingDate(long transactionId, long shippingId, long timestamp) throws TException{oprot_.writeMessageBegin(new TMessage("setShippingDate", TMessageType.CALL, seqid_));setShippingDate_args args = new setShippingDate_args();args.transactionId = transactionId;args.shippingId = shippingId;args.timestamp = timestamp;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_setShippingDate() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}setShippingDate_result result = new setShippingDate_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "setShippingDate failed: unknown result");}public boolean setDeliveryDate(long transactionId, long shippingid, long timestamp) throws TransactionServiceException, TException{send_setDeliveryDate(transactionId, shippingid, timestamp);return recv_setDeliveryDate();}public void send_setDeliveryDate(long transactionId, long shippingid, long timestamp) throws TException{oprot_.writeMessageBegin(new TMessage("setDeliveryDate", TMessageType.CALL, seqid_));setDeliveryDate_args args = new setDeliveryDate_args();args.transactionId = transactionId;args.shippingid = shippingid;args.timestamp = timestamp;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_setDeliveryDate() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}setDeliveryDate_result result = new setDeliveryDate_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "setDeliveryDate failed: unknown result");}public boolean changeShippingStatus(long transactionId, long shippingId, ShipmentStatus status, String description) throws TransactionServiceException, TException{send_changeShippingStatus(transactionId, shippingId, status, description);return recv_changeShippingStatus();}public void send_changeShippingStatus(long transactionId, long shippingId, ShipmentStatus status, String description) throws TException{oprot_.writeMessageBegin(new TMessage("changeShippingStatus", TMessageType.CALL, seqid_));changeShippingStatus_args args = new changeShippingStatus_args();args.transactionId = transactionId;args.shippingId = shippingId;args.status = status;args.description = description;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_changeShippingStatus() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}changeShippingStatus_result result = new changeShippingStatus_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "changeShippingStatus failed: unknown result");}public boolean addTrail(long transactionId, String description) throws TransactionServiceException, TException{send_addTrail(transactionId, description);return recv_addTrail();}public void send_addTrail(long transactionId, String description) throws TException{oprot_.writeMessageBegin(new TMessage("addTrail", TMessageType.CALL, seqid_));addTrail_args args = new addTrail_args();args.transactionId = transactionId;args.description = description;args.write(oprot_);oprot_.writeMessageEnd();oprot_.getTransport().flush();}public boolean recv_addTrail() throws TransactionServiceException, TException{TMessage msg = iprot_.readMessageBegin();if (msg.type == TMessageType.EXCEPTION) {TApplicationException x = TApplicationException.read(iprot_);iprot_.readMessageEnd();throw x;}addTrail_result result = new addTrail_result();result.read(iprot_);iprot_.readMessageEnd();if (result.isSetSuccess()) {return result.success;}if (result.ex != null) {throw result.ex;}throw new TApplicationException(TApplicationException.MISSING_RESULT, "addTrail failed: unknown result");}}public static class Processor implements TProcessor {private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());public Processor(Iface iface){iface_ = iface;processMap_.put("createTransaction", new createTransaction());processMap_.put("getTransaction", new getTransaction());processMap_.put("getAllTransactions", new getAllTransactions());processMap_.put("getTransactionsForShipmentStatus", new getTransactionsForShipmentStatus());processMap_.put("getTransactionsForCustomer", new getTransactionsForCustomer());processMap_.put("getTransactionsForCustomerAndShipmentStatus", new getTransactionsForCustomerAndShipmentStatus());processMap_.put("getTransactionsForShoppingCartId", new getTransactionsForShoppingCartId());processMap_.put("getTransactionStatus", new getTransactionStatus());processMap_.put("changeTransactionStatus", new changeTransactionStatus());processMap_.put("getOrderInfo", new getOrderInfo());processMap_.put("getShippingInfo", new getShippingInfo());processMap_.put("getBillingInfo", new getBillingInfo());processMap_.put("addBilling", new addBilling());processMap_.put("setShippingTracker", new setShippingTracker());processMap_.put("setShippingDate", new setShippingDate());processMap_.put("setDeliveryDate", new setDeliveryDate());processMap_.put("changeShippingStatus", new changeShippingStatus());processMap_.put("addTrail", new addTrail());}protected static interface ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;}private Iface iface_;protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();public boolean process(TProtocol iprot, TProtocol oprot) throws TException{TMessage msg = iprot.readMessageBegin();ProcessFunction fn = processMap_.get(msg.name);if (fn == null) {TProtocolUtil.skip(iprot, TType.STRUCT);iprot.readMessageEnd();TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return true;}fn.process(msg.seqid, iprot, oprot);return true;}private class createTransaction implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{createTransaction_args args = new createTransaction_args();args.read(iprot);iprot.readMessageEnd();createTransaction_result result = new createTransaction_result();try {result.success = iface_.createTransaction(args.transaction);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing createTransaction", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing createTransaction");oprot.writeMessageBegin(new TMessage("createTransaction", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("createTransaction", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTransaction implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTransaction_args args = new getTransaction_args();args.read(iprot);iprot.readMessageEnd();getTransaction_result result = new getTransaction_result();try {result.success = iface_.getTransaction(args.id);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getTransaction", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransaction");oprot.writeMessageBegin(new TMessage("getTransaction", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getTransaction", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getAllTransactions implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getAllTransactions_args args = new getAllTransactions_args();args.read(iprot);iprot.readMessageEnd();getAllTransactions_result result = new getAllTransactions_result();try {result.success = iface_.getAllTransactions(args.status, args.from_date, args.to_date);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getAllTransactions", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllTransactions");oprot.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getAllTransactions", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTransactionsForShipmentStatus implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTransactionsForShipmentStatus_args args = new getTransactionsForShipmentStatus_args();args.read(iprot);iprot.readMessageEnd();getTransactionsForShipmentStatus_result result = new getTransactionsForShipmentStatus_result();try {result.success = iface_.getTransactionsForShipmentStatus(args.status, args.from_date, args.to_date);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getTransactionsForShipmentStatus", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForShipmentStatus");oprot.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getTransactionsForShipmentStatus", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTransactionsForCustomer implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTransactionsForCustomer_args args = new getTransactionsForCustomer_args();args.read(iprot);iprot.readMessageEnd();getTransactionsForCustomer_result result = new getTransactionsForCustomer_result();try {result.success = iface_.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getTransactionsForCustomer", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForCustomer");oprot.writeMessageBegin(new TMessage("getTransactionsForCustomer", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getTransactionsForCustomer", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTransactionsForCustomerAndShipmentStatus implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTransactionsForCustomerAndShipmentStatus_args args = new getTransactionsForCustomerAndShipmentStatus_args();args.read(iprot);iprot.readMessageEnd();getTransactionsForCustomerAndShipmentStatus_result result = new getTransactionsForCustomerAndShipmentStatus_result();try {result.success = iface_.getTransactionsForCustomerAndShipmentStatus(args.customerId, args.from_date, args.to_date, args.status);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getTransactionsForCustomerAndShipmentStatus", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForCustomerAndShipmentStatus");oprot.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getTransactionsForCustomerAndShipmentStatus", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTransactionsForShoppingCartId implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTransactionsForShoppingCartId_args args = new getTransactionsForShoppingCartId_args();args.read(iprot);iprot.readMessageEnd();getTransactionsForShoppingCartId_result result = new getTransactionsForShoppingCartId_result();try {result.success = iface_.getTransactionsForShoppingCartId(args.shoppingCartId);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getTransactionsForShoppingCartId", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionsForShoppingCartId");oprot.writeMessageBegin(new TMessage("getTransactionsForShoppingCartId", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getTransactionsForShoppingCartId", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getTransactionStatus implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getTransactionStatus_args args = new getTransactionStatus_args();args.read(iprot);iprot.readMessageEnd();getTransactionStatus_result result = new getTransactionStatus_result();try {result.success = iface_.getTransactionStatus(args.transactionId);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getTransactionStatus", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getTransactionStatus");oprot.writeMessageBegin(new TMessage("getTransactionStatus", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getTransactionStatus", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class changeTransactionStatus implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{changeTransactionStatus_args args = new changeTransactionStatus_args();args.read(iprot);iprot.readMessageEnd();changeTransactionStatus_result result = new changeTransactionStatus_result();try {result.success = iface_.changeTransactionStatus(args.transactionId, args.status, args.description);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing changeTransactionStatus", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing changeTransactionStatus");oprot.writeMessageBegin(new TMessage("changeTransactionStatus", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("changeTransactionStatus", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getOrderInfo implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getOrderInfo_args args = new getOrderInfo_args();args.read(iprot);iprot.readMessageEnd();getOrderInfo_result result = new getOrderInfo_result();try {result.success = iface_.getOrderInfo(args.transactionId);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getOrderInfo", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getOrderInfo");oprot.writeMessageBegin(new TMessage("getOrderInfo", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getOrderInfo", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getShippingInfo implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getShippingInfo_args args = new getShippingInfo_args();args.read(iprot);iprot.readMessageEnd();getShippingInfo_result result = new getShippingInfo_result();try {result.success = iface_.getShippingInfo(args.transactionId);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getShippingInfo", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getShippingInfo");oprot.writeMessageBegin(new TMessage("getShippingInfo", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getShippingInfo", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class getBillingInfo implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{getBillingInfo_args args = new getBillingInfo_args();args.read(iprot);iprot.readMessageEnd();getBillingInfo_result result = new getBillingInfo_result();try {result.success = iface_.getBillingInfo(args.transactionId);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing getBillingInfo", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getBillingInfo");oprot.writeMessageBegin(new TMessage("getBillingInfo", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("getBillingInfo", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class addBilling implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{addBilling_args args = new addBilling_args();args.read(iprot);iprot.readMessageEnd();addBilling_result result = new addBilling_result();try {result.success = iface_.addBilling(args.tranactionId, args.billing);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing addBilling", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addBilling");oprot.writeMessageBegin(new TMessage("addBilling", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("addBilling", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class setShippingTracker implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{setShippingTracker_args args = new setShippingTracker_args();args.read(iprot);iprot.readMessageEnd();setShippingTracker_result result = new setShippingTracker_result();try {result.success = iface_.setShippingTracker(args.transactionId, args.shippingId, args.trackingId, args.airwayBillNo, args.provider);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing setShippingTracker", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing setShippingTracker");oprot.writeMessageBegin(new TMessage("setShippingTracker", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("setShippingTracker", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class setShippingDate implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{setShippingDate_args args = new setShippingDate_args();args.read(iprot);iprot.readMessageEnd();setShippingDate_result result = new setShippingDate_result();try {result.success = iface_.setShippingDate(args.transactionId, args.shippingId, args.timestamp);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing setShippingDate", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing setShippingDate");oprot.writeMessageBegin(new TMessage("setShippingDate", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("setShippingDate", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class setDeliveryDate implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{setDeliveryDate_args args = new setDeliveryDate_args();args.read(iprot);iprot.readMessageEnd();setDeliveryDate_result result = new setDeliveryDate_result();try {result.success = iface_.setDeliveryDate(args.transactionId, args.shippingid, args.timestamp);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing setDeliveryDate", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing setDeliveryDate");oprot.writeMessageBegin(new TMessage("setDeliveryDate", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("setDeliveryDate", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class changeShippingStatus implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{changeShippingStatus_args args = new changeShippingStatus_args();args.read(iprot);iprot.readMessageEnd();changeShippingStatus_result result = new changeShippingStatus_result();try {result.success = iface_.changeShippingStatus(args.transactionId, args.shippingId, args.status, args.description);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing changeShippingStatus", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing changeShippingStatus");oprot.writeMessageBegin(new TMessage("changeShippingStatus", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("changeShippingStatus", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}private class addTrail implements ProcessFunction {public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException{addTrail_args args = new addTrail_args();args.read(iprot);iprot.readMessageEnd();addTrail_result result = new addTrail_result();try {result.success = iface_.addTrail(args.transactionId, args.description);result.setSuccessIsSet(true);} catch (TransactionServiceException ex) {result.ex = ex;} catch (Throwable th) {LOGGER.error("Internal error processing addTrail", th);TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addTrail");oprot.writeMessageBegin(new TMessage("addTrail", TMessageType.EXCEPTION, seqid));x.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();return;}oprot.writeMessageBegin(new TMessage("addTrail", TMessageType.REPLY, seqid));result.write(oprot);oprot.writeMessageEnd();oprot.getTransport().flush();}}}public static class createTransaction_args implements TBase<createTransaction_args._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("createTransaction_args");private static final TField TRANSACTION_FIELD_DESC = new TField("transaction", TType.STRUCT, (short)1);private Transaction transaction;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION((short)1, "transaction");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION, new FieldMetaData("transaction", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Transaction.class)));}});static {FieldMetaData.addStructMetaDataMap(createTransaction_args.class, metaDataMap);}public createTransaction_args() {}public createTransaction_args(Transaction transaction){this();this.transaction = transaction;}/*** Performs a deep copy on <i>other</i>.*/public createTransaction_args(createTransaction_args other) {if (other.isSetTransaction()) {this.transaction = new Transaction(other.transaction);}}public createTransaction_args deepCopy() {return new createTransaction_args(this);}@Deprecatedpublic createTransaction_args clone() {return new createTransaction_args(this);}public Transaction getTransaction() {return this.transaction;}public createTransaction_args setTransaction(Transaction transaction) {this.transaction = transaction;return this;}public void unsetTransaction() {this.transaction = null;}/** Returns true if field transaction is set (has been asigned a value) and false otherwise */public boolean isSetTransaction() {return this.transaction != null;}public void setTransactionIsSet(boolean value) {if (!value) {this.transaction = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION:if (value == null) {unsetTransaction();} else {setTransaction((Transaction)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION:return getTransaction();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION:return isSetTransaction();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createTransaction_args)return this.equals((createTransaction_args)that);return false;}public boolean equals(createTransaction_args that) {if (that == null)return false;boolean this_present_transaction = true && this.isSetTransaction();boolean that_present_transaction = true && that.isSetTransaction();if (this_present_transaction || that_present_transaction) {if (!(this_present_transaction && that_present_transaction))return false;if (!this.transaction.equals(that.transaction))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION:if (field.type == TType.STRUCT) {this.transaction = new Transaction();this.transaction.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.transaction != null) {oprot.writeFieldBegin(TRANSACTION_FIELD_DESC);this.transaction.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createTransaction_args(");boolean first = true;sb.append("transaction:");if (this.transaction == null) {sb.append("null");} else {sb.append(this.transaction);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class createTransaction_result implements TBase<createTransaction_result._Fields>, java.io.Serializable, Cloneable, Comparable<createTransaction_result> {private static final TStruct STRUCT_DESC = new TStruct("createTransaction_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private long success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(createTransaction_result.class, metaDataMap);}public createTransaction_result() {}public createTransaction_result(long success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public createTransaction_result(createTransaction_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public createTransaction_result deepCopy() {return new createTransaction_result(this);}@Deprecatedpublic createTransaction_result clone() {return new createTransaction_result(this);}public long getSuccess() {return this.success;}public createTransaction_result setSuccess(long success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public createTransaction_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Long)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Long(getSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof createTransaction_result)return this.equals((createTransaction_result)that);return false;}public boolean equals(createTransaction_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(createTransaction_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;createTransaction_result typedOther = (createTransaction_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I64) {this.success = iprot.readI64();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI64(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("createTransaction_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransaction_args implements TBase<getTransaction_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransaction_args> {private static final TStruct STRUCT_DESC = new TStruct("getTransaction_args");private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);private long id;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {ID((short)1, "id");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTransaction_args.class, metaDataMap);}public getTransaction_args() {}public getTransaction_args(long id){this();this.id = id;setIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTransaction_args(getTransaction_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;}public getTransaction_args deepCopy() {return new getTransaction_args(this);}@Deprecatedpublic getTransaction_args clone() {return new getTransaction_args(this);}public long getId() {return this.id;}public getTransaction_args setId(long id) {this.id = id;setIdIsSet(true);return this;}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been asigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case ID:return new Long(getId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case ID:return isSetId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransaction_args)return this.equals((getTransaction_args)that);return false;}public boolean equals(getTransaction_args that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransaction_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransaction_args typedOther = (getTransaction_args)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(id, typedOther.id);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case ID:if (field.type == TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransaction_args(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransaction_result implements TBase<getTransaction_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getTransaction_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private Transaction success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Transaction.class)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getTransaction_result.class, metaDataMap);}public getTransaction_result() {}public getTransaction_result(Transaction success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransaction_result(getTransaction_result other) {if (other.isSetSuccess()) {this.success = new Transaction(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransaction_result deepCopy() {return new getTransaction_result(this);}@Deprecatedpublic getTransaction_result clone() {return new getTransaction_result(this);}public Transaction getSuccess() {return this.success;}public getTransaction_result setSuccess(Transaction success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getTransaction_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Transaction)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransaction_result)return this.equals((getTransaction_result)that);return false;}public boolean equals(getTransaction_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new Transaction();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransaction_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAllTransactions_args implements TBase<getAllTransactions_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllTransactions_args> {private static final TStruct STRUCT_DESC = new TStruct("getAllTransactions_args");private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);private TransactionStatus status;private long from_date;private long to_date;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {/**** @see TransactionStatus*/STATUS((short)1, "status"),FROM_DATE((short)2, "from_date"),TO_DATE((short)3, "to_date");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __FROM_DATE_ISSET_ID = 0;private static final int __TO_DATE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,new EnumMetaData(TType.ENUM, TransactionStatus.class)));put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getAllTransactions_args.class, metaDataMap);}public getAllTransactions_args() {}public getAllTransactions_args(TransactionStatus status,long from_date,long to_date){this();this.status = status;this.from_date = from_date;setFrom_dateIsSet(true);this.to_date = to_date;setTo_dateIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getAllTransactions_args(getAllTransactions_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetStatus()) {this.status = other.status;}this.from_date = other.from_date;this.to_date = other.to_date;}public getAllTransactions_args deepCopy() {return new getAllTransactions_args(this);}@Deprecatedpublic getAllTransactions_args clone() {return new getAllTransactions_args(this);}/**** @see TransactionStatus*/public TransactionStatus getStatus() {return this.status;}/**** @see TransactionStatus*/public getAllTransactions_args setStatus(TransactionStatus status) {this.status = status;return this;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been asigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public long getFrom_date() {return this.from_date;}public getAllTransactions_args setFrom_date(long from_date) {this.from_date = from_date;setFrom_dateIsSet(true);return this;}public void unsetFrom_date() {__isset_bit_vector.clear(__FROM_DATE_ISSET_ID);}/** Returns true if field from_date is set (has been asigned a value) and false otherwise */public boolean isSetFrom_date() {return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);}public void setFrom_dateIsSet(boolean value) {__isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);}public long getTo_date() {return this.to_date;}public getAllTransactions_args setTo_date(long to_date) {this.to_date = to_date;setTo_dateIsSet(true);return this;}public void unsetTo_date() {__isset_bit_vector.clear(__TO_DATE_ISSET_ID);}/** Returns true if field to_date is set (has been asigned a value) and false otherwise */public boolean isSetTo_date() {return __isset_bit_vector.get(__TO_DATE_ISSET_ID);}public void setTo_dateIsSet(boolean value) {__isset_bit_vector.set(__TO_DATE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATUS:if (value == null) {unsetStatus();} else {setStatus((TransactionStatus)value);}break;case FROM_DATE:if (value == null) {unsetFrom_date();} else {setFrom_date((Long)value);}break;case TO_DATE:if (value == null) {unsetTo_date();} else {setTo_date((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case STATUS:return getStatus();case FROM_DATE:return new Long(getFrom_date());case TO_DATE:return new Long(getTo_date());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case STATUS:return isSetStatus();case FROM_DATE:return isSetFrom_date();case TO_DATE:return isSetTo_date();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllTransactions_args)return this.equals((getAllTransactions_args)that);return false;}public boolean equals(getAllTransactions_args that) {if (that == null)return false;boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_from_date = true;boolean that_present_from_date = true;if (this_present_from_date || that_present_from_date) {if (!(this_present_from_date && that_present_from_date))return false;if (this.from_date != that.from_date)return false;}boolean this_present_to_date = true;boolean that_present_to_date = true;if (this_present_to_date || that_present_to_date) {if (!(this_present_to_date && that_present_to_date))return false;if (this.to_date != that.to_date)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getAllTransactions_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getAllTransactions_args typedOther = (getAllTransactions_args)other;lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(status, typedOther.status);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case STATUS:if (field.type == TType.I32) {this.status = TransactionStatus.findByValue(iprot.readI32());} else {TProtocolUtil.skip(iprot, field.type);}break;case FROM_DATE:if (field.type == TType.I64) {this.from_date = iprot.readI64();setFrom_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case TO_DATE:if (field.type == TType.I64) {this.to_date = iprot.readI64();setTo_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.from_date);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.to_date);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllTransactions_args(");boolean first = true;sb.append("status:");if (this.status == null) {sb.append("null");} else {String status_name = status.name();if (status_name != null) {sb.append(status_name);sb.append(" (");}sb.append(this.status);if (status_name != null) {sb.append(")");}}first = false;if (!first) sb.append(", ");sb.append("from_date:");sb.append(this.from_date);first = false;if (!first) sb.append(", ");sb.append("to_date:");sb.append(this.to_date);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getAllTransactions_result implements TBase<getAllTransactions_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getAllTransactions_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private List<Transaction> success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Transaction.class))));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getAllTransactions_result.class, metaDataMap);}public getAllTransactions_result() {}public getAllTransactions_result(List<Transaction> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getAllTransactions_result(getAllTransactions_result other) {if (other.isSetSuccess()) {List<Transaction> __this__success = new ArrayList<Transaction>();for (Transaction other_element : other.success) {__this__success.add(new Transaction(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getAllTransactions_result deepCopy() {return new getAllTransactions_result(this);}@Deprecatedpublic getAllTransactions_result clone() {return new getAllTransactions_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Transaction> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Transaction elem) {if (this.success == null) {this.success = new ArrayList<Transaction>();}this.success.add(elem);}public List<Transaction> getSuccess() {return this.success;}public getAllTransactions_result setSuccess(List<Transaction> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getAllTransactions_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Transaction>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getAllTransactions_result)return this.equals((getAllTransactions_result)that);return false;}public boolean equals(getAllTransactions_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list30 = iprot.readListBegin();this.success = new ArrayList<Transaction>(_list30.size);for (int _i31 = 0; _i31 < _list30.size; ++_i31){Transaction _elem32;_elem32 = new Transaction();_elem32.read(iprot);this.success.add(_elem32);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Transaction _iter33 : this.success){_iter33.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getAllTransactions_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForShipmentStatus_args implements TBase<getTransactionsForShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShipmentStatus_args> {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShipmentStatus_args");private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)1);private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);private ShipmentStatus status;private long from_date;private long to_date;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {/**** @see ShipmentStatus*/STATUS((short)1, "status"),FROM_DATE((short)2, "from_date"),TO_DATE((short)3, "to_date");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __FROM_DATE_ISSET_ID = 0;private static final int __TO_DATE_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,new EnumMetaData(TType.ENUM, ShipmentStatus.class)));put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForShipmentStatus_args.class, metaDataMap);}public getTransactionsForShipmentStatus_args() {}public getTransactionsForShipmentStatus_args(ShipmentStatus status,long from_date,long to_date){this();this.status = status;this.from_date = from_date;setFrom_dateIsSet(true);this.to_date = to_date;setTo_dateIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForShipmentStatus_args(getTransactionsForShipmentStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);if (other.isSetStatus()) {this.status = other.status;}this.from_date = other.from_date;this.to_date = other.to_date;}public getTransactionsForShipmentStatus_args deepCopy() {return new getTransactionsForShipmentStatus_args(this);}@Deprecatedpublic getTransactionsForShipmentStatus_args clone() {return new getTransactionsForShipmentStatus_args(this);}/**** @see ShipmentStatus*/public ShipmentStatus getStatus() {return this.status;}/**** @see ShipmentStatus*/public getTransactionsForShipmentStatus_args setStatus(ShipmentStatus status) {this.status = status;return this;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been asigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public long getFrom_date() {return this.from_date;}public getTransactionsForShipmentStatus_args setFrom_date(long from_date) {this.from_date = from_date;setFrom_dateIsSet(true);return this;}public void unsetFrom_date() {__isset_bit_vector.clear(__FROM_DATE_ISSET_ID);}/** Returns true if field from_date is set (has been asigned a value) and false otherwise */public boolean isSetFrom_date() {return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);}public void setFrom_dateIsSet(boolean value) {__isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);}public long getTo_date() {return this.to_date;}public getTransactionsForShipmentStatus_args setTo_date(long to_date) {this.to_date = to_date;setTo_dateIsSet(true);return this;}public void unsetTo_date() {__isset_bit_vector.clear(__TO_DATE_ISSET_ID);}/** Returns true if field to_date is set (has been asigned a value) and false otherwise */public boolean isSetTo_date() {return __isset_bit_vector.get(__TO_DATE_ISSET_ID);}public void setTo_dateIsSet(boolean value) {__isset_bit_vector.set(__TO_DATE_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case STATUS:if (value == null) {unsetStatus();} else {setStatus((ShipmentStatus)value);}break;case FROM_DATE:if (value == null) {unsetFrom_date();} else {setFrom_date((Long)value);}break;case TO_DATE:if (value == null) {unsetTo_date();} else {setTo_date((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case STATUS:return getStatus();case FROM_DATE:return new Long(getFrom_date());case TO_DATE:return new Long(getTo_date());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case STATUS:return isSetStatus();case FROM_DATE:return isSetFrom_date();case TO_DATE:return isSetTo_date();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForShipmentStatus_args)return this.equals((getTransactionsForShipmentStatus_args)that);return false;}public boolean equals(getTransactionsForShipmentStatus_args that) {if (that == null)return false;boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_from_date = true;boolean that_present_from_date = true;if (this_present_from_date || that_present_from_date) {if (!(this_present_from_date && that_present_from_date))return false;if (this.from_date != that.from_date)return false;}boolean this_present_to_date = true;boolean that_present_to_date = true;if (this_present_to_date || that_present_to_date) {if (!(this_present_to_date && that_present_to_date))return false;if (this.to_date != that.to_date)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForShipmentStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForShipmentStatus_args typedOther = (getTransactionsForShipmentStatus_args)other;lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(status, typedOther.status);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case STATUS:if (field.type == TType.I32) {this.status = ShipmentStatus.findByValue(iprot.readI32());} else {TProtocolUtil.skip(iprot, field.type);}break;case FROM_DATE:if (field.type == TType.I64) {this.from_date = iprot.readI64();setFrom_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case TO_DATE:if (field.type == TType.I64) {this.to_date = iprot.readI64();setTo_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.from_date);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.to_date);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForShipmentStatus_args(");boolean first = true;sb.append("status:");if (this.status == null) {sb.append("null");} else {String status_name = status.name();if (status_name != null) {sb.append(status_name);sb.append(" (");}sb.append(this.status);if (status_name != null) {sb.append(")");}}first = false;if (!first) sb.append(", ");sb.append("from_date:");sb.append(this.from_date);first = false;if (!first) sb.append(", ");sb.append("to_date:");sb.append(this.to_date);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForShipmentStatus_result implements TBase<getTransactionsForShipmentStatus_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShipmentStatus_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private List<Transaction> success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Transaction.class))));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForShipmentStatus_result.class, metaDataMap);}public getTransactionsForShipmentStatus_result() {}public getTransactionsForShipmentStatus_result(List<Transaction> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForShipmentStatus_result(getTransactionsForShipmentStatus_result other) {if (other.isSetSuccess()) {List<Transaction> __this__success = new ArrayList<Transaction>();for (Transaction other_element : other.success) {__this__success.add(new Transaction(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionsForShipmentStatus_result deepCopy() {return new getTransactionsForShipmentStatus_result(this);}@Deprecatedpublic getTransactionsForShipmentStatus_result clone() {return new getTransactionsForShipmentStatus_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Transaction> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Transaction elem) {if (this.success == null) {this.success = new ArrayList<Transaction>();}this.success.add(elem);}public List<Transaction> getSuccess() {return this.success;}public getTransactionsForShipmentStatus_result setSuccess(List<Transaction> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getTransactionsForShipmentStatus_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Transaction>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForShipmentStatus_result)return this.equals((getTransactionsForShipmentStatus_result)that);return false;}public boolean equals(getTransactionsForShipmentStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list34 = iprot.readListBegin();this.success = new ArrayList<Transaction>(_list34.size);for (int _i35 = 0; _i35 < _list34.size; ++_i35){Transaction _elem36;_elem36 = new Transaction();_elem36.read(iprot);this.success.add(_elem36);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Transaction _iter37 : this.success){_iter37.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForShipmentStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForCustomer_args implements TBase<getTransactionsForCustomer_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomer_args> {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomer_args");private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);private long customerId;private long from_date;private long to_date;private TransactionStatus status;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {CUSTOMER_ID((short)1, "customerId"),FROM_DATE((short)2, "from_date"),TO_DATE((short)3, "to_date"),/**** @see TransactionStatus*/STATUS((short)4, "status");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private static final int __FROM_DATE_ISSET_ID = 1;private static final int __TO_DATE_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,new EnumMetaData(TType.ENUM, TransactionStatus.class)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_args.class, metaDataMap);}public getTransactionsForCustomer_args() {}public getTransactionsForCustomer_args(long customerId,long from_date,long to_date,TransactionStatus status){this();this.customerId = customerId;setCustomerIdIsSet(true);this.from_date = from_date;setFrom_dateIsSet(true);this.to_date = to_date;setTo_dateIsSet(true);this.status = status;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForCustomer_args(getTransactionsForCustomer_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;this.from_date = other.from_date;this.to_date = other.to_date;if (other.isSetStatus()) {this.status = other.status;}}public getTransactionsForCustomer_args deepCopy() {return new getTransactionsForCustomer_args(this);}@Deprecatedpublic getTransactionsForCustomer_args clone() {return new getTransactionsForCustomer_args(this);}public long getCustomerId() {return this.customerId;}public getTransactionsForCustomer_args setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);return this;}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been asigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public long getFrom_date() {return this.from_date;}public getTransactionsForCustomer_args setFrom_date(long from_date) {this.from_date = from_date;setFrom_dateIsSet(true);return this;}public void unsetFrom_date() {__isset_bit_vector.clear(__FROM_DATE_ISSET_ID);}/** Returns true if field from_date is set (has been asigned a value) and false otherwise */public boolean isSetFrom_date() {return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);}public void setFrom_dateIsSet(boolean value) {__isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);}public long getTo_date() {return this.to_date;}public getTransactionsForCustomer_args setTo_date(long to_date) {this.to_date = to_date;setTo_dateIsSet(true);return this;}public void unsetTo_date() {__isset_bit_vector.clear(__TO_DATE_ISSET_ID);}/** Returns true if field to_date is set (has been asigned a value) and false otherwise */public boolean isSetTo_date() {return __isset_bit_vector.get(__TO_DATE_ISSET_ID);}public void setTo_dateIsSet(boolean value) {__isset_bit_vector.set(__TO_DATE_ISSET_ID, value);}/**** @see TransactionStatus*/public TransactionStatus getStatus() {return this.status;}/**** @see TransactionStatus*/public getTransactionsForCustomer_args setStatus(TransactionStatus status) {this.status = status;return this;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been asigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;case FROM_DATE:if (value == null) {unsetFrom_date();} else {setFrom_date((Long)value);}break;case TO_DATE:if (value == null) {unsetTo_date();} else {setTo_date((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((TransactionStatus)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return new Long(getCustomerId());case FROM_DATE:return new Long(getFrom_date());case TO_DATE:return new Long(getTo_date());case STATUS:return getStatus();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case CUSTOMER_ID:return isSetCustomerId();case FROM_DATE:return isSetFrom_date();case TO_DATE:return isSetTo_date();case STATUS:return isSetStatus();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForCustomer_args)return this.equals((getTransactionsForCustomer_args)that);return false;}public boolean equals(getTransactionsForCustomer_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}boolean this_present_from_date = true;boolean that_present_from_date = true;if (this_present_from_date || that_present_from_date) {if (!(this_present_from_date && that_present_from_date))return false;if (this.from_date != that.from_date)return false;}boolean this_present_to_date = true;boolean that_present_to_date = true;if (this_present_to_date || that_present_to_date) {if (!(this_present_to_date && that_present_to_date))return false;if (this.to_date != that.to_date)return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForCustomer_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForCustomer_args typedOther = (getTransactionsForCustomer_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(status, typedOther.status);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case CUSTOMER_ID:if (field.type == TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case FROM_DATE:if (field.type == TType.I64) {this.from_date = iprot.readI64();setFrom_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case TO_DATE:if (field.type == TType.I64) {this.to_date = iprot.readI64();setTo_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case STATUS:if (field.type == TType.I32) {this.status = TransactionStatus.findByValue(iprot.readI32());} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.from_date);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.to_date);oprot.writeFieldEnd();if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForCustomer_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;if (!first) sb.append(", ");sb.append("from_date:");sb.append(this.from_date);first = false;if (!first) sb.append(", ");sb.append("to_date:");sb.append(this.to_date);first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {String status_name = status.name();if (status_name != null) {sb.append(status_name);sb.append(" (");}sb.append(this.status);if (status_name != null) {sb.append(")");}}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForCustomer_result implements TBase<getTransactionsForCustomer_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomer_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private List<Transaction> success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Transaction.class))));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForCustomer_result.class, metaDataMap);}public getTransactionsForCustomer_result() {}public getTransactionsForCustomer_result(List<Transaction> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForCustomer_result(getTransactionsForCustomer_result other) {if (other.isSetSuccess()) {List<Transaction> __this__success = new ArrayList<Transaction>();for (Transaction other_element : other.success) {__this__success.add(new Transaction(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionsForCustomer_result deepCopy() {return new getTransactionsForCustomer_result(this);}@Deprecatedpublic getTransactionsForCustomer_result clone() {return new getTransactionsForCustomer_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Transaction> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Transaction elem) {if (this.success == null) {this.success = new ArrayList<Transaction>();}this.success.add(elem);}public List<Transaction> getSuccess() {return this.success;}public getTransactionsForCustomer_result setSuccess(List<Transaction> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getTransactionsForCustomer_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Transaction>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForCustomer_result)return this.equals((getTransactionsForCustomer_result)that);return false;}public boolean equals(getTransactionsForCustomer_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list38 = iprot.readListBegin();this.success = new ArrayList<Transaction>(_list38.size);for (int _i39 = 0; _i39 < _list38.size; ++_i39){Transaction _elem40;_elem40 = new Transaction();_elem40.read(iprot);this.success.add(_elem40);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Transaction _iter41 : this.success){_iter41.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForCustomer_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForCustomerAndShipmentStatus_args implements TBase<getTransactionsForCustomerAndShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForCustomerAndShipmentStatus_args> {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomerAndShipmentStatus_args");private static final TField CUSTOMER_ID_FIELD_DESC = new TField("customerId", TType.I64, (short)1);private static final TField FROM_DATE_FIELD_DESC = new TField("from_date", TType.I64, (short)2);private static final TField TO_DATE_FIELD_DESC = new TField("to_date", TType.I64, (short)3);private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)4);private long customerId;private long from_date;private long to_date;private ShipmentStatus status;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {CUSTOMER_ID((short)1, "customerId"),FROM_DATE((short)2, "from_date"),TO_DATE((short)3, "to_date"),/**** @see ShipmentStatus*/STATUS((short)4, "status");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __CUSTOMERID_ISSET_ID = 0;private static final int __FROM_DATE_ISSET_ID = 1;private static final int __TO_DATE_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.CUSTOMER_ID, new FieldMetaData("customerId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.FROM_DATE, new FieldMetaData("from_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.TO_DATE, new FieldMetaData("to_date", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,new EnumMetaData(TType.ENUM, ShipmentStatus.class)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForCustomerAndShipmentStatus_args.class, metaDataMap);}public getTransactionsForCustomerAndShipmentStatus_args() {}public getTransactionsForCustomerAndShipmentStatus_args(long customerId,long from_date,long to_date,ShipmentStatus status){this();this.customerId = customerId;setCustomerIdIsSet(true);this.from_date = from_date;setFrom_dateIsSet(true);this.to_date = to_date;setTo_dateIsSet(true);this.status = status;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForCustomerAndShipmentStatus_args(getTransactionsForCustomerAndShipmentStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.customerId = other.customerId;this.from_date = other.from_date;this.to_date = other.to_date;if (other.isSetStatus()) {this.status = other.status;}}public getTransactionsForCustomerAndShipmentStatus_args deepCopy() {return new getTransactionsForCustomerAndShipmentStatus_args(this);}@Deprecatedpublic getTransactionsForCustomerAndShipmentStatus_args clone() {return new getTransactionsForCustomerAndShipmentStatus_args(this);}public long getCustomerId() {return this.customerId;}public getTransactionsForCustomerAndShipmentStatus_args setCustomerId(long customerId) {this.customerId = customerId;setCustomerIdIsSet(true);return this;}public void unsetCustomerId() {__isset_bit_vector.clear(__CUSTOMERID_ISSET_ID);}/** Returns true if field customerId is set (has been asigned a value) and false otherwise */public boolean isSetCustomerId() {return __isset_bit_vector.get(__CUSTOMERID_ISSET_ID);}public void setCustomerIdIsSet(boolean value) {__isset_bit_vector.set(__CUSTOMERID_ISSET_ID, value);}public long getFrom_date() {return this.from_date;}public getTransactionsForCustomerAndShipmentStatus_args setFrom_date(long from_date) {this.from_date = from_date;setFrom_dateIsSet(true);return this;}public void unsetFrom_date() {__isset_bit_vector.clear(__FROM_DATE_ISSET_ID);}/** Returns true if field from_date is set (has been asigned a value) and false otherwise */public boolean isSetFrom_date() {return __isset_bit_vector.get(__FROM_DATE_ISSET_ID);}public void setFrom_dateIsSet(boolean value) {__isset_bit_vector.set(__FROM_DATE_ISSET_ID, value);}public long getTo_date() {return this.to_date;}public getTransactionsForCustomerAndShipmentStatus_args setTo_date(long to_date) {this.to_date = to_date;setTo_dateIsSet(true);return this;}public void unsetTo_date() {__isset_bit_vector.clear(__TO_DATE_ISSET_ID);}/** Returns true if field to_date is set (has been asigned a value) and false otherwise */public boolean isSetTo_date() {return __isset_bit_vector.get(__TO_DATE_ISSET_ID);}public void setTo_dateIsSet(boolean value) {__isset_bit_vector.set(__TO_DATE_ISSET_ID, value);}/**** @see ShipmentStatus*/public ShipmentStatus getStatus() {return this.status;}/**** @see ShipmentStatus*/public getTransactionsForCustomerAndShipmentStatus_args setStatus(ShipmentStatus status) {this.status = status;return this;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been asigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case CUSTOMER_ID:if (value == null) {unsetCustomerId();} else {setCustomerId((Long)value);}break;case FROM_DATE:if (value == null) {unsetFrom_date();} else {setFrom_date((Long)value);}break;case TO_DATE:if (value == null) {unsetTo_date();} else {setTo_date((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((ShipmentStatus)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case CUSTOMER_ID:return new Long(getCustomerId());case FROM_DATE:return new Long(getFrom_date());case TO_DATE:return new Long(getTo_date());case STATUS:return getStatus();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case CUSTOMER_ID:return isSetCustomerId();case FROM_DATE:return isSetFrom_date();case TO_DATE:return isSetTo_date();case STATUS:return isSetStatus();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForCustomerAndShipmentStatus_args)return this.equals((getTransactionsForCustomerAndShipmentStatus_args)that);return false;}public boolean equals(getTransactionsForCustomerAndShipmentStatus_args that) {if (that == null)return false;boolean this_present_customerId = true;boolean that_present_customerId = true;if (this_present_customerId || that_present_customerId) {if (!(this_present_customerId && that_present_customerId))return false;if (this.customerId != that.customerId)return false;}boolean this_present_from_date = true;boolean that_present_from_date = true;if (this_present_from_date || that_present_from_date) {if (!(this_present_from_date && that_present_from_date))return false;if (this.from_date != that.from_date)return false;}boolean this_present_to_date = true;boolean that_present_to_date = true;if (this_present_to_date || that_present_to_date) {if (!(this_present_to_date && that_present_to_date))return false;if (this.to_date != that.to_date)return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForCustomerAndShipmentStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForCustomerAndShipmentStatus_args typedOther = (getTransactionsForCustomerAndShipmentStatus_args)other;lastComparison = Boolean.valueOf(isSetCustomerId()).compareTo(isSetCustomerId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(customerId, typedOther.customerId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetFrom_date()).compareTo(isSetFrom_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(from_date, typedOther.from_date);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetTo_date()).compareTo(isSetTo_date());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(to_date, typedOther.to_date);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(status, typedOther.status);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case CUSTOMER_ID:if (field.type == TType.I64) {this.customerId = iprot.readI64();setCustomerIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case FROM_DATE:if (field.type == TType.I64) {this.from_date = iprot.readI64();setFrom_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case TO_DATE:if (field.type == TType.I64) {this.to_date = iprot.readI64();setTo_dateIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case STATUS:if (field.type == TType.I32) {this.status = ShipmentStatus.findByValue(iprot.readI32());} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);oprot.writeI64(this.customerId);oprot.writeFieldEnd();oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);oprot.writeI64(this.from_date);oprot.writeFieldEnd();oprot.writeFieldBegin(TO_DATE_FIELD_DESC);oprot.writeI64(this.to_date);oprot.writeFieldEnd();if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForCustomerAndShipmentStatus_args(");boolean first = true;sb.append("customerId:");sb.append(this.customerId);first = false;if (!first) sb.append(", ");sb.append("from_date:");sb.append(this.from_date);first = false;if (!first) sb.append(", ");sb.append("to_date:");sb.append(this.to_date);first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {String status_name = status.name();if (status_name != null) {sb.append(status_name);sb.append(" (");}sb.append(this.status);if (status_name != null) {sb.append(")");}}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForCustomerAndShipmentStatus_result implements TBase<getTransactionsForCustomerAndShipmentStatus_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForCustomerAndShipmentStatus_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private List<Transaction> success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Transaction.class))));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForCustomerAndShipmentStatus_result.class, metaDataMap);}public getTransactionsForCustomerAndShipmentStatus_result() {}public getTransactionsForCustomerAndShipmentStatus_result(List<Transaction> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForCustomerAndShipmentStatus_result(getTransactionsForCustomerAndShipmentStatus_result other) {if (other.isSetSuccess()) {List<Transaction> __this__success = new ArrayList<Transaction>();for (Transaction other_element : other.success) {__this__success.add(new Transaction(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionsForCustomerAndShipmentStatus_result deepCopy() {return new getTransactionsForCustomerAndShipmentStatus_result(this);}@Deprecatedpublic getTransactionsForCustomerAndShipmentStatus_result clone() {return new getTransactionsForCustomerAndShipmentStatus_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Transaction> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Transaction elem) {if (this.success == null) {this.success = new ArrayList<Transaction>();}this.success.add(elem);}public List<Transaction> getSuccess() {return this.success;}public getTransactionsForCustomerAndShipmentStatus_result setSuccess(List<Transaction> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getTransactionsForCustomerAndShipmentStatus_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Transaction>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForCustomerAndShipmentStatus_result)return this.equals((getTransactionsForCustomerAndShipmentStatus_result)that);return false;}public boolean equals(getTransactionsForCustomerAndShipmentStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list42 = iprot.readListBegin();this.success = new ArrayList<Transaction>(_list42.size);for (int _i43 = 0; _i43 < _list42.size; ++_i43){Transaction _elem44;_elem44 = new Transaction();_elem44.read(iprot);this.success.add(_elem44);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Transaction _iter45 : this.success){_iter45.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForCustomerAndShipmentStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForShoppingCartId_args implements TBase<getTransactionsForShoppingCartId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionsForShoppingCartId_args> {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShoppingCartId_args");private static final TField SHOPPING_CART_ID_FIELD_DESC = new TField("shoppingCartId", TType.I64, (short)1);private long shoppingCartId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SHOPPING_CART_ID((short)1, "shoppingCartId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SHOPPINGCARTID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SHOPPING_CART_ID, new FieldMetaData("shoppingCartId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_args.class, metaDataMap);}public getTransactionsForShoppingCartId_args() {}public getTransactionsForShoppingCartId_args(long shoppingCartId){this();this.shoppingCartId = shoppingCartId;setShoppingCartIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForShoppingCartId_args(getTransactionsForShoppingCartId_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.shoppingCartId = other.shoppingCartId;}public getTransactionsForShoppingCartId_args deepCopy() {return new getTransactionsForShoppingCartId_args(this);}@Deprecatedpublic getTransactionsForShoppingCartId_args clone() {return new getTransactionsForShoppingCartId_args(this);}public long getShoppingCartId() {return this.shoppingCartId;}public getTransactionsForShoppingCartId_args setShoppingCartId(long shoppingCartId) {this.shoppingCartId = shoppingCartId;setShoppingCartIdIsSet(true);return this;}public void unsetShoppingCartId() {__isset_bit_vector.clear(__SHOPPINGCARTID_ISSET_ID);}/** Returns true if field shoppingCartId is set (has been asigned a value) and false otherwise */public boolean isSetShoppingCartId() {return __isset_bit_vector.get(__SHOPPINGCARTID_ISSET_ID);}public void setShoppingCartIdIsSet(boolean value) {__isset_bit_vector.set(__SHOPPINGCARTID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case SHOPPING_CART_ID:if (value == null) {unsetShoppingCartId();} else {setShoppingCartId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SHOPPING_CART_ID:return new Long(getShoppingCartId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SHOPPING_CART_ID:return isSetShoppingCartId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForShoppingCartId_args)return this.equals((getTransactionsForShoppingCartId_args)that);return false;}public boolean equals(getTransactionsForShoppingCartId_args that) {if (that == null)return false;boolean this_present_shoppingCartId = true;boolean that_present_shoppingCartId = true;if (this_present_shoppingCartId || that_present_shoppingCartId) {if (!(this_present_shoppingCartId && that_present_shoppingCartId))return false;if (this.shoppingCartId != that.shoppingCartId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionsForShoppingCartId_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionsForShoppingCartId_args typedOther = (getTransactionsForShoppingCartId_args)other;lastComparison = Boolean.valueOf(isSetShoppingCartId()).compareTo(isSetShoppingCartId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(shoppingCartId, typedOther.shoppingCartId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SHOPPING_CART_ID:if (field.type == TType.I64) {this.shoppingCartId = iprot.readI64();setShoppingCartIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(SHOPPING_CART_ID_FIELD_DESC);oprot.writeI64(this.shoppingCartId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_args(");boolean first = true;sb.append("shoppingCartId:");sb.append(this.shoppingCartId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionsForShoppingCartId_result implements TBase<getTransactionsForShoppingCartId_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getTransactionsForShoppingCartId_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private List<Transaction> success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new ListMetaData(TType.LIST,new StructMetaData(TType.STRUCT, Transaction.class))));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionsForShoppingCartId_result.class, metaDataMap);}public getTransactionsForShoppingCartId_result() {}public getTransactionsForShoppingCartId_result(List<Transaction> success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionsForShoppingCartId_result(getTransactionsForShoppingCartId_result other) {if (other.isSetSuccess()) {List<Transaction> __this__success = new ArrayList<Transaction>();for (Transaction other_element : other.success) {__this__success.add(new Transaction(other_element));}this.success = __this__success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionsForShoppingCartId_result deepCopy() {return new getTransactionsForShoppingCartId_result(this);}@Deprecatedpublic getTransactionsForShoppingCartId_result clone() {return new getTransactionsForShoppingCartId_result(this);}public int getSuccessSize() {return (this.success == null) ? 0 : this.success.size();}public java.util.Iterator<Transaction> getSuccessIterator() {return (this.success == null) ? null : this.success.iterator();}public void addToSuccess(Transaction elem) {if (this.success == null) {this.success = new ArrayList<Transaction>();}this.success.add(elem);}public List<Transaction> getSuccess() {return this.success;}public getTransactionsForShoppingCartId_result setSuccess(List<Transaction> success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getTransactionsForShoppingCartId_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((List<Transaction>)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionsForShoppingCartId_result)return this.equals((getTransactionsForShoppingCartId_result)that);return false;}public boolean equals(getTransactionsForShoppingCartId_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.LIST) {{TList _list46 = iprot.readListBegin();this.success = new ArrayList<Transaction>(_list46.size);for (int _i47 = 0; _i47 < _list46.size; ++_i47){Transaction _elem48;_elem48 = new Transaction();_elem48.read(iprot);this.success.add(_elem48);}iprot.readListEnd();}} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);{oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));for (Transaction _iter49 : this.success){_iter49.write(oprot);}oprot.writeListEnd();}oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionsForShoppingCartId_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionStatus_args implements TBase<getTransactionStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionStatus_args> {private static final TStruct STRUCT_DESC = new TStruct("getTransactionStatus_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private long transactionId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionStatus_args.class, metaDataMap);}public getTransactionStatus_args() {}public getTransactionStatus_args(long transactionId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getTransactionStatus_args(getTransactionStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;}public getTransactionStatus_args deepCopy() {return new getTransactionStatus_args(this);}@Deprecatedpublic getTransactionStatus_args clone() {return new getTransactionStatus_args(this);}public long getTransactionId() {return this.transactionId;}public getTransactionStatus_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionStatus_args)return this.equals((getTransactionStatus_args)that);return false;}public boolean equals(getTransactionStatus_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionStatus_args typedOther = (getTransactionStatus_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionStatus_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getTransactionStatus_result implements TBase<getTransactionStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTransactionStatus_result> {private static final TStruct STRUCT_DESC = new TStruct("getTransactionStatus_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I32, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private TransactionStatus success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {/**** @see TransactionStatus*/SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new EnumMetaData(TType.ENUM, TransactionStatus.class)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getTransactionStatus_result.class, metaDataMap);}public getTransactionStatus_result() {}public getTransactionStatus_result(TransactionStatus success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getTransactionStatus_result(getTransactionStatus_result other) {if (other.isSetSuccess()) {this.success = other.success;}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getTransactionStatus_result deepCopy() {return new getTransactionStatus_result(this);}@Deprecatedpublic getTransactionStatus_result clone() {return new getTransactionStatus_result(this);}/**** @see TransactionStatus*/public TransactionStatus getSuccess() {return this.success;}/**** @see TransactionStatus*/public getTransactionStatus_result setSuccess(TransactionStatus success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getTransactionStatus_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((TransactionStatus)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getTransactionStatus_result)return this.equals((getTransactionStatus_result)that);return false;}public boolean equals(getTransactionStatus_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getTransactionStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getTransactionStatus_result typedOther = (getTransactionStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.I32) {this.success = TransactionStatus.findByValue(iprot.readI32());} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeI32(this.success.getValue());oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getTransactionStatus_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {String success_name = success.name();if (success_name != null) {sb.append(success_name);sb.append(" (");}sb.append(this.success);if (success_name != null) {sb.append(")");}}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class changeTransactionStatus_args implements TBase<changeTransactionStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeTransactionStatus_args> {private static final TStruct STRUCT_DESC = new TStruct("changeTransactionStatus_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)2);private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)3);private long transactionId;private TransactionStatus status;private String description;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),/**** @see TransactionStatus*/STATUS((short)2, "status"),DESCRIPTION((short)3, "description");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,new EnumMetaData(TType.ENUM, TransactionStatus.class)));put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(changeTransactionStatus_args.class, metaDataMap);}public changeTransactionStatus_args() {}public changeTransactionStatus_args(long transactionId,TransactionStatus status,String description){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.status = status;this.description = description;}/*** Performs a deep copy on <i>other</i>.*/public changeTransactionStatus_args(changeTransactionStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;if (other.isSetStatus()) {this.status = other.status;}if (other.isSetDescription()) {this.description = other.description;}}public changeTransactionStatus_args deepCopy() {return new changeTransactionStatus_args(this);}@Deprecatedpublic changeTransactionStatus_args clone() {return new changeTransactionStatus_args(this);}public long getTransactionId() {return this.transactionId;}public changeTransactionStatus_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}/**** @see TransactionStatus*/public TransactionStatus getStatus() {return this.status;}/**** @see TransactionStatus*/public changeTransactionStatus_args setStatus(TransactionStatus status) {this.status = status;return this;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been asigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public String getDescription() {return this.description;}public changeTransactionStatus_args setDescription(String description) {this.description = description;return this;}public void unsetDescription() {this.description = null;}/** Returns true if field description is set (has been asigned a value) and false otherwise */public boolean isSetDescription() {return this.description != null;}public void setDescriptionIsSet(boolean value) {if (!value) {this.description = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((TransactionStatus)value);}break;case DESCRIPTION:if (value == null) {unsetDescription();} else {setDescription((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());case STATUS:return getStatus();case DESCRIPTION:return getDescription();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();case STATUS:return isSetStatus();case DESCRIPTION:return isSetDescription();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeTransactionStatus_args)return this.equals((changeTransactionStatus_args)that);return false;}public boolean equals(changeTransactionStatus_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_description = true && this.isSetDescription();boolean that_present_description = true && that.isSetDescription();if (this_present_description || that_present_description) {if (!(this_present_description && that_present_description))return false;if (!this.description.equals(that.description))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeTransactionStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeTransactionStatus_args typedOther = (changeTransactionStatus_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(status, typedOther.status);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(description, typedOther.description);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case STATUS:if (field.type == TType.I32) {this.status = TransactionStatus.findByValue(iprot.readI32());} else {TProtocolUtil.skip(iprot, field.type);}break;case DESCRIPTION:if (field.type == TType.STRING) {this.description = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}if (this.description != null) {oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);oprot.writeString(this.description);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeTransactionStatus_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {String status_name = status.name();if (status_name != null) {sb.append(status_name);sb.append(" (");}sb.append(this.status);if (status_name != null) {sb.append(")");}}first = false;if (!first) sb.append(", ");sb.append("description:");if (this.description == null) {sb.append("null");} else {sb.append(this.description);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class changeTransactionStatus_result implements TBase<changeTransactionStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<changeTransactionStatus_result> {private static final TStruct STRUCT_DESC = new TStruct("changeTransactionStatus_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private boolean success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(changeTransactionStatus_result.class, metaDataMap);}public changeTransactionStatus_result() {}public changeTransactionStatus_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public changeTransactionStatus_result(changeTransactionStatus_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public changeTransactionStatus_result deepCopy() {return new changeTransactionStatus_result(this);}@Deprecatedpublic changeTransactionStatus_result clone() {return new changeTransactionStatus_result(this);}public boolean isSuccess() {return this.success;}public changeTransactionStatus_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public changeTransactionStatus_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeTransactionStatus_result)return this.equals((changeTransactionStatus_result)that);return false;}public boolean equals(changeTransactionStatus_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeTransactionStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeTransactionStatus_result typedOther = (changeTransactionStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeTransactionStatus_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getOrderInfo_args implements TBase<getOrderInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOrderInfo_args> {private static final TStruct STRUCT_DESC = new TStruct("getOrderInfo_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private long transactionId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getOrderInfo_args.class, metaDataMap);}public getOrderInfo_args() {}public getOrderInfo_args(long transactionId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getOrderInfo_args(getOrderInfo_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;}public getOrderInfo_args deepCopy() {return new getOrderInfo_args(this);}@Deprecatedpublic getOrderInfo_args clone() {return new getOrderInfo_args(this);}public long getTransactionId() {return this.transactionId;}public getOrderInfo_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderInfo_args)return this.equals((getOrderInfo_args)that);return false;}public boolean equals(getOrderInfo_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getOrderInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getOrderInfo_args typedOther = (getOrderInfo_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderInfo_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getOrderInfo_result implements TBase<getOrderInfo_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getOrderInfo_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private OrderInfo success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, OrderInfo.class)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getOrderInfo_result.class, metaDataMap);}public getOrderInfo_result() {}public getOrderInfo_result(OrderInfo success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getOrderInfo_result(getOrderInfo_result other) {if (other.isSetSuccess()) {this.success = new OrderInfo(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getOrderInfo_result deepCopy() {return new getOrderInfo_result(this);}@Deprecatedpublic getOrderInfo_result clone() {return new getOrderInfo_result(this);}public OrderInfo getSuccess() {return this.success;}public getOrderInfo_result setSuccess(OrderInfo success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getOrderInfo_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((OrderInfo)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getOrderInfo_result)return this.equals((getOrderInfo_result)that);return false;}public boolean equals(getOrderInfo_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new OrderInfo();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getOrderInfo_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getShippingInfo_args implements TBase<getShippingInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getShippingInfo_args> {private static final TStruct STRUCT_DESC = new TStruct("getShippingInfo_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private long transactionId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getShippingInfo_args.class, metaDataMap);}public getShippingInfo_args() {}public getShippingInfo_args(long transactionId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getShippingInfo_args(getShippingInfo_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;}public getShippingInfo_args deepCopy() {return new getShippingInfo_args(this);}@Deprecatedpublic getShippingInfo_args clone() {return new getShippingInfo_args(this);}public long getTransactionId() {return this.transactionId;}public getShippingInfo_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getShippingInfo_args)return this.equals((getShippingInfo_args)that);return false;}public boolean equals(getShippingInfo_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getShippingInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getShippingInfo_args typedOther = (getShippingInfo_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getShippingInfo_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getShippingInfo_result implements TBase<getShippingInfo_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getShippingInfo_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private ShipmentInfo success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, ShipmentInfo.class)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getShippingInfo_result.class, metaDataMap);}public getShippingInfo_result() {}public getShippingInfo_result(ShipmentInfo success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getShippingInfo_result(getShippingInfo_result other) {if (other.isSetSuccess()) {this.success = new ShipmentInfo(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getShippingInfo_result deepCopy() {return new getShippingInfo_result(this);}@Deprecatedpublic getShippingInfo_result clone() {return new getShippingInfo_result(this);}public ShipmentInfo getSuccess() {return this.success;}public getShippingInfo_result setSuccess(ShipmentInfo success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getShippingInfo_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((ShipmentInfo)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getShippingInfo_result)return this.equals((getShippingInfo_result)that);return false;}public boolean equals(getShippingInfo_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new ShipmentInfo();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getShippingInfo_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getBillingInfo_args implements TBase<getBillingInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getBillingInfo_args> {private static final TStruct STRUCT_DESC = new TStruct("getBillingInfo_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private long transactionId;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(getBillingInfo_args.class, metaDataMap);}public getBillingInfo_args() {}public getBillingInfo_args(long transactionId){this();this.transactionId = transactionId;setTransactionIdIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public getBillingInfo_args(getBillingInfo_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;}public getBillingInfo_args deepCopy() {return new getBillingInfo_args(this);}@Deprecatedpublic getBillingInfo_args clone() {return new getBillingInfo_args(this);}public long getTransactionId() {return this.transactionId;}public getBillingInfo_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBillingInfo_args)return this.equals((getBillingInfo_args)that);return false;}public boolean equals(getBillingInfo_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(getBillingInfo_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;getBillingInfo_args typedOther = (getBillingInfo_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBillingInfo_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class getBillingInfo_result implements TBase<getBillingInfo_result._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("getBillingInfo_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private BillingInfo success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentspublic static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, BillingInfo.class)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(getBillingInfo_result.class, metaDataMap);}public getBillingInfo_result() {}public getBillingInfo_result(BillingInfo success,TransactionServiceException ex){this();this.success = success;this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public getBillingInfo_result(getBillingInfo_result other) {if (other.isSetSuccess()) {this.success = new BillingInfo(other.success);}if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public getBillingInfo_result deepCopy() {return new getBillingInfo_result(this);}@Deprecatedpublic getBillingInfo_result clone() {return new getBillingInfo_result(this);}public BillingInfo getSuccess() {return this.success;}public getBillingInfo_result setSuccess(BillingInfo success) {this.success = success;return this;}public void unsetSuccess() {this.success = null;}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return this.success != null;}public void setSuccessIsSet(boolean value) {if (!value) {this.success = null;}}public TransactionServiceException getEx() {return this.ex;}public getBillingInfo_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((BillingInfo)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return getSuccess();case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof getBillingInfo_result)return this.equals((getBillingInfo_result)that);return false;}public boolean equals(getBillingInfo_result that) {if (that == null)return false;boolean this_present_success = true && this.isSetSuccess();boolean that_present_success = true && that.isSetSuccess();if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (!this.success.equals(that.success))return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.STRUCT) {this.success = new BillingInfo();this.success.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);this.success.write(oprot);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("getBillingInfo_result(");boolean first = true;sb.append("success:");if (this.success == null) {sb.append("null");} else {sb.append(this.success);}first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addBilling_args implements TBase<addBilling_args._Fields>, java.io.Serializable, Cloneable {private static final TStruct STRUCT_DESC = new TStruct("addBilling_args");private static final TField TRANACTION_ID_FIELD_DESC = new TField("tranactionId", TType.I64, (short)1);private static final TField BILLING_FIELD_DESC = new TField("billing", TType.STRUCT, (short)2);private long tranactionId;private Billing billing;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANACTION_ID((short)1, "tranactionId"),BILLING((short)2, "billing");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANACTION_ID, new FieldMetaData("tranactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.BILLING, new FieldMetaData("billing", TFieldRequirementType.DEFAULT,new StructMetaData(TType.STRUCT, Billing.class)));}});static {FieldMetaData.addStructMetaDataMap(addBilling_args.class, metaDataMap);}public addBilling_args() {}public addBilling_args(long tranactionId,Billing billing){this();this.tranactionId = tranactionId;setTranactionIdIsSet(true);this.billing = billing;}/*** Performs a deep copy on <i>other</i>.*/public addBilling_args(addBilling_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.tranactionId = other.tranactionId;if (other.isSetBilling()) {this.billing = new Billing(other.billing);}}public addBilling_args deepCopy() {return new addBilling_args(this);}@Deprecatedpublic addBilling_args clone() {return new addBilling_args(this);}public long getTranactionId() {return this.tranactionId;}public addBilling_args setTranactionId(long tranactionId) {this.tranactionId = tranactionId;setTranactionIdIsSet(true);return this;}public void unsetTranactionId() {__isset_bit_vector.clear(__TRANACTIONID_ISSET_ID);}/** Returns true if field tranactionId is set (has been asigned a value) and false otherwise */public boolean isSetTranactionId() {return __isset_bit_vector.get(__TRANACTIONID_ISSET_ID);}public void setTranactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANACTIONID_ISSET_ID, value);}public Billing getBilling() {return this.billing;}public addBilling_args setBilling(Billing billing) {this.billing = billing;return this;}public void unsetBilling() {this.billing = null;}/** Returns true if field billing is set (has been asigned a value) and false otherwise */public boolean isSetBilling() {return this.billing != null;}public void setBillingIsSet(boolean value) {if (!value) {this.billing = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANACTION_ID:if (value == null) {unsetTranactionId();} else {setTranactionId((Long)value);}break;case BILLING:if (value == null) {unsetBilling();} else {setBilling((Billing)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANACTION_ID:return new Long(getTranactionId());case BILLING:return getBilling();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANACTION_ID:return isSetTranactionId();case BILLING:return isSetBilling();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBilling_args)return this.equals((addBilling_args)that);return false;}public boolean equals(addBilling_args that) {if (that == null)return false;boolean this_present_tranactionId = true;boolean that_present_tranactionId = true;if (this_present_tranactionId || that_present_tranactionId) {if (!(this_present_tranactionId && that_present_tranactionId))return false;if (this.tranactionId != that.tranactionId)return false;}boolean this_present_billing = true && this.isSetBilling();boolean that_present_billing = true && that.isSetBilling();if (this_present_billing || that_present_billing) {if (!(this_present_billing && that_present_billing))return false;if (!this.billing.equals(that.billing))return false;}return true;}@Overridepublic int hashCode() {return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANACTION_ID:if (field.type == TType.I64) {this.tranactionId = iprot.readI64();setTranactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case BILLING:if (field.type == TType.STRUCT) {this.billing = new Billing();this.billing.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANACTION_ID_FIELD_DESC);oprot.writeI64(this.tranactionId);oprot.writeFieldEnd();if (this.billing != null) {oprot.writeFieldBegin(BILLING_FIELD_DESC);this.billing.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBilling_args(");boolean first = true;sb.append("tranactionId:");sb.append(this.tranactionId);first = false;if (!first) sb.append(", ");sb.append("billing:");if (this.billing == null) {sb.append("null");} else {sb.append(this.billing);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addBilling_result implements TBase<addBilling_result._Fields>, java.io.Serializable, Cloneable, Comparable<addBilling_result> {private static final TStruct STRUCT_DESC = new TStruct("addBilling_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private boolean success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(addBilling_result.class, metaDataMap);}public addBilling_result() {}public addBilling_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public addBilling_result(addBilling_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public addBilling_result deepCopy() {return new addBilling_result(this);}@Deprecatedpublic addBilling_result clone() {return new addBilling_result(this);}public boolean isSuccess() {return this.success;}public addBilling_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public addBilling_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addBilling_result)return this.equals((addBilling_result)that);return false;}public boolean equals(addBilling_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addBilling_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addBilling_result typedOther = (addBilling_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addBilling_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class setShippingTracker_args implements TBase<setShippingTracker_args._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingTracker_args> {private static final TStruct STRUCT_DESC = new TStruct("setShippingTracker_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private static final TField SHIPPING_ID_FIELD_DESC = new TField("shippingId", TType.I64, (short)2);private static final TField TRACKING_ID_FIELD_DESC = new TField("trackingId", TType.STRING, (short)3);private static final TField AIRWAY_BILL_NO_FIELD_DESC = new TField("airwayBillNo", TType.STRING, (short)4);private static final TField PROVIDER_FIELD_DESC = new TField("provider", TType.STRING, (short)5);private long transactionId;private long shippingId;private String trackingId;private String airwayBillNo;private String provider;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),SHIPPING_ID((short)2, "shippingId"),TRACKING_ID((short)3, "trackingId"),AIRWAY_BILL_NO((short)4, "airwayBillNo"),PROVIDER((short)5, "provider");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private static final int __SHIPPINGID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.SHIPPING_ID, new FieldMetaData("shippingId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.TRACKING_ID, new FieldMetaData("trackingId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.AIRWAY_BILL_NO, new FieldMetaData("airwayBillNo", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));put(_Fields.PROVIDER, new FieldMetaData("provider", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(setShippingTracker_args.class, metaDataMap);}public setShippingTracker_args() {}public setShippingTracker_args(long transactionId,long shippingId,String trackingId,String airwayBillNo,String provider){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.shippingId = shippingId;setShippingIdIsSet(true);this.trackingId = trackingId;this.airwayBillNo = airwayBillNo;this.provider = provider;}/*** Performs a deep copy on <i>other</i>.*/public setShippingTracker_args(setShippingTracker_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;this.shippingId = other.shippingId;if (other.isSetTrackingId()) {this.trackingId = other.trackingId;}if (other.isSetAirwayBillNo()) {this.airwayBillNo = other.airwayBillNo;}if (other.isSetProvider()) {this.provider = other.provider;}}public setShippingTracker_args deepCopy() {return new setShippingTracker_args(this);}@Deprecatedpublic setShippingTracker_args clone() {return new setShippingTracker_args(this);}public long getTransactionId() {return this.transactionId;}public setShippingTracker_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public long getShippingId() {return this.shippingId;}public setShippingTracker_args setShippingId(long shippingId) {this.shippingId = shippingId;setShippingIdIsSet(true);return this;}public void unsetShippingId() {__isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);}/** Returns true if field shippingId is set (has been asigned a value) and false otherwise */public boolean isSetShippingId() {return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);}public void setShippingIdIsSet(boolean value) {__isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);}public String getTrackingId() {return this.trackingId;}public setShippingTracker_args setTrackingId(String trackingId) {this.trackingId = trackingId;return this;}public void unsetTrackingId() {this.trackingId = null;}/** Returns true if field trackingId is set (has been asigned a value) and false otherwise */public boolean isSetTrackingId() {return this.trackingId != null;}public void setTrackingIdIsSet(boolean value) {if (!value) {this.trackingId = null;}}public String getAirwayBillNo() {return this.airwayBillNo;}public setShippingTracker_args setAirwayBillNo(String airwayBillNo) {this.airwayBillNo = airwayBillNo;return this;}public void unsetAirwayBillNo() {this.airwayBillNo = null;}/** Returns true if field airwayBillNo is set (has been asigned a value) and false otherwise */public boolean isSetAirwayBillNo() {return this.airwayBillNo != null;}public void setAirwayBillNoIsSet(boolean value) {if (!value) {this.airwayBillNo = null;}}public String getProvider() {return this.provider;}public setShippingTracker_args setProvider(String provider) {this.provider = provider;return this;}public void unsetProvider() {this.provider = null;}/** Returns true if field provider is set (has been asigned a value) and false otherwise */public boolean isSetProvider() {return this.provider != null;}public void setProviderIsSet(boolean value) {if (!value) {this.provider = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case SHIPPING_ID:if (value == null) {unsetShippingId();} else {setShippingId((Long)value);}break;case TRACKING_ID:if (value == null) {unsetTrackingId();} else {setTrackingId((String)value);}break;case AIRWAY_BILL_NO:if (value == null) {unsetAirwayBillNo();} else {setAirwayBillNo((String)value);}break;case PROVIDER:if (value == null) {unsetProvider();} else {setProvider((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());case SHIPPING_ID:return new Long(getShippingId());case TRACKING_ID:return getTrackingId();case AIRWAY_BILL_NO:return getAirwayBillNo();case PROVIDER:return getProvider();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();case SHIPPING_ID:return isSetShippingId();case TRACKING_ID:return isSetTrackingId();case AIRWAY_BILL_NO:return isSetAirwayBillNo();case PROVIDER:return isSetProvider();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setShippingTracker_args)return this.equals((setShippingTracker_args)that);return false;}public boolean equals(setShippingTracker_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_shippingId = true;boolean that_present_shippingId = true;if (this_present_shippingId || that_present_shippingId) {if (!(this_present_shippingId && that_present_shippingId))return false;if (this.shippingId != that.shippingId)return false;}boolean this_present_trackingId = true && this.isSetTrackingId();boolean that_present_trackingId = true && that.isSetTrackingId();if (this_present_trackingId || that_present_trackingId) {if (!(this_present_trackingId && that_present_trackingId))return false;if (!this.trackingId.equals(that.trackingId))return false;}boolean this_present_airwayBillNo = true && this.isSetAirwayBillNo();boolean that_present_airwayBillNo = true && that.isSetAirwayBillNo();if (this_present_airwayBillNo || that_present_airwayBillNo) {if (!(this_present_airwayBillNo && that_present_airwayBillNo))return false;if (!this.airwayBillNo.equals(that.airwayBillNo))return false;}boolean this_present_provider = true && this.isSetProvider();boolean that_present_provider = true && that.isSetProvider();if (this_present_provider || that_present_provider) {if (!(this_present_provider && that_present_provider))return false;if (!this.provider.equals(that.provider))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setShippingTracker_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setShippingTracker_args typedOther = (setShippingTracker_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetShippingId()).compareTo(isSetShippingId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(shippingId, typedOther.shippingId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetTrackingId()).compareTo(isSetTrackingId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(trackingId, typedOther.trackingId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(isSetAirwayBillNo());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(airwayBillNo, typedOther.airwayBillNo);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetProvider()).compareTo(isSetProvider());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(provider, typedOther.provider);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SHIPPING_ID:if (field.type == TType.I64) {this.shippingId = iprot.readI64();setShippingIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case TRACKING_ID:if (field.type == TType.STRING) {this.trackingId = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case AIRWAY_BILL_NO:if (field.type == TType.STRING) {this.airwayBillNo = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;case PROVIDER:if (field.type == TType.STRING) {this.provider = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);oprot.writeI64(this.shippingId);oprot.writeFieldEnd();if (this.trackingId != null) {oprot.writeFieldBegin(TRACKING_ID_FIELD_DESC);oprot.writeString(this.trackingId);oprot.writeFieldEnd();}if (this.airwayBillNo != null) {oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);oprot.writeString(this.airwayBillNo);oprot.writeFieldEnd();}if (this.provider != null) {oprot.writeFieldBegin(PROVIDER_FIELD_DESC);oprot.writeString(this.provider);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setShippingTracker_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("shippingId:");sb.append(this.shippingId);first = false;if (!first) sb.append(", ");sb.append("trackingId:");if (this.trackingId == null) {sb.append("null");} else {sb.append(this.trackingId);}first = false;if (!first) sb.append(", ");sb.append("airwayBillNo:");if (this.airwayBillNo == null) {sb.append("null");} else {sb.append(this.airwayBillNo);}first = false;if (!first) sb.append(", ");sb.append("provider:");if (this.provider == null) {sb.append("null");} else {sb.append(this.provider);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class setShippingTracker_result implements TBase<setShippingTracker_result._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingTracker_result> {private static final TStruct STRUCT_DESC = new TStruct("setShippingTracker_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private boolean success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(setShippingTracker_result.class, metaDataMap);}public setShippingTracker_result() {}public setShippingTracker_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public setShippingTracker_result(setShippingTracker_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public setShippingTracker_result deepCopy() {return new setShippingTracker_result(this);}@Deprecatedpublic setShippingTracker_result clone() {return new setShippingTracker_result(this);}public boolean isSuccess() {return this.success;}public setShippingTracker_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public setShippingTracker_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setShippingTracker_result)return this.equals((setShippingTracker_result)that);return false;}public boolean equals(setShippingTracker_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setShippingTracker_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setShippingTracker_result typedOther = (setShippingTracker_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setShippingTracker_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class setShippingDate_args implements TBase<setShippingDate_args._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingDate_args> {private static final TStruct STRUCT_DESC = new TStruct("setShippingDate_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private static final TField SHIPPING_ID_FIELD_DESC = new TField("shippingId", TType.I64, (short)2);private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);private long transactionId;private long shippingId;private long timestamp;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),SHIPPING_ID((short)2, "shippingId"),TIMESTAMP((short)3, "timestamp");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private static final int __SHIPPINGID_ISSET_ID = 1;private static final int __TIMESTAMP_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.SHIPPING_ID, new FieldMetaData("shippingId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(setShippingDate_args.class, metaDataMap);}public setShippingDate_args() {}public setShippingDate_args(long transactionId,long shippingId,long timestamp){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.shippingId = shippingId;setShippingIdIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public setShippingDate_args(setShippingDate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;this.shippingId = other.shippingId;this.timestamp = other.timestamp;}public setShippingDate_args deepCopy() {return new setShippingDate_args(this);}@Deprecatedpublic setShippingDate_args clone() {return new setShippingDate_args(this);}public long getTransactionId() {return this.transactionId;}public setShippingDate_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public long getShippingId() {return this.shippingId;}public setShippingDate_args setShippingId(long shippingId) {this.shippingId = shippingId;setShippingIdIsSet(true);return this;}public void unsetShippingId() {__isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);}/** Returns true if field shippingId is set (has been asigned a value) and false otherwise */public boolean isSetShippingId() {return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);}public void setShippingIdIsSet(boolean value) {__isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public setShippingDate_args setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);return this;}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been asigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case SHIPPING_ID:if (value == null) {unsetShippingId();} else {setShippingId((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());case SHIPPING_ID:return new Long(getShippingId());case TIMESTAMP:return new Long(getTimestamp());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();case SHIPPING_ID:return isSetShippingId();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setShippingDate_args)return this.equals((setShippingDate_args)that);return false;}public boolean equals(setShippingDate_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_shippingId = true;boolean that_present_shippingId = true;if (this_present_shippingId || that_present_shippingId) {if (!(this_present_shippingId && that_present_shippingId))return false;if (this.shippingId != that.shippingId)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setShippingDate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setShippingDate_args typedOther = (setShippingDate_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetShippingId()).compareTo(isSetShippingId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(shippingId, typedOther.shippingId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SHIPPING_ID:if (field.type == TType.I64) {this.shippingId = iprot.readI64();setShippingIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case TIMESTAMP:if (field.type == TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);oprot.writeI64(this.shippingId);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setShippingDate_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("shippingId:");sb.append(this.shippingId);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class setShippingDate_result implements TBase<setShippingDate_result._Fields>, java.io.Serializable, Cloneable, Comparable<setShippingDate_result> {private static final TStruct STRUCT_DESC = new TStruct("setShippingDate_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private boolean success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(setShippingDate_result.class, metaDataMap);}public setShippingDate_result() {}public setShippingDate_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public setShippingDate_result(setShippingDate_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public setShippingDate_result deepCopy() {return new setShippingDate_result(this);}@Deprecatedpublic setShippingDate_result clone() {return new setShippingDate_result(this);}public boolean isSuccess() {return this.success;}public setShippingDate_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public setShippingDate_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setShippingDate_result)return this.equals((setShippingDate_result)that);return false;}public boolean equals(setShippingDate_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setShippingDate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setShippingDate_result typedOther = (setShippingDate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setShippingDate_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class setDeliveryDate_args implements TBase<setDeliveryDate_args._Fields>, java.io.Serializable, Cloneable, Comparable<setDeliveryDate_args> {private static final TStruct STRUCT_DESC = new TStruct("setDeliveryDate_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private static final TField SHIPPINGID_FIELD_DESC = new TField("shippingid", TType.I64, (short)2);private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)3);private long transactionId;private long shippingid;private long timestamp;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),SHIPPINGID((short)2, "shippingid"),TIMESTAMP((short)3, "timestamp");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private static final int __SHIPPINGID_ISSET_ID = 1;private static final int __TIMESTAMP_ISSET_ID = 2;private BitSet __isset_bit_vector = new BitSet(3);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.SHIPPINGID, new FieldMetaData("shippingid", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));}});static {FieldMetaData.addStructMetaDataMap(setDeliveryDate_args.class, metaDataMap);}public setDeliveryDate_args() {}public setDeliveryDate_args(long transactionId,long shippingid,long timestamp){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.shippingid = shippingid;setShippingidIsSet(true);this.timestamp = timestamp;setTimestampIsSet(true);}/*** Performs a deep copy on <i>other</i>.*/public setDeliveryDate_args(setDeliveryDate_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;this.shippingid = other.shippingid;this.timestamp = other.timestamp;}public setDeliveryDate_args deepCopy() {return new setDeliveryDate_args(this);}@Deprecatedpublic setDeliveryDate_args clone() {return new setDeliveryDate_args(this);}public long getTransactionId() {return this.transactionId;}public setDeliveryDate_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public long getShippingid() {return this.shippingid;}public setDeliveryDate_args setShippingid(long shippingid) {this.shippingid = shippingid;setShippingidIsSet(true);return this;}public void unsetShippingid() {__isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);}/** Returns true if field shippingid is set (has been asigned a value) and false otherwise */public boolean isSetShippingid() {return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);}public void setShippingidIsSet(boolean value) {__isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);}public long getTimestamp() {return this.timestamp;}public setDeliveryDate_args setTimestamp(long timestamp) {this.timestamp = timestamp;setTimestampIsSet(true);return this;}public void unsetTimestamp() {__isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);}/** Returns true if field timestamp is set (has been asigned a value) and false otherwise */public boolean isSetTimestamp() {return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);}public void setTimestampIsSet(boolean value) {__isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case SHIPPINGID:if (value == null) {unsetShippingid();} else {setShippingid((Long)value);}break;case TIMESTAMP:if (value == null) {unsetTimestamp();} else {setTimestamp((Long)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());case SHIPPINGID:return new Long(getShippingid());case TIMESTAMP:return new Long(getTimestamp());}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();case SHIPPINGID:return isSetShippingid();case TIMESTAMP:return isSetTimestamp();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setDeliveryDate_args)return this.equals((setDeliveryDate_args)that);return false;}public boolean equals(setDeliveryDate_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_shippingid = true;boolean that_present_shippingid = true;if (this_present_shippingid || that_present_shippingid) {if (!(this_present_shippingid && that_present_shippingid))return false;if (this.shippingid != that.shippingid)return false;}boolean this_present_timestamp = true;boolean that_present_timestamp = true;if (this_present_timestamp || that_present_timestamp) {if (!(this_present_timestamp && that_present_timestamp))return false;if (this.timestamp != that.timestamp)return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setDeliveryDate_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setDeliveryDate_args typedOther = (setDeliveryDate_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetShippingid()).compareTo(isSetShippingid());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(shippingid, typedOther.shippingid);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SHIPPINGID:if (field.type == TType.I64) {this.shippingid = iprot.readI64();setShippingidIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case TIMESTAMP:if (field.type == TType.I64) {this.timestamp = iprot.readI64();setTimestampIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldBegin(SHIPPINGID_FIELD_DESC);oprot.writeI64(this.shippingid);oprot.writeFieldEnd();oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);oprot.writeI64(this.timestamp);oprot.writeFieldEnd();oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setDeliveryDate_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("shippingid:");sb.append(this.shippingid);first = false;if (!first) sb.append(", ");sb.append("timestamp:");sb.append(this.timestamp);first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class setDeliveryDate_result implements TBase<setDeliveryDate_result._Fields>, java.io.Serializable, Cloneable, Comparable<setDeliveryDate_result> {private static final TStruct STRUCT_DESC = new TStruct("setDeliveryDate_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private boolean success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(setDeliveryDate_result.class, metaDataMap);}public setDeliveryDate_result() {}public setDeliveryDate_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public setDeliveryDate_result(setDeliveryDate_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public setDeliveryDate_result deepCopy() {return new setDeliveryDate_result(this);}@Deprecatedpublic setDeliveryDate_result clone() {return new setDeliveryDate_result(this);}public boolean isSuccess() {return this.success;}public setDeliveryDate_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public setDeliveryDate_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof setDeliveryDate_result)return this.equals((setDeliveryDate_result)that);return false;}public boolean equals(setDeliveryDate_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(setDeliveryDate_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;setDeliveryDate_result typedOther = (setDeliveryDate_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("setDeliveryDate_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class changeShippingStatus_args implements TBase<changeShippingStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<changeShippingStatus_args> {private static final TStruct STRUCT_DESC = new TStruct("changeShippingStatus_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private static final TField SHIPPING_ID_FIELD_DESC = new TField("shippingId", TType.I64, (short)2);private static final TField STATUS_FIELD_DESC = new TField("status", TType.I32, (short)3);private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)4);private long transactionId;private long shippingId;private ShipmentStatus status;private String description;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),SHIPPING_ID((short)2, "shippingId"),/**** @see ShipmentStatus*/STATUS((short)3, "status"),DESCRIPTION((short)4, "description");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private static final int __SHIPPINGID_ISSET_ID = 1;private BitSet __isset_bit_vector = new BitSet(2);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.SHIPPING_ID, new FieldMetaData("shippingId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.STATUS, new FieldMetaData("status", TFieldRequirementType.DEFAULT,new EnumMetaData(TType.ENUM, ShipmentStatus.class)));put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(changeShippingStatus_args.class, metaDataMap);}public changeShippingStatus_args() {}public changeShippingStatus_args(long transactionId,long shippingId,ShipmentStatus status,String description){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.shippingId = shippingId;setShippingIdIsSet(true);this.status = status;this.description = description;}/*** Performs a deep copy on <i>other</i>.*/public changeShippingStatus_args(changeShippingStatus_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;this.shippingId = other.shippingId;if (other.isSetStatus()) {this.status = other.status;}if (other.isSetDescription()) {this.description = other.description;}}public changeShippingStatus_args deepCopy() {return new changeShippingStatus_args(this);}@Deprecatedpublic changeShippingStatus_args clone() {return new changeShippingStatus_args(this);}public long getTransactionId() {return this.transactionId;}public changeShippingStatus_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public long getShippingId() {return this.shippingId;}public changeShippingStatus_args setShippingId(long shippingId) {this.shippingId = shippingId;setShippingIdIsSet(true);return this;}public void unsetShippingId() {__isset_bit_vector.clear(__SHIPPINGID_ISSET_ID);}/** Returns true if field shippingId is set (has been asigned a value) and false otherwise */public boolean isSetShippingId() {return __isset_bit_vector.get(__SHIPPINGID_ISSET_ID);}public void setShippingIdIsSet(boolean value) {__isset_bit_vector.set(__SHIPPINGID_ISSET_ID, value);}/**** @see ShipmentStatus*/public ShipmentStatus getStatus() {return this.status;}/**** @see ShipmentStatus*/public changeShippingStatus_args setStatus(ShipmentStatus status) {this.status = status;return this;}public void unsetStatus() {this.status = null;}/** Returns true if field status is set (has been asigned a value) and false otherwise */public boolean isSetStatus() {return this.status != null;}public void setStatusIsSet(boolean value) {if (!value) {this.status = null;}}public String getDescription() {return this.description;}public changeShippingStatus_args setDescription(String description) {this.description = description;return this;}public void unsetDescription() {this.description = null;}/** Returns true if field description is set (has been asigned a value) and false otherwise */public boolean isSetDescription() {return this.description != null;}public void setDescriptionIsSet(boolean value) {if (!value) {this.description = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case SHIPPING_ID:if (value == null) {unsetShippingId();} else {setShippingId((Long)value);}break;case STATUS:if (value == null) {unsetStatus();} else {setStatus((ShipmentStatus)value);}break;case DESCRIPTION:if (value == null) {unsetDescription();} else {setDescription((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());case SHIPPING_ID:return new Long(getShippingId());case STATUS:return getStatus();case DESCRIPTION:return getDescription();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();case SHIPPING_ID:return isSetShippingId();case STATUS:return isSetStatus();case DESCRIPTION:return isSetDescription();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeShippingStatus_args)return this.equals((changeShippingStatus_args)that);return false;}public boolean equals(changeShippingStatus_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_shippingId = true;boolean that_present_shippingId = true;if (this_present_shippingId || that_present_shippingId) {if (!(this_present_shippingId && that_present_shippingId))return false;if (this.shippingId != that.shippingId)return false;}boolean this_present_status = true && this.isSetStatus();boolean that_present_status = true && that.isSetStatus();if (this_present_status || that_present_status) {if (!(this_present_status && that_present_status))return false;if (!this.status.equals(that.status))return false;}boolean this_present_description = true && this.isSetDescription();boolean that_present_description = true && that.isSetDescription();if (this_present_description || that_present_description) {if (!(this_present_description && that_present_description))return false;if (!this.description.equals(that.description))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeShippingStatus_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeShippingStatus_args typedOther = (changeShippingStatus_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetShippingId()).compareTo(isSetShippingId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(shippingId, typedOther.shippingId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetStatus()).compareTo(isSetStatus());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(status, typedOther.status);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(description, typedOther.description);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case SHIPPING_ID:if (field.type == TType.I64) {this.shippingId = iprot.readI64();setShippingIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case STATUS:if (field.type == TType.I32) {this.status = ShipmentStatus.findByValue(iprot.readI32());} else {TProtocolUtil.skip(iprot, field.type);}break;case DESCRIPTION:if (field.type == TType.STRING) {this.description = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();oprot.writeFieldBegin(SHIPPING_ID_FIELD_DESC);oprot.writeI64(this.shippingId);oprot.writeFieldEnd();if (this.status != null) {oprot.writeFieldBegin(STATUS_FIELD_DESC);oprot.writeI32(this.status.getValue());oprot.writeFieldEnd();}if (this.description != null) {oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);oprot.writeString(this.description);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeShippingStatus_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("shippingId:");sb.append(this.shippingId);first = false;if (!first) sb.append(", ");sb.append("status:");if (this.status == null) {sb.append("null");} else {String status_name = status.name();if (status_name != null) {sb.append(status_name);sb.append(" (");}sb.append(this.status);if (status_name != null) {sb.append(")");}}first = false;if (!first) sb.append(", ");sb.append("description:");if (this.description == null) {sb.append("null");} else {sb.append(this.description);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class changeShippingStatus_result implements TBase<changeShippingStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<changeShippingStatus_result> {private static final TStruct STRUCT_DESC = new TStruct("changeShippingStatus_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private boolean success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(changeShippingStatus_result.class, metaDataMap);}public changeShippingStatus_result() {}public changeShippingStatus_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public changeShippingStatus_result(changeShippingStatus_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public changeShippingStatus_result deepCopy() {return new changeShippingStatus_result(this);}@Deprecatedpublic changeShippingStatus_result clone() {return new changeShippingStatus_result(this);}public boolean isSuccess() {return this.success;}public changeShippingStatus_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public changeShippingStatus_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof changeShippingStatus_result)return this.equals((changeShippingStatus_result)that);return false;}public boolean equals(changeShippingStatus_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(changeShippingStatus_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;changeShippingStatus_result typedOther = (changeShippingStatus_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("changeShippingStatus_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addTrail_args implements TBase<addTrail_args._Fields>, java.io.Serializable, Cloneable, Comparable<addTrail_args> {private static final TStruct STRUCT_DESC = new TStruct("addTrail_args");private static final TField TRANSACTION_ID_FIELD_DESC = new TField("transactionId", TType.I64, (short)1);private static final TField DESCRIPTION_FIELD_DESC = new TField("description", TType.STRING, (short)2);private long transactionId;private String description;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {TRANSACTION_ID((short)1, "transactionId"),DESCRIPTION((short)2, "description");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __TRANSACTIONID_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.TRANSACTION_ID, new FieldMetaData("transactionId", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.I64)));put(_Fields.DESCRIPTION, new FieldMetaData("description", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRING)));}});static {FieldMetaData.addStructMetaDataMap(addTrail_args.class, metaDataMap);}public addTrail_args() {}public addTrail_args(long transactionId,String description){this();this.transactionId = transactionId;setTransactionIdIsSet(true);this.description = description;}/*** Performs a deep copy on <i>other</i>.*/public addTrail_args(addTrail_args other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.transactionId = other.transactionId;if (other.isSetDescription()) {this.description = other.description;}}public addTrail_args deepCopy() {return new addTrail_args(this);}@Deprecatedpublic addTrail_args clone() {return new addTrail_args(this);}public long getTransactionId() {return this.transactionId;}public addTrail_args setTransactionId(long transactionId) {this.transactionId = transactionId;setTransactionIdIsSet(true);return this;}public void unsetTransactionId() {__isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);}/** Returns true if field transactionId is set (has been asigned a value) and false otherwise */public boolean isSetTransactionId() {return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);}public void setTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);}public String getDescription() {return this.description;}public addTrail_args setDescription(String description) {this.description = description;return this;}public void unsetDescription() {this.description = null;}/** Returns true if field description is set (has been asigned a value) and false otherwise */public boolean isSetDescription() {return this.description != null;}public void setDescriptionIsSet(boolean value) {if (!value) {this.description = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case TRANSACTION_ID:if (value == null) {unsetTransactionId();} else {setTransactionId((Long)value);}break;case DESCRIPTION:if (value == null) {unsetDescription();} else {setDescription((String)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case TRANSACTION_ID:return new Long(getTransactionId());case DESCRIPTION:return getDescription();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case TRANSACTION_ID:return isSetTransactionId();case DESCRIPTION:return isSetDescription();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addTrail_args)return this.equals((addTrail_args)that);return false;}public boolean equals(addTrail_args that) {if (that == null)return false;boolean this_present_transactionId = true;boolean that_present_transactionId = true;if (this_present_transactionId || that_present_transactionId) {if (!(this_present_transactionId && that_present_transactionId))return false;if (this.transactionId != that.transactionId)return false;}boolean this_present_description = true && this.isSetDescription();boolean that_present_description = true && that.isSetDescription();if (this_present_description || that_present_description) {if (!(this_present_description && that_present_description))return false;if (!this.description.equals(that.description))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addTrail_args other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addTrail_args typedOther = (addTrail_args)other;lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(isSetTransactionId());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(transactionId, typedOther.transactionId);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetDescription()).compareTo(isSetDescription());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(description, typedOther.description);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case TRANSACTION_ID:if (field.type == TType.I64) {this.transactionId = iprot.readI64();setTransactionIdIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case DESCRIPTION:if (field.type == TType.STRING) {this.description = iprot.readString();} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.transactionId);oprot.writeFieldEnd();if (this.description != null) {oprot.writeFieldBegin(DESCRIPTION_FIELD_DESC);oprot.writeString(this.description);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addTrail_args(");boolean first = true;sb.append("transactionId:");sb.append(this.transactionId);first = false;if (!first) sb.append(", ");sb.append("description:");if (this.description == null) {sb.append("null");} else {sb.append(this.description);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}public static class addTrail_result implements TBase<addTrail_result._Fields>, java.io.Serializable, Cloneable, Comparable<addTrail_result> {private static final TStruct STRUCT_DESC = new TStruct("addTrail_result");private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);private static final TField EX_FIELD_DESC = new TField("ex", TType.STRUCT, (short)1);private boolean success;private TransactionServiceException ex;/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements TFieldIdEnum {SUCCESS((short)0, "success"),EX((short)1, "ex");private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byId.put((int)field._thriftId, field);byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {return byId.get(fieldId);}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __SUCCESS_ISSET_ID = 0;private BitSet __isset_bit_vector = new BitSet(1);public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.BOOL)));put(_Fields.EX, new FieldMetaData("ex", TFieldRequirementType.DEFAULT,new FieldValueMetaData(TType.STRUCT)));}});static {FieldMetaData.addStructMetaDataMap(addTrail_result.class, metaDataMap);}public addTrail_result() {}public addTrail_result(boolean success,TransactionServiceException ex){this();this.success = success;setSuccessIsSet(true);this.ex = ex;}/*** Performs a deep copy on <i>other</i>.*/public addTrail_result(addTrail_result other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.success = other.success;if (other.isSetEx()) {this.ex = new TransactionServiceException(other.ex);}}public addTrail_result deepCopy() {return new addTrail_result(this);}@Deprecatedpublic addTrail_result clone() {return new addTrail_result(this);}public boolean isSuccess() {return this.success;}public addTrail_result setSuccess(boolean success) {this.success = success;setSuccessIsSet(true);return this;}public void unsetSuccess() {__isset_bit_vector.clear(__SUCCESS_ISSET_ID);}/** Returns true if field success is set (has been asigned a value) and false otherwise */public boolean isSetSuccess() {return __isset_bit_vector.get(__SUCCESS_ISSET_ID);}public void setSuccessIsSet(boolean value) {__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);}public TransactionServiceException getEx() {return this.ex;}public addTrail_result setEx(TransactionServiceException ex) {this.ex = ex;return this;}public void unsetEx() {this.ex = null;}/** Returns true if field ex is set (has been asigned a value) and false otherwise */public boolean isSetEx() {return this.ex != null;}public void setExIsSet(boolean value) {if (!value) {this.ex = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case SUCCESS:if (value == null) {unsetSuccess();} else {setSuccess((Boolean)value);}break;case EX:if (value == null) {unsetEx();} else {setEx((TransactionServiceException)value);}break;}}public void setFieldValue(int fieldID, Object value) {setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);}public Object getFieldValue(_Fields field) {switch (field) {case SUCCESS:return new Boolean(isSuccess());case EX:return getEx();}throw new IllegalStateException();}public Object getFieldValue(int fieldId) {return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));}/** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */public boolean isSet(_Fields field) {switch (field) {case SUCCESS:return isSetSuccess();case EX:return isSetEx();}throw new IllegalStateException();}public boolean isSet(int fieldID) {return isSet(_Fields.findByThriftIdOrThrow(fieldID));}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof addTrail_result)return this.equals((addTrail_result)that);return false;}public boolean equals(addTrail_result that) {if (that == null)return false;boolean this_present_success = true;boolean that_present_success = true;if (this_present_success || that_present_success) {if (!(this_present_success && that_present_success))return false;if (this.success != that.success)return false;}boolean this_present_ex = true && this.isSetEx();boolean that_present_ex = true && that.isSetEx();if (this_present_ex || that_present_ex) {if (!(this_present_ex && that_present_ex))return false;if (!this.ex.equals(that.ex))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(addTrail_result other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;addTrail_result typedOther = (addTrail_result)other;lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(success, typedOther.success);if (lastComparison != 0) {return lastComparison;}lastComparison = Boolean.valueOf(isSetEx()).compareTo(isSetEx());if (lastComparison != 0) {return lastComparison;}lastComparison = TBaseHelper.compareTo(ex, typedOther.ex);if (lastComparison != 0) {return lastComparison;}return 0;}public void read(TProtocol iprot) throws TException {TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == TType.STOP) {break;}_Fields fieldId = _Fields.findByThriftId(field.id);if (fieldId == null) {TProtocolUtil.skip(iprot, field.type);} else {switch (fieldId) {case SUCCESS:if (field.type == TType.BOOL) {this.success = iprot.readBool();setSuccessIsSet(true);} else {TProtocolUtil.skip(iprot, field.type);}break;case EX:if (field.type == TType.STRUCT) {this.ex = new TransactionServiceException();this.ex.read(iprot);} else {TProtocolUtil.skip(iprot, field.type);}break;}iprot.readFieldEnd();}}iprot.readStructEnd();validate();}public void write(TProtocol oprot) throws TException {oprot.writeStructBegin(STRUCT_DESC);if (this.isSetSuccess()) {oprot.writeFieldBegin(SUCCESS_FIELD_DESC);oprot.writeBool(this.success);oprot.writeFieldEnd();} else if (this.isSetEx()) {oprot.writeFieldBegin(EX_FIELD_DESC);this.ex.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("addTrail_result(");boolean first = true;sb.append("success:");sb.append(this.success);first = false;if (!first) sb.append(", ");sb.append("ex:");if (this.ex == null) {sb.append("null");} else {sb.append(this.ex);}first = false;sb.append(")");return sb.toString();}public void validate() throws TException {// check for required fields}}}