| Line 331... |
Line 331... |
| 331 |
|
331 |
|
| 332 |
public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException;
|
332 |
public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot) throws org.apache.thrift.TException;
|
| 333 |
|
333 |
|
| 334 |
public String getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException;
|
334 |
public String getLastNdaySaleForItem(long itemId, long numberOfDays) throws org.apache.thrift.TException;
|
| 335 |
|
335 |
|
| - |
|
336 |
public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException;
|
| - |
|
337 |
|
| 336 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException;
|
338 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException;
|
| 337 |
|
339 |
|
| - |
|
340 |
public long getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException;
|
| - |
|
341 |
|
| - |
|
342 |
public List<AmazonFbaInventorySnapshot> getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException;
|
| - |
|
343 |
|
| 338 |
}
|
344 |
}
|
| 339 |
|
345 |
|
| 340 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
346 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
| 341 |
|
347 |
|
| 342 |
public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
348 |
public void addWarehouse(Warehouse warehouse, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addWarehouse_call> resultHandler) throws org.apache.thrift.TException;
|
| Line 449... |
Line 455... |
| 449 |
|
455 |
|
| 450 |
public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
|
456 |
public void addOrUpdateAmazonInventoryForItem(AmazonInventorySnapshot amazonInventorySnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonInventoryForItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 451 |
|
457 |
|
| 452 |
public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException;
|
458 |
public void getLastNdaySaleForItem(long itemId, long numberOfDays, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastNdaySaleForItem_call> resultHandler) throws org.apache.thrift.TException;
|
| 453 |
|
459 |
|
| - |
|
460 |
public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addOrUpdateAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
461 |
|
| 454 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
|
462 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException;
|
| 455 |
|
463 |
|
| - |
|
464 |
public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
465 |
|
| - |
|
466 |
public void getAllNonzeroAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllNonzeroAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException;
|
| - |
|
467 |
|
| 456 |
}
|
468 |
}
|
| 457 |
|
469 |
|
| 458 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
470 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
| 459 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
471 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
| 460 |
public Factory() {}
|
472 |
public Factory() {}
|
| Line 1821... |
Line 1833... |
| 1821 |
return result.success;
|
1833 |
return result.success;
|
| 1822 |
}
|
1834 |
}
|
| 1823 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
|
1835 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastNdaySaleForItem failed: unknown result");
|
| 1824 |
}
|
1836 |
}
|
| 1825 |
|
1837 |
|
| - |
|
1838 |
public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException
|
| - |
|
1839 |
{
|
| - |
|
1840 |
send_addOrUpdateAmazonFbaInventory(amazonfbainventorysnapshot);
|
| - |
|
1841 |
recv_addOrUpdateAmazonFbaInventory();
|
| - |
|
1842 |
}
|
| - |
|
1843 |
|
| - |
|
1844 |
public void send_addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) throws org.apache.thrift.TException
|
| - |
|
1845 |
{
|
| - |
|
1846 |
addOrUpdateAmazonFbaInventory_args args = new addOrUpdateAmazonFbaInventory_args();
|
| - |
|
1847 |
args.setAmazonfbainventorysnapshot(amazonfbainventorysnapshot);
|
| - |
|
1848 |
sendBase("addOrUpdateAmazonFbaInventory", args);
|
| - |
|
1849 |
}
|
| - |
|
1850 |
|
| - |
|
1851 |
public void recv_addOrUpdateAmazonFbaInventory() throws org.apache.thrift.TException
|
| - |
|
1852 |
{
|
| - |
|
1853 |
addOrUpdateAmazonFbaInventory_result result = new addOrUpdateAmazonFbaInventory_result();
|
| - |
|
1854 |
receiveBase(result, "addOrUpdateAmazonFbaInventory");
|
| - |
|
1855 |
return;
|
| - |
|
1856 |
}
|
| - |
|
1857 |
|
| 1826 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException
|
1858 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source) throws org.apache.thrift.TException
|
| 1827 |
{
|
1859 |
{
|
| 1828 |
send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source);
|
1860 |
send_addUpdateHoldInventory(itemId, warehouseId, holdQuantity, source);
|
| 1829 |
recv_addUpdateHoldInventory();
|
1861 |
recv_addUpdateHoldInventory();
|
| 1830 |
}
|
1862 |
}
|
| Line 1844... |
Line 1876... |
| 1844 |
addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
|
1876 |
addUpdateHoldInventory_result result = new addUpdateHoldInventory_result();
|
| 1845 |
receiveBase(result, "addUpdateHoldInventory");
|
1877 |
receiveBase(result, "addUpdateHoldInventory");
|
| 1846 |
return;
|
1878 |
return;
|
| 1847 |
}
|
1879 |
}
|
| 1848 |
|
1880 |
|
| - |
|
1881 |
public long getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException
|
| - |
|
1882 |
{
|
| - |
|
1883 |
send_getAmazonFbaItemInventory(itemId);
|
| - |
|
1884 |
return recv_getAmazonFbaItemInventory();
|
| - |
|
1885 |
}
|
| - |
|
1886 |
|
| - |
|
1887 |
public void send_getAmazonFbaItemInventory(long itemId) throws org.apache.thrift.TException
|
| - |
|
1888 |
{
|
| - |
|
1889 |
getAmazonFbaItemInventory_args args = new getAmazonFbaItemInventory_args();
|
| - |
|
1890 |
args.setItemId(itemId);
|
| - |
|
1891 |
sendBase("getAmazonFbaItemInventory", args);
|
| - |
|
1892 |
}
|
| - |
|
1893 |
|
| - |
|
1894 |
public long recv_getAmazonFbaItemInventory() throws org.apache.thrift.TException
|
| - |
|
1895 |
{
|
| - |
|
1896 |
getAmazonFbaItemInventory_result result = new getAmazonFbaItemInventory_result();
|
| - |
|
1897 |
receiveBase(result, "getAmazonFbaItemInventory");
|
| - |
|
1898 |
if (result.isSetSuccess()) {
|
| - |
|
1899 |
return result.success;
|
| - |
|
1900 |
}
|
| - |
|
1901 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAmazonFbaItemInventory failed: unknown result");
|
| - |
|
1902 |
}
|
| - |
|
1903 |
|
| - |
|
1904 |
public List<AmazonFbaInventorySnapshot> getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException
|
| - |
|
1905 |
{
|
| - |
|
1906 |
send_getAllNonzeroAmazonFbaItemInventory();
|
| - |
|
1907 |
return recv_getAllNonzeroAmazonFbaItemInventory();
|
| - |
|
1908 |
}
|
| - |
|
1909 |
|
| - |
|
1910 |
public void send_getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException
|
| - |
|
1911 |
{
|
| - |
|
1912 |
getAllNonzeroAmazonFbaItemInventory_args args = new getAllNonzeroAmazonFbaItemInventory_args();
|
| - |
|
1913 |
sendBase("getAllNonzeroAmazonFbaItemInventory", args);
|
| - |
|
1914 |
}
|
| - |
|
1915 |
|
| - |
|
1916 |
public List<AmazonFbaInventorySnapshot> recv_getAllNonzeroAmazonFbaItemInventory() throws org.apache.thrift.TException
|
| - |
|
1917 |
{
|
| - |
|
1918 |
getAllNonzeroAmazonFbaItemInventory_result result = new getAllNonzeroAmazonFbaItemInventory_result();
|
| - |
|
1919 |
receiveBase(result, "getAllNonzeroAmazonFbaItemInventory");
|
| - |
|
1920 |
if (result.isSetSuccess()) {
|
| - |
|
1921 |
return result.success;
|
| - |
|
1922 |
}
|
| - |
|
1923 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllNonzeroAmazonFbaItemInventory failed: unknown result");
|
| - |
|
1924 |
}
|
| - |
|
1925 |
|
| 1849 |
}
|
1926 |
}
|
| 1850 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
1927 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
| 1851 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
1928 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
| 1852 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
1929 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
| 1853 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
1930 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
| Line 3771... |
Line 3848... |
| 3771 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
3848 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 3772 |
return (new Client(prot)).recv_getLastNdaySaleForItem();
|
3849 |
return (new Client(prot)).recv_getLastNdaySaleForItem();
|
| 3773 |
}
|
3850 |
}
|
| 3774 |
}
|
3851 |
}
|
| 3775 |
|
3852 |
|
| - |
|
3853 |
public void addOrUpdateAmazonFbaInventory(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonFbaInventory_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
3854 |
checkReady();
|
| - |
|
3855 |
addOrUpdateAmazonFbaInventory_call method_call = new addOrUpdateAmazonFbaInventory_call(amazonfbainventorysnapshot, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
3856 |
this.___currentMethod = method_call;
|
| - |
|
3857 |
___manager.call(method_call);
|
| - |
|
3858 |
}
|
| - |
|
3859 |
|
| - |
|
3860 |
public static class addOrUpdateAmazonFbaInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
3861 |
private AmazonFbaInventorySnapshot amazonfbainventorysnapshot;
|
| - |
|
3862 |
public addOrUpdateAmazonFbaInventory_call(AmazonFbaInventorySnapshot amazonfbainventorysnapshot, org.apache.thrift.async.AsyncMethodCallback<addOrUpdateAmazonFbaInventory_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 {
|
| - |
|
3863 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
3864 |
this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
|
| - |
|
3865 |
}
|
| - |
|
3866 |
|
| - |
|
3867 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
3868 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addOrUpdateAmazonFbaInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
3869 |
addOrUpdateAmazonFbaInventory_args args = new addOrUpdateAmazonFbaInventory_args();
|
| - |
|
3870 |
args.setAmazonfbainventorysnapshot(amazonfbainventorysnapshot);
|
| - |
|
3871 |
args.write(prot);
|
| - |
|
3872 |
prot.writeMessageEnd();
|
| - |
|
3873 |
}
|
| - |
|
3874 |
|
| - |
|
3875 |
public void getResult() throws org.apache.thrift.TException {
|
| - |
|
3876 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
3877 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
3878 |
}
|
| - |
|
3879 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
3880 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
3881 |
(new Client(prot)).recv_addOrUpdateAmazonFbaInventory();
|
| - |
|
3882 |
}
|
| - |
|
3883 |
}
|
| - |
|
3884 |
|
| 3776 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException {
|
3885 |
public void addUpdateHoldInventory(long itemId, long warehouseId, long holdQuantity, long source, org.apache.thrift.async.AsyncMethodCallback<addUpdateHoldInventory_call> resultHandler) throws org.apache.thrift.TException {
|
| 3777 |
checkReady();
|
3886 |
checkReady();
|
| 3778 |
addUpdateHoldInventory_call method_call = new addUpdateHoldInventory_call(itemId, warehouseId, holdQuantity, source, resultHandler, this, ___protocolFactory, ___transport);
|
3887 |
addUpdateHoldInventory_call method_call = new addUpdateHoldInventory_call(itemId, warehouseId, holdQuantity, source, resultHandler, this, ___protocolFactory, ___transport);
|
| 3779 |
this.___currentMethod = method_call;
|
3888 |
this.___currentMethod = method_call;
|
| 3780 |
___manager.call(method_call);
|
3889 |
___manager.call(method_call);
|
| Line 3812... |
Line 3921... |
| 3812 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
3921 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| 3813 |
(new Client(prot)).recv_addUpdateHoldInventory();
|
3922 |
(new Client(prot)).recv_addUpdateHoldInventory();
|
| 3814 |
}
|
3923 |
}
|
| 3815 |
}
|
3924 |
}
|
| 3816 |
|
3925 |
|
| - |
|
3926 |
public void getAmazonFbaItemInventory(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
3927 |
checkReady();
|
| - |
|
3928 |
getAmazonFbaItemInventory_call method_call = new getAmazonFbaItemInventory_call(itemId, resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
3929 |
this.___currentMethod = method_call;
|
| - |
|
3930 |
___manager.call(method_call);
|
| - |
|
3931 |
}
|
| - |
|
3932 |
|
| - |
|
3933 |
public static class getAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
3934 |
private long itemId;
|
| - |
|
3935 |
public getAmazonFbaItemInventory_call(long itemId, org.apache.thrift.async.AsyncMethodCallback<getAmazonFbaItemInventory_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 {
|
| - |
|
3936 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
3937 |
this.itemId = itemId;
|
| - |
|
3938 |
}
|
| - |
|
3939 |
|
| - |
|
3940 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
3941 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
3942 |
getAmazonFbaItemInventory_args args = new getAmazonFbaItemInventory_args();
|
| - |
|
3943 |
args.setItemId(itemId);
|
| - |
|
3944 |
args.write(prot);
|
| - |
|
3945 |
prot.writeMessageEnd();
|
| - |
|
3946 |
}
|
| - |
|
3947 |
|
| - |
|
3948 |
public long getResult() throws org.apache.thrift.TException {
|
| - |
|
3949 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
3950 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
3951 |
}
|
| - |
|
3952 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
3953 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
3954 |
return (new Client(prot)).recv_getAmazonFbaItemInventory();
|
| - |
|
3955 |
}
|
| - |
|
3956 |
}
|
| - |
|
3957 |
|
| - |
|
3958 |
public void getAllNonzeroAmazonFbaItemInventory(org.apache.thrift.async.AsyncMethodCallback<getAllNonzeroAmazonFbaItemInventory_call> resultHandler) throws org.apache.thrift.TException {
|
| - |
|
3959 |
checkReady();
|
| - |
|
3960 |
getAllNonzeroAmazonFbaItemInventory_call method_call = new getAllNonzeroAmazonFbaItemInventory_call(resultHandler, this, ___protocolFactory, ___transport);
|
| - |
|
3961 |
this.___currentMethod = method_call;
|
| - |
|
3962 |
___manager.call(method_call);
|
| - |
|
3963 |
}
|
| - |
|
3964 |
|
| - |
|
3965 |
public static class getAllNonzeroAmazonFbaItemInventory_call extends org.apache.thrift.async.TAsyncMethodCall {
|
| - |
|
3966 |
public getAllNonzeroAmazonFbaItemInventory_call(org.apache.thrift.async.AsyncMethodCallback<getAllNonzeroAmazonFbaItemInventory_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 {
|
| - |
|
3967 |
super(client, protocolFactory, transport, resultHandler, false);
|
| - |
|
3968 |
}
|
| - |
|
3969 |
|
| - |
|
3970 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
| - |
|
3971 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllNonzeroAmazonFbaItemInventory", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
| - |
|
3972 |
getAllNonzeroAmazonFbaItemInventory_args args = new getAllNonzeroAmazonFbaItemInventory_args();
|
| - |
|
3973 |
args.write(prot);
|
| - |
|
3974 |
prot.writeMessageEnd();
|
| - |
|
3975 |
}
|
| - |
|
3976 |
|
| - |
|
3977 |
public List<AmazonFbaInventorySnapshot> getResult() throws org.apache.thrift.TException {
|
| - |
|
3978 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
| - |
|
3979 |
throw new IllegalStateException("Method call not finished!");
|
| - |
|
3980 |
}
|
| - |
|
3981 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
| - |
|
3982 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
| - |
|
3983 |
return (new Client(prot)).recv_getAllNonzeroAmazonFbaItemInventory();
|
| - |
|
3984 |
}
|
| - |
|
3985 |
}
|
| - |
|
3986 |
|
| 3817 |
}
|
3987 |
}
|
| 3818 |
|
3988 |
|
| 3819 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
3989 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
| 3820 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
3990 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
| 3821 |
public Processor(I iface) {
|
3991 |
public Processor(I iface) {
|
| Line 3881... |
Line 4051... |
| 3881 |
processMap.put("getWarehouseName", new getWarehouseName());
|
4051 |
processMap.put("getWarehouseName", new getWarehouseName());
|
| 3882 |
processMap.put("getAmazonInventoryForItem", new getAmazonInventoryForItem());
|
4052 |
processMap.put("getAmazonInventoryForItem", new getAmazonInventoryForItem());
|
| 3883 |
processMap.put("getAllAmazonInventory", new getAllAmazonInventory());
|
4053 |
processMap.put("getAllAmazonInventory", new getAllAmazonInventory());
|
| 3884 |
processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
|
4054 |
processMap.put("addOrUpdateAmazonInventoryForItem", new addOrUpdateAmazonInventoryForItem());
|
| 3885 |
processMap.put("getLastNdaySaleForItem", new getLastNdaySaleForItem());
|
4055 |
processMap.put("getLastNdaySaleForItem", new getLastNdaySaleForItem());
|
| - |
|
4056 |
processMap.put("addOrUpdateAmazonFbaInventory", new addOrUpdateAmazonFbaInventory());
|
| 3886 |
processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
|
4057 |
processMap.put("addUpdateHoldInventory", new addUpdateHoldInventory());
|
| - |
|
4058 |
processMap.put("getAmazonFbaItemInventory", new getAmazonFbaItemInventory());
|
| - |
|
4059 |
processMap.put("getAllNonzeroAmazonFbaItemInventory", new getAllNonzeroAmazonFbaItemInventory());
|
| 3887 |
return processMap;
|
4060 |
return processMap;
|
| 3888 |
}
|
4061 |
}
|
| 3889 |
|
4062 |
|
| 3890 |
private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
|
4063 |
private static class addWarehouse<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addWarehouse_args> {
|
| 3891 |
public addWarehouse() {
|
4064 |
public addWarehouse() {
|
| Line 4884... |
Line 5057... |
| 4884 |
result.success = iface.getLastNdaySaleForItem(args.itemId, args.numberOfDays);
|
5057 |
result.success = iface.getLastNdaySaleForItem(args.itemId, args.numberOfDays);
|
| 4885 |
return result;
|
5058 |
return result;
|
| 4886 |
}
|
5059 |
}
|
| 4887 |
}
|
5060 |
}
|
| 4888 |
|
5061 |
|
| - |
|
5062 |
private static class addOrUpdateAmazonFbaInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addOrUpdateAmazonFbaInventory_args> {
|
| - |
|
5063 |
public addOrUpdateAmazonFbaInventory() {
|
| - |
|
5064 |
super("addOrUpdateAmazonFbaInventory");
|
| - |
|
5065 |
}
|
| - |
|
5066 |
|
| - |
|
5067 |
protected addOrUpdateAmazonFbaInventory_args getEmptyArgsInstance() {
|
| - |
|
5068 |
return new addOrUpdateAmazonFbaInventory_args();
|
| - |
|
5069 |
}
|
| - |
|
5070 |
|
| - |
|
5071 |
protected addOrUpdateAmazonFbaInventory_result getResult(I iface, addOrUpdateAmazonFbaInventory_args args) throws org.apache.thrift.TException {
|
| - |
|
5072 |
addOrUpdateAmazonFbaInventory_result result = new addOrUpdateAmazonFbaInventory_result();
|
| - |
|
5073 |
iface.addOrUpdateAmazonFbaInventory(args.amazonfbainventorysnapshot);
|
| - |
|
5074 |
return result;
|
| - |
|
5075 |
}
|
| - |
|
5076 |
}
|
| - |
|
5077 |
|
| 4889 |
private static class addUpdateHoldInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUpdateHoldInventory_args> {
|
5078 |
private static class addUpdateHoldInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUpdateHoldInventory_args> {
|
| 4890 |
public addUpdateHoldInventory() {
|
5079 |
public addUpdateHoldInventory() {
|
| 4891 |
super("addUpdateHoldInventory");
|
5080 |
super("addUpdateHoldInventory");
|
| 4892 |
}
|
5081 |
}
|
| 4893 |
|
5082 |
|
| Line 4900... |
Line 5089... |
| 4900 |
iface.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source);
|
5089 |
iface.addUpdateHoldInventory(args.itemId, args.warehouseId, args.holdQuantity, args.source);
|
| 4901 |
return result;
|
5090 |
return result;
|
| 4902 |
}
|
5091 |
}
|
| 4903 |
}
|
5092 |
}
|
| 4904 |
|
5093 |
|
| - |
|
5094 |
private static class getAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAmazonFbaItemInventory_args> {
|
| - |
|
5095 |
public getAmazonFbaItemInventory() {
|
| - |
|
5096 |
super("getAmazonFbaItemInventory");
|
| - |
|
5097 |
}
|
| - |
|
5098 |
|
| - |
|
5099 |
protected getAmazonFbaItemInventory_args getEmptyArgsInstance() {
|
| - |
|
5100 |
return new getAmazonFbaItemInventory_args();
|
| - |
|
5101 |
}
|
| - |
|
5102 |
|
| - |
|
5103 |
protected getAmazonFbaItemInventory_result getResult(I iface, getAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
|
| - |
|
5104 |
getAmazonFbaItemInventory_result result = new getAmazonFbaItemInventory_result();
|
| - |
|
5105 |
result.success = iface.getAmazonFbaItemInventory(args.itemId);
|
| - |
|
5106 |
result.setSuccessIsSet(true);
|
| - |
|
5107 |
return result;
|
| - |
|
5108 |
}
|
| - |
|
5109 |
}
|
| - |
|
5110 |
|
| - |
|
5111 |
private static class getAllNonzeroAmazonFbaItemInventory<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllNonzeroAmazonFbaItemInventory_args> {
|
| - |
|
5112 |
public getAllNonzeroAmazonFbaItemInventory() {
|
| - |
|
5113 |
super("getAllNonzeroAmazonFbaItemInventory");
|
| - |
|
5114 |
}
|
| - |
|
5115 |
|
| - |
|
5116 |
protected getAllNonzeroAmazonFbaItemInventory_args getEmptyArgsInstance() {
|
| - |
|
5117 |
return new getAllNonzeroAmazonFbaItemInventory_args();
|
| - |
|
5118 |
}
|
| - |
|
5119 |
|
| - |
|
5120 |
protected getAllNonzeroAmazonFbaItemInventory_result getResult(I iface, getAllNonzeroAmazonFbaItemInventory_args args) throws org.apache.thrift.TException {
|
| - |
|
5121 |
getAllNonzeroAmazonFbaItemInventory_result result = new getAllNonzeroAmazonFbaItemInventory_result();
|
| - |
|
5122 |
result.success = iface.getAllNonzeroAmazonFbaItemInventory();
|
| - |
|
5123 |
return result;
|
| - |
|
5124 |
}
|
| - |
|
5125 |
}
|
| - |
|
5126 |
|
| 4905 |
}
|
5127 |
}
|
| 4906 |
|
5128 |
|
| 4907 |
public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
5129 |
public static class addWarehouse_args implements org.apache.thrift.TBase<addWarehouse_args, addWarehouse_args._Fields>, java.io.Serializable, Cloneable {
|
| 4908 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
|
5130 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addWarehouse_args");
|
| 4909 |
|
5131 |
|
| Line 42605... |
Line 42827... |
| 42605 |
}
|
42827 |
}
|
| 42606 |
}
|
42828 |
}
|
| 42607 |
|
42829 |
|
| 42608 |
}
|
42830 |
}
|
| 42609 |
|
42831 |
|
| - |
|
42832 |
public static class addOrUpdateAmazonFbaInventory_args implements org.apache.thrift.TBase<addOrUpdateAmazonFbaInventory_args, addOrUpdateAmazonFbaInventory_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
42833 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaInventory_args");
|
| - |
|
42834 |
|
| - |
|
42835 |
private static final org.apache.thrift.protocol.TField AMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC = new org.apache.thrift.protocol.TField("amazonfbainventorysnapshot", org.apache.thrift.protocol.TType.STRUCT, (short)1);
|
| - |
|
42836 |
|
| - |
|
42837 |
private AmazonFbaInventorySnapshot amazonfbainventorysnapshot; // required
|
| - |
|
42838 |
|
| - |
|
42839 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
42840 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
42841 |
AMAZONFBAINVENTORYSNAPSHOT((short)1, "amazonfbainventorysnapshot");
|
| - |
|
42842 |
|
| - |
|
42843 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
42844 |
|
| - |
|
42845 |
static {
|
| - |
|
42846 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
42847 |
byName.put(field.getFieldName(), field);
|
| - |
|
42848 |
}
|
| - |
|
42849 |
}
|
| - |
|
42850 |
|
| - |
|
42851 |
/**
|
| - |
|
42852 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
42853 |
*/
|
| - |
|
42854 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
42855 |
switch(fieldId) {
|
| - |
|
42856 |
case 1: // AMAZONFBAINVENTORYSNAPSHOT
|
| - |
|
42857 |
return AMAZONFBAINVENTORYSNAPSHOT;
|
| - |
|
42858 |
default:
|
| - |
|
42859 |
return null;
|
| - |
|
42860 |
}
|
| - |
|
42861 |
}
|
| - |
|
42862 |
|
| - |
|
42863 |
/**
|
| - |
|
42864 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
42865 |
* if it is not found.
|
| - |
|
42866 |
*/
|
| - |
|
42867 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
42868 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
42869 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
42870 |
return fields;
|
| - |
|
42871 |
}
|
| - |
|
42872 |
|
| - |
|
42873 |
/**
|
| - |
|
42874 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
42875 |
*/
|
| - |
|
42876 |
public static _Fields findByName(String name) {
|
| - |
|
42877 |
return byName.get(name);
|
| - |
|
42878 |
}
|
| - |
|
42879 |
|
| - |
|
42880 |
private final short _thriftId;
|
| - |
|
42881 |
private final String _fieldName;
|
| - |
|
42882 |
|
| - |
|
42883 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
42884 |
_thriftId = thriftId;
|
| - |
|
42885 |
_fieldName = fieldName;
|
| - |
|
42886 |
}
|
| - |
|
42887 |
|
| - |
|
42888 |
public short getThriftFieldId() {
|
| - |
|
42889 |
return _thriftId;
|
| - |
|
42890 |
}
|
| - |
|
42891 |
|
| - |
|
42892 |
public String getFieldName() {
|
| - |
|
42893 |
return _fieldName;
|
| - |
|
42894 |
}
|
| - |
|
42895 |
}
|
| - |
|
42896 |
|
| - |
|
42897 |
// isset id assignments
|
| - |
|
42898 |
|
| - |
|
42899 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
42900 |
static {
|
| - |
|
42901 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
42902 |
tmpMap.put(_Fields.AMAZONFBAINVENTORYSNAPSHOT, new org.apache.thrift.meta_data.FieldMetaData("amazonfbainventorysnapshot", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
42903 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class)));
|
| - |
|
42904 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
42905 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaInventory_args.class, metaDataMap);
|
| - |
|
42906 |
}
|
| - |
|
42907 |
|
| - |
|
42908 |
public addOrUpdateAmazonFbaInventory_args() {
|
| - |
|
42909 |
}
|
| - |
|
42910 |
|
| - |
|
42911 |
public addOrUpdateAmazonFbaInventory_args(
|
| - |
|
42912 |
AmazonFbaInventorySnapshot amazonfbainventorysnapshot)
|
| - |
|
42913 |
{
|
| - |
|
42914 |
this();
|
| - |
|
42915 |
this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
|
| - |
|
42916 |
}
|
| - |
|
42917 |
|
| - |
|
42918 |
/**
|
| - |
|
42919 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
42920 |
*/
|
| - |
|
42921 |
public addOrUpdateAmazonFbaInventory_args(addOrUpdateAmazonFbaInventory_args other) {
|
| - |
|
42922 |
if (other.isSetAmazonfbainventorysnapshot()) {
|
| - |
|
42923 |
this.amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot(other.amazonfbainventorysnapshot);
|
| - |
|
42924 |
}
|
| - |
|
42925 |
}
|
| - |
|
42926 |
|
| - |
|
42927 |
public addOrUpdateAmazonFbaInventory_args deepCopy() {
|
| - |
|
42928 |
return new addOrUpdateAmazonFbaInventory_args(this);
|
| - |
|
42929 |
}
|
| - |
|
42930 |
|
| - |
|
42931 |
@Override
|
| - |
|
42932 |
public void clear() {
|
| - |
|
42933 |
this.amazonfbainventorysnapshot = null;
|
| - |
|
42934 |
}
|
| - |
|
42935 |
|
| - |
|
42936 |
public AmazonFbaInventorySnapshot getAmazonfbainventorysnapshot() {
|
| - |
|
42937 |
return this.amazonfbainventorysnapshot;
|
| - |
|
42938 |
}
|
| - |
|
42939 |
|
| - |
|
42940 |
public void setAmazonfbainventorysnapshot(AmazonFbaInventorySnapshot amazonfbainventorysnapshot) {
|
| - |
|
42941 |
this.amazonfbainventorysnapshot = amazonfbainventorysnapshot;
|
| - |
|
42942 |
}
|
| - |
|
42943 |
|
| - |
|
42944 |
public void unsetAmazonfbainventorysnapshot() {
|
| - |
|
42945 |
this.amazonfbainventorysnapshot = null;
|
| - |
|
42946 |
}
|
| - |
|
42947 |
|
| - |
|
42948 |
/** Returns true if field amazonfbainventorysnapshot is set (has been assigned a value) and false otherwise */
|
| - |
|
42949 |
public boolean isSetAmazonfbainventorysnapshot() {
|
| - |
|
42950 |
return this.amazonfbainventorysnapshot != null;
|
| - |
|
42951 |
}
|
| - |
|
42952 |
|
| - |
|
42953 |
public void setAmazonfbainventorysnapshotIsSet(boolean value) {
|
| - |
|
42954 |
if (!value) {
|
| - |
|
42955 |
this.amazonfbainventorysnapshot = null;
|
| - |
|
42956 |
}
|
| - |
|
42957 |
}
|
| - |
|
42958 |
|
| - |
|
42959 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
42960 |
switch (field) {
|
| - |
|
42961 |
case AMAZONFBAINVENTORYSNAPSHOT:
|
| - |
|
42962 |
if (value == null) {
|
| - |
|
42963 |
unsetAmazonfbainventorysnapshot();
|
| - |
|
42964 |
} else {
|
| - |
|
42965 |
setAmazonfbainventorysnapshot((AmazonFbaInventorySnapshot)value);
|
| - |
|
42966 |
}
|
| - |
|
42967 |
break;
|
| - |
|
42968 |
|
| - |
|
42969 |
}
|
| - |
|
42970 |
}
|
| - |
|
42971 |
|
| - |
|
42972 |
public Object getFieldValue(_Fields field) {
|
| - |
|
42973 |
switch (field) {
|
| - |
|
42974 |
case AMAZONFBAINVENTORYSNAPSHOT:
|
| - |
|
42975 |
return getAmazonfbainventorysnapshot();
|
| - |
|
42976 |
|
| - |
|
42977 |
}
|
| - |
|
42978 |
throw new IllegalStateException();
|
| - |
|
42979 |
}
|
| - |
|
42980 |
|
| - |
|
42981 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
42982 |
public boolean isSet(_Fields field) {
|
| - |
|
42983 |
if (field == null) {
|
| - |
|
42984 |
throw new IllegalArgumentException();
|
| - |
|
42985 |
}
|
| - |
|
42986 |
|
| - |
|
42987 |
switch (field) {
|
| - |
|
42988 |
case AMAZONFBAINVENTORYSNAPSHOT:
|
| - |
|
42989 |
return isSetAmazonfbainventorysnapshot();
|
| - |
|
42990 |
}
|
| - |
|
42991 |
throw new IllegalStateException();
|
| - |
|
42992 |
}
|
| - |
|
42993 |
|
| - |
|
42994 |
@Override
|
| - |
|
42995 |
public boolean equals(Object that) {
|
| - |
|
42996 |
if (that == null)
|
| - |
|
42997 |
return false;
|
| - |
|
42998 |
if (that instanceof addOrUpdateAmazonFbaInventory_args)
|
| - |
|
42999 |
return this.equals((addOrUpdateAmazonFbaInventory_args)that);
|
| - |
|
43000 |
return false;
|
| - |
|
43001 |
}
|
| - |
|
43002 |
|
| - |
|
43003 |
public boolean equals(addOrUpdateAmazonFbaInventory_args that) {
|
| - |
|
43004 |
if (that == null)
|
| - |
|
43005 |
return false;
|
| - |
|
43006 |
|
| - |
|
43007 |
boolean this_present_amazonfbainventorysnapshot = true && this.isSetAmazonfbainventorysnapshot();
|
| - |
|
43008 |
boolean that_present_amazonfbainventorysnapshot = true && that.isSetAmazonfbainventorysnapshot();
|
| - |
|
43009 |
if (this_present_amazonfbainventorysnapshot || that_present_amazonfbainventorysnapshot) {
|
| - |
|
43010 |
if (!(this_present_amazonfbainventorysnapshot && that_present_amazonfbainventorysnapshot))
|
| - |
|
43011 |
return false;
|
| - |
|
43012 |
if (!this.amazonfbainventorysnapshot.equals(that.amazonfbainventorysnapshot))
|
| - |
|
43013 |
return false;
|
| - |
|
43014 |
}
|
| - |
|
43015 |
|
| - |
|
43016 |
return true;
|
| - |
|
43017 |
}
|
| - |
|
43018 |
|
| - |
|
43019 |
@Override
|
| - |
|
43020 |
public int hashCode() {
|
| - |
|
43021 |
return 0;
|
| - |
|
43022 |
}
|
| - |
|
43023 |
|
| - |
|
43024 |
public int compareTo(addOrUpdateAmazonFbaInventory_args other) {
|
| - |
|
43025 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
43026 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
43027 |
}
|
| - |
|
43028 |
|
| - |
|
43029 |
int lastComparison = 0;
|
| - |
|
43030 |
addOrUpdateAmazonFbaInventory_args typedOther = (addOrUpdateAmazonFbaInventory_args)other;
|
| - |
|
43031 |
|
| - |
|
43032 |
lastComparison = Boolean.valueOf(isSetAmazonfbainventorysnapshot()).compareTo(typedOther.isSetAmazonfbainventorysnapshot());
|
| - |
|
43033 |
if (lastComparison != 0) {
|
| - |
|
43034 |
return lastComparison;
|
| - |
|
43035 |
}
|
| - |
|
43036 |
if (isSetAmazonfbainventorysnapshot()) {
|
| - |
|
43037 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.amazonfbainventorysnapshot, typedOther.amazonfbainventorysnapshot);
|
| - |
|
43038 |
if (lastComparison != 0) {
|
| - |
|
43039 |
return lastComparison;
|
| - |
|
43040 |
}
|
| - |
|
43041 |
}
|
| - |
|
43042 |
return 0;
|
| - |
|
43043 |
}
|
| - |
|
43044 |
|
| - |
|
43045 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
43046 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
43047 |
}
|
| - |
|
43048 |
|
| - |
|
43049 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
43050 |
org.apache.thrift.protocol.TField field;
|
| - |
|
43051 |
iprot.readStructBegin();
|
| - |
|
43052 |
while (true)
|
| - |
|
43053 |
{
|
| - |
|
43054 |
field = iprot.readFieldBegin();
|
| - |
|
43055 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
43056 |
break;
|
| - |
|
43057 |
}
|
| - |
|
43058 |
switch (field.id) {
|
| - |
|
43059 |
case 1: // AMAZONFBAINVENTORYSNAPSHOT
|
| - |
|
43060 |
if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
|
| - |
|
43061 |
this.amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot();
|
| - |
|
43062 |
this.amazonfbainventorysnapshot.read(iprot);
|
| - |
|
43063 |
} else {
|
| - |
|
43064 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
43065 |
}
|
| - |
|
43066 |
break;
|
| - |
|
43067 |
default:
|
| - |
|
43068 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
43069 |
}
|
| - |
|
43070 |
iprot.readFieldEnd();
|
| - |
|
43071 |
}
|
| - |
|
43072 |
iprot.readStructEnd();
|
| - |
|
43073 |
validate();
|
| - |
|
43074 |
}
|
| - |
|
43075 |
|
| - |
|
43076 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
43077 |
validate();
|
| - |
|
43078 |
|
| - |
|
43079 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
43080 |
if (this.amazonfbainventorysnapshot != null) {
|
| - |
|
43081 |
oprot.writeFieldBegin(AMAZONFBAINVENTORYSNAPSHOT_FIELD_DESC);
|
| - |
|
43082 |
this.amazonfbainventorysnapshot.write(oprot);
|
| - |
|
43083 |
oprot.writeFieldEnd();
|
| - |
|
43084 |
}
|
| - |
|
43085 |
oprot.writeFieldStop();
|
| - |
|
43086 |
oprot.writeStructEnd();
|
| - |
|
43087 |
}
|
| - |
|
43088 |
|
| - |
|
43089 |
@Override
|
| - |
|
43090 |
public String toString() {
|
| - |
|
43091 |
StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaInventory_args(");
|
| - |
|
43092 |
boolean first = true;
|
| - |
|
43093 |
|
| - |
|
43094 |
sb.append("amazonfbainventorysnapshot:");
|
| - |
|
43095 |
if (this.amazonfbainventorysnapshot == null) {
|
| - |
|
43096 |
sb.append("null");
|
| - |
|
43097 |
} else {
|
| - |
|
43098 |
sb.append(this.amazonfbainventorysnapshot);
|
| - |
|
43099 |
}
|
| - |
|
43100 |
first = false;
|
| - |
|
43101 |
sb.append(")");
|
| - |
|
43102 |
return sb.toString();
|
| - |
|
43103 |
}
|
| - |
|
43104 |
|
| - |
|
43105 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
43106 |
// check for required fields
|
| - |
|
43107 |
}
|
| - |
|
43108 |
|
| - |
|
43109 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
43110 |
try {
|
| - |
|
43111 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
43112 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
43113 |
throw new java.io.IOException(te);
|
| - |
|
43114 |
}
|
| - |
|
43115 |
}
|
| - |
|
43116 |
|
| - |
|
43117 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
43118 |
try {
|
| - |
|
43119 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
43120 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
43121 |
throw new java.io.IOException(te);
|
| - |
|
43122 |
}
|
| - |
|
43123 |
}
|
| - |
|
43124 |
|
| - |
|
43125 |
}
|
| - |
|
43126 |
|
| - |
|
43127 |
public static class addOrUpdateAmazonFbaInventory_result implements org.apache.thrift.TBase<addOrUpdateAmazonFbaInventory_result, addOrUpdateAmazonFbaInventory_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
43128 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addOrUpdateAmazonFbaInventory_result");
|
| - |
|
43129 |
|
| - |
|
43130 |
|
| - |
|
43131 |
|
| - |
|
43132 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
43133 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
43134 |
;
|
| - |
|
43135 |
|
| - |
|
43136 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
43137 |
|
| - |
|
43138 |
static {
|
| - |
|
43139 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
43140 |
byName.put(field.getFieldName(), field);
|
| - |
|
43141 |
}
|
| - |
|
43142 |
}
|
| - |
|
43143 |
|
| - |
|
43144 |
/**
|
| - |
|
43145 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
43146 |
*/
|
| - |
|
43147 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
43148 |
switch(fieldId) {
|
| - |
|
43149 |
default:
|
| - |
|
43150 |
return null;
|
| - |
|
43151 |
}
|
| - |
|
43152 |
}
|
| - |
|
43153 |
|
| - |
|
43154 |
/**
|
| - |
|
43155 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
43156 |
* if it is not found.
|
| - |
|
43157 |
*/
|
| - |
|
43158 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
43159 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
43160 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
43161 |
return fields;
|
| - |
|
43162 |
}
|
| - |
|
43163 |
|
| - |
|
43164 |
/**
|
| - |
|
43165 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
43166 |
*/
|
| - |
|
43167 |
public static _Fields findByName(String name) {
|
| - |
|
43168 |
return byName.get(name);
|
| - |
|
43169 |
}
|
| - |
|
43170 |
|
| - |
|
43171 |
private final short _thriftId;
|
| - |
|
43172 |
private final String _fieldName;
|
| - |
|
43173 |
|
| - |
|
43174 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
43175 |
_thriftId = thriftId;
|
| - |
|
43176 |
_fieldName = fieldName;
|
| - |
|
43177 |
}
|
| - |
|
43178 |
|
| - |
|
43179 |
public short getThriftFieldId() {
|
| - |
|
43180 |
return _thriftId;
|
| - |
|
43181 |
}
|
| - |
|
43182 |
|
| - |
|
43183 |
public String getFieldName() {
|
| - |
|
43184 |
return _fieldName;
|
| - |
|
43185 |
}
|
| - |
|
43186 |
}
|
| - |
|
43187 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
43188 |
static {
|
| - |
|
43189 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
43190 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
43191 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addOrUpdateAmazonFbaInventory_result.class, metaDataMap);
|
| - |
|
43192 |
}
|
| - |
|
43193 |
|
| - |
|
43194 |
public addOrUpdateAmazonFbaInventory_result() {
|
| - |
|
43195 |
}
|
| - |
|
43196 |
|
| - |
|
43197 |
/**
|
| - |
|
43198 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
43199 |
*/
|
| - |
|
43200 |
public addOrUpdateAmazonFbaInventory_result(addOrUpdateAmazonFbaInventory_result other) {
|
| - |
|
43201 |
}
|
| - |
|
43202 |
|
| - |
|
43203 |
public addOrUpdateAmazonFbaInventory_result deepCopy() {
|
| - |
|
43204 |
return new addOrUpdateAmazonFbaInventory_result(this);
|
| - |
|
43205 |
}
|
| - |
|
43206 |
|
| - |
|
43207 |
@Override
|
| - |
|
43208 |
public void clear() {
|
| - |
|
43209 |
}
|
| - |
|
43210 |
|
| - |
|
43211 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
43212 |
switch (field) {
|
| - |
|
43213 |
}
|
| - |
|
43214 |
}
|
| - |
|
43215 |
|
| - |
|
43216 |
public Object getFieldValue(_Fields field) {
|
| - |
|
43217 |
switch (field) {
|
| - |
|
43218 |
}
|
| - |
|
43219 |
throw new IllegalStateException();
|
| - |
|
43220 |
}
|
| - |
|
43221 |
|
| - |
|
43222 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
43223 |
public boolean isSet(_Fields field) {
|
| - |
|
43224 |
if (field == null) {
|
| - |
|
43225 |
throw new IllegalArgumentException();
|
| - |
|
43226 |
}
|
| - |
|
43227 |
|
| - |
|
43228 |
switch (field) {
|
| - |
|
43229 |
}
|
| - |
|
43230 |
throw new IllegalStateException();
|
| - |
|
43231 |
}
|
| - |
|
43232 |
|
| - |
|
43233 |
@Override
|
| - |
|
43234 |
public boolean equals(Object that) {
|
| - |
|
43235 |
if (that == null)
|
| - |
|
43236 |
return false;
|
| - |
|
43237 |
if (that instanceof addOrUpdateAmazonFbaInventory_result)
|
| - |
|
43238 |
return this.equals((addOrUpdateAmazonFbaInventory_result)that);
|
| - |
|
43239 |
return false;
|
| - |
|
43240 |
}
|
| - |
|
43241 |
|
| - |
|
43242 |
public boolean equals(addOrUpdateAmazonFbaInventory_result that) {
|
| - |
|
43243 |
if (that == null)
|
| - |
|
43244 |
return false;
|
| - |
|
43245 |
|
| - |
|
43246 |
return true;
|
| - |
|
43247 |
}
|
| - |
|
43248 |
|
| - |
|
43249 |
@Override
|
| - |
|
43250 |
public int hashCode() {
|
| - |
|
43251 |
return 0;
|
| - |
|
43252 |
}
|
| - |
|
43253 |
|
| - |
|
43254 |
public int compareTo(addOrUpdateAmazonFbaInventory_result other) {
|
| - |
|
43255 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
43256 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
43257 |
}
|
| - |
|
43258 |
|
| - |
|
43259 |
int lastComparison = 0;
|
| - |
|
43260 |
addOrUpdateAmazonFbaInventory_result typedOther = (addOrUpdateAmazonFbaInventory_result)other;
|
| - |
|
43261 |
|
| - |
|
43262 |
return 0;
|
| - |
|
43263 |
}
|
| - |
|
43264 |
|
| - |
|
43265 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
43266 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
43267 |
}
|
| - |
|
43268 |
|
| - |
|
43269 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
43270 |
org.apache.thrift.protocol.TField field;
|
| - |
|
43271 |
iprot.readStructBegin();
|
| - |
|
43272 |
while (true)
|
| - |
|
43273 |
{
|
| - |
|
43274 |
field = iprot.readFieldBegin();
|
| - |
|
43275 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
43276 |
break;
|
| - |
|
43277 |
}
|
| - |
|
43278 |
switch (field.id) {
|
| - |
|
43279 |
default:
|
| - |
|
43280 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
43281 |
}
|
| - |
|
43282 |
iprot.readFieldEnd();
|
| - |
|
43283 |
}
|
| - |
|
43284 |
iprot.readStructEnd();
|
| - |
|
43285 |
validate();
|
| - |
|
43286 |
}
|
| - |
|
43287 |
|
| - |
|
43288 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
43289 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
43290 |
|
| - |
|
43291 |
oprot.writeFieldStop();
|
| - |
|
43292 |
oprot.writeStructEnd();
|
| - |
|
43293 |
}
|
| - |
|
43294 |
|
| - |
|
43295 |
@Override
|
| - |
|
43296 |
public String toString() {
|
| - |
|
43297 |
StringBuilder sb = new StringBuilder("addOrUpdateAmazonFbaInventory_result(");
|
| - |
|
43298 |
boolean first = true;
|
| - |
|
43299 |
|
| - |
|
43300 |
sb.append(")");
|
| - |
|
43301 |
return sb.toString();
|
| - |
|
43302 |
}
|
| - |
|
43303 |
|
| - |
|
43304 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
43305 |
// check for required fields
|
| - |
|
43306 |
}
|
| - |
|
43307 |
|
| - |
|
43308 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
43309 |
try {
|
| - |
|
43310 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
43311 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
43312 |
throw new java.io.IOException(te);
|
| - |
|
43313 |
}
|
| - |
|
43314 |
}
|
| - |
|
43315 |
|
| - |
|
43316 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
43317 |
try {
|
| - |
|
43318 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
43319 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
43320 |
throw new java.io.IOException(te);
|
| - |
|
43321 |
}
|
| - |
|
43322 |
}
|
| - |
|
43323 |
|
| - |
|
43324 |
}
|
| - |
|
43325 |
|
| 42610 |
public static class addUpdateHoldInventory_args implements org.apache.thrift.TBase<addUpdateHoldInventory_args, addUpdateHoldInventory_args._Fields>, java.io.Serializable, Cloneable {
|
43326 |
public static class addUpdateHoldInventory_args implements org.apache.thrift.TBase<addUpdateHoldInventory_args, addUpdateHoldInventory_args._Fields>, java.io.Serializable, Cloneable {
|
| 42611 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_args");
|
43327 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUpdateHoldInventory_args");
|
| 42612 |
|
43328 |
|
| 42613 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
43329 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| 42614 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
43330 |
private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)2);
|
| Line 43326... |
Line 44042... |
| 43326 |
sb.append(")");
|
44042 |
sb.append(")");
|
| 43327 |
return sb.toString();
|
44043 |
return sb.toString();
|
| 43328 |
}
|
44044 |
}
|
| 43329 |
|
44045 |
|
| 43330 |
public void validate() throws org.apache.thrift.TException {
|
44046 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
44047 |
// check for required fields
|
| - |
|
44048 |
}
|
| - |
|
44049 |
|
| - |
|
44050 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
44051 |
try {
|
| - |
|
44052 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
44053 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44054 |
throw new java.io.IOException(te);
|
| - |
|
44055 |
}
|
| - |
|
44056 |
}
|
| - |
|
44057 |
|
| - |
|
44058 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
44059 |
try {
|
| - |
|
44060 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
44061 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44062 |
throw new java.io.IOException(te);
|
| - |
|
44063 |
}
|
| - |
|
44064 |
}
|
| - |
|
44065 |
|
| - |
|
44066 |
}
|
| - |
|
44067 |
|
| - |
|
44068 |
public static class getAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAmazonFbaItemInventory_args, getAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
44069 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaItemInventory_args");
|
| - |
|
44070 |
|
| - |
|
44071 |
private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
|
| - |
|
44072 |
|
| - |
|
44073 |
private long itemId; // required
|
| - |
|
44074 |
|
| - |
|
44075 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
44076 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
44077 |
ITEM_ID((short)1, "itemId");
|
| - |
|
44078 |
|
| - |
|
44079 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
44080 |
|
| - |
|
44081 |
static {
|
| - |
|
44082 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
44083 |
byName.put(field.getFieldName(), field);
|
| - |
|
44084 |
}
|
| - |
|
44085 |
}
|
| - |
|
44086 |
|
| - |
|
44087 |
/**
|
| - |
|
44088 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
44089 |
*/
|
| - |
|
44090 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
44091 |
switch(fieldId) {
|
| - |
|
44092 |
case 1: // ITEM_ID
|
| - |
|
44093 |
return ITEM_ID;
|
| - |
|
44094 |
default:
|
| - |
|
44095 |
return null;
|
| - |
|
44096 |
}
|
| - |
|
44097 |
}
|
| - |
|
44098 |
|
| - |
|
44099 |
/**
|
| - |
|
44100 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
44101 |
* if it is not found.
|
| - |
|
44102 |
*/
|
| - |
|
44103 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
44104 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
44105 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
44106 |
return fields;
|
| - |
|
44107 |
}
|
| - |
|
44108 |
|
| - |
|
44109 |
/**
|
| - |
|
44110 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
44111 |
*/
|
| - |
|
44112 |
public static _Fields findByName(String name) {
|
| - |
|
44113 |
return byName.get(name);
|
| - |
|
44114 |
}
|
| - |
|
44115 |
|
| - |
|
44116 |
private final short _thriftId;
|
| - |
|
44117 |
private final String _fieldName;
|
| - |
|
44118 |
|
| - |
|
44119 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
44120 |
_thriftId = thriftId;
|
| - |
|
44121 |
_fieldName = fieldName;
|
| - |
|
44122 |
}
|
| - |
|
44123 |
|
| - |
|
44124 |
public short getThriftFieldId() {
|
| - |
|
44125 |
return _thriftId;
|
| - |
|
44126 |
}
|
| - |
|
44127 |
|
| - |
|
44128 |
public String getFieldName() {
|
| - |
|
44129 |
return _fieldName;
|
| - |
|
44130 |
}
|
| - |
|
44131 |
}
|
| - |
|
44132 |
|
| - |
|
44133 |
// isset id assignments
|
| - |
|
44134 |
private static final int __ITEMID_ISSET_ID = 0;
|
| - |
|
44135 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| - |
|
44136 |
|
| - |
|
44137 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
44138 |
static {
|
| - |
|
44139 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
44140 |
tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
44141 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
44142 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
44143 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaItemInventory_args.class, metaDataMap);
|
| - |
|
44144 |
}
|
| - |
|
44145 |
|
| - |
|
44146 |
public getAmazonFbaItemInventory_args() {
|
| - |
|
44147 |
}
|
| - |
|
44148 |
|
| - |
|
44149 |
public getAmazonFbaItemInventory_args(
|
| - |
|
44150 |
long itemId)
|
| - |
|
44151 |
{
|
| - |
|
44152 |
this();
|
| - |
|
44153 |
this.itemId = itemId;
|
| - |
|
44154 |
setItemIdIsSet(true);
|
| - |
|
44155 |
}
|
| - |
|
44156 |
|
| - |
|
44157 |
/**
|
| - |
|
44158 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
44159 |
*/
|
| - |
|
44160 |
public getAmazonFbaItemInventory_args(getAmazonFbaItemInventory_args other) {
|
| - |
|
44161 |
__isset_bit_vector.clear();
|
| - |
|
44162 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
44163 |
this.itemId = other.itemId;
|
| - |
|
44164 |
}
|
| - |
|
44165 |
|
| - |
|
44166 |
public getAmazonFbaItemInventory_args deepCopy() {
|
| - |
|
44167 |
return new getAmazonFbaItemInventory_args(this);
|
| - |
|
44168 |
}
|
| - |
|
44169 |
|
| - |
|
44170 |
@Override
|
| - |
|
44171 |
public void clear() {
|
| - |
|
44172 |
setItemIdIsSet(false);
|
| - |
|
44173 |
this.itemId = 0;
|
| - |
|
44174 |
}
|
| - |
|
44175 |
|
| - |
|
44176 |
public long getItemId() {
|
| - |
|
44177 |
return this.itemId;
|
| - |
|
44178 |
}
|
| - |
|
44179 |
|
| - |
|
44180 |
public void setItemId(long itemId) {
|
| - |
|
44181 |
this.itemId = itemId;
|
| - |
|
44182 |
setItemIdIsSet(true);
|
| - |
|
44183 |
}
|
| - |
|
44184 |
|
| - |
|
44185 |
public void unsetItemId() {
|
| - |
|
44186 |
__isset_bit_vector.clear(__ITEMID_ISSET_ID);
|
| - |
|
44187 |
}
|
| - |
|
44188 |
|
| - |
|
44189 |
/** Returns true if field itemId is set (has been assigned a value) and false otherwise */
|
| - |
|
44190 |
public boolean isSetItemId() {
|
| - |
|
44191 |
return __isset_bit_vector.get(__ITEMID_ISSET_ID);
|
| - |
|
44192 |
}
|
| - |
|
44193 |
|
| - |
|
44194 |
public void setItemIdIsSet(boolean value) {
|
| - |
|
44195 |
__isset_bit_vector.set(__ITEMID_ISSET_ID, value);
|
| - |
|
44196 |
}
|
| - |
|
44197 |
|
| - |
|
44198 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
44199 |
switch (field) {
|
| - |
|
44200 |
case ITEM_ID:
|
| - |
|
44201 |
if (value == null) {
|
| - |
|
44202 |
unsetItemId();
|
| - |
|
44203 |
} else {
|
| - |
|
44204 |
setItemId((Long)value);
|
| - |
|
44205 |
}
|
| - |
|
44206 |
break;
|
| - |
|
44207 |
|
| - |
|
44208 |
}
|
| - |
|
44209 |
}
|
| - |
|
44210 |
|
| - |
|
44211 |
public Object getFieldValue(_Fields field) {
|
| - |
|
44212 |
switch (field) {
|
| - |
|
44213 |
case ITEM_ID:
|
| - |
|
44214 |
return Long.valueOf(getItemId());
|
| - |
|
44215 |
|
| - |
|
44216 |
}
|
| - |
|
44217 |
throw new IllegalStateException();
|
| - |
|
44218 |
}
|
| - |
|
44219 |
|
| - |
|
44220 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
44221 |
public boolean isSet(_Fields field) {
|
| - |
|
44222 |
if (field == null) {
|
| - |
|
44223 |
throw new IllegalArgumentException();
|
| - |
|
44224 |
}
|
| - |
|
44225 |
|
| - |
|
44226 |
switch (field) {
|
| - |
|
44227 |
case ITEM_ID:
|
| - |
|
44228 |
return isSetItemId();
|
| - |
|
44229 |
}
|
| - |
|
44230 |
throw new IllegalStateException();
|
| - |
|
44231 |
}
|
| - |
|
44232 |
|
| - |
|
44233 |
@Override
|
| - |
|
44234 |
public boolean equals(Object that) {
|
| - |
|
44235 |
if (that == null)
|
| - |
|
44236 |
return false;
|
| - |
|
44237 |
if (that instanceof getAmazonFbaItemInventory_args)
|
| - |
|
44238 |
return this.equals((getAmazonFbaItemInventory_args)that);
|
| - |
|
44239 |
return false;
|
| - |
|
44240 |
}
|
| - |
|
44241 |
|
| - |
|
44242 |
public boolean equals(getAmazonFbaItemInventory_args that) {
|
| - |
|
44243 |
if (that == null)
|
| - |
|
44244 |
return false;
|
| - |
|
44245 |
|
| - |
|
44246 |
boolean this_present_itemId = true;
|
| - |
|
44247 |
boolean that_present_itemId = true;
|
| - |
|
44248 |
if (this_present_itemId || that_present_itemId) {
|
| - |
|
44249 |
if (!(this_present_itemId && that_present_itemId))
|
| - |
|
44250 |
return false;
|
| - |
|
44251 |
if (this.itemId != that.itemId)
|
| - |
|
44252 |
return false;
|
| - |
|
44253 |
}
|
| - |
|
44254 |
|
| - |
|
44255 |
return true;
|
| - |
|
44256 |
}
|
| - |
|
44257 |
|
| - |
|
44258 |
@Override
|
| - |
|
44259 |
public int hashCode() {
|
| - |
|
44260 |
return 0;
|
| - |
|
44261 |
}
|
| - |
|
44262 |
|
| - |
|
44263 |
public int compareTo(getAmazonFbaItemInventory_args other) {
|
| - |
|
44264 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
44265 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
44266 |
}
|
| - |
|
44267 |
|
| - |
|
44268 |
int lastComparison = 0;
|
| - |
|
44269 |
getAmazonFbaItemInventory_args typedOther = (getAmazonFbaItemInventory_args)other;
|
| - |
|
44270 |
|
| - |
|
44271 |
lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
|
| - |
|
44272 |
if (lastComparison != 0) {
|
| - |
|
44273 |
return lastComparison;
|
| - |
|
44274 |
}
|
| - |
|
44275 |
if (isSetItemId()) {
|
| - |
|
44276 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
|
| - |
|
44277 |
if (lastComparison != 0) {
|
| - |
|
44278 |
return lastComparison;
|
| - |
|
44279 |
}
|
| - |
|
44280 |
}
|
| - |
|
44281 |
return 0;
|
| - |
|
44282 |
}
|
| - |
|
44283 |
|
| - |
|
44284 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
44285 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
44286 |
}
|
| - |
|
44287 |
|
| - |
|
44288 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
44289 |
org.apache.thrift.protocol.TField field;
|
| - |
|
44290 |
iprot.readStructBegin();
|
| - |
|
44291 |
while (true)
|
| - |
|
44292 |
{
|
| - |
|
44293 |
field = iprot.readFieldBegin();
|
| - |
|
44294 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
44295 |
break;
|
| - |
|
44296 |
}
|
| - |
|
44297 |
switch (field.id) {
|
| - |
|
44298 |
case 1: // ITEM_ID
|
| - |
|
44299 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
44300 |
this.itemId = iprot.readI64();
|
| - |
|
44301 |
setItemIdIsSet(true);
|
| - |
|
44302 |
} else {
|
| - |
|
44303 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
44304 |
}
|
| - |
|
44305 |
break;
|
| - |
|
44306 |
default:
|
| - |
|
44307 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
44308 |
}
|
| - |
|
44309 |
iprot.readFieldEnd();
|
| - |
|
44310 |
}
|
| - |
|
44311 |
iprot.readStructEnd();
|
| - |
|
44312 |
validate();
|
| - |
|
44313 |
}
|
| - |
|
44314 |
|
| - |
|
44315 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
44316 |
validate();
|
| - |
|
44317 |
|
| - |
|
44318 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
44319 |
oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
|
| - |
|
44320 |
oprot.writeI64(this.itemId);
|
| - |
|
44321 |
oprot.writeFieldEnd();
|
| - |
|
44322 |
oprot.writeFieldStop();
|
| - |
|
44323 |
oprot.writeStructEnd();
|
| - |
|
44324 |
}
|
| - |
|
44325 |
|
| - |
|
44326 |
@Override
|
| - |
|
44327 |
public String toString() {
|
| - |
|
44328 |
StringBuilder sb = new StringBuilder("getAmazonFbaItemInventory_args(");
|
| - |
|
44329 |
boolean first = true;
|
| - |
|
44330 |
|
| - |
|
44331 |
sb.append("itemId:");
|
| - |
|
44332 |
sb.append(this.itemId);
|
| - |
|
44333 |
first = false;
|
| - |
|
44334 |
sb.append(")");
|
| - |
|
44335 |
return sb.toString();
|
| - |
|
44336 |
}
|
| - |
|
44337 |
|
| - |
|
44338 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
44339 |
// check for required fields
|
| - |
|
44340 |
}
|
| - |
|
44341 |
|
| - |
|
44342 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
44343 |
try {
|
| - |
|
44344 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
44345 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44346 |
throw new java.io.IOException(te);
|
| - |
|
44347 |
}
|
| - |
|
44348 |
}
|
| - |
|
44349 |
|
| - |
|
44350 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
44351 |
try {
|
| - |
|
44352 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
| - |
|
44353 |
__isset_bit_vector = new BitSet(1);
|
| - |
|
44354 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
44355 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44356 |
throw new java.io.IOException(te);
|
| - |
|
44357 |
}
|
| - |
|
44358 |
}
|
| - |
|
44359 |
|
| - |
|
44360 |
}
|
| - |
|
44361 |
|
| - |
|
44362 |
public static class getAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAmazonFbaItemInventory_result, getAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
44363 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAmazonFbaItemInventory_result");
|
| - |
|
44364 |
|
| - |
|
44365 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
|
| - |
|
44366 |
|
| - |
|
44367 |
private long success; // required
|
| - |
|
44368 |
|
| - |
|
44369 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
44370 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
44371 |
SUCCESS((short)0, "success");
|
| - |
|
44372 |
|
| - |
|
44373 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
44374 |
|
| - |
|
44375 |
static {
|
| - |
|
44376 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
44377 |
byName.put(field.getFieldName(), field);
|
| - |
|
44378 |
}
|
| - |
|
44379 |
}
|
| - |
|
44380 |
|
| - |
|
44381 |
/**
|
| - |
|
44382 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
44383 |
*/
|
| - |
|
44384 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
44385 |
switch(fieldId) {
|
| - |
|
44386 |
case 0: // SUCCESS
|
| - |
|
44387 |
return SUCCESS;
|
| - |
|
44388 |
default:
|
| - |
|
44389 |
return null;
|
| - |
|
44390 |
}
|
| - |
|
44391 |
}
|
| - |
|
44392 |
|
| - |
|
44393 |
/**
|
| - |
|
44394 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
44395 |
* if it is not found.
|
| - |
|
44396 |
*/
|
| - |
|
44397 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
44398 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
44399 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
44400 |
return fields;
|
| - |
|
44401 |
}
|
| - |
|
44402 |
|
| - |
|
44403 |
/**
|
| - |
|
44404 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
44405 |
*/
|
| - |
|
44406 |
public static _Fields findByName(String name) {
|
| - |
|
44407 |
return byName.get(name);
|
| - |
|
44408 |
}
|
| - |
|
44409 |
|
| - |
|
44410 |
private final short _thriftId;
|
| - |
|
44411 |
private final String _fieldName;
|
| - |
|
44412 |
|
| - |
|
44413 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
44414 |
_thriftId = thriftId;
|
| - |
|
44415 |
_fieldName = fieldName;
|
| - |
|
44416 |
}
|
| - |
|
44417 |
|
| - |
|
44418 |
public short getThriftFieldId() {
|
| - |
|
44419 |
return _thriftId;
|
| - |
|
44420 |
}
|
| - |
|
44421 |
|
| - |
|
44422 |
public String getFieldName() {
|
| - |
|
44423 |
return _fieldName;
|
| - |
|
44424 |
}
|
| - |
|
44425 |
}
|
| - |
|
44426 |
|
| - |
|
44427 |
// isset id assignments
|
| - |
|
44428 |
private static final int __SUCCESS_ISSET_ID = 0;
|
| - |
|
44429 |
private BitSet __isset_bit_vector = new BitSet(1);
|
| - |
|
44430 |
|
| - |
|
44431 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
44432 |
static {
|
| - |
|
44433 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
44434 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
44435 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| - |
|
44436 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
44437 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAmazonFbaItemInventory_result.class, metaDataMap);
|
| - |
|
44438 |
}
|
| - |
|
44439 |
|
| - |
|
44440 |
public getAmazonFbaItemInventory_result() {
|
| - |
|
44441 |
}
|
| - |
|
44442 |
|
| - |
|
44443 |
public getAmazonFbaItemInventory_result(
|
| - |
|
44444 |
long success)
|
| - |
|
44445 |
{
|
| - |
|
44446 |
this();
|
| - |
|
44447 |
this.success = success;
|
| - |
|
44448 |
setSuccessIsSet(true);
|
| - |
|
44449 |
}
|
| - |
|
44450 |
|
| - |
|
44451 |
/**
|
| - |
|
44452 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
44453 |
*/
|
| - |
|
44454 |
public getAmazonFbaItemInventory_result(getAmazonFbaItemInventory_result other) {
|
| - |
|
44455 |
__isset_bit_vector.clear();
|
| - |
|
44456 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| - |
|
44457 |
this.success = other.success;
|
| - |
|
44458 |
}
|
| - |
|
44459 |
|
| - |
|
44460 |
public getAmazonFbaItemInventory_result deepCopy() {
|
| - |
|
44461 |
return new getAmazonFbaItemInventory_result(this);
|
| - |
|
44462 |
}
|
| - |
|
44463 |
|
| - |
|
44464 |
@Override
|
| - |
|
44465 |
public void clear() {
|
| - |
|
44466 |
setSuccessIsSet(false);
|
| - |
|
44467 |
this.success = 0;
|
| - |
|
44468 |
}
|
| - |
|
44469 |
|
| - |
|
44470 |
public long getSuccess() {
|
| - |
|
44471 |
return this.success;
|
| - |
|
44472 |
}
|
| - |
|
44473 |
|
| - |
|
44474 |
public void setSuccess(long success) {
|
| - |
|
44475 |
this.success = success;
|
| - |
|
44476 |
setSuccessIsSet(true);
|
| - |
|
44477 |
}
|
| - |
|
44478 |
|
| - |
|
44479 |
public void unsetSuccess() {
|
| - |
|
44480 |
__isset_bit_vector.clear(__SUCCESS_ISSET_ID);
|
| - |
|
44481 |
}
|
| - |
|
44482 |
|
| - |
|
44483 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
44484 |
public boolean isSetSuccess() {
|
| - |
|
44485 |
return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
|
| - |
|
44486 |
}
|
| - |
|
44487 |
|
| - |
|
44488 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
44489 |
__isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
|
| - |
|
44490 |
}
|
| - |
|
44491 |
|
| - |
|
44492 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
44493 |
switch (field) {
|
| - |
|
44494 |
case SUCCESS:
|
| - |
|
44495 |
if (value == null) {
|
| - |
|
44496 |
unsetSuccess();
|
| - |
|
44497 |
} else {
|
| - |
|
44498 |
setSuccess((Long)value);
|
| - |
|
44499 |
}
|
| - |
|
44500 |
break;
|
| - |
|
44501 |
|
| - |
|
44502 |
}
|
| - |
|
44503 |
}
|
| - |
|
44504 |
|
| - |
|
44505 |
public Object getFieldValue(_Fields field) {
|
| - |
|
44506 |
switch (field) {
|
| - |
|
44507 |
case SUCCESS:
|
| - |
|
44508 |
return Long.valueOf(getSuccess());
|
| - |
|
44509 |
|
| - |
|
44510 |
}
|
| - |
|
44511 |
throw new IllegalStateException();
|
| - |
|
44512 |
}
|
| - |
|
44513 |
|
| - |
|
44514 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
44515 |
public boolean isSet(_Fields field) {
|
| - |
|
44516 |
if (field == null) {
|
| - |
|
44517 |
throw new IllegalArgumentException();
|
| - |
|
44518 |
}
|
| - |
|
44519 |
|
| - |
|
44520 |
switch (field) {
|
| - |
|
44521 |
case SUCCESS:
|
| - |
|
44522 |
return isSetSuccess();
|
| - |
|
44523 |
}
|
| - |
|
44524 |
throw new IllegalStateException();
|
| - |
|
44525 |
}
|
| - |
|
44526 |
|
| - |
|
44527 |
@Override
|
| - |
|
44528 |
public boolean equals(Object that) {
|
| - |
|
44529 |
if (that == null)
|
| - |
|
44530 |
return false;
|
| - |
|
44531 |
if (that instanceof getAmazonFbaItemInventory_result)
|
| - |
|
44532 |
return this.equals((getAmazonFbaItemInventory_result)that);
|
| - |
|
44533 |
return false;
|
| - |
|
44534 |
}
|
| - |
|
44535 |
|
| - |
|
44536 |
public boolean equals(getAmazonFbaItemInventory_result that) {
|
| - |
|
44537 |
if (that == null)
|
| - |
|
44538 |
return false;
|
| - |
|
44539 |
|
| - |
|
44540 |
boolean this_present_success = true;
|
| - |
|
44541 |
boolean that_present_success = true;
|
| - |
|
44542 |
if (this_present_success || that_present_success) {
|
| - |
|
44543 |
if (!(this_present_success && that_present_success))
|
| - |
|
44544 |
return false;
|
| - |
|
44545 |
if (this.success != that.success)
|
| - |
|
44546 |
return false;
|
| - |
|
44547 |
}
|
| - |
|
44548 |
|
| - |
|
44549 |
return true;
|
| - |
|
44550 |
}
|
| - |
|
44551 |
|
| - |
|
44552 |
@Override
|
| - |
|
44553 |
public int hashCode() {
|
| - |
|
44554 |
return 0;
|
| - |
|
44555 |
}
|
| - |
|
44556 |
|
| - |
|
44557 |
public int compareTo(getAmazonFbaItemInventory_result other) {
|
| - |
|
44558 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
44559 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
44560 |
}
|
| - |
|
44561 |
|
| - |
|
44562 |
int lastComparison = 0;
|
| - |
|
44563 |
getAmazonFbaItemInventory_result typedOther = (getAmazonFbaItemInventory_result)other;
|
| - |
|
44564 |
|
| - |
|
44565 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
44566 |
if (lastComparison != 0) {
|
| - |
|
44567 |
return lastComparison;
|
| - |
|
44568 |
}
|
| - |
|
44569 |
if (isSetSuccess()) {
|
| - |
|
44570 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
44571 |
if (lastComparison != 0) {
|
| - |
|
44572 |
return lastComparison;
|
| - |
|
44573 |
}
|
| - |
|
44574 |
}
|
| - |
|
44575 |
return 0;
|
| - |
|
44576 |
}
|
| - |
|
44577 |
|
| - |
|
44578 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
44579 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
44580 |
}
|
| - |
|
44581 |
|
| - |
|
44582 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
44583 |
org.apache.thrift.protocol.TField field;
|
| - |
|
44584 |
iprot.readStructBegin();
|
| - |
|
44585 |
while (true)
|
| - |
|
44586 |
{
|
| - |
|
44587 |
field = iprot.readFieldBegin();
|
| - |
|
44588 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
44589 |
break;
|
| - |
|
44590 |
}
|
| - |
|
44591 |
switch (field.id) {
|
| - |
|
44592 |
case 0: // SUCCESS
|
| - |
|
44593 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
| - |
|
44594 |
this.success = iprot.readI64();
|
| - |
|
44595 |
setSuccessIsSet(true);
|
| - |
|
44596 |
} else {
|
| - |
|
44597 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
44598 |
}
|
| - |
|
44599 |
break;
|
| - |
|
44600 |
default:
|
| - |
|
44601 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
44602 |
}
|
| - |
|
44603 |
iprot.readFieldEnd();
|
| - |
|
44604 |
}
|
| - |
|
44605 |
iprot.readStructEnd();
|
| - |
|
44606 |
validate();
|
| - |
|
44607 |
}
|
| - |
|
44608 |
|
| - |
|
44609 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
44610 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
44611 |
|
| - |
|
44612 |
if (this.isSetSuccess()) {
|
| - |
|
44613 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
44614 |
oprot.writeI64(this.success);
|
| - |
|
44615 |
oprot.writeFieldEnd();
|
| - |
|
44616 |
}
|
| - |
|
44617 |
oprot.writeFieldStop();
|
| - |
|
44618 |
oprot.writeStructEnd();
|
| - |
|
44619 |
}
|
| - |
|
44620 |
|
| - |
|
44621 |
@Override
|
| - |
|
44622 |
public String toString() {
|
| - |
|
44623 |
StringBuilder sb = new StringBuilder("getAmazonFbaItemInventory_result(");
|
| - |
|
44624 |
boolean first = true;
|
| - |
|
44625 |
|
| - |
|
44626 |
sb.append("success:");
|
| - |
|
44627 |
sb.append(this.success);
|
| - |
|
44628 |
first = false;
|
| - |
|
44629 |
sb.append(")");
|
| - |
|
44630 |
return sb.toString();
|
| - |
|
44631 |
}
|
| - |
|
44632 |
|
| - |
|
44633 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
44634 |
// check for required fields
|
| - |
|
44635 |
}
|
| - |
|
44636 |
|
| - |
|
44637 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
44638 |
try {
|
| - |
|
44639 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
44640 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44641 |
throw new java.io.IOException(te);
|
| - |
|
44642 |
}
|
| - |
|
44643 |
}
|
| - |
|
44644 |
|
| - |
|
44645 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
44646 |
try {
|
| - |
|
44647 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
44648 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44649 |
throw new java.io.IOException(te);
|
| - |
|
44650 |
}
|
| - |
|
44651 |
}
|
| - |
|
44652 |
|
| - |
|
44653 |
}
|
| - |
|
44654 |
|
| - |
|
44655 |
public static class getAllNonzeroAmazonFbaItemInventory_args implements org.apache.thrift.TBase<getAllNonzeroAmazonFbaItemInventory_args, getAllNonzeroAmazonFbaItemInventory_args._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
44656 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllNonzeroAmazonFbaItemInventory_args");
|
| - |
|
44657 |
|
| - |
|
44658 |
|
| - |
|
44659 |
|
| - |
|
44660 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
44661 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
44662 |
;
|
| - |
|
44663 |
|
| - |
|
44664 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
44665 |
|
| - |
|
44666 |
static {
|
| - |
|
44667 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
44668 |
byName.put(field.getFieldName(), field);
|
| - |
|
44669 |
}
|
| - |
|
44670 |
}
|
| - |
|
44671 |
|
| - |
|
44672 |
/**
|
| - |
|
44673 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
44674 |
*/
|
| - |
|
44675 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
44676 |
switch(fieldId) {
|
| - |
|
44677 |
default:
|
| - |
|
44678 |
return null;
|
| - |
|
44679 |
}
|
| - |
|
44680 |
}
|
| - |
|
44681 |
|
| - |
|
44682 |
/**
|
| - |
|
44683 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
44684 |
* if it is not found.
|
| - |
|
44685 |
*/
|
| - |
|
44686 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
44687 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
44688 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
44689 |
return fields;
|
| - |
|
44690 |
}
|
| - |
|
44691 |
|
| - |
|
44692 |
/**
|
| - |
|
44693 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
44694 |
*/
|
| - |
|
44695 |
public static _Fields findByName(String name) {
|
| - |
|
44696 |
return byName.get(name);
|
| - |
|
44697 |
}
|
| - |
|
44698 |
|
| - |
|
44699 |
private final short _thriftId;
|
| - |
|
44700 |
private final String _fieldName;
|
| - |
|
44701 |
|
| - |
|
44702 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
44703 |
_thriftId = thriftId;
|
| - |
|
44704 |
_fieldName = fieldName;
|
| - |
|
44705 |
}
|
| - |
|
44706 |
|
| - |
|
44707 |
public short getThriftFieldId() {
|
| - |
|
44708 |
return _thriftId;
|
| - |
|
44709 |
}
|
| - |
|
44710 |
|
| - |
|
44711 |
public String getFieldName() {
|
| - |
|
44712 |
return _fieldName;
|
| - |
|
44713 |
}
|
| - |
|
44714 |
}
|
| - |
|
44715 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
44716 |
static {
|
| - |
|
44717 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
44718 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
44719 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllNonzeroAmazonFbaItemInventory_args.class, metaDataMap);
|
| - |
|
44720 |
}
|
| - |
|
44721 |
|
| - |
|
44722 |
public getAllNonzeroAmazonFbaItemInventory_args() {
|
| - |
|
44723 |
}
|
| - |
|
44724 |
|
| - |
|
44725 |
/**
|
| - |
|
44726 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
44727 |
*/
|
| - |
|
44728 |
public getAllNonzeroAmazonFbaItemInventory_args(getAllNonzeroAmazonFbaItemInventory_args other) {
|
| - |
|
44729 |
}
|
| - |
|
44730 |
|
| - |
|
44731 |
public getAllNonzeroAmazonFbaItemInventory_args deepCopy() {
|
| - |
|
44732 |
return new getAllNonzeroAmazonFbaItemInventory_args(this);
|
| - |
|
44733 |
}
|
| - |
|
44734 |
|
| - |
|
44735 |
@Override
|
| - |
|
44736 |
public void clear() {
|
| - |
|
44737 |
}
|
| - |
|
44738 |
|
| - |
|
44739 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
44740 |
switch (field) {
|
| - |
|
44741 |
}
|
| - |
|
44742 |
}
|
| - |
|
44743 |
|
| - |
|
44744 |
public Object getFieldValue(_Fields field) {
|
| - |
|
44745 |
switch (field) {
|
| - |
|
44746 |
}
|
| - |
|
44747 |
throw new IllegalStateException();
|
| - |
|
44748 |
}
|
| - |
|
44749 |
|
| - |
|
44750 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
44751 |
public boolean isSet(_Fields field) {
|
| - |
|
44752 |
if (field == null) {
|
| - |
|
44753 |
throw new IllegalArgumentException();
|
| - |
|
44754 |
}
|
| - |
|
44755 |
|
| - |
|
44756 |
switch (field) {
|
| - |
|
44757 |
}
|
| - |
|
44758 |
throw new IllegalStateException();
|
| - |
|
44759 |
}
|
| - |
|
44760 |
|
| - |
|
44761 |
@Override
|
| - |
|
44762 |
public boolean equals(Object that) {
|
| - |
|
44763 |
if (that == null)
|
| - |
|
44764 |
return false;
|
| - |
|
44765 |
if (that instanceof getAllNonzeroAmazonFbaItemInventory_args)
|
| - |
|
44766 |
return this.equals((getAllNonzeroAmazonFbaItemInventory_args)that);
|
| - |
|
44767 |
return false;
|
| - |
|
44768 |
}
|
| - |
|
44769 |
|
| - |
|
44770 |
public boolean equals(getAllNonzeroAmazonFbaItemInventory_args that) {
|
| - |
|
44771 |
if (that == null)
|
| - |
|
44772 |
return false;
|
| - |
|
44773 |
|
| - |
|
44774 |
return true;
|
| - |
|
44775 |
}
|
| - |
|
44776 |
|
| - |
|
44777 |
@Override
|
| - |
|
44778 |
public int hashCode() {
|
| - |
|
44779 |
return 0;
|
| - |
|
44780 |
}
|
| - |
|
44781 |
|
| - |
|
44782 |
public int compareTo(getAllNonzeroAmazonFbaItemInventory_args other) {
|
| - |
|
44783 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
44784 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
44785 |
}
|
| - |
|
44786 |
|
| - |
|
44787 |
int lastComparison = 0;
|
| - |
|
44788 |
getAllNonzeroAmazonFbaItemInventory_args typedOther = (getAllNonzeroAmazonFbaItemInventory_args)other;
|
| - |
|
44789 |
|
| - |
|
44790 |
return 0;
|
| - |
|
44791 |
}
|
| - |
|
44792 |
|
| - |
|
44793 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
44794 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
44795 |
}
|
| - |
|
44796 |
|
| - |
|
44797 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
44798 |
org.apache.thrift.protocol.TField field;
|
| - |
|
44799 |
iprot.readStructBegin();
|
| - |
|
44800 |
while (true)
|
| - |
|
44801 |
{
|
| - |
|
44802 |
field = iprot.readFieldBegin();
|
| - |
|
44803 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
44804 |
break;
|
| - |
|
44805 |
}
|
| - |
|
44806 |
switch (field.id) {
|
| - |
|
44807 |
default:
|
| - |
|
44808 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
44809 |
}
|
| - |
|
44810 |
iprot.readFieldEnd();
|
| - |
|
44811 |
}
|
| - |
|
44812 |
iprot.readStructEnd();
|
| - |
|
44813 |
validate();
|
| - |
|
44814 |
}
|
| - |
|
44815 |
|
| - |
|
44816 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
44817 |
validate();
|
| - |
|
44818 |
|
| - |
|
44819 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
44820 |
oprot.writeFieldStop();
|
| - |
|
44821 |
oprot.writeStructEnd();
|
| - |
|
44822 |
}
|
| - |
|
44823 |
|
| - |
|
44824 |
@Override
|
| - |
|
44825 |
public String toString() {
|
| - |
|
44826 |
StringBuilder sb = new StringBuilder("getAllNonzeroAmazonFbaItemInventory_args(");
|
| - |
|
44827 |
boolean first = true;
|
| - |
|
44828 |
|
| - |
|
44829 |
sb.append(")");
|
| - |
|
44830 |
return sb.toString();
|
| - |
|
44831 |
}
|
| - |
|
44832 |
|
| - |
|
44833 |
public void validate() throws org.apache.thrift.TException {
|
| - |
|
44834 |
// check for required fields
|
| - |
|
44835 |
}
|
| - |
|
44836 |
|
| - |
|
44837 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| - |
|
44838 |
try {
|
| - |
|
44839 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
| - |
|
44840 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44841 |
throw new java.io.IOException(te);
|
| - |
|
44842 |
}
|
| - |
|
44843 |
}
|
| - |
|
44844 |
|
| - |
|
44845 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
| - |
|
44846 |
try {
|
| - |
|
44847 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
| - |
|
44848 |
} catch (org.apache.thrift.TException te) {
|
| - |
|
44849 |
throw new java.io.IOException(te);
|
| - |
|
44850 |
}
|
| - |
|
44851 |
}
|
| - |
|
44852 |
|
| - |
|
44853 |
}
|
| - |
|
44854 |
|
| - |
|
44855 |
public static class getAllNonzeroAmazonFbaItemInventory_result implements org.apache.thrift.TBase<getAllNonzeroAmazonFbaItemInventory_result, getAllNonzeroAmazonFbaItemInventory_result._Fields>, java.io.Serializable, Cloneable {
|
| - |
|
44856 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllNonzeroAmazonFbaItemInventory_result");
|
| - |
|
44857 |
|
| - |
|
44858 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
| - |
|
44859 |
|
| - |
|
44860 |
private List<AmazonFbaInventorySnapshot> success; // required
|
| - |
|
44861 |
|
| - |
|
44862 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| - |
|
44863 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| - |
|
44864 |
SUCCESS((short)0, "success");
|
| - |
|
44865 |
|
| - |
|
44866 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
| - |
|
44867 |
|
| - |
|
44868 |
static {
|
| - |
|
44869 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
| - |
|
44870 |
byName.put(field.getFieldName(), field);
|
| - |
|
44871 |
}
|
| - |
|
44872 |
}
|
| - |
|
44873 |
|
| - |
|
44874 |
/**
|
| - |
|
44875 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
| - |
|
44876 |
*/
|
| - |
|
44877 |
public static _Fields findByThriftId(int fieldId) {
|
| - |
|
44878 |
switch(fieldId) {
|
| - |
|
44879 |
case 0: // SUCCESS
|
| - |
|
44880 |
return SUCCESS;
|
| - |
|
44881 |
default:
|
| - |
|
44882 |
return null;
|
| - |
|
44883 |
}
|
| - |
|
44884 |
}
|
| - |
|
44885 |
|
| - |
|
44886 |
/**
|
| - |
|
44887 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
| - |
|
44888 |
* if it is not found.
|
| - |
|
44889 |
*/
|
| - |
|
44890 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
| - |
|
44891 |
_Fields fields = findByThriftId(fieldId);
|
| - |
|
44892 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
| - |
|
44893 |
return fields;
|
| - |
|
44894 |
}
|
| - |
|
44895 |
|
| - |
|
44896 |
/**
|
| - |
|
44897 |
* Find the _Fields constant that matches name, or null if its not found.
|
| - |
|
44898 |
*/
|
| - |
|
44899 |
public static _Fields findByName(String name) {
|
| - |
|
44900 |
return byName.get(name);
|
| - |
|
44901 |
}
|
| - |
|
44902 |
|
| - |
|
44903 |
private final short _thriftId;
|
| - |
|
44904 |
private final String _fieldName;
|
| - |
|
44905 |
|
| - |
|
44906 |
_Fields(short thriftId, String fieldName) {
|
| - |
|
44907 |
_thriftId = thriftId;
|
| - |
|
44908 |
_fieldName = fieldName;
|
| - |
|
44909 |
}
|
| - |
|
44910 |
|
| - |
|
44911 |
public short getThriftFieldId() {
|
| - |
|
44912 |
return _thriftId;
|
| - |
|
44913 |
}
|
| - |
|
44914 |
|
| - |
|
44915 |
public String getFieldName() {
|
| - |
|
44916 |
return _fieldName;
|
| - |
|
44917 |
}
|
| - |
|
44918 |
}
|
| - |
|
44919 |
|
| - |
|
44920 |
// isset id assignments
|
| - |
|
44921 |
|
| - |
|
44922 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| - |
|
44923 |
static {
|
| - |
|
44924 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| - |
|
44925 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| - |
|
44926 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| - |
|
44927 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AmazonFbaInventorySnapshot.class))));
|
| - |
|
44928 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| - |
|
44929 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllNonzeroAmazonFbaItemInventory_result.class, metaDataMap);
|
| - |
|
44930 |
}
|
| - |
|
44931 |
|
| - |
|
44932 |
public getAllNonzeroAmazonFbaItemInventory_result() {
|
| - |
|
44933 |
}
|
| - |
|
44934 |
|
| - |
|
44935 |
public getAllNonzeroAmazonFbaItemInventory_result(
|
| - |
|
44936 |
List<AmazonFbaInventorySnapshot> success)
|
| - |
|
44937 |
{
|
| - |
|
44938 |
this();
|
| - |
|
44939 |
this.success = success;
|
| - |
|
44940 |
}
|
| - |
|
44941 |
|
| - |
|
44942 |
/**
|
| - |
|
44943 |
* Performs a deep copy on <i>other</i>.
|
| - |
|
44944 |
*/
|
| - |
|
44945 |
public getAllNonzeroAmazonFbaItemInventory_result(getAllNonzeroAmazonFbaItemInventory_result other) {
|
| - |
|
44946 |
if (other.isSetSuccess()) {
|
| - |
|
44947 |
List<AmazonFbaInventorySnapshot> __this__success = new ArrayList<AmazonFbaInventorySnapshot>();
|
| - |
|
44948 |
for (AmazonFbaInventorySnapshot other_element : other.success) {
|
| - |
|
44949 |
__this__success.add(new AmazonFbaInventorySnapshot(other_element));
|
| - |
|
44950 |
}
|
| - |
|
44951 |
this.success = __this__success;
|
| - |
|
44952 |
}
|
| - |
|
44953 |
}
|
| - |
|
44954 |
|
| - |
|
44955 |
public getAllNonzeroAmazonFbaItemInventory_result deepCopy() {
|
| - |
|
44956 |
return new getAllNonzeroAmazonFbaItemInventory_result(this);
|
| - |
|
44957 |
}
|
| - |
|
44958 |
|
| - |
|
44959 |
@Override
|
| - |
|
44960 |
public void clear() {
|
| - |
|
44961 |
this.success = null;
|
| - |
|
44962 |
}
|
| - |
|
44963 |
|
| - |
|
44964 |
public int getSuccessSize() {
|
| - |
|
44965 |
return (this.success == null) ? 0 : this.success.size();
|
| - |
|
44966 |
}
|
| - |
|
44967 |
|
| - |
|
44968 |
public java.util.Iterator<AmazonFbaInventorySnapshot> getSuccessIterator() {
|
| - |
|
44969 |
return (this.success == null) ? null : this.success.iterator();
|
| - |
|
44970 |
}
|
| - |
|
44971 |
|
| - |
|
44972 |
public void addToSuccess(AmazonFbaInventorySnapshot elem) {
|
| - |
|
44973 |
if (this.success == null) {
|
| - |
|
44974 |
this.success = new ArrayList<AmazonFbaInventorySnapshot>();
|
| - |
|
44975 |
}
|
| - |
|
44976 |
this.success.add(elem);
|
| - |
|
44977 |
}
|
| - |
|
44978 |
|
| - |
|
44979 |
public List<AmazonFbaInventorySnapshot> getSuccess() {
|
| - |
|
44980 |
return this.success;
|
| - |
|
44981 |
}
|
| - |
|
44982 |
|
| - |
|
44983 |
public void setSuccess(List<AmazonFbaInventorySnapshot> success) {
|
| - |
|
44984 |
this.success = success;
|
| - |
|
44985 |
}
|
| - |
|
44986 |
|
| - |
|
44987 |
public void unsetSuccess() {
|
| - |
|
44988 |
this.success = null;
|
| - |
|
44989 |
}
|
| - |
|
44990 |
|
| - |
|
44991 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
| - |
|
44992 |
public boolean isSetSuccess() {
|
| - |
|
44993 |
return this.success != null;
|
| - |
|
44994 |
}
|
| - |
|
44995 |
|
| - |
|
44996 |
public void setSuccessIsSet(boolean value) {
|
| - |
|
44997 |
if (!value) {
|
| - |
|
44998 |
this.success = null;
|
| - |
|
44999 |
}
|
| - |
|
45000 |
}
|
| - |
|
45001 |
|
| - |
|
45002 |
public void setFieldValue(_Fields field, Object value) {
|
| - |
|
45003 |
switch (field) {
|
| - |
|
45004 |
case SUCCESS:
|
| - |
|
45005 |
if (value == null) {
|
| - |
|
45006 |
unsetSuccess();
|
| - |
|
45007 |
} else {
|
| - |
|
45008 |
setSuccess((List<AmazonFbaInventorySnapshot>)value);
|
| - |
|
45009 |
}
|
| - |
|
45010 |
break;
|
| - |
|
45011 |
|
| - |
|
45012 |
}
|
| - |
|
45013 |
}
|
| - |
|
45014 |
|
| - |
|
45015 |
public Object getFieldValue(_Fields field) {
|
| - |
|
45016 |
switch (field) {
|
| - |
|
45017 |
case SUCCESS:
|
| - |
|
45018 |
return getSuccess();
|
| - |
|
45019 |
|
| - |
|
45020 |
}
|
| - |
|
45021 |
throw new IllegalStateException();
|
| - |
|
45022 |
}
|
| - |
|
45023 |
|
| - |
|
45024 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
| - |
|
45025 |
public boolean isSet(_Fields field) {
|
| - |
|
45026 |
if (field == null) {
|
| - |
|
45027 |
throw new IllegalArgumentException();
|
| - |
|
45028 |
}
|
| - |
|
45029 |
|
| - |
|
45030 |
switch (field) {
|
| - |
|
45031 |
case SUCCESS:
|
| - |
|
45032 |
return isSetSuccess();
|
| - |
|
45033 |
}
|
| - |
|
45034 |
throw new IllegalStateException();
|
| - |
|
45035 |
}
|
| - |
|
45036 |
|
| - |
|
45037 |
@Override
|
| - |
|
45038 |
public boolean equals(Object that) {
|
| - |
|
45039 |
if (that == null)
|
| - |
|
45040 |
return false;
|
| - |
|
45041 |
if (that instanceof getAllNonzeroAmazonFbaItemInventory_result)
|
| - |
|
45042 |
return this.equals((getAllNonzeroAmazonFbaItemInventory_result)that);
|
| - |
|
45043 |
return false;
|
| - |
|
45044 |
}
|
| - |
|
45045 |
|
| - |
|
45046 |
public boolean equals(getAllNonzeroAmazonFbaItemInventory_result that) {
|
| - |
|
45047 |
if (that == null)
|
| - |
|
45048 |
return false;
|
| - |
|
45049 |
|
| - |
|
45050 |
boolean this_present_success = true && this.isSetSuccess();
|
| - |
|
45051 |
boolean that_present_success = true && that.isSetSuccess();
|
| - |
|
45052 |
if (this_present_success || that_present_success) {
|
| - |
|
45053 |
if (!(this_present_success && that_present_success))
|
| - |
|
45054 |
return false;
|
| - |
|
45055 |
if (!this.success.equals(that.success))
|
| - |
|
45056 |
return false;
|
| - |
|
45057 |
}
|
| - |
|
45058 |
|
| - |
|
45059 |
return true;
|
| - |
|
45060 |
}
|
| - |
|
45061 |
|
| - |
|
45062 |
@Override
|
| - |
|
45063 |
public int hashCode() {
|
| - |
|
45064 |
return 0;
|
| - |
|
45065 |
}
|
| - |
|
45066 |
|
| - |
|
45067 |
public int compareTo(getAllNonzeroAmazonFbaItemInventory_result other) {
|
| - |
|
45068 |
if (!getClass().equals(other.getClass())) {
|
| - |
|
45069 |
return getClass().getName().compareTo(other.getClass().getName());
|
| - |
|
45070 |
}
|
| - |
|
45071 |
|
| - |
|
45072 |
int lastComparison = 0;
|
| - |
|
45073 |
getAllNonzeroAmazonFbaItemInventory_result typedOther = (getAllNonzeroAmazonFbaItemInventory_result)other;
|
| - |
|
45074 |
|
| - |
|
45075 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
| - |
|
45076 |
if (lastComparison != 0) {
|
| - |
|
45077 |
return lastComparison;
|
| - |
|
45078 |
}
|
| - |
|
45079 |
if (isSetSuccess()) {
|
| - |
|
45080 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
| - |
|
45081 |
if (lastComparison != 0) {
|
| - |
|
45082 |
return lastComparison;
|
| - |
|
45083 |
}
|
| - |
|
45084 |
}
|
| - |
|
45085 |
return 0;
|
| - |
|
45086 |
}
|
| - |
|
45087 |
|
| - |
|
45088 |
public _Fields fieldForId(int fieldId) {
|
| - |
|
45089 |
return _Fields.findByThriftId(fieldId);
|
| - |
|
45090 |
}
|
| - |
|
45091 |
|
| - |
|
45092 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
| - |
|
45093 |
org.apache.thrift.protocol.TField field;
|
| - |
|
45094 |
iprot.readStructBegin();
|
| - |
|
45095 |
while (true)
|
| - |
|
45096 |
{
|
| - |
|
45097 |
field = iprot.readFieldBegin();
|
| - |
|
45098 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| - |
|
45099 |
break;
|
| - |
|
45100 |
}
|
| - |
|
45101 |
switch (field.id) {
|
| - |
|
45102 |
case 0: // SUCCESS
|
| - |
|
45103 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| - |
|
45104 |
{
|
| - |
|
45105 |
org.apache.thrift.protocol.TList _list130 = iprot.readListBegin();
|
| - |
|
45106 |
this.success = new ArrayList<AmazonFbaInventorySnapshot>(_list130.size);
|
| - |
|
45107 |
for (int _i131 = 0; _i131 < _list130.size; ++_i131)
|
| - |
|
45108 |
{
|
| - |
|
45109 |
AmazonFbaInventorySnapshot _elem132; // required
|
| - |
|
45110 |
_elem132 = new AmazonFbaInventorySnapshot();
|
| - |
|
45111 |
_elem132.read(iprot);
|
| - |
|
45112 |
this.success.add(_elem132);
|
| - |
|
45113 |
}
|
| - |
|
45114 |
iprot.readListEnd();
|
| - |
|
45115 |
}
|
| - |
|
45116 |
} else {
|
| - |
|
45117 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
45118 |
}
|
| - |
|
45119 |
break;
|
| - |
|
45120 |
default:
|
| - |
|
45121 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| - |
|
45122 |
}
|
| - |
|
45123 |
iprot.readFieldEnd();
|
| - |
|
45124 |
}
|
| - |
|
45125 |
iprot.readStructEnd();
|
| - |
|
45126 |
validate();
|
| - |
|
45127 |
}
|
| - |
|
45128 |
|
| - |
|
45129 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| - |
|
45130 |
oprot.writeStructBegin(STRUCT_DESC);
|
| - |
|
45131 |
|
| - |
|
45132 |
if (this.isSetSuccess()) {
|
| - |
|
45133 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
| - |
|
45134 |
{
|
| - |
|
45135 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
| - |
|
45136 |
for (AmazonFbaInventorySnapshot _iter133 : this.success)
|
| - |
|
45137 |
{
|
| - |
|
45138 |
_iter133.write(oprot);
|
| - |
|
45139 |
}
|
| - |
|
45140 |
oprot.writeListEnd();
|
| - |
|
45141 |
}
|
| - |
|
45142 |
oprot.writeFieldEnd();
|
| - |
|
45143 |
}
|
| - |
|
45144 |
oprot.writeFieldStop();
|
| - |
|
45145 |
oprot.writeStructEnd();
|
| - |
|
45146 |
}
|
| - |
|
45147 |
|
| - |
|
45148 |
@Override
|
| - |
|
45149 |
public String toString() {
|
| - |
|
45150 |
StringBuilder sb = new StringBuilder("getAllNonzeroAmazonFbaItemInventory_result(");
|
| - |
|
45151 |
boolean first = true;
|
| - |
|
45152 |
|
| - |
|
45153 |
sb.append("success:");
|
| - |
|
45154 |
if (this.success == null) {
|
| - |
|
45155 |
sb.append("null");
|
| - |
|
45156 |
} else {
|
| - |
|
45157 |
sb.append(this.success);
|
| - |
|
45158 |
}
|
| - |
|
45159 |
first = false;
|
| - |
|
45160 |
sb.append(")");
|
| - |
|
45161 |
return sb.toString();
|
| - |
|
45162 |
}
|
| - |
|
45163 |
|
| - |
|
45164 |
public void validate() throws org.apache.thrift.TException {
|
| 43331 |
// check for required fields
|
45165 |
// check for required fields
|
| 43332 |
}
|
45166 |
}
|
| 43333 |
|
45167 |
|
| 43334 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
45168 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
| 43335 |
try {
|
45169 |
try {
|