Subversion Repositories SmartDukaan

Rev

Rev 412 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 412 Rev 442
Line 33... Line 33...
33
 
33
 
34
    public List<Provider> getProviders() throws TException;
34
    public List<Provider> getProviders() throws TException;
35
 
35
 
36
    public Provider getProvider(long provider_id) throws TException;
36
    public Provider getProvider(long provider_id) throws TException;
37
 
37
 
-
 
38
    public void createShipment(Shipment shipment) throws TException;
-
 
39
 
-
 
40
    public void updateShipmentStatus(String awb, ShipmentUpdate shipment_update) throws TException;
-
 
41
 
38
    public ShipmentStatusInfo getShipmentInfo(String awb) throws TException;
42
    public ShipmentStatusInfo getShipmentInfo(String awb) throws TException;
39
 
43
 
40
    public List<Shipment> getShipments(long warehouse_id, long from_date, long to_date, long provider_id) throws TException;
44
    public List<Shipment> getShipments(long warehouse_id, long from_date, long to_date, long provider_id) throws TException;
41
 
45
 
42
    public List<Shipment> getTodaysShipments(long warehouse_id, long provider_id) throws TException;
46
    public List<Shipment> getTodaysShipments(long warehouse_id, long provider_id) throws TException;
Line 197... Line 201...
197
        return result.success;
201
        return result.success;
198
      }
202
      }
199
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
203
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
200
    }
204
    }
201
 
205
 
-
 
206
    public void createShipment(Shipment shipment) throws TException
-
 
207
    {
-
 
208
      send_createShipment(shipment);
-
 
209
      recv_createShipment();
-
 
210
    }
-
 
211
 
-
 
212
    public void send_createShipment(Shipment shipment) throws TException
-
 
213
    {
-
 
214
      oprot_.writeMessageBegin(new TMessage("createShipment", TMessageType.CALL, seqid_));
-
 
215
      createShipment_args args = new createShipment_args();
-
 
216
      args.shipment = shipment;
-
 
217
      args.write(oprot_);
-
 
218
      oprot_.writeMessageEnd();
-
 
219
      oprot_.getTransport().flush();
-
 
220
    }
-
 
221
 
-
 
222
    public void recv_createShipment() throws TException
-
 
223
    {
-
 
224
      TMessage msg = iprot_.readMessageBegin();
-
 
225
      if (msg.type == TMessageType.EXCEPTION) {
-
 
226
        TApplicationException x = TApplicationException.read(iprot_);
-
 
227
        iprot_.readMessageEnd();
-
 
228
        throw x;
-
 
229
      }
-
 
230
      createShipment_result result = new createShipment_result();
-
 
231
      result.read(iprot_);
-
 
232
      iprot_.readMessageEnd();
-
 
233
      return;
-
 
234
    }
-
 
235
 
-
 
236
    public void updateShipmentStatus(String awb, ShipmentUpdate shipment_update) throws TException
-
 
237
    {
-
 
238
      send_updateShipmentStatus(awb, shipment_update);
-
 
239
      recv_updateShipmentStatus();
-
 
240
    }
-
 
241
 
-
 
242
    public void send_updateShipmentStatus(String awb, ShipmentUpdate shipment_update) throws TException
-
 
243
    {
-
 
244
      oprot_.writeMessageBegin(new TMessage("updateShipmentStatus", TMessageType.CALL, seqid_));
-
 
245
      updateShipmentStatus_args args = new updateShipmentStatus_args();
-
 
246
      args.awb = awb;
-
 
247
      args.shipment_update = shipment_update;
-
 
248
      args.write(oprot_);
-
 
249
      oprot_.writeMessageEnd();
-
 
250
      oprot_.getTransport().flush();
-
 
251
    }
-
 
252
 
-
 
253
    public void recv_updateShipmentStatus() throws TException
-
 
254
    {
-
 
255
      TMessage msg = iprot_.readMessageBegin();
-
 
256
      if (msg.type == TMessageType.EXCEPTION) {
-
 
257
        TApplicationException x = TApplicationException.read(iprot_);
-
 
258
        iprot_.readMessageEnd();
-
 
259
        throw x;
-
 
260
      }
-
 
261
      updateShipmentStatus_result result = new updateShipmentStatus_result();
-
 
262
      result.read(iprot_);
-
 
263
      iprot_.readMessageEnd();
-
 
264
      return;
-
 
265
    }
-
 
266
 
202
    public ShipmentStatusInfo getShipmentInfo(String awb) throws TException
267
    public ShipmentStatusInfo getShipmentInfo(String awb) throws TException
203
    {
268
    {
204
      send_getShipmentInfo(awb);
269
      send_getShipmentInfo(awb);
205
      return recv_getShipmentInfo();
270
      return recv_getShipmentInfo();
206
    }
271
    }
Line 310... Line 375...
310
      iface_ = iface;
375
      iface_ = iface;
311
      processMap_.put("addEmptyAWBs", new addEmptyAWBs());
376
      processMap_.put("addEmptyAWBs", new addEmptyAWBs());
312
      processMap_.put("getEmptyAWB", new getEmptyAWB());
377
      processMap_.put("getEmptyAWB", new getEmptyAWB());
313
      processMap_.put("getProviders", new getProviders());
378
      processMap_.put("getProviders", new getProviders());
314
      processMap_.put("getProvider", new getProvider());
379
      processMap_.put("getProvider", new getProvider());
-
 
380
      processMap_.put("createShipment", new createShipment());
-
 
381
      processMap_.put("updateShipmentStatus", new updateShipmentStatus());
315
      processMap_.put("getShipmentInfo", new getShipmentInfo());
382
      processMap_.put("getShipmentInfo", new getShipmentInfo());
316
      processMap_.put("getShipments", new getShipments());
383
      processMap_.put("getShipments", new getShipments());
317
      processMap_.put("getTodaysShipments", new getTodaysShipments());
384
      processMap_.put("getTodaysShipments", new getTodaysShipments());
318
    }
385
    }
319
 
386
 
Line 404... Line 471...
404
        oprot.getTransport().flush();
471
        oprot.getTransport().flush();
405
      }
472
      }
406
 
473
 
407
    }
474
    }
408
 
475
 
-
 
476
    private class createShipment implements ProcessFunction {
-
 
477
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
478
      {
-
 
479
        createShipment_args args = new createShipment_args();
-
 
480
        args.read(iprot);
-
 
481
        iprot.readMessageEnd();
-
 
482
        createShipment_result result = new createShipment_result();
-
 
483
        iface_.createShipment(args.shipment);
-
 
484
        oprot.writeMessageBegin(new TMessage("createShipment", TMessageType.REPLY, seqid));
-
 
485
        result.write(oprot);
-
 
486
        oprot.writeMessageEnd();
-
 
487
        oprot.getTransport().flush();
-
 
488
      }
-
 
489
 
-
 
490
    }
-
 
491
 
-
 
492
    private class updateShipmentStatus implements ProcessFunction {
-
 
493
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
494
      {
-
 
495
        updateShipmentStatus_args args = new updateShipmentStatus_args();
-
 
496
        args.read(iprot);
-
 
497
        iprot.readMessageEnd();
-
 
498
        updateShipmentStatus_result result = new updateShipmentStatus_result();
-
 
499
        iface_.updateShipmentStatus(args.awb, args.shipment_update);
-
 
500
        oprot.writeMessageBegin(new TMessage("updateShipmentStatus", TMessageType.REPLY, seqid));
-
 
501
        result.write(oprot);
-
 
502
        oprot.writeMessageEnd();
-
 
503
        oprot.getTransport().flush();
-
 
504
      }
-
 
505
 
-
 
506
    }
-
 
507
 
409
    private class getShipmentInfo implements ProcessFunction {
508
    private class getShipmentInfo implements ProcessFunction {
410
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
509
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
411
      {
510
      {
412
        getShipmentInfo_args args = new getShipmentInfo_args();
511
        getShipmentInfo_args args = new getShipmentInfo_args();
413
        args.read(iprot);
512
        args.read(iprot);
Line 2664... Line 2763...
2664
      sb.append(")");
2763
      sb.append(")");
2665
      return sb.toString();
2764
      return sb.toString();
2666
    }
2765
    }
2667
 
2766
 
2668
    public void validate() throws TException {
2767
    public void validate() throws TException {
-
 
2768
      // check for required fields
-
 
2769
    }
-
 
2770
 
-
 
2771
  }
-
 
2772
 
-
 
2773
  public static class createShipment_args implements TBase<createShipment_args._Fields>, java.io.Serializable, Cloneable, Comparable<createShipment_args>   {
-
 
2774
    private static final TStruct STRUCT_DESC = new TStruct("createShipment_args");
-
 
2775
 
-
 
2776
    private static final TField SHIPMENT_FIELD_DESC = new TField("shipment", TType.STRUCT, (short)1);
-
 
2777
 
-
 
2778
    private Shipment shipment;
-
 
2779
 
-
 
2780
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2781
    public enum _Fields implements TFieldIdEnum {
-
 
2782
      SHIPMENT((short)1, "shipment");
-
 
2783
 
-
 
2784
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2785
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2786
 
-
 
2787
      static {
-
 
2788
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2789
          byId.put((int)field._thriftId, field);
-
 
2790
          byName.put(field.getFieldName(), field);
-
 
2791
        }
-
 
2792
      }
-
 
2793
 
-
 
2794
      /**
-
 
2795
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2796
       */
-
 
2797
      public static _Fields findByThriftId(int fieldId) {
-
 
2798
        return byId.get(fieldId);
-
 
2799
      }
-
 
2800
 
-
 
2801
      /**
-
 
2802
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2803
       * if it is not found.
-
 
2804
       */
-
 
2805
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2806
        _Fields fields = findByThriftId(fieldId);
-
 
2807
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2808
        return fields;
-
 
2809
      }
-
 
2810
 
-
 
2811
      /**
-
 
2812
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2813
       */
-
 
2814
      public static _Fields findByName(String name) {
-
 
2815
        return byName.get(name);
-
 
2816
      }
-
 
2817
 
-
 
2818
      private final short _thriftId;
-
 
2819
      private final String _fieldName;
-
 
2820
 
-
 
2821
      _Fields(short thriftId, String fieldName) {
-
 
2822
        _thriftId = thriftId;
-
 
2823
        _fieldName = fieldName;
-
 
2824
      }
-
 
2825
 
-
 
2826
      public short getThriftFieldId() {
-
 
2827
        return _thriftId;
-
 
2828
      }
-
 
2829
 
-
 
2830
      public String getFieldName() {
-
 
2831
        return _fieldName;
-
 
2832
      }
-
 
2833
    }
-
 
2834
 
-
 
2835
    // isset id assignments
-
 
2836
 
-
 
2837
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2838
      put(_Fields.SHIPMENT, new FieldMetaData("shipment", TFieldRequirementType.DEFAULT, 
-
 
2839
          new StructMetaData(TType.STRUCT, Shipment.class)));
-
 
2840
    }});
-
 
2841
 
-
 
2842
    static {
-
 
2843
      FieldMetaData.addStructMetaDataMap(createShipment_args.class, metaDataMap);
-
 
2844
    }
-
 
2845
 
-
 
2846
    public createShipment_args() {
-
 
2847
    }
-
 
2848
 
-
 
2849
    public createShipment_args(
-
 
2850
      Shipment shipment)
-
 
2851
    {
-
 
2852
      this();
-
 
2853
      this.shipment = shipment;
-
 
2854
    }
-
 
2855
 
-
 
2856
    /**
-
 
2857
     * Performs a deep copy on <i>other</i>.
-
 
2858
     */
-
 
2859
    public createShipment_args(createShipment_args other) {
-
 
2860
      if (other.isSetShipment()) {
-
 
2861
        this.shipment = new Shipment(other.shipment);
-
 
2862
      }
-
 
2863
    }
-
 
2864
 
-
 
2865
    public createShipment_args deepCopy() {
-
 
2866
      return new createShipment_args(this);
-
 
2867
    }
-
 
2868
 
-
 
2869
    @Deprecated
-
 
2870
    public createShipment_args clone() {
-
 
2871
      return new createShipment_args(this);
-
 
2872
    }
-
 
2873
 
-
 
2874
    public Shipment getShipment() {
-
 
2875
      return this.shipment;
-
 
2876
    }
-
 
2877
 
-
 
2878
    public createShipment_args setShipment(Shipment shipment) {
-
 
2879
      this.shipment = shipment;
-
 
2880
      return this;
-
 
2881
    }
-
 
2882
 
-
 
2883
    public void unsetShipment() {
-
 
2884
      this.shipment = null;
-
 
2885
    }
-
 
2886
 
-
 
2887
    /** Returns true if field shipment is set (has been asigned a value) and false otherwise */
-
 
2888
    public boolean isSetShipment() {
-
 
2889
      return this.shipment != null;
-
 
2890
    }
-
 
2891
 
-
 
2892
    public void setShipmentIsSet(boolean value) {
-
 
2893
      if (!value) {
-
 
2894
        this.shipment = null;
-
 
2895
      }
-
 
2896
    }
-
 
2897
 
-
 
2898
    public void setFieldValue(_Fields field, Object value) {
-
 
2899
      switch (field) {
-
 
2900
      case SHIPMENT:
-
 
2901
        if (value == null) {
-
 
2902
          unsetShipment();
-
 
2903
        } else {
-
 
2904
          setShipment((Shipment)value);
-
 
2905
        }
-
 
2906
        break;
-
 
2907
 
-
 
2908
      }
-
 
2909
    }
-
 
2910
 
-
 
2911
    public void setFieldValue(int fieldID, Object value) {
-
 
2912
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2913
    }
-
 
2914
 
-
 
2915
    public Object getFieldValue(_Fields field) {
-
 
2916
      switch (field) {
-
 
2917
      case SHIPMENT:
-
 
2918
        return getShipment();
-
 
2919
 
-
 
2920
      }
-
 
2921
      throw new IllegalStateException();
-
 
2922
    }
-
 
2923
 
-
 
2924
    public Object getFieldValue(int fieldId) {
-
 
2925
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2926
    }
-
 
2927
 
-
 
2928
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2929
    public boolean isSet(_Fields field) {
-
 
2930
      switch (field) {
-
 
2931
      case SHIPMENT:
-
 
2932
        return isSetShipment();
-
 
2933
      }
-
 
2934
      throw new IllegalStateException();
-
 
2935
    }
-
 
2936
 
-
 
2937
    public boolean isSet(int fieldID) {
-
 
2938
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2939
    }
-
 
2940
 
-
 
2941
    @Override
-
 
2942
    public boolean equals(Object that) {
-
 
2943
      if (that == null)
-
 
2944
        return false;
-
 
2945
      if (that instanceof createShipment_args)
-
 
2946
        return this.equals((createShipment_args)that);
-
 
2947
      return false;
-
 
2948
    }
-
 
2949
 
-
 
2950
    public boolean equals(createShipment_args that) {
-
 
2951
      if (that == null)
-
 
2952
        return false;
-
 
2953
 
-
 
2954
      boolean this_present_shipment = true && this.isSetShipment();
-
 
2955
      boolean that_present_shipment = true && that.isSetShipment();
-
 
2956
      if (this_present_shipment || that_present_shipment) {
-
 
2957
        if (!(this_present_shipment && that_present_shipment))
-
 
2958
          return false;
-
 
2959
        if (!this.shipment.equals(that.shipment))
-
 
2960
          return false;
-
 
2961
      }
-
 
2962
 
-
 
2963
      return true;
-
 
2964
    }
-
 
2965
 
-
 
2966
    @Override
-
 
2967
    public int hashCode() {
-
 
2968
      return 0;
-
 
2969
    }
-
 
2970
 
-
 
2971
    public int compareTo(createShipment_args other) {
-
 
2972
      if (!getClass().equals(other.getClass())) {
-
 
2973
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2974
      }
-
 
2975
 
-
 
2976
      int lastComparison = 0;
-
 
2977
      createShipment_args typedOther = (createShipment_args)other;
-
 
2978
 
-
 
2979
      lastComparison = Boolean.valueOf(isSetShipment()).compareTo(isSetShipment());
-
 
2980
      if (lastComparison != 0) {
-
 
2981
        return lastComparison;
-
 
2982
      }
-
 
2983
      lastComparison = TBaseHelper.compareTo(shipment, typedOther.shipment);
-
 
2984
      if (lastComparison != 0) {
-
 
2985
        return lastComparison;
-
 
2986
      }
-
 
2987
      return 0;
-
 
2988
    }
-
 
2989
 
-
 
2990
    public void read(TProtocol iprot) throws TException {
-
 
2991
      TField field;
-
 
2992
      iprot.readStructBegin();
-
 
2993
      while (true)
-
 
2994
      {
-
 
2995
        field = iprot.readFieldBegin();
-
 
2996
        if (field.type == TType.STOP) { 
-
 
2997
          break;
-
 
2998
        }
-
 
2999
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3000
        if (fieldId == null) {
-
 
3001
          TProtocolUtil.skip(iprot, field.type);
-
 
3002
        } else {
-
 
3003
          switch (fieldId) {
-
 
3004
            case SHIPMENT:
-
 
3005
              if (field.type == TType.STRUCT) {
-
 
3006
                this.shipment = new Shipment();
-
 
3007
                this.shipment.read(iprot);
-
 
3008
              } else { 
-
 
3009
                TProtocolUtil.skip(iprot, field.type);
-
 
3010
              }
-
 
3011
              break;
-
 
3012
          }
-
 
3013
          iprot.readFieldEnd();
-
 
3014
        }
-
 
3015
      }
-
 
3016
      iprot.readStructEnd();
-
 
3017
      validate();
-
 
3018
    }
-
 
3019
 
-
 
3020
    public void write(TProtocol oprot) throws TException {
-
 
3021
      validate();
-
 
3022
 
-
 
3023
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3024
      if (this.shipment != null) {
-
 
3025
        oprot.writeFieldBegin(SHIPMENT_FIELD_DESC);
-
 
3026
        this.shipment.write(oprot);
-
 
3027
        oprot.writeFieldEnd();
-
 
3028
      }
-
 
3029
      oprot.writeFieldStop();
-
 
3030
      oprot.writeStructEnd();
-
 
3031
    }
-
 
3032
 
-
 
3033
    @Override
-
 
3034
    public String toString() {
-
 
3035
      StringBuilder sb = new StringBuilder("createShipment_args(");
-
 
3036
      boolean first = true;
-
 
3037
 
-
 
3038
      sb.append("shipment:");
-
 
3039
      if (this.shipment == null) {
-
 
3040
        sb.append("null");
-
 
3041
      } else {
-
 
3042
        sb.append(this.shipment);
-
 
3043
      }
-
 
3044
      first = false;
-
 
3045
      sb.append(")");
-
 
3046
      return sb.toString();
-
 
3047
    }
-
 
3048
 
-
 
3049
    public void validate() throws TException {
-
 
3050
      // check for required fields
-
 
3051
    }
-
 
3052
 
-
 
3053
  }
-
 
3054
 
-
 
3055
  public static class createShipment_result implements TBase<createShipment_result._Fields>, java.io.Serializable, Cloneable, Comparable<createShipment_result>   {
-
 
3056
    private static final TStruct STRUCT_DESC = new TStruct("createShipment_result");
-
 
3057
 
-
 
3058
 
-
 
3059
 
-
 
3060
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3061
    public enum _Fields implements TFieldIdEnum {
-
 
3062
;
-
 
3063
 
-
 
3064
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3065
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3066
 
-
 
3067
      static {
-
 
3068
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3069
          byId.put((int)field._thriftId, field);
-
 
3070
          byName.put(field.getFieldName(), field);
-
 
3071
        }
-
 
3072
      }
-
 
3073
 
-
 
3074
      /**
-
 
3075
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3076
       */
-
 
3077
      public static _Fields findByThriftId(int fieldId) {
-
 
3078
        return byId.get(fieldId);
-
 
3079
      }
-
 
3080
 
-
 
3081
      /**
-
 
3082
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3083
       * if it is not found.
-
 
3084
       */
-
 
3085
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3086
        _Fields fields = findByThriftId(fieldId);
-
 
3087
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3088
        return fields;
-
 
3089
      }
-
 
3090
 
-
 
3091
      /**
-
 
3092
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3093
       */
-
 
3094
      public static _Fields findByName(String name) {
-
 
3095
        return byName.get(name);
-
 
3096
      }
-
 
3097
 
-
 
3098
      private final short _thriftId;
-
 
3099
      private final String _fieldName;
-
 
3100
 
-
 
3101
      _Fields(short thriftId, String fieldName) {
-
 
3102
        _thriftId = thriftId;
-
 
3103
        _fieldName = fieldName;
-
 
3104
      }
-
 
3105
 
-
 
3106
      public short getThriftFieldId() {
-
 
3107
        return _thriftId;
-
 
3108
      }
-
 
3109
 
-
 
3110
      public String getFieldName() {
-
 
3111
        return _fieldName;
-
 
3112
      }
-
 
3113
    }
-
 
3114
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3115
    }});
-
 
3116
 
-
 
3117
    static {
-
 
3118
      FieldMetaData.addStructMetaDataMap(createShipment_result.class, metaDataMap);
-
 
3119
    }
-
 
3120
 
-
 
3121
    public createShipment_result() {
-
 
3122
    }
-
 
3123
 
-
 
3124
    /**
-
 
3125
     * Performs a deep copy on <i>other</i>.
-
 
3126
     */
-
 
3127
    public createShipment_result(createShipment_result other) {
-
 
3128
    }
-
 
3129
 
-
 
3130
    public createShipment_result deepCopy() {
-
 
3131
      return new createShipment_result(this);
-
 
3132
    }
-
 
3133
 
-
 
3134
    @Deprecated
-
 
3135
    public createShipment_result clone() {
-
 
3136
      return new createShipment_result(this);
-
 
3137
    }
-
 
3138
 
-
 
3139
    public void setFieldValue(_Fields field, Object value) {
-
 
3140
      switch (field) {
-
 
3141
      }
-
 
3142
    }
-
 
3143
 
-
 
3144
    public void setFieldValue(int fieldID, Object value) {
-
 
3145
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3146
    }
-
 
3147
 
-
 
3148
    public Object getFieldValue(_Fields field) {
-
 
3149
      switch (field) {
-
 
3150
      }
-
 
3151
      throw new IllegalStateException();
-
 
3152
    }
-
 
3153
 
-
 
3154
    public Object getFieldValue(int fieldId) {
-
 
3155
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3156
    }
-
 
3157
 
-
 
3158
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3159
    public boolean isSet(_Fields field) {
-
 
3160
      switch (field) {
-
 
3161
      }
-
 
3162
      throw new IllegalStateException();
-
 
3163
    }
-
 
3164
 
-
 
3165
    public boolean isSet(int fieldID) {
-
 
3166
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3167
    }
-
 
3168
 
-
 
3169
    @Override
-
 
3170
    public boolean equals(Object that) {
-
 
3171
      if (that == null)
-
 
3172
        return false;
-
 
3173
      if (that instanceof createShipment_result)
-
 
3174
        return this.equals((createShipment_result)that);
-
 
3175
      return false;
-
 
3176
    }
-
 
3177
 
-
 
3178
    public boolean equals(createShipment_result that) {
-
 
3179
      if (that == null)
-
 
3180
        return false;
-
 
3181
 
-
 
3182
      return true;
-
 
3183
    }
-
 
3184
 
-
 
3185
    @Override
-
 
3186
    public int hashCode() {
-
 
3187
      return 0;
-
 
3188
    }
-
 
3189
 
-
 
3190
    public int compareTo(createShipment_result other) {
-
 
3191
      if (!getClass().equals(other.getClass())) {
-
 
3192
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3193
      }
-
 
3194
 
-
 
3195
      int lastComparison = 0;
-
 
3196
      createShipment_result typedOther = (createShipment_result)other;
-
 
3197
 
-
 
3198
      return 0;
-
 
3199
    }
-
 
3200
 
-
 
3201
    public void read(TProtocol iprot) throws TException {
-
 
3202
      TField field;
-
 
3203
      iprot.readStructBegin();
-
 
3204
      while (true)
-
 
3205
      {
-
 
3206
        field = iprot.readFieldBegin();
-
 
3207
        if (field.type == TType.STOP) { 
-
 
3208
          break;
-
 
3209
        }
-
 
3210
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3211
        if (fieldId == null) {
-
 
3212
          TProtocolUtil.skip(iprot, field.type);
-
 
3213
        } else {
-
 
3214
          switch (fieldId) {
-
 
3215
          }
-
 
3216
          iprot.readFieldEnd();
-
 
3217
        }
-
 
3218
      }
-
 
3219
      iprot.readStructEnd();
-
 
3220
      validate();
-
 
3221
    }
-
 
3222
 
-
 
3223
    public void write(TProtocol oprot) throws TException {
-
 
3224
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3225
 
-
 
3226
      oprot.writeFieldStop();
-
 
3227
      oprot.writeStructEnd();
-
 
3228
    }
-
 
3229
 
-
 
3230
    @Override
-
 
3231
    public String toString() {
-
 
3232
      StringBuilder sb = new StringBuilder("createShipment_result(");
-
 
3233
      boolean first = true;
-
 
3234
 
-
 
3235
      sb.append(")");
-
 
3236
      return sb.toString();
-
 
3237
    }
-
 
3238
 
-
 
3239
    public void validate() throws TException {
-
 
3240
      // check for required fields
-
 
3241
    }
-
 
3242
 
-
 
3243
  }
-
 
3244
 
-
 
3245
  public static class updateShipmentStatus_args implements TBase<updateShipmentStatus_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateShipmentStatus_args>   {
-
 
3246
    private static final TStruct STRUCT_DESC = new TStruct("updateShipmentStatus_args");
-
 
3247
 
-
 
3248
    private static final TField AWB_FIELD_DESC = new TField("awb", TType.STRING, (short)1);
-
 
3249
    private static final TField SHIPMENT_UPDATE_FIELD_DESC = new TField("shipment_update", TType.STRUCT, (short)2);
-
 
3250
 
-
 
3251
    private String awb;
-
 
3252
    private ShipmentUpdate shipment_update;
-
 
3253
 
-
 
3254
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3255
    public enum _Fields implements TFieldIdEnum {
-
 
3256
      AWB((short)1, "awb"),
-
 
3257
      SHIPMENT_UPDATE((short)2, "shipment_update");
-
 
3258
 
-
 
3259
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3260
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3261
 
-
 
3262
      static {
-
 
3263
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3264
          byId.put((int)field._thriftId, field);
-
 
3265
          byName.put(field.getFieldName(), field);
-
 
3266
        }
-
 
3267
      }
-
 
3268
 
-
 
3269
      /**
-
 
3270
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3271
       */
-
 
3272
      public static _Fields findByThriftId(int fieldId) {
-
 
3273
        return byId.get(fieldId);
-
 
3274
      }
-
 
3275
 
-
 
3276
      /**
-
 
3277
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3278
       * if it is not found.
-
 
3279
       */
-
 
3280
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3281
        _Fields fields = findByThriftId(fieldId);
-
 
3282
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3283
        return fields;
-
 
3284
      }
-
 
3285
 
-
 
3286
      /**
-
 
3287
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3288
       */
-
 
3289
      public static _Fields findByName(String name) {
-
 
3290
        return byName.get(name);
-
 
3291
      }
-
 
3292
 
-
 
3293
      private final short _thriftId;
-
 
3294
      private final String _fieldName;
-
 
3295
 
-
 
3296
      _Fields(short thriftId, String fieldName) {
-
 
3297
        _thriftId = thriftId;
-
 
3298
        _fieldName = fieldName;
-
 
3299
      }
-
 
3300
 
-
 
3301
      public short getThriftFieldId() {
-
 
3302
        return _thriftId;
-
 
3303
      }
-
 
3304
 
-
 
3305
      public String getFieldName() {
-
 
3306
        return _fieldName;
-
 
3307
      }
-
 
3308
    }
-
 
3309
 
-
 
3310
    // isset id assignments
-
 
3311
 
-
 
3312
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3313
      put(_Fields.AWB, new FieldMetaData("awb", TFieldRequirementType.DEFAULT, 
-
 
3314
          new FieldValueMetaData(TType.STRING)));
-
 
3315
      put(_Fields.SHIPMENT_UPDATE, new FieldMetaData("shipment_update", TFieldRequirementType.DEFAULT, 
-
 
3316
          new StructMetaData(TType.STRUCT, ShipmentUpdate.class)));
-
 
3317
    }});
-
 
3318
 
-
 
3319
    static {
-
 
3320
      FieldMetaData.addStructMetaDataMap(updateShipmentStatus_args.class, metaDataMap);
-
 
3321
    }
-
 
3322
 
-
 
3323
    public updateShipmentStatus_args() {
-
 
3324
    }
-
 
3325
 
-
 
3326
    public updateShipmentStatus_args(
-
 
3327
      String awb,
-
 
3328
      ShipmentUpdate shipment_update)
-
 
3329
    {
-
 
3330
      this();
-
 
3331
      this.awb = awb;
-
 
3332
      this.shipment_update = shipment_update;
-
 
3333
    }
-
 
3334
 
-
 
3335
    /**
-
 
3336
     * Performs a deep copy on <i>other</i>.
-
 
3337
     */
-
 
3338
    public updateShipmentStatus_args(updateShipmentStatus_args other) {
-
 
3339
      if (other.isSetAwb()) {
-
 
3340
        this.awb = other.awb;
-
 
3341
      }
-
 
3342
      if (other.isSetShipment_update()) {
-
 
3343
        this.shipment_update = new ShipmentUpdate(other.shipment_update);
-
 
3344
      }
-
 
3345
    }
-
 
3346
 
-
 
3347
    public updateShipmentStatus_args deepCopy() {
-
 
3348
      return new updateShipmentStatus_args(this);
-
 
3349
    }
-
 
3350
 
-
 
3351
    @Deprecated
-
 
3352
    public updateShipmentStatus_args clone() {
-
 
3353
      return new updateShipmentStatus_args(this);
-
 
3354
    }
-
 
3355
 
-
 
3356
    public String getAwb() {
-
 
3357
      return this.awb;
-
 
3358
    }
-
 
3359
 
-
 
3360
    public updateShipmentStatus_args setAwb(String awb) {
-
 
3361
      this.awb = awb;
-
 
3362
      return this;
-
 
3363
    }
-
 
3364
 
-
 
3365
    public void unsetAwb() {
-
 
3366
      this.awb = null;
-
 
3367
    }
-
 
3368
 
-
 
3369
    /** Returns true if field awb is set (has been asigned a value) and false otherwise */
-
 
3370
    public boolean isSetAwb() {
-
 
3371
      return this.awb != null;
-
 
3372
    }
-
 
3373
 
-
 
3374
    public void setAwbIsSet(boolean value) {
-
 
3375
      if (!value) {
-
 
3376
        this.awb = null;
-
 
3377
      }
-
 
3378
    }
-
 
3379
 
-
 
3380
    public ShipmentUpdate getShipment_update() {
-
 
3381
      return this.shipment_update;
-
 
3382
    }
-
 
3383
 
-
 
3384
    public updateShipmentStatus_args setShipment_update(ShipmentUpdate shipment_update) {
-
 
3385
      this.shipment_update = shipment_update;
-
 
3386
      return this;
-
 
3387
    }
-
 
3388
 
-
 
3389
    public void unsetShipment_update() {
-
 
3390
      this.shipment_update = null;
-
 
3391
    }
-
 
3392
 
-
 
3393
    /** Returns true if field shipment_update is set (has been asigned a value) and false otherwise */
-
 
3394
    public boolean isSetShipment_update() {
-
 
3395
      return this.shipment_update != null;
-
 
3396
    }
-
 
3397
 
-
 
3398
    public void setShipment_updateIsSet(boolean value) {
-
 
3399
      if (!value) {
-
 
3400
        this.shipment_update = null;
-
 
3401
      }
-
 
3402
    }
-
 
3403
 
-
 
3404
    public void setFieldValue(_Fields field, Object value) {
-
 
3405
      switch (field) {
-
 
3406
      case AWB:
-
 
3407
        if (value == null) {
-
 
3408
          unsetAwb();
-
 
3409
        } else {
-
 
3410
          setAwb((String)value);
-
 
3411
        }
-
 
3412
        break;
-
 
3413
 
-
 
3414
      case SHIPMENT_UPDATE:
-
 
3415
        if (value == null) {
-
 
3416
          unsetShipment_update();
-
 
3417
        } else {
-
 
3418
          setShipment_update((ShipmentUpdate)value);
-
 
3419
        }
-
 
3420
        break;
-
 
3421
 
-
 
3422
      }
-
 
3423
    }
-
 
3424
 
-
 
3425
    public void setFieldValue(int fieldID, Object value) {
-
 
3426
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3427
    }
-
 
3428
 
-
 
3429
    public Object getFieldValue(_Fields field) {
-
 
3430
      switch (field) {
-
 
3431
      case AWB:
-
 
3432
        return getAwb();
-
 
3433
 
-
 
3434
      case SHIPMENT_UPDATE:
-
 
3435
        return getShipment_update();
-
 
3436
 
-
 
3437
      }
-
 
3438
      throw new IllegalStateException();
-
 
3439
    }
-
 
3440
 
-
 
3441
    public Object getFieldValue(int fieldId) {
-
 
3442
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3443
    }
-
 
3444
 
-
 
3445
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3446
    public boolean isSet(_Fields field) {
-
 
3447
      switch (field) {
-
 
3448
      case AWB:
-
 
3449
        return isSetAwb();
-
 
3450
      case SHIPMENT_UPDATE:
-
 
3451
        return isSetShipment_update();
-
 
3452
      }
-
 
3453
      throw new IllegalStateException();
-
 
3454
    }
-
 
3455
 
-
 
3456
    public boolean isSet(int fieldID) {
-
 
3457
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3458
    }
-
 
3459
 
-
 
3460
    @Override
-
 
3461
    public boolean equals(Object that) {
-
 
3462
      if (that == null)
-
 
3463
        return false;
-
 
3464
      if (that instanceof updateShipmentStatus_args)
-
 
3465
        return this.equals((updateShipmentStatus_args)that);
-
 
3466
      return false;
-
 
3467
    }
-
 
3468
 
-
 
3469
    public boolean equals(updateShipmentStatus_args that) {
-
 
3470
      if (that == null)
-
 
3471
        return false;
-
 
3472
 
-
 
3473
      boolean this_present_awb = true && this.isSetAwb();
-
 
3474
      boolean that_present_awb = true && that.isSetAwb();
-
 
3475
      if (this_present_awb || that_present_awb) {
-
 
3476
        if (!(this_present_awb && that_present_awb))
-
 
3477
          return false;
-
 
3478
        if (!this.awb.equals(that.awb))
-
 
3479
          return false;
-
 
3480
      }
-
 
3481
 
-
 
3482
      boolean this_present_shipment_update = true && this.isSetShipment_update();
-
 
3483
      boolean that_present_shipment_update = true && that.isSetShipment_update();
-
 
3484
      if (this_present_shipment_update || that_present_shipment_update) {
-
 
3485
        if (!(this_present_shipment_update && that_present_shipment_update))
-
 
3486
          return false;
-
 
3487
        if (!this.shipment_update.equals(that.shipment_update))
-
 
3488
          return false;
-
 
3489
      }
-
 
3490
 
-
 
3491
      return true;
-
 
3492
    }
-
 
3493
 
-
 
3494
    @Override
-
 
3495
    public int hashCode() {
-
 
3496
      return 0;
-
 
3497
    }
-
 
3498
 
-
 
3499
    public int compareTo(updateShipmentStatus_args other) {
-
 
3500
      if (!getClass().equals(other.getClass())) {
-
 
3501
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3502
      }
-
 
3503
 
-
 
3504
      int lastComparison = 0;
-
 
3505
      updateShipmentStatus_args typedOther = (updateShipmentStatus_args)other;
-
 
3506
 
-
 
3507
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(isSetAwb());
-
 
3508
      if (lastComparison != 0) {
-
 
3509
        return lastComparison;
-
 
3510
      }
-
 
3511
      lastComparison = TBaseHelper.compareTo(awb, typedOther.awb);
-
 
3512
      if (lastComparison != 0) {
-
 
3513
        return lastComparison;
-
 
3514
      }
-
 
3515
      lastComparison = Boolean.valueOf(isSetShipment_update()).compareTo(isSetShipment_update());
-
 
3516
      if (lastComparison != 0) {
-
 
3517
        return lastComparison;
-
 
3518
      }
-
 
3519
      lastComparison = TBaseHelper.compareTo(shipment_update, typedOther.shipment_update);
-
 
3520
      if (lastComparison != 0) {
-
 
3521
        return lastComparison;
-
 
3522
      }
-
 
3523
      return 0;
-
 
3524
    }
-
 
3525
 
-
 
3526
    public void read(TProtocol iprot) throws TException {
-
 
3527
      TField field;
-
 
3528
      iprot.readStructBegin();
-
 
3529
      while (true)
-
 
3530
      {
-
 
3531
        field = iprot.readFieldBegin();
-
 
3532
        if (field.type == TType.STOP) { 
-
 
3533
          break;
-
 
3534
        }
-
 
3535
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3536
        if (fieldId == null) {
-
 
3537
          TProtocolUtil.skip(iprot, field.type);
-
 
3538
        } else {
-
 
3539
          switch (fieldId) {
-
 
3540
            case AWB:
-
 
3541
              if (field.type == TType.STRING) {
-
 
3542
                this.awb = iprot.readString();
-
 
3543
              } else { 
-
 
3544
                TProtocolUtil.skip(iprot, field.type);
-
 
3545
              }
-
 
3546
              break;
-
 
3547
            case SHIPMENT_UPDATE:
-
 
3548
              if (field.type == TType.STRUCT) {
-
 
3549
                this.shipment_update = new ShipmentUpdate();
-
 
3550
                this.shipment_update.read(iprot);
-
 
3551
              } else { 
-
 
3552
                TProtocolUtil.skip(iprot, field.type);
-
 
3553
              }
-
 
3554
              break;
-
 
3555
          }
-
 
3556
          iprot.readFieldEnd();
-
 
3557
        }
-
 
3558
      }
-
 
3559
      iprot.readStructEnd();
-
 
3560
      validate();
-
 
3561
    }
-
 
3562
 
-
 
3563
    public void write(TProtocol oprot) throws TException {
-
 
3564
      validate();
-
 
3565
 
-
 
3566
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3567
      if (this.awb != null) {
-
 
3568
        oprot.writeFieldBegin(AWB_FIELD_DESC);
-
 
3569
        oprot.writeString(this.awb);
-
 
3570
        oprot.writeFieldEnd();
-
 
3571
      }
-
 
3572
      if (this.shipment_update != null) {
-
 
3573
        oprot.writeFieldBegin(SHIPMENT_UPDATE_FIELD_DESC);
-
 
3574
        this.shipment_update.write(oprot);
-
 
3575
        oprot.writeFieldEnd();
-
 
3576
      }
-
 
3577
      oprot.writeFieldStop();
-
 
3578
      oprot.writeStructEnd();
-
 
3579
    }
-
 
3580
 
-
 
3581
    @Override
-
 
3582
    public String toString() {
-
 
3583
      StringBuilder sb = new StringBuilder("updateShipmentStatus_args(");
-
 
3584
      boolean first = true;
-
 
3585
 
-
 
3586
      sb.append("awb:");
-
 
3587
      if (this.awb == null) {
-
 
3588
        sb.append("null");
-
 
3589
      } else {
-
 
3590
        sb.append(this.awb);
-
 
3591
      }
-
 
3592
      first = false;
-
 
3593
      if (!first) sb.append(", ");
-
 
3594
      sb.append("shipment_update:");
-
 
3595
      if (this.shipment_update == null) {
-
 
3596
        sb.append("null");
-
 
3597
      } else {
-
 
3598
        sb.append(this.shipment_update);
-
 
3599
      }
-
 
3600
      first = false;
-
 
3601
      sb.append(")");
-
 
3602
      return sb.toString();
-
 
3603
    }
-
 
3604
 
-
 
3605
    public void validate() throws TException {
-
 
3606
      // check for required fields
-
 
3607
    }
-
 
3608
 
-
 
3609
  }
-
 
3610
 
-
 
3611
  public static class updateShipmentStatus_result implements TBase<updateShipmentStatus_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateShipmentStatus_result>   {
-
 
3612
    private static final TStruct STRUCT_DESC = new TStruct("updateShipmentStatus_result");
-
 
3613
 
-
 
3614
 
-
 
3615
 
-
 
3616
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3617
    public enum _Fields implements TFieldIdEnum {
-
 
3618
;
-
 
3619
 
-
 
3620
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3621
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3622
 
-
 
3623
      static {
-
 
3624
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3625
          byId.put((int)field._thriftId, field);
-
 
3626
          byName.put(field.getFieldName(), field);
-
 
3627
        }
-
 
3628
      }
-
 
3629
 
-
 
3630
      /**
-
 
3631
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3632
       */
-
 
3633
      public static _Fields findByThriftId(int fieldId) {
-
 
3634
        return byId.get(fieldId);
-
 
3635
      }
-
 
3636
 
-
 
3637
      /**
-
 
3638
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3639
       * if it is not found.
-
 
3640
       */
-
 
3641
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3642
        _Fields fields = findByThriftId(fieldId);
-
 
3643
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3644
        return fields;
-
 
3645
      }
-
 
3646
 
-
 
3647
      /**
-
 
3648
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3649
       */
-
 
3650
      public static _Fields findByName(String name) {
-
 
3651
        return byName.get(name);
-
 
3652
      }
-
 
3653
 
-
 
3654
      private final short _thriftId;
-
 
3655
      private final String _fieldName;
-
 
3656
 
-
 
3657
      _Fields(short thriftId, String fieldName) {
-
 
3658
        _thriftId = thriftId;
-
 
3659
        _fieldName = fieldName;
-
 
3660
      }
-
 
3661
 
-
 
3662
      public short getThriftFieldId() {
-
 
3663
        return _thriftId;
-
 
3664
      }
-
 
3665
 
-
 
3666
      public String getFieldName() {
-
 
3667
        return _fieldName;
-
 
3668
      }
-
 
3669
    }
-
 
3670
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
3671
    }});
-
 
3672
 
-
 
3673
    static {
-
 
3674
      FieldMetaData.addStructMetaDataMap(updateShipmentStatus_result.class, metaDataMap);
-
 
3675
    }
-
 
3676
 
-
 
3677
    public updateShipmentStatus_result() {
-
 
3678
    }
-
 
3679
 
-
 
3680
    /**
-
 
3681
     * Performs a deep copy on <i>other</i>.
-
 
3682
     */
-
 
3683
    public updateShipmentStatus_result(updateShipmentStatus_result other) {
-
 
3684
    }
-
 
3685
 
-
 
3686
    public updateShipmentStatus_result deepCopy() {
-
 
3687
      return new updateShipmentStatus_result(this);
-
 
3688
    }
-
 
3689
 
-
 
3690
    @Deprecated
-
 
3691
    public updateShipmentStatus_result clone() {
-
 
3692
      return new updateShipmentStatus_result(this);
-
 
3693
    }
-
 
3694
 
-
 
3695
    public void setFieldValue(_Fields field, Object value) {
-
 
3696
      switch (field) {
-
 
3697
      }
-
 
3698
    }
-
 
3699
 
-
 
3700
    public void setFieldValue(int fieldID, Object value) {
-
 
3701
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3702
    }
-
 
3703
 
-
 
3704
    public Object getFieldValue(_Fields field) {
-
 
3705
      switch (field) {
-
 
3706
      }
-
 
3707
      throw new IllegalStateException();
-
 
3708
    }
-
 
3709
 
-
 
3710
    public Object getFieldValue(int fieldId) {
-
 
3711
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3712
    }
-
 
3713
 
-
 
3714
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
3715
    public boolean isSet(_Fields field) {
-
 
3716
      switch (field) {
-
 
3717
      }
-
 
3718
      throw new IllegalStateException();
-
 
3719
    }
-
 
3720
 
-
 
3721
    public boolean isSet(int fieldID) {
-
 
3722
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3723
    }
-
 
3724
 
-
 
3725
    @Override
-
 
3726
    public boolean equals(Object that) {
-
 
3727
      if (that == null)
-
 
3728
        return false;
-
 
3729
      if (that instanceof updateShipmentStatus_result)
-
 
3730
        return this.equals((updateShipmentStatus_result)that);
-
 
3731
      return false;
-
 
3732
    }
-
 
3733
 
-
 
3734
    public boolean equals(updateShipmentStatus_result that) {
-
 
3735
      if (that == null)
-
 
3736
        return false;
-
 
3737
 
-
 
3738
      return true;
-
 
3739
    }
-
 
3740
 
-
 
3741
    @Override
-
 
3742
    public int hashCode() {
-
 
3743
      return 0;
-
 
3744
    }
-
 
3745
 
-
 
3746
    public int compareTo(updateShipmentStatus_result other) {
-
 
3747
      if (!getClass().equals(other.getClass())) {
-
 
3748
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3749
      }
-
 
3750
 
-
 
3751
      int lastComparison = 0;
-
 
3752
      updateShipmentStatus_result typedOther = (updateShipmentStatus_result)other;
-
 
3753
 
-
 
3754
      return 0;
-
 
3755
    }
-
 
3756
 
-
 
3757
    public void read(TProtocol iprot) throws TException {
-
 
3758
      TField field;
-
 
3759
      iprot.readStructBegin();
-
 
3760
      while (true)
-
 
3761
      {
-
 
3762
        field = iprot.readFieldBegin();
-
 
3763
        if (field.type == TType.STOP) { 
-
 
3764
          break;
-
 
3765
        }
-
 
3766
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3767
        if (fieldId == null) {
-
 
3768
          TProtocolUtil.skip(iprot, field.type);
-
 
3769
        } else {
-
 
3770
          switch (fieldId) {
-
 
3771
          }
-
 
3772
          iprot.readFieldEnd();
-
 
3773
        }
-
 
3774
      }
-
 
3775
      iprot.readStructEnd();
-
 
3776
      validate();
-
 
3777
    }
-
 
3778
 
-
 
3779
    public void write(TProtocol oprot) throws TException {
-
 
3780
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3781
 
-
 
3782
      oprot.writeFieldStop();
-
 
3783
      oprot.writeStructEnd();
-
 
3784
    }
-
 
3785
 
-
 
3786
    @Override
-
 
3787
    public String toString() {
-
 
3788
      StringBuilder sb = new StringBuilder("updateShipmentStatus_result(");
-
 
3789
      boolean first = true;
-
 
3790
 
-
 
3791
      sb.append(")");
-
 
3792
      return sb.toString();
-
 
3793
    }
-
 
3794
 
-
 
3795
    public void validate() throws TException {
2669
      // check for required fields
3796
      // check for required fields
2670
    }
3797
    }
2671
 
3798
 
2672
  }
3799
  }
2673
 
3800