| Line 24... |
Line 24... |
| 24 |
|
24 |
|
| 25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
| 26 |
|
26 |
|
| 27 |
public List<LivePricing> getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException;
|
27 |
public List<LivePricing> getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException;
|
| 28 |
|
28 |
|
| - |
|
29 |
public void updateLatestPriceForItem(long id) throws org.apache.thrift.TException;
|
| - |
|
30 |
|
| 29 |
}
|
31 |
}
|
| 30 |
|
32 |
|
| 31 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
33 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 32 |
|
34 |
|
| 33 |
public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestPricing_call> resultHandler) throws org.apache.thrift.TException;
|
35 |
public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestPricing_call> resultHandler) throws org.apache.thrift.TException;
|
| 34 |
|
36 |
|
| - |
|
37 |
public void updateLatestPriceForItem(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLatestPriceForItem_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
38 |
|
| 35 |
}
|
39 |
}
|
| 36 |
|
40 |
|
| 37 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
41 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 38 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
42 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 39 |
public Factory() {}
|
43 |
public Factory() {}
|
| Line 76... |
Line 80... |
| 76 |
return result.success;
|
80 |
return result.success;
|
| 77 |
}
|
81 |
}
|
| 78 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestPricing failed: unknown result");
|
82 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestPricing failed: unknown result");
|
| 79 |
}
|
83 |
}
|
| 80 |
|
84 |
|
| - |
|
85 |
public void updateLatestPriceForItem(long id) throws org.apache.thrift.TException
|
| - |
|
86 |
{
|
| - |
|
87 |
send_updateLatestPriceForItem(id);
|
| - |
|
88 |
}
|
| - |
|
89 |
|
| - |
|
90 |
public void send_updateLatestPriceForItem(long id) throws org.apache.thrift.TException
|
| - |
|
91 |
{
|
| - |
|
92 |
updateLatestPriceForItem_args args = new updateLatestPriceForItem_args();
|
| - |
|
93 |
args.setId(id);
|
| - |
|
94 |
sendBase("updateLatestPriceForItem", args);
|
| - |
|
95 |
}
|
| - |
|
96 |
|
| 81 |
}
|
97 |
}
|
| 82 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
98 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 83 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
99 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 84 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
100 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 85 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
101 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 129... |
Line 145... |
| 129 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
145 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 130 |
return (new Client(prot)).recv_getLatestPricing();
|
146 |
return (new Client(prot)).recv_getLatestPricing();
|
| 131 |
}
|
147 |
}
|
| 132 |
}
|
148 |
}
|
| 133 |
|
149 |
|
| - |
|
150 |
public void updateLatestPriceForItem(long id, org.apache.thrift.async.AsyncMethodCallback<updateLatestPriceForItem_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
151 |
checkReady();
|
| - |
|
152 |
updateLatestPriceForItem_call method_call = new updateLatestPriceForItem_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
153 |
this.___currentMethod = method_call;
|
| - |
|
154 |
___manager.call(method_call);
|
| - |
|
155 |
}
|
| - |
|
156 |
|
| - |
|
157 |
public static class updateLatestPriceForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
158 |
private long id;
|
| - |
|
159 |
public updateLatestPriceForItem_call(long id, org.apache.thrift.async.AsyncMethodCallback<updateLatestPriceForItem_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 {
|
| - |
|
160 |
super(client, protocolFactory, transport, resultHandler, true);
|
| - |
|
161 |
this.id = id;
|
| - |
|
162 |
}
|
| - |
|
163 |
|
| - |
|
164 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
165 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLatestPriceForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
166 |
updateLatestPriceForItem_args args = new updateLatestPriceForItem_args();
|
| - |
|
167 |
args.setId(id);
|
| - |
|
168 |
args.write(prot);
|
| - |
|
169 |
prot.writeMessageEnd();
|
| - |
|
170 |
}
|
| - |
|
171 |
|
| - |
|
172 |
public void getResult() throws org.apache.thrift.TException {
|
| - |
|
173 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
174 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
175 |
}
|
| - |
|
176 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
177 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
178 |
}
|
| - |
|
179 |
}
|
| - |
|
180 |
|
| 134 |
}
|
181 |
}
|
| 135 |
|
182 |
|
| 136 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
183 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 137 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
184 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 138 |
public Processor(I iface) {
|
185 |
public Processor(I iface) {
|
| Line 143... |
Line 190... |
| 143 |
super(iface, getProcessMap(processMap));
|
190 |
super(iface, getProcessMap(processMap));
|
| 144 |
}
|
191 |
}
|
| 145 |
|
192 |
|
| 146 |
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
193 |
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
| 147 |
processMap.put("getLatestPricing", new getLatestPricing());
|
194 |
processMap.put("getLatestPricing", new getLatestPricing());
|
| - |
|
195 |
processMap.put("updateLatestPriceForItem", new updateLatestPriceForItem());
|
| 148 |
return processMap;
|
196 |
return processMap;
|
| 149 |
}
|
197 |
}
|
| 150 |
|
198 |
|
| 151 |
private static class getLatestPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestPricing_args> {
|
199 |
private static class getLatestPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestPricing_args> {
|
| 152 |
public getLatestPricing() {
|
200 |
public getLatestPricing() {
|
| Line 162... |
Line 210... |
| 162 |
result.success = iface.getLatestPricing(args.skuBundleId, args.source_id);
|
210 |
result.success = iface.getLatestPricing(args.skuBundleId, args.source_id);
|
| 163 |
return result;
|
211 |
return result;
|
| 164 |
}
|
212 |
}
|
| 165 |
}
|
213 |
}
|
| 166 |
|
214 |
|
| - |
|
215 |
private static class updateLatestPriceForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLatestPriceForItem_args> {
|
| - |
|
216 |
public updateLatestPriceForItem() {
|
| - |
|
217 |
super("updateLatestPriceForItem");
|
| - |
|
218 |
}
|
| - |
|
219 |
|
| - |
|
220 |
protected updateLatestPriceForItem_args getEmptyArgsInstance() {
|
| - |
|
221 |
return new updateLatestPriceForItem_args();
|
| - |
|
222 |
}
|
| - |
|
223 |
|
| - |
|
224 |
protected org.apache.thrift.TBase getResult(I iface, updateLatestPriceForItem_args args) throws org.apache.thrift.TException {
|
| - |
|
225 |
iface.updateLatestPriceForItem(args.id);
|
| - |
|
226 |
return null;
|
| - |
|
227 |
}
|
| - |
|
228 |
}
|
| - |
|
229 |
|
| 167 |
}
|
230 |
}
|
| 168 |
|
231 |
|
| 169 |
public static class getLatestPricing_args implements org.apache.thrift.TBase<getLatestPricing_args, getLatestPricing_args._Fields>, java.io.Serializable, Cloneable {
|
232 |
public static class getLatestPricing_args implements org.apache.thrift.TBase<getLatestPricing_args, getLatestPricing_args._Fields>, java.io.Serializable, Cloneable {
|
| 170 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_args");
|
233 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_args");
|
| 171 |
|
234 |
|
| Line 869... |
Line 932... |
| 869 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
932 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| 870 |
} catch (org.apache.thrift.TException te) {
|
933 |
} catch (org.apache.thrift.TException te) {
|
| 871 |
throw new java.io.IOException(te);
|
934 |
throw new java.io.IOException(te);
|
| 872 |
}
|
935 |
}
|
| 873 |
}
|
936 |
}
|
| - |
|
937 |
|
| - |
|
938 |
}
|
| - |
|
939 |
|
| - |
|
940 |
public static class updateLatestPriceForItem_args implements org.apache.thrift.TBase<updateLatestPriceForItem_args, updateLatestPriceForItem_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
941 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLatestPriceForItem_args");
|
| - |
|
942 |
|
| - |
|
943 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
| - |
|
944 |
|
| - |
|
945 |
private long id; // required
|
| - |
|
946 |
|
| - |
|
947 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
948 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
949 |
ID((short)1, "id");
|
| - |
|
950 |
|
| - |
|
951 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
952 |
|
| - |
|
953 |
static {
|
| - |
|
954 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
955 |
byName.put(field.getFieldName(), field);
|
| - |
|
956 |
}
|
| - |
|
957 |
}
|
| - |
|
958 |
|
| - |
|
959 |
/**
|
| - |
|
960 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
961 |
*/
|
| - |
|
962 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
963 |
switch(fieldId) {
|
| - |
|
964 |
case 1: // ID
|
| - |
|
965 |
return ID;
|
| - |
|
966 |
default:
|
| - |
|
967 |
return null;
|
| - |
|
968 |
}
|
| - |
|
969 |
}
|
| - |
|
970 |
|
| - |
|
971 |
/**
|
| - |
|
972 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
973 |
* if it is not found.
|
| - |
|
974 |
*/
|
| - |
|
975 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
976 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
977 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
978 |
return fields;
|
| - |
|
979 |
}
|
| - |
|
980 |
|
| - |
|
981 |
/**
|
| - |
|
982 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
983 |
*/
|
| - |
|
984 |
public static _Fields findByName(String name) {
|
| - |
|
985 |
return byName.get(name);
|
| - |
|
986 |
}
|
| - |
|
987 |
|
| - |
|
988 |
private final short _thriftId;
|
| - |
|
989 |
private final String _fieldName;
|
| - |
|
990 |
|
| - |
|
991 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
992 |
_thriftId = thriftId;
|
| - |
|
993 |
_fieldName = fieldName;
|
| - |
|
994 |
}
|
| - |
|
995 |
|
| - |
|
996 |
public short getThriftFieldId() {
|
| - |
|
997 |
return _thriftId;
|
| - |
|
998 |
}
|
| - |
|
999 |
|
| - |
|
1000 |
public String getFieldName() {
|
| - |
|
1001 |
return _fieldName;
|
| - |
|
1002 |
}
|
| - |
|
1003 |
}
|
| - |
|
1004 |
|
| - |
|
1005 |
// isset id assignments
|
| - |
|
1006 |
private static final int __ID_ISSET_ID = 0;
|
| - |
|
1007 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| - |
|
1008 |
|
| - |
|
1009 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
1010 |
static {
|
| - |
|
1011 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
1012 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
1013 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
1014 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
1015 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLatestPriceForItem_args.class, metaDataMap);
|
| - |
|
1016 |
}
|
| - |
|
1017 |
|
| - |
|
1018 |
public updateLatestPriceForItem_args() {
|
| - |
|
1019 |
}
|
| - |
|
1020 |
|
| - |
|
1021 |
public updateLatestPriceForItem_args(
|
| - |
|
1022 |
long id)
|
| - |
|
1023 |
{
|
| - |
|
1024 |
this();
|
| - |
|
1025 |
this.id = id;
|
| - |
|
1026 |
setIdIsSet(true);
|
| - |
|
1027 |
}
|
| - |
|
1028 |
|
| - |
|
1029 |
/**
|
| - |
|
1030 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
1031 |
*/
|
| - |
|
1032 |
public updateLatestPriceForItem_args(updateLatestPriceForItem_args other) {
|
| - |
|
1033 |
__isset_bit_vector.clear();
|
| - |
|
1034 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
1035 |
this.id = other.id;
|
| - |
|
1036 |
}
|
| - |
|
1037 |
|
| - |
|
1038 |
public updateLatestPriceForItem_args deepCopy() {
|
| - |
|
1039 |
return new updateLatestPriceForItem_args(this);
|
| - |
|
1040 |
}
|
| - |
|
1041 |
|
| - |
|
1042 |
@Override
|
| - |
|
1043 |
public void clear() {
|
| - |
|
1044 |
setIdIsSet(false);
|
| - |
|
1045 |
this.id = 0;
|
| - |
|
1046 |
}
|
| - |
|
1047 |
|
| - |
|
1048 |
public long getId() {
|
| - |
|
1049 |
return this.id;
|
| - |
|
1050 |
}
|
| - |
|
1051 |
|
| - |
|
1052 |
public void setId(long id) {
|
| - |
|
1053 |
this.id = id;
|
| - |
|
1054 |
setIdIsSet(true);
|
| - |
|
1055 |
}
|
| - |
|
1056 |
|
| - |
|
1057 |
public void unsetId() {
|
| - |
|
1058 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
| - |
|
1059 |
}
|
| - |
|
1060 |
|
| - |
|
1061 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| - |
|
1062 |
public boolean isSetId() {
|
| - |
|
1063 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
| - |
|
1064 |
}
|
| - |
|
1065 |
|
| - |
|
1066 |
public void setIdIsSet(boolean value) {
|
| - |
|
1067 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
| - |
|
1068 |
}
|
| - |
|
1069 |
|
| - |
|
1070 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
1071 |
switch (field) {
|
| - |
|
1072 |
case ID:
|
| - |
|
1073 |
if (value == null) {
|
| - |
|
1074 |
unsetId();
|
| - |
|
1075 |
} else {
|
| - |
|
1076 |
setId((Long)value);
|
| - |
|
1077 |
}
|
| - |
|
1078 |
break;
|
| - |
|
1079 |
|
| - |
|
1080 |
}
|
| - |
|
1081 |
}
|
| - |
|
1082 |
|
| - |
|
1083 |
public Object getFieldValue(_Fields field) {
|
| - |
|
1084 |
switch (field) {
|
| - |
|
1085 |
case ID:
|
| - |
|
1086 |
return Long.valueOf(getId());
|
| - |
|
1087 |
|
| - |
|
1088 |
}
|
| - |
|
1089 |
throw new IllegalStateException();
|
| - |
|
1090 |
}
|
| - |
|
1091 |
|
| - |
|
1092 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
1093 |
public boolean isSet(_Fields field) {
|
| - |
|
1094 |
if (field == null) {
|
| - |
|
1095 |
throw new IllegalArgumentException();
|
| - |
|
1096 |
}
|
| - |
|
1097 |
|
| - |
|
1098 |
switch (field) {
|
| - |
|
1099 |
case ID:
|
| - |
|
1100 |
return isSetId();
|
| - |
|
1101 |
}
|
| - |
|
1102 |
throw new IllegalStateException();
|
| - |
|
1103 |
}
|
| - |
|
1104 |
|
| - |
|
1105 |
@Override
|
| - |
|
1106 |
public boolean equals(Object that) {
|
| - |
|
1107 |
if (that == null)
|
| - |
|
1108 |
return false;
|
| - |
|
1109 |
if (that instanceof updateLatestPriceForItem_args)
|
| - |
|
1110 |
return this.equals((updateLatestPriceForItem_args)that);
|
| - |
|
1111 |
return false;
|
| - |
|
1112 |
}
|
| - |
|
1113 |
|
| - |
|
1114 |
public boolean equals(updateLatestPriceForItem_args that) {
|
| - |
|
1115 |
if (that == null)
|
| - |
|
1116 |
return false;
|
| - |
|
1117 |
|
| - |
|
1118 |
boolean this_present_id = true;
|
| - |
|
1119 |
boolean that_present_id = true;
|
| - |
|
1120 |
if (this_present_id || that_present_id) {
|
| - |
|
1121 |
if (!(this_present_id && that_present_id))
|
| - |
|
1122 |
return false;
|
| - |
|
1123 |
if (this.id != that.id)
|
| - |
|
1124 |
return false;
|
| - |
|
1125 |
}
|
| - |
|
1126 |
|
| - |
|
1127 |
return true;
|
| - |
|
1128 |
}
|
| - |
|
1129 |
|
| - |
|
1130 |
@Override
|
| - |
|
1131 |
public int hashCode() {
|
| - |
|
1132 |
return 0;
|
| - |
|
1133 |
}
|
| - |
|
1134 |
|
| - |
|
1135 |
public int compareTo(updateLatestPriceForItem_args other) {
|
| - |
|
1136 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
1137 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
1138 |
}
|
| - |
|
1139 |
|
| - |
|
1140 |
int lastComparison = 0;
|
| - |
|
1141 |
updateLatestPriceForItem_args typedOther = (updateLatestPriceForItem_args)other;
|
| - |
|
1142 |
|
| - |
|
1143 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| - |
|
1144 |
if (lastComparison != 0) {
|
| - |
|
1145 |
return lastComparison;
|
| - |
|
1146 |
}
|
| - |
|
1147 |
if (isSetId()) {
|
| - |
|
1148 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
| - |
|
1149 |
if (lastComparison != 0) {
|
| - |
|
1150 |
return lastComparison;
|
| - |
|
1151 |
}
|
| - |
|
1152 |
}
|
| - |
|
1153 |
return 0;
|
| - |
|
1154 |
}
|
| - |
|
1155 |
|
| - |
|
1156 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
1157 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
1158 |
}
|
| - |
|
1159 |
|
| - |
|
1160 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
1161 |
org.apache.thrift.protocol.TField field;
|
| - |
|
1162 |
iprot.readStructBegin();
|
| - |
|
1163 |
while (true)
|
| - |
|
1164 |
{
|
| - |
|
1165 |
field = iprot.readFieldBegin();
|
| - |
|
1166 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
1167 |
break;
|
| - |
|
1168 |
}
|
| - |
|
1169 |
switch (field.id) {
|
| - |
|
1170 |
case 1: // ID
|
| - |
|
1171 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
1172 |
this.id = iprot.readI64();
|
| - |
|
1173 |
setIdIsSet(true);
|
| - |
|
1174 |
} else {
|
| - |
|
1175 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1176 |
}
|
| - |
|
1177 |
break;
|
| - |
|
1178 |
default:
|
| - |
|
1179 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
1180 |
}
|
| - |
|
1181 |
iprot.readFieldEnd();
|
| - |
|
1182 |
}
|
| - |
|
1183 |
iprot.readStructEnd();
|
| - |
|
1184 |
validate();
|
| - |
|
1185 |
}
|
| - |
|
1186 |
|
| - |
|
1187 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
1188 |
validate();
|
| - |
|
1189 |
|
| - |
|
1190 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
1191 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
| - |
|
1192 |
oprot.writeI64(this.id);
|
| - |
|
1193 |
oprot.writeFieldEnd();
|
| - |
|
1194 |
oprot.writeFieldStop();
|
| - |
|
1195 |
oprot.writeStructEnd();
|
| - |
|
1196 |
}
|
| - |
|
1197 |
|
| - |
|
1198 |
@Override
|
| - |
|
1199 |
public String toString() {
|
| - |
|
1200 |
StringBuilder sb = new StringBuilder("updateLatestPriceForItem_args(");
|
| - |
|
1201 |
boolean first = true;
|
| - |
|
1202 |
|
| - |
|
1203 |
sb.append("id:");
|
| - |
|
1204 |
sb.append(this.id);
|
| - |
|
1205 |
first = false;
|
| - |
|
1206 |
sb.append(")");
|
| - |
|
1207 |
return sb.toString();
|
| - |
|
1208 |
}
|
| - |
|
1209 |
|
| - |
|
1210 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
1211 |
// check for required fields
|
| - |
|
1212 |
}
|
| - |
|
1213 |
|
| - |
|
1214 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
1215 |
try {
|
| - |
|
1216 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
1217 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
1218 |
throw new java.io.IOException(te);
|
| - |
|
1219 |
}
|
| - |
|
1220 |
}
|
| - |
|
1221 |
|
| - |
|
1222 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
1223 |
try {
|
| - |
|
1224 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
1225 |
__isset_bit_vector = new BitSet(1);
|
| - |
|
1226 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
1227 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
1228 |
throw new java.io.IOException(te);
|
| - |
|
1229 |
}
|
| - |
|
1230 |
}
|
| 874 |
|
1231 |
|
| 875 |
}
|
1232 |
}
|
| 876 |
|
1233 |
|
| 877 |
}
|
1234 |
}
|