Subversion Repositories SmartDukaan

Rev

Rev 19004 | Rev 19474 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19004 Rev 19421
Line 1204... Line 1204...
1204
     * @param warehouse_id
1204
     * @param warehouse_id
1205
     * @param source
1205
     * @param source
1206
     */
1206
     */
1207
    public List<Order> getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws TransactionServiceException, org.apache.thrift.TException;
1207
    public List<Order> getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source) throws TransactionServiceException, org.apache.thrift.TException;
1208
 
1208
 
-
 
1209
    /**
-
 
1210
     * sets attributes for all orders in a Master Order Id or Shipment Id
-
 
1211
     * 
-
 
1212
     * @param logisticsTransactionId
-
 
1213
     * @param attributes
-
 
1214
     */
-
 
1215
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes) throws org.apache.thrift.TException;
-
 
1216
 
-
 
1217
    public boolean updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo) throws org.apache.thrift.TException;
-
 
1218
 
1209
  }
1219
  }
1210
 
1220
 
1211
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1221
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1212
 
1222
 
1213
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1223
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1782... Line 1792...
1782
 
1792
 
1783
    public void verifyOrderForTransaction(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrderForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1793
    public void verifyOrderForTransaction(long transactionId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.verifyOrderForTransaction_call> resultHandler) throws org.apache.thrift.TException;
1784
 
1794
 
1785
    public void getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersInBatchAsPromisedShipping_call> resultHandler) throws org.apache.thrift.TException;
1795
    public void getOrdersInBatchAsPromisedShipping(List<OrderStatus> statuses, long offset, long limit, long warehouse_id, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrdersInBatchAsPromisedShipping_call> resultHandler) throws org.apache.thrift.TException;
1786
 
1796
 
-
 
1797
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.setOrderAttributeForMasterOrderId_call> resultHandler) throws org.apache.thrift.TException;
-
 
1798
 
-
 
1799
    public void updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMasterOrderAWB_call> resultHandler) throws org.apache.thrift.TException;
-
 
1800
 
1787
  }
1801
  }
1788
 
1802
 
1789
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1803
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1790
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1804
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1791
      public Factory() {}
1805
      public Factory() {}
Line 8926... Line 8940...
8926
        throw result.ex;
8940
        throw result.ex;
8927
      }
8941
      }
8928
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatchAsPromisedShipping failed: unknown result");
8942
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrdersInBatchAsPromisedShipping failed: unknown result");
8929
    }
8943
    }
8930
 
8944
 
-
 
8945
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes) throws org.apache.thrift.TException
-
 
8946
    {
-
 
8947
      send_setOrderAttributeForMasterOrderId(logisticsTransactionId, attributes);
-
 
8948
      recv_setOrderAttributeForMasterOrderId();
-
 
8949
    }
-
 
8950
 
-
 
8951
    public void send_setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes) throws org.apache.thrift.TException
-
 
8952
    {
-
 
8953
      setOrderAttributeForMasterOrderId_args args = new setOrderAttributeForMasterOrderId_args();
-
 
8954
      args.setLogisticsTransactionId(logisticsTransactionId);
-
 
8955
      args.setAttributes(attributes);
-
 
8956
      sendBase("setOrderAttributeForMasterOrderId", args);
-
 
8957
    }
-
 
8958
 
-
 
8959
    public void recv_setOrderAttributeForMasterOrderId() throws org.apache.thrift.TException
-
 
8960
    {
-
 
8961
      setOrderAttributeForMasterOrderId_result result = new setOrderAttributeForMasterOrderId_result();
-
 
8962
      receiveBase(result, "setOrderAttributeForMasterOrderId");
-
 
8963
      return;
-
 
8964
    }
-
 
8965
 
-
 
8966
    public boolean updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo) throws org.apache.thrift.TException
-
 
8967
    {
-
 
8968
      send_updateMasterOrderAWB(logisticsTransactionId, airwayBillNo);
-
 
8969
      return recv_updateMasterOrderAWB();
-
 
8970
    }
-
 
8971
 
-
 
8972
    public void send_updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo) throws org.apache.thrift.TException
-
 
8973
    {
-
 
8974
      updateMasterOrderAWB_args args = new updateMasterOrderAWB_args();
-
 
8975
      args.setLogisticsTransactionId(logisticsTransactionId);
-
 
8976
      args.setAirwayBillNo(airwayBillNo);
-
 
8977
      sendBase("updateMasterOrderAWB", args);
-
 
8978
    }
-
 
8979
 
-
 
8980
    public boolean recv_updateMasterOrderAWB() throws org.apache.thrift.TException
-
 
8981
    {
-
 
8982
      updateMasterOrderAWB_result result = new updateMasterOrderAWB_result();
-
 
8983
      receiveBase(result, "updateMasterOrderAWB");
-
 
8984
      if (result.isSetSuccess()) {
-
 
8985
        return result.success;
-
 
8986
      }
-
 
8987
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateMasterOrderAWB failed: unknown result");
-
 
8988
    }
-
 
8989
 
8931
  }
8990
  }
8932
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
8991
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
8933
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
8992
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
8934
      private org.apache.thrift.async.TAsyncClientManager clientManager;
8993
      private org.apache.thrift.async.TAsyncClientManager clientManager;
8935
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
8994
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 18953... Line 19012...
18953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19012
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
18954
        return (new Client(prot)).recv_getOrdersInBatchAsPromisedShipping();
19013
        return (new Client(prot)).recv_getOrdersInBatchAsPromisedShipping();
18955
      }
19014
      }
18956
    }
19015
    }
18957
 
19016
 
-
 
19017
    public void setOrderAttributeForMasterOrderId(String logisticsTransactionId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributeForMasterOrderId_call> resultHandler) throws org.apache.thrift.TException {
-
 
19018
      checkReady();
-
 
19019
      setOrderAttributeForMasterOrderId_call method_call = new setOrderAttributeForMasterOrderId_call(logisticsTransactionId, attributes, resultHandler, this, ___protocolFactory, ___transport);
-
 
19020
      this.___currentMethod = method_call;
-
 
19021
      ___manager.call(method_call);
-
 
19022
    }
-
 
19023
 
-
 
19024
    public static class setOrderAttributeForMasterOrderId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19025
      private String logisticsTransactionId;
-
 
19026
      private List<Attribute> attributes;
-
 
19027
      public setOrderAttributeForMasterOrderId_call(String logisticsTransactionId, List<Attribute> attributes, org.apache.thrift.async.AsyncMethodCallback<setOrderAttributeForMasterOrderId_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
19028
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19029
        this.logisticsTransactionId = logisticsTransactionId;
-
 
19030
        this.attributes = attributes;
-
 
19031
      }
-
 
19032
 
-
 
19033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("setOrderAttributeForMasterOrderId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19035
        setOrderAttributeForMasterOrderId_args args = new setOrderAttributeForMasterOrderId_args();
-
 
19036
        args.setLogisticsTransactionId(logisticsTransactionId);
-
 
19037
        args.setAttributes(attributes);
-
 
19038
        args.write(prot);
-
 
19039
        prot.writeMessageEnd();
-
 
19040
      }
-
 
19041
 
-
 
19042
      public void getResult() throws org.apache.thrift.TException {
-
 
19043
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19044
          throw new IllegalStateException("Method call not finished!");
-
 
19045
        }
-
 
19046
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19047
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19048
        (new Client(prot)).recv_setOrderAttributeForMasterOrderId();
-
 
19049
      }
-
 
19050
    }
-
 
19051
 
-
 
19052
    public void updateMasterOrderAWB(String logisticsTransactionId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<updateMasterOrderAWB_call> resultHandler) throws org.apache.thrift.TException {
-
 
19053
      checkReady();
-
 
19054
      updateMasterOrderAWB_call method_call = new updateMasterOrderAWB_call(logisticsTransactionId, airwayBillNo, resultHandler, this, ___protocolFactory, ___transport);
-
 
19055
      this.___currentMethod = method_call;
-
 
19056
      ___manager.call(method_call);
-
 
19057
    }
-
 
19058
 
-
 
19059
    public static class updateMasterOrderAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19060
      private String logisticsTransactionId;
-
 
19061
      private String airwayBillNo;
-
 
19062
      public updateMasterOrderAWB_call(String logisticsTransactionId, String airwayBillNo, org.apache.thrift.async.AsyncMethodCallback<updateMasterOrderAWB_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
19063
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19064
        this.logisticsTransactionId = logisticsTransactionId;
-
 
19065
        this.airwayBillNo = airwayBillNo;
-
 
19066
      }
-
 
19067
 
-
 
19068
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19069
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMasterOrderAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19070
        updateMasterOrderAWB_args args = new updateMasterOrderAWB_args();
-
 
19071
        args.setLogisticsTransactionId(logisticsTransactionId);
-
 
19072
        args.setAirwayBillNo(airwayBillNo);
-
 
19073
        args.write(prot);
-
 
19074
        prot.writeMessageEnd();
-
 
19075
      }
-
 
19076
 
-
 
19077
      public boolean getResult() throws org.apache.thrift.TException {
-
 
19078
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19079
          throw new IllegalStateException("Method call not finished!");
-
 
19080
        }
-
 
19081
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19082
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19083
        return (new Client(prot)).recv_updateMasterOrderAWB();
-
 
19084
      }
-
 
19085
    }
-
 
19086
 
18958
  }
19087
  }
18959
 
19088
 
18960
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19089
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
18961
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19090
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
18962
    public Processor(I iface) {
19091
    public Processor(I iface) {
Line 19253... Line 19382...
19253
      processMap.put("markReturnTransactionComplete", new markReturnTransactionComplete());
19382
      processMap.put("markReturnTransactionComplete", new markReturnTransactionComplete());
19254
      processMap.put("refundReturnTransactionPayment", new refundReturnTransactionPayment());
19383
      processMap.put("refundReturnTransactionPayment", new refundReturnTransactionPayment());
19255
      processMap.put("getReturnTransactionsForCustomer", new getReturnTransactionsForCustomer());
19384
      processMap.put("getReturnTransactionsForCustomer", new getReturnTransactionsForCustomer());
19256
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
19385
      processMap.put("verifyOrderForTransaction", new verifyOrderForTransaction());
19257
      processMap.put("getOrdersInBatchAsPromisedShipping", new getOrdersInBatchAsPromisedShipping());
19386
      processMap.put("getOrdersInBatchAsPromisedShipping", new getOrdersInBatchAsPromisedShipping());
-
 
19387
      processMap.put("setOrderAttributeForMasterOrderId", new setOrderAttributeForMasterOrderId());
-
 
19388
      processMap.put("updateMasterOrderAWB", new updateMasterOrderAWB());
19258
      return processMap;
19389
      return processMap;
19259
    }
19390
    }
19260
 
19391
 
19261
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19392
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
19262
      public createTransaction() {
19393
      public createTransaction() {
Line 24474... Line 24605...
24474
        }
24605
        }
24475
        return result;
24606
        return result;
24476
      }
24607
      }
24477
    }
24608
    }
24478
 
24609
 
-
 
24610
    private static class setOrderAttributeForMasterOrderId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, setOrderAttributeForMasterOrderId_args> {
-
 
24611
      public setOrderAttributeForMasterOrderId() {
-
 
24612
        super("setOrderAttributeForMasterOrderId");
-
 
24613
      }
-
 
24614
 
-
 
24615
      protected setOrderAttributeForMasterOrderId_args getEmptyArgsInstance() {
-
 
24616
        return new setOrderAttributeForMasterOrderId_args();
-
 
24617
      }
-
 
24618
 
-
 
24619
      protected setOrderAttributeForMasterOrderId_result getResult(I iface, setOrderAttributeForMasterOrderId_args args) throws org.apache.thrift.TException {
-
 
24620
        setOrderAttributeForMasterOrderId_result result = new setOrderAttributeForMasterOrderId_result();
-
 
24621
        iface.setOrderAttributeForMasterOrderId(args.logisticsTransactionId, args.attributes);
-
 
24622
        return result;
-
 
24623
      }
-
 
24624
    }
-
 
24625
 
-
 
24626
    private static class updateMasterOrderAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMasterOrderAWB_args> {
-
 
24627
      public updateMasterOrderAWB() {
-
 
24628
        super("updateMasterOrderAWB");
-
 
24629
      }
-
 
24630
 
-
 
24631
      protected updateMasterOrderAWB_args getEmptyArgsInstance() {
-
 
24632
        return new updateMasterOrderAWB_args();
-
 
24633
      }
-
 
24634
 
-
 
24635
      protected updateMasterOrderAWB_result getResult(I iface, updateMasterOrderAWB_args args) throws org.apache.thrift.TException {
-
 
24636
        updateMasterOrderAWB_result result = new updateMasterOrderAWB_result();
-
 
24637
        result.success = iface.updateMasterOrderAWB(args.logisticsTransactionId, args.airwayBillNo);
-
 
24638
        result.setSuccessIsSet(true);
-
 
24639
        return result;
-
 
24640
      }
-
 
24641
    }
-
 
24642
 
24479
  }
24643
  }
24480
 
24644
 
24481
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24645
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
24482
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
24483
 
24647
 
Line 67289... Line 67453...
67289
      }
67453
      }
67290
    }
67454
    }
67291
 
67455
 
67292
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67456
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
67293
      try {
67457
      try {
67294
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
67295
        __isset_bit_vector = new BitSet(1);
-
 
67296
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67458
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
67297
      } catch (org.apache.thrift.TException te) {
67459
      } catch (org.apache.thrift.TException te) {
67298
        throw new java.io.IOException(te);
67460
        throw new java.io.IOException(te);
67299
      }
67461
      }
67300
    }
67462
    }
Line 230175... Line 230337...
230175
      first = false;
230337
      first = false;
230176
      sb.append(")");
230338
      sb.append(")");
230177
      return sb.toString();
230339
      return sb.toString();
230178
    }
230340
    }
230179
 
230341
 
-
 
230342
    public void validate() throws org.apache.thrift.TException {
-
 
230343
      // check for required fields
-
 
230344
    }
-
 
230345
 
-
 
230346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
230347
      try {
-
 
230348
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
230349
      } catch (org.apache.thrift.TException te) {
-
 
230350
        throw new java.io.IOException(te);
-
 
230351
      }
-
 
230352
    }
-
 
230353
 
-
 
230354
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
230355
      try {
-
 
230356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
230357
      } catch (org.apache.thrift.TException te) {
-
 
230358
        throw new java.io.IOException(te);
-
 
230359
      }
-
 
230360
    }
-
 
230361
 
-
 
230362
  }
-
 
230363
 
-
 
230364
  public static class setOrderAttributeForMasterOrderId_args implements org.apache.thrift.TBase<setOrderAttributeForMasterOrderId_args, setOrderAttributeForMasterOrderId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
230365
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributeForMasterOrderId_args");
-
 
230366
 
-
 
230367
    private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
230368
    private static final org.apache.thrift.protocol.TField ATTRIBUTES_FIELD_DESC = new org.apache.thrift.protocol.TField("attributes", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
230369
 
-
 
230370
    private String logisticsTransactionId; // required
-
 
230371
    private List<Attribute> attributes; // required
-
 
230372
 
-
 
230373
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
230374
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
230375
      LOGISTICS_TRANSACTION_ID((short)1, "logisticsTransactionId"),
-
 
230376
      ATTRIBUTES((short)2, "attributes");
-
 
230377
 
-
 
230378
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
230379
 
-
 
230380
      static {
-
 
230381
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
230382
          byName.put(field.getFieldName(), field);
-
 
230383
        }
-
 
230384
      }
-
 
230385
 
-
 
230386
      /**
-
 
230387
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
230388
       */
-
 
230389
      public static _Fields findByThriftId(int fieldId) {
-
 
230390
        switch(fieldId) {
-
 
230391
          case 1: // LOGISTICS_TRANSACTION_ID
-
 
230392
            return LOGISTICS_TRANSACTION_ID;
-
 
230393
          case 2: // ATTRIBUTES
-
 
230394
            return ATTRIBUTES;
-
 
230395
          default:
-
 
230396
            return null;
-
 
230397
        }
-
 
230398
      }
-
 
230399
 
-
 
230400
      /**
-
 
230401
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
230402
       * if it is not found.
-
 
230403
       */
-
 
230404
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
230405
        _Fields fields = findByThriftId(fieldId);
-
 
230406
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
230407
        return fields;
-
 
230408
      }
-
 
230409
 
-
 
230410
      /**
-
 
230411
       * Find the _Fields constant that matches name, or null if its not found.
-
 
230412
       */
-
 
230413
      public static _Fields findByName(String name) {
-
 
230414
        return byName.get(name);
-
 
230415
      }
-
 
230416
 
-
 
230417
      private final short _thriftId;
-
 
230418
      private final String _fieldName;
-
 
230419
 
-
 
230420
      _Fields(short thriftId, String fieldName) {
-
 
230421
        _thriftId = thriftId;
-
 
230422
        _fieldName = fieldName;
-
 
230423
      }
-
 
230424
 
-
 
230425
      public short getThriftFieldId() {
-
 
230426
        return _thriftId;
-
 
230427
      }
-
 
230428
 
-
 
230429
      public String getFieldName() {
-
 
230430
        return _fieldName;
-
 
230431
      }
-
 
230432
    }
-
 
230433
 
-
 
230434
    // isset id assignments
-
 
230435
 
-
 
230436
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
230437
    static {
-
 
230438
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
230439
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
230440
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
230441
      tmpMap.put(_Fields.ATTRIBUTES, new org.apache.thrift.meta_data.FieldMetaData("attributes", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
230442
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
230443
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Attribute.class))));
-
 
230444
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
230445
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributeForMasterOrderId_args.class, metaDataMap);
-
 
230446
    }
-
 
230447
 
-
 
230448
    public setOrderAttributeForMasterOrderId_args() {
-
 
230449
    }
-
 
230450
 
-
 
230451
    public setOrderAttributeForMasterOrderId_args(
-
 
230452
      String logisticsTransactionId,
-
 
230453
      List<Attribute> attributes)
-
 
230454
    {
-
 
230455
      this();
-
 
230456
      this.logisticsTransactionId = logisticsTransactionId;
-
 
230457
      this.attributes = attributes;
-
 
230458
    }
-
 
230459
 
-
 
230460
    /**
-
 
230461
     * Performs a deep copy on <i>other</i>.
-
 
230462
     */
-
 
230463
    public setOrderAttributeForMasterOrderId_args(setOrderAttributeForMasterOrderId_args other) {
-
 
230464
      if (other.isSetLogisticsTransactionId()) {
-
 
230465
        this.logisticsTransactionId = other.logisticsTransactionId;
-
 
230466
      }
-
 
230467
      if (other.isSetAttributes()) {
-
 
230468
        List<Attribute> __this__attributes = new ArrayList<Attribute>();
-
 
230469
        for (Attribute other_element : other.attributes) {
-
 
230470
          __this__attributes.add(new Attribute(other_element));
-
 
230471
        }
-
 
230472
        this.attributes = __this__attributes;
-
 
230473
      }
-
 
230474
    }
-
 
230475
 
-
 
230476
    public setOrderAttributeForMasterOrderId_args deepCopy() {
-
 
230477
      return new setOrderAttributeForMasterOrderId_args(this);
-
 
230478
    }
-
 
230479
 
-
 
230480
    @Override
-
 
230481
    public void clear() {
-
 
230482
      this.logisticsTransactionId = null;
-
 
230483
      this.attributes = null;
-
 
230484
    }
-
 
230485
 
-
 
230486
    public String getLogisticsTransactionId() {
-
 
230487
      return this.logisticsTransactionId;
-
 
230488
    }
-
 
230489
 
-
 
230490
    public void setLogisticsTransactionId(String logisticsTransactionId) {
-
 
230491
      this.logisticsTransactionId = logisticsTransactionId;
-
 
230492
    }
-
 
230493
 
-
 
230494
    public void unsetLogisticsTransactionId() {
-
 
230495
      this.logisticsTransactionId = null;
-
 
230496
    }
-
 
230497
 
-
 
230498
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
-
 
230499
    public boolean isSetLogisticsTransactionId() {
-
 
230500
      return this.logisticsTransactionId != null;
-
 
230501
    }
-
 
230502
 
-
 
230503
    public void setLogisticsTransactionIdIsSet(boolean value) {
-
 
230504
      if (!value) {
-
 
230505
        this.logisticsTransactionId = null;
-
 
230506
      }
-
 
230507
    }
-
 
230508
 
-
 
230509
    public int getAttributesSize() {
-
 
230510
      return (this.attributes == null) ? 0 : this.attributes.size();
-
 
230511
    }
-
 
230512
 
-
 
230513
    public java.util.Iterator<Attribute> getAttributesIterator() {
-
 
230514
      return (this.attributes == null) ? null : this.attributes.iterator();
-
 
230515
    }
-
 
230516
 
-
 
230517
    public void addToAttributes(Attribute elem) {
-
 
230518
      if (this.attributes == null) {
-
 
230519
        this.attributes = new ArrayList<Attribute>();
-
 
230520
      }
-
 
230521
      this.attributes.add(elem);
-
 
230522
    }
-
 
230523
 
-
 
230524
    public List<Attribute> getAttributes() {
-
 
230525
      return this.attributes;
-
 
230526
    }
-
 
230527
 
-
 
230528
    public void setAttributes(List<Attribute> attributes) {
-
 
230529
      this.attributes = attributes;
-
 
230530
    }
-
 
230531
 
-
 
230532
    public void unsetAttributes() {
-
 
230533
      this.attributes = null;
-
 
230534
    }
-
 
230535
 
-
 
230536
    /** Returns true if field attributes is set (has been assigned a value) and false otherwise */
-
 
230537
    public boolean isSetAttributes() {
-
 
230538
      return this.attributes != null;
-
 
230539
    }
-
 
230540
 
-
 
230541
    public void setAttributesIsSet(boolean value) {
-
 
230542
      if (!value) {
-
 
230543
        this.attributes = null;
-
 
230544
      }
-
 
230545
    }
-
 
230546
 
-
 
230547
    public void setFieldValue(_Fields field, Object value) {
-
 
230548
      switch (field) {
-
 
230549
      case LOGISTICS_TRANSACTION_ID:
-
 
230550
        if (value == null) {
-
 
230551
          unsetLogisticsTransactionId();
-
 
230552
        } else {
-
 
230553
          setLogisticsTransactionId((String)value);
-
 
230554
        }
-
 
230555
        break;
-
 
230556
 
-
 
230557
      case ATTRIBUTES:
-
 
230558
        if (value == null) {
-
 
230559
          unsetAttributes();
-
 
230560
        } else {
-
 
230561
          setAttributes((List<Attribute>)value);
-
 
230562
        }
-
 
230563
        break;
-
 
230564
 
-
 
230565
      }
-
 
230566
    }
-
 
230567
 
-
 
230568
    public Object getFieldValue(_Fields field) {
-
 
230569
      switch (field) {
-
 
230570
      case LOGISTICS_TRANSACTION_ID:
-
 
230571
        return getLogisticsTransactionId();
-
 
230572
 
-
 
230573
      case ATTRIBUTES:
-
 
230574
        return getAttributes();
-
 
230575
 
-
 
230576
      }
-
 
230577
      throw new IllegalStateException();
-
 
230578
    }
-
 
230579
 
-
 
230580
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
230581
    public boolean isSet(_Fields field) {
-
 
230582
      if (field == null) {
-
 
230583
        throw new IllegalArgumentException();
-
 
230584
      }
-
 
230585
 
-
 
230586
      switch (field) {
-
 
230587
      case LOGISTICS_TRANSACTION_ID:
-
 
230588
        return isSetLogisticsTransactionId();
-
 
230589
      case ATTRIBUTES:
-
 
230590
        return isSetAttributes();
-
 
230591
      }
-
 
230592
      throw new IllegalStateException();
-
 
230593
    }
-
 
230594
 
-
 
230595
    @Override
-
 
230596
    public boolean equals(Object that) {
-
 
230597
      if (that == null)
-
 
230598
        return false;
-
 
230599
      if (that instanceof setOrderAttributeForMasterOrderId_args)
-
 
230600
        return this.equals((setOrderAttributeForMasterOrderId_args)that);
-
 
230601
      return false;
-
 
230602
    }
-
 
230603
 
-
 
230604
    public boolean equals(setOrderAttributeForMasterOrderId_args that) {
-
 
230605
      if (that == null)
-
 
230606
        return false;
-
 
230607
 
-
 
230608
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
-
 
230609
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
-
 
230610
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
-
 
230611
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
-
 
230612
          return false;
-
 
230613
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
-
 
230614
          return false;
-
 
230615
      }
-
 
230616
 
-
 
230617
      boolean this_present_attributes = true && this.isSetAttributes();
-
 
230618
      boolean that_present_attributes = true && that.isSetAttributes();
-
 
230619
      if (this_present_attributes || that_present_attributes) {
-
 
230620
        if (!(this_present_attributes && that_present_attributes))
-
 
230621
          return false;
-
 
230622
        if (!this.attributes.equals(that.attributes))
-
 
230623
          return false;
-
 
230624
      }
-
 
230625
 
-
 
230626
      return true;
-
 
230627
    }
-
 
230628
 
-
 
230629
    @Override
-
 
230630
    public int hashCode() {
-
 
230631
      return 0;
-
 
230632
    }
-
 
230633
 
-
 
230634
    public int compareTo(setOrderAttributeForMasterOrderId_args other) {
-
 
230635
      if (!getClass().equals(other.getClass())) {
-
 
230636
        return getClass().getName().compareTo(other.getClass().getName());
-
 
230637
      }
-
 
230638
 
-
 
230639
      int lastComparison = 0;
-
 
230640
      setOrderAttributeForMasterOrderId_args typedOther = (setOrderAttributeForMasterOrderId_args)other;
-
 
230641
 
-
 
230642
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
-
 
230643
      if (lastComparison != 0) {
-
 
230644
        return lastComparison;
-
 
230645
      }
-
 
230646
      if (isSetLogisticsTransactionId()) {
-
 
230647
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
-
 
230648
        if (lastComparison != 0) {
-
 
230649
          return lastComparison;
-
 
230650
        }
-
 
230651
      }
-
 
230652
      lastComparison = Boolean.valueOf(isSetAttributes()).compareTo(typedOther.isSetAttributes());
-
 
230653
      if (lastComparison != 0) {
-
 
230654
        return lastComparison;
-
 
230655
      }
-
 
230656
      if (isSetAttributes()) {
-
 
230657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.attributes, typedOther.attributes);
-
 
230658
        if (lastComparison != 0) {
-
 
230659
          return lastComparison;
-
 
230660
        }
-
 
230661
      }
-
 
230662
      return 0;
-
 
230663
    }
-
 
230664
 
-
 
230665
    public _Fields fieldForId(int fieldId) {
-
 
230666
      return _Fields.findByThriftId(fieldId);
-
 
230667
    }
-
 
230668
 
-
 
230669
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
230670
      org.apache.thrift.protocol.TField field;
-
 
230671
      iprot.readStructBegin();
-
 
230672
      while (true)
-
 
230673
      {
-
 
230674
        field = iprot.readFieldBegin();
-
 
230675
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
230676
          break;
-
 
230677
        }
-
 
230678
        switch (field.id) {
-
 
230679
          case 1: // LOGISTICS_TRANSACTION_ID
-
 
230680
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
230681
              this.logisticsTransactionId = iprot.readString();
-
 
230682
            } else { 
-
 
230683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
230684
            }
-
 
230685
            break;
-
 
230686
          case 2: // ATTRIBUTES
-
 
230687
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
230688
              {
-
 
230689
                org.apache.thrift.protocol.TList _list807 = iprot.readListBegin();
-
 
230690
                this.attributes = new ArrayList<Attribute>(_list807.size);
-
 
230691
                for (int _i808 = 0; _i808 < _list807.size; ++_i808)
-
 
230692
                {
-
 
230693
                  Attribute _elem809; // required
-
 
230694
                  _elem809 = new Attribute();
-
 
230695
                  _elem809.read(iprot);
-
 
230696
                  this.attributes.add(_elem809);
-
 
230697
                }
-
 
230698
                iprot.readListEnd();
-
 
230699
              }
-
 
230700
            } else { 
-
 
230701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
230702
            }
-
 
230703
            break;
-
 
230704
          default:
-
 
230705
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
230706
        }
-
 
230707
        iprot.readFieldEnd();
-
 
230708
      }
-
 
230709
      iprot.readStructEnd();
-
 
230710
      validate();
-
 
230711
    }
-
 
230712
 
-
 
230713
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
230714
      validate();
-
 
230715
 
-
 
230716
      oprot.writeStructBegin(STRUCT_DESC);
-
 
230717
      if (this.logisticsTransactionId != null) {
-
 
230718
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
-
 
230719
        oprot.writeString(this.logisticsTransactionId);
-
 
230720
        oprot.writeFieldEnd();
-
 
230721
      }
-
 
230722
      if (this.attributes != null) {
-
 
230723
        oprot.writeFieldBegin(ATTRIBUTES_FIELD_DESC);
-
 
230724
        {
-
 
230725
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.attributes.size()));
-
 
230726
          for (Attribute _iter810 : this.attributes)
-
 
230727
          {
-
 
230728
            _iter810.write(oprot);
-
 
230729
          }
-
 
230730
          oprot.writeListEnd();
-
 
230731
        }
-
 
230732
        oprot.writeFieldEnd();
-
 
230733
      }
-
 
230734
      oprot.writeFieldStop();
-
 
230735
      oprot.writeStructEnd();
-
 
230736
    }
-
 
230737
 
-
 
230738
    @Override
-
 
230739
    public String toString() {
-
 
230740
      StringBuilder sb = new StringBuilder("setOrderAttributeForMasterOrderId_args(");
-
 
230741
      boolean first = true;
-
 
230742
 
-
 
230743
      sb.append("logisticsTransactionId:");
-
 
230744
      if (this.logisticsTransactionId == null) {
-
 
230745
        sb.append("null");
-
 
230746
      } else {
-
 
230747
        sb.append(this.logisticsTransactionId);
-
 
230748
      }
-
 
230749
      first = false;
-
 
230750
      if (!first) sb.append(", ");
-
 
230751
      sb.append("attributes:");
-
 
230752
      if (this.attributes == null) {
-
 
230753
        sb.append("null");
-
 
230754
      } else {
-
 
230755
        sb.append(this.attributes);
-
 
230756
      }
-
 
230757
      first = false;
-
 
230758
      sb.append(")");
-
 
230759
      return sb.toString();
-
 
230760
    }
-
 
230761
 
-
 
230762
    public void validate() throws org.apache.thrift.TException {
-
 
230763
      // check for required fields
-
 
230764
    }
-
 
230765
 
-
 
230766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
230767
      try {
-
 
230768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
230769
      } catch (org.apache.thrift.TException te) {
-
 
230770
        throw new java.io.IOException(te);
-
 
230771
      }
-
 
230772
    }
-
 
230773
 
-
 
230774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
230775
      try {
-
 
230776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
230777
      } catch (org.apache.thrift.TException te) {
-
 
230778
        throw new java.io.IOException(te);
-
 
230779
      }
-
 
230780
    }
-
 
230781
 
-
 
230782
  }
-
 
230783
 
-
 
230784
  public static class setOrderAttributeForMasterOrderId_result implements org.apache.thrift.TBase<setOrderAttributeForMasterOrderId_result, setOrderAttributeForMasterOrderId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
230785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("setOrderAttributeForMasterOrderId_result");
-
 
230786
 
-
 
230787
 
-
 
230788
 
-
 
230789
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
230790
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
230791
;
-
 
230792
 
-
 
230793
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
230794
 
-
 
230795
      static {
-
 
230796
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
230797
          byName.put(field.getFieldName(), field);
-
 
230798
        }
-
 
230799
      }
-
 
230800
 
-
 
230801
      /**
-
 
230802
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
230803
       */
-
 
230804
      public static _Fields findByThriftId(int fieldId) {
-
 
230805
        switch(fieldId) {
-
 
230806
          default:
-
 
230807
            return null;
-
 
230808
        }
-
 
230809
      }
-
 
230810
 
-
 
230811
      /**
-
 
230812
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
230813
       * if it is not found.
-
 
230814
       */
-
 
230815
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
230816
        _Fields fields = findByThriftId(fieldId);
-
 
230817
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
230818
        return fields;
-
 
230819
      }
-
 
230820
 
-
 
230821
      /**
-
 
230822
       * Find the _Fields constant that matches name, or null if its not found.
-
 
230823
       */
-
 
230824
      public static _Fields findByName(String name) {
-
 
230825
        return byName.get(name);
-
 
230826
      }
-
 
230827
 
-
 
230828
      private final short _thriftId;
-
 
230829
      private final String _fieldName;
-
 
230830
 
-
 
230831
      _Fields(short thriftId, String fieldName) {
-
 
230832
        _thriftId = thriftId;
-
 
230833
        _fieldName = fieldName;
-
 
230834
      }
-
 
230835
 
-
 
230836
      public short getThriftFieldId() {
-
 
230837
        return _thriftId;
-
 
230838
      }
-
 
230839
 
-
 
230840
      public String getFieldName() {
-
 
230841
        return _fieldName;
-
 
230842
      }
-
 
230843
    }
-
 
230844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
230845
    static {
-
 
230846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
230847
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
230848
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(setOrderAttributeForMasterOrderId_result.class, metaDataMap);
-
 
230849
    }
-
 
230850
 
-
 
230851
    public setOrderAttributeForMasterOrderId_result() {
-
 
230852
    }
-
 
230853
 
-
 
230854
    /**
-
 
230855
     * Performs a deep copy on <i>other</i>.
-
 
230856
     */
-
 
230857
    public setOrderAttributeForMasterOrderId_result(setOrderAttributeForMasterOrderId_result other) {
-
 
230858
    }
-
 
230859
 
-
 
230860
    public setOrderAttributeForMasterOrderId_result deepCopy() {
-
 
230861
      return new setOrderAttributeForMasterOrderId_result(this);
-
 
230862
    }
-
 
230863
 
-
 
230864
    @Override
-
 
230865
    public void clear() {
-
 
230866
    }
-
 
230867
 
-
 
230868
    public void setFieldValue(_Fields field, Object value) {
-
 
230869
      switch (field) {
-
 
230870
      }
-
 
230871
    }
-
 
230872
 
-
 
230873
    public Object getFieldValue(_Fields field) {
-
 
230874
      switch (field) {
-
 
230875
      }
-
 
230876
      throw new IllegalStateException();
-
 
230877
    }
-
 
230878
 
-
 
230879
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
230880
    public boolean isSet(_Fields field) {
-
 
230881
      if (field == null) {
-
 
230882
        throw new IllegalArgumentException();
-
 
230883
      }
-
 
230884
 
-
 
230885
      switch (field) {
-
 
230886
      }
-
 
230887
      throw new IllegalStateException();
-
 
230888
    }
-
 
230889
 
-
 
230890
    @Override
-
 
230891
    public boolean equals(Object that) {
-
 
230892
      if (that == null)
-
 
230893
        return false;
-
 
230894
      if (that instanceof setOrderAttributeForMasterOrderId_result)
-
 
230895
        return this.equals((setOrderAttributeForMasterOrderId_result)that);
-
 
230896
      return false;
-
 
230897
    }
-
 
230898
 
-
 
230899
    public boolean equals(setOrderAttributeForMasterOrderId_result that) {
-
 
230900
      if (that == null)
-
 
230901
        return false;
-
 
230902
 
-
 
230903
      return true;
-
 
230904
    }
-
 
230905
 
-
 
230906
    @Override
-
 
230907
    public int hashCode() {
-
 
230908
      return 0;
-
 
230909
    }
-
 
230910
 
-
 
230911
    public int compareTo(setOrderAttributeForMasterOrderId_result other) {
-
 
230912
      if (!getClass().equals(other.getClass())) {
-
 
230913
        return getClass().getName().compareTo(other.getClass().getName());
-
 
230914
      }
-
 
230915
 
-
 
230916
      int lastComparison = 0;
-
 
230917
      setOrderAttributeForMasterOrderId_result typedOther = (setOrderAttributeForMasterOrderId_result)other;
-
 
230918
 
-
 
230919
      return 0;
-
 
230920
    }
-
 
230921
 
-
 
230922
    public _Fields fieldForId(int fieldId) {
-
 
230923
      return _Fields.findByThriftId(fieldId);
-
 
230924
    }
-
 
230925
 
-
 
230926
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
230927
      org.apache.thrift.protocol.TField field;
-
 
230928
      iprot.readStructBegin();
-
 
230929
      while (true)
-
 
230930
      {
-
 
230931
        field = iprot.readFieldBegin();
-
 
230932
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
230933
          break;
-
 
230934
        }
-
 
230935
        switch (field.id) {
-
 
230936
          default:
-
 
230937
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
230938
        }
-
 
230939
        iprot.readFieldEnd();
-
 
230940
      }
-
 
230941
      iprot.readStructEnd();
-
 
230942
      validate();
-
 
230943
    }
-
 
230944
 
-
 
230945
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
230946
      oprot.writeStructBegin(STRUCT_DESC);
-
 
230947
 
-
 
230948
      oprot.writeFieldStop();
-
 
230949
      oprot.writeStructEnd();
-
 
230950
    }
-
 
230951
 
-
 
230952
    @Override
-
 
230953
    public String toString() {
-
 
230954
      StringBuilder sb = new StringBuilder("setOrderAttributeForMasterOrderId_result(");
-
 
230955
      boolean first = true;
-
 
230956
 
-
 
230957
      sb.append(")");
-
 
230958
      return sb.toString();
-
 
230959
    }
-
 
230960
 
-
 
230961
    public void validate() throws org.apache.thrift.TException {
-
 
230962
      // check for required fields
-
 
230963
    }
-
 
230964
 
-
 
230965
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
230966
      try {
-
 
230967
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
230968
      } catch (org.apache.thrift.TException te) {
-
 
230969
        throw new java.io.IOException(te);
-
 
230970
      }
-
 
230971
    }
-
 
230972
 
-
 
230973
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
230974
      try {
-
 
230975
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
230976
      } catch (org.apache.thrift.TException te) {
-
 
230977
        throw new java.io.IOException(te);
-
 
230978
      }
-
 
230979
    }
-
 
230980
 
-
 
230981
  }
-
 
230982
 
-
 
230983
  public static class updateMasterOrderAWB_args implements org.apache.thrift.TBase<updateMasterOrderAWB_args, updateMasterOrderAWB_args._Fields>, java.io.Serializable, Cloneable   {
-
 
230984
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMasterOrderAWB_args");
-
 
230985
 
-
 
230986
    private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
230987
    private static final org.apache.thrift.protocol.TField AIRWAY_BILL_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("airwayBillNo", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
230988
 
-
 
230989
    private String logisticsTransactionId; // required
-
 
230990
    private String airwayBillNo; // required
-
 
230991
 
-
 
230992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
230993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
230994
      LOGISTICS_TRANSACTION_ID((short)1, "logisticsTransactionId"),
-
 
230995
      AIRWAY_BILL_NO((short)2, "airwayBillNo");
-
 
230996
 
-
 
230997
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
230998
 
-
 
230999
      static {
-
 
231000
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
231001
          byName.put(field.getFieldName(), field);
-
 
231002
        }
-
 
231003
      }
-
 
231004
 
-
 
231005
      /**
-
 
231006
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
231007
       */
-
 
231008
      public static _Fields findByThriftId(int fieldId) {
-
 
231009
        switch(fieldId) {
-
 
231010
          case 1: // LOGISTICS_TRANSACTION_ID
-
 
231011
            return LOGISTICS_TRANSACTION_ID;
-
 
231012
          case 2: // AIRWAY_BILL_NO
-
 
231013
            return AIRWAY_BILL_NO;
-
 
231014
          default:
-
 
231015
            return null;
-
 
231016
        }
-
 
231017
      }
-
 
231018
 
-
 
231019
      /**
-
 
231020
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
231021
       * if it is not found.
-
 
231022
       */
-
 
231023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
231024
        _Fields fields = findByThriftId(fieldId);
-
 
231025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
231026
        return fields;
-
 
231027
      }
-
 
231028
 
-
 
231029
      /**
-
 
231030
       * Find the _Fields constant that matches name, or null if its not found.
-
 
231031
       */
-
 
231032
      public static _Fields findByName(String name) {
-
 
231033
        return byName.get(name);
-
 
231034
      }
-
 
231035
 
-
 
231036
      private final short _thriftId;
-
 
231037
      private final String _fieldName;
-
 
231038
 
-
 
231039
      _Fields(short thriftId, String fieldName) {
-
 
231040
        _thriftId = thriftId;
-
 
231041
        _fieldName = fieldName;
-
 
231042
      }
-
 
231043
 
-
 
231044
      public short getThriftFieldId() {
-
 
231045
        return _thriftId;
-
 
231046
      }
-
 
231047
 
-
 
231048
      public String getFieldName() {
-
 
231049
        return _fieldName;
-
 
231050
      }
-
 
231051
    }
-
 
231052
 
-
 
231053
    // isset id assignments
-
 
231054
 
-
 
231055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
231056
    static {
-
 
231057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
231058
      tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
231059
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
231060
      tmpMap.put(_Fields.AIRWAY_BILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwayBillNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
231061
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
231062
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
231063
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMasterOrderAWB_args.class, metaDataMap);
-
 
231064
    }
-
 
231065
 
-
 
231066
    public updateMasterOrderAWB_args() {
-
 
231067
    }
-
 
231068
 
-
 
231069
    public updateMasterOrderAWB_args(
-
 
231070
      String logisticsTransactionId,
-
 
231071
      String airwayBillNo)
-
 
231072
    {
-
 
231073
      this();
-
 
231074
      this.logisticsTransactionId = logisticsTransactionId;
-
 
231075
      this.airwayBillNo = airwayBillNo;
-
 
231076
    }
-
 
231077
 
-
 
231078
    /**
-
 
231079
     * Performs a deep copy on <i>other</i>.
-
 
231080
     */
-
 
231081
    public updateMasterOrderAWB_args(updateMasterOrderAWB_args other) {
-
 
231082
      if (other.isSetLogisticsTransactionId()) {
-
 
231083
        this.logisticsTransactionId = other.logisticsTransactionId;
-
 
231084
      }
-
 
231085
      if (other.isSetAirwayBillNo()) {
-
 
231086
        this.airwayBillNo = other.airwayBillNo;
-
 
231087
      }
-
 
231088
    }
-
 
231089
 
-
 
231090
    public updateMasterOrderAWB_args deepCopy() {
-
 
231091
      return new updateMasterOrderAWB_args(this);
-
 
231092
    }
-
 
231093
 
-
 
231094
    @Override
-
 
231095
    public void clear() {
-
 
231096
      this.logisticsTransactionId = null;
-
 
231097
      this.airwayBillNo = null;
-
 
231098
    }
-
 
231099
 
-
 
231100
    public String getLogisticsTransactionId() {
-
 
231101
      return this.logisticsTransactionId;
-
 
231102
    }
-
 
231103
 
-
 
231104
    public void setLogisticsTransactionId(String logisticsTransactionId) {
-
 
231105
      this.logisticsTransactionId = logisticsTransactionId;
-
 
231106
    }
-
 
231107
 
-
 
231108
    public void unsetLogisticsTransactionId() {
-
 
231109
      this.logisticsTransactionId = null;
-
 
231110
    }
-
 
231111
 
-
 
231112
    /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
-
 
231113
    public boolean isSetLogisticsTransactionId() {
-
 
231114
      return this.logisticsTransactionId != null;
-
 
231115
    }
-
 
231116
 
-
 
231117
    public void setLogisticsTransactionIdIsSet(boolean value) {
-
 
231118
      if (!value) {
-
 
231119
        this.logisticsTransactionId = null;
-
 
231120
      }
-
 
231121
    }
-
 
231122
 
-
 
231123
    public String getAirwayBillNo() {
-
 
231124
      return this.airwayBillNo;
-
 
231125
    }
-
 
231126
 
-
 
231127
    public void setAirwayBillNo(String airwayBillNo) {
-
 
231128
      this.airwayBillNo = airwayBillNo;
-
 
231129
    }
-
 
231130
 
-
 
231131
    public void unsetAirwayBillNo() {
-
 
231132
      this.airwayBillNo = null;
-
 
231133
    }
-
 
231134
 
-
 
231135
    /** Returns true if field airwayBillNo is set (has been assigned a value) and false otherwise */
-
 
231136
    public boolean isSetAirwayBillNo() {
-
 
231137
      return this.airwayBillNo != null;
-
 
231138
    }
-
 
231139
 
-
 
231140
    public void setAirwayBillNoIsSet(boolean value) {
-
 
231141
      if (!value) {
-
 
231142
        this.airwayBillNo = null;
-
 
231143
      }
-
 
231144
    }
-
 
231145
 
-
 
231146
    public void setFieldValue(_Fields field, Object value) {
-
 
231147
      switch (field) {
-
 
231148
      case LOGISTICS_TRANSACTION_ID:
-
 
231149
        if (value == null) {
-
 
231150
          unsetLogisticsTransactionId();
-
 
231151
        } else {
-
 
231152
          setLogisticsTransactionId((String)value);
-
 
231153
        }
-
 
231154
        break;
-
 
231155
 
-
 
231156
      case AIRWAY_BILL_NO:
-
 
231157
        if (value == null) {
-
 
231158
          unsetAirwayBillNo();
-
 
231159
        } else {
-
 
231160
          setAirwayBillNo((String)value);
-
 
231161
        }
-
 
231162
        break;
-
 
231163
 
-
 
231164
      }
-
 
231165
    }
-
 
231166
 
-
 
231167
    public Object getFieldValue(_Fields field) {
-
 
231168
      switch (field) {
-
 
231169
      case LOGISTICS_TRANSACTION_ID:
-
 
231170
        return getLogisticsTransactionId();
-
 
231171
 
-
 
231172
      case AIRWAY_BILL_NO:
-
 
231173
        return getAirwayBillNo();
-
 
231174
 
-
 
231175
      }
-
 
231176
      throw new IllegalStateException();
-
 
231177
    }
-
 
231178
 
-
 
231179
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
231180
    public boolean isSet(_Fields field) {
-
 
231181
      if (field == null) {
-
 
231182
        throw new IllegalArgumentException();
-
 
231183
      }
-
 
231184
 
-
 
231185
      switch (field) {
-
 
231186
      case LOGISTICS_TRANSACTION_ID:
-
 
231187
        return isSetLogisticsTransactionId();
-
 
231188
      case AIRWAY_BILL_NO:
-
 
231189
        return isSetAirwayBillNo();
-
 
231190
      }
-
 
231191
      throw new IllegalStateException();
-
 
231192
    }
-
 
231193
 
-
 
231194
    @Override
-
 
231195
    public boolean equals(Object that) {
-
 
231196
      if (that == null)
-
 
231197
        return false;
-
 
231198
      if (that instanceof updateMasterOrderAWB_args)
-
 
231199
        return this.equals((updateMasterOrderAWB_args)that);
-
 
231200
      return false;
-
 
231201
    }
-
 
231202
 
-
 
231203
    public boolean equals(updateMasterOrderAWB_args that) {
-
 
231204
      if (that == null)
-
 
231205
        return false;
-
 
231206
 
-
 
231207
      boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
-
 
231208
      boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
-
 
231209
      if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
-
 
231210
        if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
-
 
231211
          return false;
-
 
231212
        if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
-
 
231213
          return false;
-
 
231214
      }
-
 
231215
 
-
 
231216
      boolean this_present_airwayBillNo = true && this.isSetAirwayBillNo();
-
 
231217
      boolean that_present_airwayBillNo = true && that.isSetAirwayBillNo();
-
 
231218
      if (this_present_airwayBillNo || that_present_airwayBillNo) {
-
 
231219
        if (!(this_present_airwayBillNo && that_present_airwayBillNo))
-
 
231220
          return false;
-
 
231221
        if (!this.airwayBillNo.equals(that.airwayBillNo))
-
 
231222
          return false;
-
 
231223
      }
-
 
231224
 
-
 
231225
      return true;
-
 
231226
    }
-
 
231227
 
-
 
231228
    @Override
-
 
231229
    public int hashCode() {
-
 
231230
      return 0;
-
 
231231
    }
-
 
231232
 
-
 
231233
    public int compareTo(updateMasterOrderAWB_args other) {
-
 
231234
      if (!getClass().equals(other.getClass())) {
-
 
231235
        return getClass().getName().compareTo(other.getClass().getName());
-
 
231236
      }
-
 
231237
 
-
 
231238
      int lastComparison = 0;
-
 
231239
      updateMasterOrderAWB_args typedOther = (updateMasterOrderAWB_args)other;
-
 
231240
 
-
 
231241
      lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
-
 
231242
      if (lastComparison != 0) {
-
 
231243
        return lastComparison;
-
 
231244
      }
-
 
231245
      if (isSetLogisticsTransactionId()) {
-
 
231246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
-
 
231247
        if (lastComparison != 0) {
-
 
231248
          return lastComparison;
-
 
231249
        }
-
 
231250
      }
-
 
231251
      lastComparison = Boolean.valueOf(isSetAirwayBillNo()).compareTo(typedOther.isSetAirwayBillNo());
-
 
231252
      if (lastComparison != 0) {
-
 
231253
        return lastComparison;
-
 
231254
      }
-
 
231255
      if (isSetAirwayBillNo()) {
-
 
231256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwayBillNo, typedOther.airwayBillNo);
-
 
231257
        if (lastComparison != 0) {
-
 
231258
          return lastComparison;
-
 
231259
        }
-
 
231260
      }
-
 
231261
      return 0;
-
 
231262
    }
-
 
231263
 
-
 
231264
    public _Fields fieldForId(int fieldId) {
-
 
231265
      return _Fields.findByThriftId(fieldId);
-
 
231266
    }
-
 
231267
 
-
 
231268
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
231269
      org.apache.thrift.protocol.TField field;
-
 
231270
      iprot.readStructBegin();
-
 
231271
      while (true)
-
 
231272
      {
-
 
231273
        field = iprot.readFieldBegin();
-
 
231274
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
231275
          break;
-
 
231276
        }
-
 
231277
        switch (field.id) {
-
 
231278
          case 1: // LOGISTICS_TRANSACTION_ID
-
 
231279
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
231280
              this.logisticsTransactionId = iprot.readString();
-
 
231281
            } else { 
-
 
231282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
231283
            }
-
 
231284
            break;
-
 
231285
          case 2: // AIRWAY_BILL_NO
-
 
231286
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
231287
              this.airwayBillNo = iprot.readString();
-
 
231288
            } else { 
-
 
231289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
231290
            }
-
 
231291
            break;
-
 
231292
          default:
-
 
231293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
231294
        }
-
 
231295
        iprot.readFieldEnd();
-
 
231296
      }
-
 
231297
      iprot.readStructEnd();
-
 
231298
      validate();
-
 
231299
    }
-
 
231300
 
-
 
231301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
231302
      validate();
-
 
231303
 
-
 
231304
      oprot.writeStructBegin(STRUCT_DESC);
-
 
231305
      if (this.logisticsTransactionId != null) {
-
 
231306
        oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
-
 
231307
        oprot.writeString(this.logisticsTransactionId);
-
 
231308
        oprot.writeFieldEnd();
-
 
231309
      }
-
 
231310
      if (this.airwayBillNo != null) {
-
 
231311
        oprot.writeFieldBegin(AIRWAY_BILL_NO_FIELD_DESC);
-
 
231312
        oprot.writeString(this.airwayBillNo);
-
 
231313
        oprot.writeFieldEnd();
-
 
231314
      }
-
 
231315
      oprot.writeFieldStop();
-
 
231316
      oprot.writeStructEnd();
-
 
231317
    }
-
 
231318
 
-
 
231319
    @Override
-
 
231320
    public String toString() {
-
 
231321
      StringBuilder sb = new StringBuilder("updateMasterOrderAWB_args(");
-
 
231322
      boolean first = true;
-
 
231323
 
-
 
231324
      sb.append("logisticsTransactionId:");
-
 
231325
      if (this.logisticsTransactionId == null) {
-
 
231326
        sb.append("null");
-
 
231327
      } else {
-
 
231328
        sb.append(this.logisticsTransactionId);
-
 
231329
      }
-
 
231330
      first = false;
-
 
231331
      if (!first) sb.append(", ");
-
 
231332
      sb.append("airwayBillNo:");
-
 
231333
      if (this.airwayBillNo == null) {
-
 
231334
        sb.append("null");
-
 
231335
      } else {
-
 
231336
        sb.append(this.airwayBillNo);
-
 
231337
      }
-
 
231338
      first = false;
-
 
231339
      sb.append(")");
-
 
231340
      return sb.toString();
-
 
231341
    }
-
 
231342
 
-
 
231343
    public void validate() throws org.apache.thrift.TException {
-
 
231344
      // check for required fields
-
 
231345
    }
-
 
231346
 
-
 
231347
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
231348
      try {
-
 
231349
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
231350
      } catch (org.apache.thrift.TException te) {
-
 
231351
        throw new java.io.IOException(te);
-
 
231352
      }
-
 
231353
    }
-
 
231354
 
-
 
231355
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
231356
      try {
-
 
231357
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
231358
      } catch (org.apache.thrift.TException te) {
-
 
231359
        throw new java.io.IOException(te);
-
 
231360
      }
-
 
231361
    }
-
 
231362
 
-
 
231363
  }
-
 
231364
 
-
 
231365
  public static class updateMasterOrderAWB_result implements org.apache.thrift.TBase<updateMasterOrderAWB_result, updateMasterOrderAWB_result._Fields>, java.io.Serializable, Cloneable   {
-
 
231366
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMasterOrderAWB_result");
-
 
231367
 
-
 
231368
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
-
 
231369
 
-
 
231370
    private boolean success; // required
-
 
231371
 
-
 
231372
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
231373
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
231374
      SUCCESS((short)0, "success");
-
 
231375
 
-
 
231376
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
231377
 
-
 
231378
      static {
-
 
231379
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
231380
          byName.put(field.getFieldName(), field);
-
 
231381
        }
-
 
231382
      }
-
 
231383
 
-
 
231384
      /**
-
 
231385
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
231386
       */
-
 
231387
      public static _Fields findByThriftId(int fieldId) {
-
 
231388
        switch(fieldId) {
-
 
231389
          case 0: // SUCCESS
-
 
231390
            return SUCCESS;
-
 
231391
          default:
-
 
231392
            return null;
-
 
231393
        }
-
 
231394
      }
-
 
231395
 
-
 
231396
      /**
-
 
231397
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
231398
       * if it is not found.
-
 
231399
       */
-
 
231400
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
231401
        _Fields fields = findByThriftId(fieldId);
-
 
231402
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
231403
        return fields;
-
 
231404
      }
-
 
231405
 
-
 
231406
      /**
-
 
231407
       * Find the _Fields constant that matches name, or null if its not found.
-
 
231408
       */
-
 
231409
      public static _Fields findByName(String name) {
-
 
231410
        return byName.get(name);
-
 
231411
      }
-
 
231412
 
-
 
231413
      private final short _thriftId;
-
 
231414
      private final String _fieldName;
-
 
231415
 
-
 
231416
      _Fields(short thriftId, String fieldName) {
-
 
231417
        _thriftId = thriftId;
-
 
231418
        _fieldName = fieldName;
-
 
231419
      }
-
 
231420
 
-
 
231421
      public short getThriftFieldId() {
-
 
231422
        return _thriftId;
-
 
231423
      }
-
 
231424
 
-
 
231425
      public String getFieldName() {
-
 
231426
        return _fieldName;
-
 
231427
      }
-
 
231428
    }
-
 
231429
 
-
 
231430
    // isset id assignments
-
 
231431
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
231432
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
231433
 
-
 
231434
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
231435
    static {
-
 
231436
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
231437
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
231438
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
231439
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
231440
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMasterOrderAWB_result.class, metaDataMap);
-
 
231441
    }
-
 
231442
 
-
 
231443
    public updateMasterOrderAWB_result() {
-
 
231444
    }
-
 
231445
 
-
 
231446
    public updateMasterOrderAWB_result(
-
 
231447
      boolean success)
-
 
231448
    {
-
 
231449
      this();
-
 
231450
      this.success = success;
-
 
231451
      setSuccessIsSet(true);
-
 
231452
    }
-
 
231453
 
-
 
231454
    /**
-
 
231455
     * Performs a deep copy on <i>other</i>.
-
 
231456
     */
-
 
231457
    public updateMasterOrderAWB_result(updateMasterOrderAWB_result other) {
-
 
231458
      __isset_bit_vector.clear();
-
 
231459
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
231460
      this.success = other.success;
-
 
231461
    }
-
 
231462
 
-
 
231463
    public updateMasterOrderAWB_result deepCopy() {
-
 
231464
      return new updateMasterOrderAWB_result(this);
-
 
231465
    }
-
 
231466
 
-
 
231467
    @Override
-
 
231468
    public void clear() {
-
 
231469
      setSuccessIsSet(false);
-
 
231470
      this.success = false;
-
 
231471
    }
-
 
231472
 
-
 
231473
    public boolean isSuccess() {
-
 
231474
      return this.success;
-
 
231475
    }
-
 
231476
 
-
 
231477
    public void setSuccess(boolean success) {
-
 
231478
      this.success = success;
-
 
231479
      setSuccessIsSet(true);
-
 
231480
    }
-
 
231481
 
-
 
231482
    public void unsetSuccess() {
-
 
231483
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
231484
    }
-
 
231485
 
-
 
231486
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
231487
    public boolean isSetSuccess() {
-
 
231488
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
231489
    }
-
 
231490
 
-
 
231491
    public void setSuccessIsSet(boolean value) {
-
 
231492
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
231493
    }
-
 
231494
 
-
 
231495
    public void setFieldValue(_Fields field, Object value) {
-
 
231496
      switch (field) {
-
 
231497
      case SUCCESS:
-
 
231498
        if (value == null) {
-
 
231499
          unsetSuccess();
-
 
231500
        } else {
-
 
231501
          setSuccess((Boolean)value);
-
 
231502
        }
-
 
231503
        break;
-
 
231504
 
-
 
231505
      }
-
 
231506
    }
-
 
231507
 
-
 
231508
    public Object getFieldValue(_Fields field) {
-
 
231509
      switch (field) {
-
 
231510
      case SUCCESS:
-
 
231511
        return Boolean.valueOf(isSuccess());
-
 
231512
 
-
 
231513
      }
-
 
231514
      throw new IllegalStateException();
-
 
231515
    }
-
 
231516
 
-
 
231517
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
231518
    public boolean isSet(_Fields field) {
-
 
231519
      if (field == null) {
-
 
231520
        throw new IllegalArgumentException();
-
 
231521
      }
-
 
231522
 
-
 
231523
      switch (field) {
-
 
231524
      case SUCCESS:
-
 
231525
        return isSetSuccess();
-
 
231526
      }
-
 
231527
      throw new IllegalStateException();
-
 
231528
    }
-
 
231529
 
-
 
231530
    @Override
-
 
231531
    public boolean equals(Object that) {
-
 
231532
      if (that == null)
-
 
231533
        return false;
-
 
231534
      if (that instanceof updateMasterOrderAWB_result)
-
 
231535
        return this.equals((updateMasterOrderAWB_result)that);
-
 
231536
      return false;
-
 
231537
    }
-
 
231538
 
-
 
231539
    public boolean equals(updateMasterOrderAWB_result that) {
-
 
231540
      if (that == null)
-
 
231541
        return false;
-
 
231542
 
-
 
231543
      boolean this_present_success = true;
-
 
231544
      boolean that_present_success = true;
-
 
231545
      if (this_present_success || that_present_success) {
-
 
231546
        if (!(this_present_success && that_present_success))
-
 
231547
          return false;
-
 
231548
        if (this.success != that.success)
-
 
231549
          return false;
-
 
231550
      }
-
 
231551
 
-
 
231552
      return true;
-
 
231553
    }
-
 
231554
 
-
 
231555
    @Override
-
 
231556
    public int hashCode() {
-
 
231557
      return 0;
-
 
231558
    }
-
 
231559
 
-
 
231560
    public int compareTo(updateMasterOrderAWB_result other) {
-
 
231561
      if (!getClass().equals(other.getClass())) {
-
 
231562
        return getClass().getName().compareTo(other.getClass().getName());
-
 
231563
      }
-
 
231564
 
-
 
231565
      int lastComparison = 0;
-
 
231566
      updateMasterOrderAWB_result typedOther = (updateMasterOrderAWB_result)other;
-
 
231567
 
-
 
231568
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
231569
      if (lastComparison != 0) {
-
 
231570
        return lastComparison;
-
 
231571
      }
-
 
231572
      if (isSetSuccess()) {
-
 
231573
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
231574
        if (lastComparison != 0) {
-
 
231575
          return lastComparison;
-
 
231576
        }
-
 
231577
      }
-
 
231578
      return 0;
-
 
231579
    }
-
 
231580
 
-
 
231581
    public _Fields fieldForId(int fieldId) {
-
 
231582
      return _Fields.findByThriftId(fieldId);
-
 
231583
    }
-
 
231584
 
-
 
231585
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
231586
      org.apache.thrift.protocol.TField field;
-
 
231587
      iprot.readStructBegin();
-
 
231588
      while (true)
-
 
231589
      {
-
 
231590
        field = iprot.readFieldBegin();
-
 
231591
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
231592
          break;
-
 
231593
        }
-
 
231594
        switch (field.id) {
-
 
231595
          case 0: // SUCCESS
-
 
231596
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
231597
              this.success = iprot.readBool();
-
 
231598
              setSuccessIsSet(true);
-
 
231599
            } else { 
-
 
231600
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
231601
            }
-
 
231602
            break;
-
 
231603
          default:
-
 
231604
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
231605
        }
-
 
231606
        iprot.readFieldEnd();
-
 
231607
      }
-
 
231608
      iprot.readStructEnd();
-
 
231609
      validate();
-
 
231610
    }
-
 
231611
 
-
 
231612
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
231613
      oprot.writeStructBegin(STRUCT_DESC);
-
 
231614
 
-
 
231615
      if (this.isSetSuccess()) {
-
 
231616
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
231617
        oprot.writeBool(this.success);
-
 
231618
        oprot.writeFieldEnd();
-
 
231619
      }
-
 
231620
      oprot.writeFieldStop();
-
 
231621
      oprot.writeStructEnd();
-
 
231622
    }
-
 
231623
 
-
 
231624
    @Override
-
 
231625
    public String toString() {
-
 
231626
      StringBuilder sb = new StringBuilder("updateMasterOrderAWB_result(");
-
 
231627
      boolean first = true;
-
 
231628
 
-
 
231629
      sb.append("success:");
-
 
231630
      sb.append(this.success);
-
 
231631
      first = false;
-
 
231632
      sb.append(")");
-
 
231633
      return sb.toString();
-
 
231634
    }
-
 
231635
 
230180
    public void validate() throws org.apache.thrift.TException {
231636
    public void validate() throws org.apache.thrift.TException {
230181
      // check for required fields
231637
      // check for required fields
230182
    }
231638
    }
230183
 
231639
 
230184
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
231640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {