@@ -17634,171 +17634,8 @@ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Ch
1763417634 String[] localVarAuthNames = new String[] { };
1763517635 return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
1763617636 }
17637- /**
17638- * Build call for cellsPictureGetExtractBarcodes
17639- * @param name Workbook name. (required)
17640- * @param sheetName Worksheet name. (required)
17641- * @param pictureIndex The picture index. (required)
17642- * @param folder Workbook folder. (optional)
17643- * @param storageName storage name. (optional)
17644- * @param progressListener Progress listener
17645- * @param progressRequestListener Progress request listener
17646- * @return Call to execute
17647- * @throws ApiException If fail to serialize the request body object
17648- */
17649- @Deprecated
17650- public com.squareup.okhttp.Call cellsPictureGetExtractBarcodesCall(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
17651- Object localVarPostBody = null;
17652-
17653- // create path and map variables
17654- String localVarPath = "/cells/{name}/worksheets/{sheetName}/pictures/{pictureIndex}/recognize"
17655- .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString()))
17656- .replaceAll("\\{" + "sheetName" + "\\}", apiClient.escapeString(sheetName.toString()))
17657- .replaceAll("\\{" + "pictureIndex" + "\\}", apiClient.escapeString(pictureIndex.toString()));
17658-
17659- List<Pair> localVarQueryParams = new ArrayList<Pair>();
17660- if (folder != null)
17661- localVarQueryParams.addAll(apiClient.parameterToPairs("", "folder", folder));
17662- if (storageName != null)
17663- localVarQueryParams.addAll(apiClient.parameterToPairs("", "storageName", storageName));
1766417637
17665- Map<String, String> localVarHeaderParams = new HashMap<String, String>();
17666-
17667- Map<String, Object> localVarFormParams = new HashMap<String, Object>();
17668-
17669- final String[] localVarAccepts = {
17670- "application/json"
17671- };
17672- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
17673- if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
17674-
17675- final String[] localVarContentTypes = {
17676- "application/json"
17677- };
17678- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
17679- localVarHeaderParams.put("Content-Type", localVarContentType);
17680-
17681- if(progressListener != null) {
17682- apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
17683- @Override
17684- @Deprecated
17685- public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
17686- com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
17687- return originalResponse.newBuilder()
17688- .body(new ProgressResponseBody(originalResponse.body(), progressListener))
17689- .build();
17690- }
17691- });
17692- }
1769317638
17694- String[] localVarAuthNames = new String[] { };
17695- return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
17696- }
17697-
17698- @SuppressWarnings("rawtypes")
17699- private com.squareup.okhttp.Call cellsPictureGetExtractBarcodesValidateBeforeCall(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
17700-
17701- // verify the required parameter 'name' is set
17702- if (name == null) {
17703- throw new ApiException("Missing the required parameter 'name' when calling cellsPictureGetExtractBarcodes(Async)");
17704- }
17705-
17706- // verify the required parameter 'sheetName' is set
17707- if (sheetName == null) {
17708- throw new ApiException("Missing the required parameter 'sheetName' when calling cellsPictureGetExtractBarcodes(Async)");
17709- }
17710-
17711- // verify the required parameter 'pictureIndex' is set
17712- if (pictureIndex == null) {
17713- throw new ApiException("Missing the required parameter 'pictureIndex' when calling cellsPictureGetExtractBarcodes(Async)");
17714- }
17715-
17716-
17717- com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesCall(name, sheetName, pictureIndex, folder, storageName, progressListener, progressRequestListener);
17718- return call;
17719-
17720-
17721-
17722-
17723-
17724- }
17725-
17726- /**
17727- * Get chart area border info.
17728- *
17729- * @param name Workbook name. (required)
17730- * @param sheetName Worksheet name. (required)
17731- * @param pictureIndex The picture index. (required)
17732- * @param folder Workbook folder. (optional)
17733- * @param storageName storage name. (optional)
17734- * @return BarcodeResponseList
17735- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
17736- */
17737- @Deprecated
17738- public BarcodeResponseList cellsPictureGetExtractBarcodes(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException {
17739- ApiResponse<BarcodeResponseList> resp = cellsPictureGetExtractBarcodesWithHttpInfo(name, sheetName, pictureIndex, folder, storageName);
17740- return resp.getData();
17741- }
17742-
17743- /**
17744- * Get chart area border info.
17745- *
17746- * @param name Workbook name. (required)
17747- * @param sheetName Worksheet name. (required)
17748- * @param pictureIndex The picture index. (required)
17749- * @param folder Workbook folder. (optional)
17750- * @param storageName storage name. (optional)
17751- * @return ApiResponse<BarcodeResponseList>
17752- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
17753- */
17754- @Deprecated
17755- public ApiResponse<BarcodeResponseList> cellsPictureGetExtractBarcodesWithHttpInfo(String name, String sheetName, Integer pictureIndex, String folder, String storageName) throws ApiException {
17756- com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, null, null);
17757- Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType();
17758- return apiClient.execute(call, localVarReturnType);
17759- }
17760-
17761- /**
17762- * Get chart area border info. (asynchronously)
17763- *
17764- * @param name Workbook name. (required)
17765- * @param sheetName Worksheet name. (required)
17766- * @param pictureIndex The picture index. (required)
17767- * @param folder Workbook folder. (optional)
17768- * @param storageName storage name. (optional)
17769- * @param callback The callback to be executed when the API call finishes
17770- * @return The request call
17771- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
17772- */
17773- @Deprecated
17774- public com.squareup.okhttp.Call cellsPictureGetExtractBarcodesAsync(String name, String sheetName, Integer pictureIndex, String folder, String storageName, final ApiCallback<BarcodeResponseList> callback) throws ApiException {
17775-
17776- ProgressResponseBody.ProgressListener progressListener = null;
17777- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
17778-
17779- if (callback != null) {
17780- progressListener = new ProgressResponseBody.ProgressListener() {
17781- @Override
17782- @Deprecated
17783- public void update(long bytesRead, long contentLength, boolean done) {
17784- callback.onDownloadProgress(bytesRead, contentLength, done);
17785- }
17786- };
17787-
17788- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
17789- @Override
17790- @Deprecated
17791- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
17792- callback.onUploadProgress(bytesWritten, contentLength, done);
17793- }
17794- };
17795- }
17796-
17797- com.squareup.okhttp.Call call = cellsPictureGetExtractBarcodesValidateBeforeCall(name, sheetName, pictureIndex, folder, storageName, progressListener, progressRequestListener);
17798- Type localVarReturnType = new TypeToken<BarcodeResponseList>(){}.getType();
17799- apiClient.executeAsync(call, localVarReturnType, callback);
17800- return call;
17801- }
1780217639 @SuppressWarnings("rawtypes")
1780317640 private com.squareup.okhttp.Call cellsPageSetupPostPageSetupValidateBeforeCall(String name, String sheetName, PageSetup pageSetup, String folder, String storageName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
1780417641
@@ -49807,58 +49644,6 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
4980749644 return call;
4980849645 }
4980949646
49810- @SuppressWarnings("rawtypes")
49811- private com.squareup.okhttp.Call getExtractBarcodesValidateBeforeCall(GetExtractBarcodesRequest request, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, IOException {
49812- return request.buildHttpRequest(apiClient, progressListener, progressRequestListener, true);
49813- }
49814-
49815- public BarcodeResponseList getExtractBarcodes(GetExtractBarcodesRequest request) throws ApiException, IOException {
49816- try {
49817- ApiResponse< BarcodeResponseList > resp = getExtractBarcodesWithHttpInfo(request);
49818- return resp.getData();
49819- }
49820- catch (ApiException ex) {
49821- if (ex.getCode() == apiClient.getNotAuthCode()) {
49822- apiClient.requestToken();
49823- ApiResponse< BarcodeResponseList > resp = getExtractBarcodesWithHttpInfo(request);
49824- return resp.getData();
49825- }
49826- throw ex;
49827- }
49828- }
49829-
49830- private ApiResponse< BarcodeResponseList > getExtractBarcodesWithHttpInfo(GetExtractBarcodesRequest request) throws ApiException, IOException {
49831- com.squareup.okhttp.Call call = getExtractBarcodesValidateBeforeCall(request, null, null);
49832- Type localVarReturnType = new TypeToken< BarcodeResponseList >(){}.getType();
49833- return apiClient.execute(call, localVarReturnType);
49834- }
49835-
49836- public com.squareup.okhttp.Call getExtractBarcodesAsync( GetExtractBarcodesRequest request, final ApiCallback< BarcodeResponseList > callback) throws ApiException, IOException {
49837-
49838- ProgressResponseBody.ProgressListener progressListener = null;
49839- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
49840-
49841- if (callback != null) {
49842- progressListener = new ProgressResponseBody.ProgressListener() {
49843- @Override
49844- public void update(long bytesRead, long contentLength, boolean done) {
49845- callback.onDownloadProgress(bytesRead, contentLength, done);
49846- }
49847- };
49848-
49849- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
49850- @Override
49851- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
49852- callback.onUploadProgress(bytesWritten, contentLength, done);
49853- }
49854- };
49855- }
49856-
49857- com.squareup.okhttp.Call call = getExtractBarcodesValidateBeforeCall(request, progressListener, progressRequestListener);
49858- Type localVarReturnType = new TypeToken< BarcodeResponseList >(){}.getType();
49859- apiClient.executeAsync(call, localVarReturnType, callback);
49860- return call;
49861- }
4986249647
4986349648
4986449649 @SuppressWarnings("rawtypes")
0 commit comments