GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

CreateImageTranslateTask   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 5
eloc 16
dl 0
loc 66
ccs 12
cts 12
cp 1
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A withTargetLanguage() 0 6 1
A withExtra() 0 6 1
A withSourceLanguage() 0 6 1
A withClientToken() 0 6 1
A withUrlList() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Alimt\V20181012;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateDocTranslateTask createDocTranslateTask(array $options = [])
9
 * @method CreateImageTranslateTask createImageTranslateTask(array $options = [])
10
 * @method GetBatchTranslate getBatchTranslate(array $options = [])
11
 * @method GetDetectLanguage getDetectLanguage(array $options = [])
12
 * @method GetDocTranslateTask getDocTranslateTask(array $options = [])
13
 * @method GetImageDiagnose getImageDiagnose(array $options = [])
14
 * @method GetImageTranslate getImageTranslate(array $options = [])
15
 * @method GetImageTranslateTask getImageTranslateTask(array $options = [])
16
 * @method GetTitleDiagnose getTitleDiagnose(array $options = [])
17
 * @method GetTitleGenerate getTitleGenerate(array $options = [])
18
 * @method GetTitleIntelligence getTitleIntelligence(array $options = [])
19
 * @method GetTranslateImageBatchResult getTranslateImageBatchResult(array $options = [])
20
 * @method GetTranslateReport getTranslateReport(array $options = [])
21
 * @method OpenAlimtService openAlimtService(array $options = [])
22
 * @method Translate translate(array $options = [])
23
 * @method TranslateCertificate translateCertificate(array $options = [])
24
 * @method TranslateECommerce translateECommerce(array $options = [])
25
 * @method TranslateGeneral translateGeneral(array $options = [])
26
 * @method TranslateImage translateImage(array $options = [])
27
 * @method TranslateImageBatch translateImageBatch(array $options = [])
28
 */
29
class AlimtApiResolver extends ApiResolver
30
{
31
}
32
33
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
34
{
35
    /** @var string */
36
    public $product = 'alimt';
37
38
    /** @var string */
39
    public $version = '2018-10-12';
40
41
    /** @var string */
42
    public $method = 'POST';
43
}
44
45
/**
46
 * @method string getSourceLanguage()
47
 * @method string getClientToken()
48
 * @method string getScene()
49
 * @method string getFileUrl()
50
 * @method string getTargetLanguage()
51
 * @method string getCallbackUrl()
52
 */
53
class CreateDocTranslateTask extends Rpc
54
{
55
56
    /**
57
     * @param string $value
58
     *
59
     * @return $this
60
     */
61
    public function withSourceLanguage($value)
62
    {
63
        $this->data['SourceLanguage'] = $value;
64
        $this->options['form_params']['SourceLanguage'] = $value;
65
66
        return $this;
67
    }
68
69
    /**
70
     * @param string $value
71
     *
72
     * @return $this
73
     */
74
    public function withClientToken($value)
75
    {
76
        $this->data['ClientToken'] = $value;
77
        $this->options['form_params']['ClientToken'] = $value;
78
79
        return $this;
80
    }
81
82
    /**
83
     * @param string $value
84
     *
85
     * @return $this
86
     */
87
    public function withScene($value)
88
    {
89
        $this->data['Scene'] = $value;
90
        $this->options['form_params']['Scene'] = $value;
91
92
        return $this;
93
    }
94
95
    /**
96
     * @param string $value
97
     *
98
     * @return $this
99
     */
100
    public function withFileUrl($value)
101
    {
102
        $this->data['FileUrl'] = $value;
103
        $this->options['form_params']['FileUrl'] = $value;
104
105
        return $this;
106
    }
107
108
    /**
109
     * @param string $value
110
     *
111
     * @return $this
112
     */
113
    public function withTargetLanguage($value)
114
    {
115
        $this->data['TargetLanguage'] = $value;
116
        $this->options['form_params']['TargetLanguage'] = $value;
117
118
        return $this;
119
    }
120
121 1
    /**
122
     * @param string $value
123 1
     *
124 1
     * @return $this
125
     */
126 1
    public function withCallbackUrl($value)
127
    {
128
        $this->data['CallbackUrl'] = $value;
129
        $this->options['form_params']['CallbackUrl'] = $value;
130
131
        return $this;
132
    }
133
}
134 1
135
/**
136 1
 * @method string getSourceLanguage()
137 1
 * @method string getClientToken()
138
 * @method string getUrlList()
139 1
 * @method string getExtra()
140
 * @method string getTargetLanguage()
141
 */
142
class CreateImageTranslateTask extends Rpc
143
{
144
145
    /**
146
     * @param string $value
147 1
     *
148
     * @return $this
149 1
     */
150 1
    public function withSourceLanguage($value)
151
    {
152 1
        $this->data['SourceLanguage'] = $value;
153
        $this->options['form_params']['SourceLanguage'] = $value;
154
155
        return $this;
156
    }
157
158
    /**
159
     * @param string $value
160 1
     *
161
     * @return $this
162 1
     */
163 1
    public function withClientToken($value)
164
    {
165 1
        $this->data['ClientToken'] = $value;
166
        $this->options['form_params']['ClientToken'] = $value;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @param string $value
173 1
     *
174
     * @return $this
175 1
     */
176 1
    public function withUrlList($value)
177
    {
178 1
        $this->data['UrlList'] = $value;
179
        $this->options['form_params']['UrlList'] = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withExtra($value)
190
    {
191
        $this->data['Extra'] = $value;
192
        $this->options['form_params']['Extra'] = $value;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withTargetLanguage($value)
203
    {
204
        $this->data['TargetLanguage'] = $value;
205
        $this->options['form_params']['TargetLanguage'] = $value;
206
207
        return $this;
208
    }
209
}
210
211
/**
212
 * @method string getSourceLanguage()
213
 * @method string getSourceText()
214
 * @method string getFormatType()
215
 * @method string getApiType()
216
 * @method string getScene()
217
 * @method string getTargetLanguage()
218
 */
219
class GetBatchTranslate extends Rpc
220
{
221
222
    /**
223
     * @param string $value
224
     *
225
     * @return $this
226
     */
227
    public function withSourceLanguage($value)
228
    {
229
        $this->data['SourceLanguage'] = $value;
230
        $this->options['form_params']['SourceLanguage'] = $value;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @param string $value
237
     *
238
     * @return $this
239
     */
240
    public function withSourceText($value)
241
    {
242
        $this->data['SourceText'] = $value;
243
        $this->options['form_params']['SourceText'] = $value;
244
245
        return $this;
246
    }
247
248
    /**
249
     * @param string $value
250
     *
251
     * @return $this
252
     */
253
    public function withFormatType($value)
254
    {
255
        $this->data['FormatType'] = $value;
256
        $this->options['form_params']['FormatType'] = $value;
257
258
        return $this;
259
    }
260
261
    /**
262
     * @param string $value
263
     *
264
     * @return $this
265
     */
266
    public function withApiType($value)
267
    {
268
        $this->data['ApiType'] = $value;
269
        $this->options['form_params']['ApiType'] = $value;
270
271
        return $this;
272
    }
273
274
    /**
275
     * @param string $value
276
     *
277
     * @return $this
278
     */
279
    public function withScene($value)
280
    {
281
        $this->data['Scene'] = $value;
282
        $this->options['form_params']['Scene'] = $value;
283
284
        return $this;
285
    }
286
287
    /**
288
     * @param string $value
289
     *
290
     * @return $this
291
     */
292
    public function withTargetLanguage($value)
293
    {
294
        $this->data['TargetLanguage'] = $value;
295
        $this->options['form_params']['TargetLanguage'] = $value;
296
297
        return $this;
298
    }
299
}
300
301
/**
302
 * @method string getSourceText()
303
 */
304
class GetDetectLanguage extends Rpc
305
{
306
307
    /**
308
     * @param string $value
309
     *
310
     * @return $this
311
     */
312
    public function withSourceText($value)
313
    {
314
        $this->data['SourceText'] = $value;
315
        $this->options['form_params']['SourceText'] = $value;
316
317
        return $this;
318
    }
319
}
320
321
/**
322
 * @method string getTaskId()
323
 * @method $this withTaskId($value)
324
 */
325
class GetDocTranslateTask extends Rpc
326
{
327
328
    /** @var string */
329
    public $method = 'GET';
330
}
331
332
/**
333
 * @method string getUrl()
334
 * @method string getExtra()
335
 */
336
class GetImageDiagnose extends Rpc
337
{
338
339
    /**
340
     * @param string $value
341
     *
342
     * @return $this
343
     */
344
    public function withUrl($value)
345
    {
346
        $this->data['Url'] = $value;
347
        $this->options['form_params']['Url'] = $value;
348
349
        return $this;
350
    }
351
352
    /**
353
     * @param string $value
354
     *
355
     * @return $this
356
     */
357
    public function withExtra($value)
358
    {
359
        $this->data['Extra'] = $value;
360
        $this->options['form_params']['Extra'] = $value;
361
362
        return $this;
363
    }
364
}
365
366
/**
367
 * @method string getSourceLanguage()
368
 * @method string getUrl()
369
 * @method string getExtra()
370
 * @method string getTargetLanguage()
371
 */
372
class GetImageTranslate extends Rpc
373
{
374
375
    /**
376
     * @param string $value
377
     *
378
     * @return $this
379
     */
380
    public function withSourceLanguage($value)
381
    {
382
        $this->data['SourceLanguage'] = $value;
383
        $this->options['form_params']['SourceLanguage'] = $value;
384
385
        return $this;
386
    }
387
388
    /**
389
     * @param string $value
390
     *
391
     * @return $this
392
     */
393
    public function withUrl($value)
394
    {
395
        $this->data['Url'] = $value;
396
        $this->options['form_params']['Url'] = $value;
397
398
        return $this;
399
    }
400
401
    /**
402
     * @param string $value
403
     *
404
     * @return $this
405
     */
406
    public function withExtra($value)
407
    {
408
        $this->data['Extra'] = $value;
409
        $this->options['form_params']['Extra'] = $value;
410
411
        return $this;
412
    }
413
414
    /**
415
     * @param string $value
416
     *
417
     * @return $this
418
     */
419
    public function withTargetLanguage($value)
420
    {
421
        $this->data['TargetLanguage'] = $value;
422
        $this->options['form_params']['TargetLanguage'] = $value;
423
424
        return $this;
425
    }
426
}
427
428
/**
429
 * @method string getTaskId()
430
 */
431
class GetImageTranslateTask extends Rpc
432
{
433
434
    /**
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function withTaskId($value)
440
    {
441
        $this->data['TaskId'] = $value;
442
        $this->options['form_params']['TaskId'] = $value;
443
444
        return $this;
445
    }
446
}
447
448
/**
449
 * @method string getLanguage()
450
 * @method string getTitle()
451
 * @method string getPlatform()
452
 * @method string getExtra()
453
 * @method string getCategoryId()
454
 */
455
class GetTitleDiagnose extends Rpc
456
{
457
458
    /**
459
     * @param string $value
460
     *
461
     * @return $this
462
     */
463
    public function withLanguage($value)
464
    {
465
        $this->data['Language'] = $value;
466
        $this->options['form_params']['Language'] = $value;
467
468
        return $this;
469
    }
470
471
    /**
472
     * @param string $value
473
     *
474
     * @return $this
475
     */
476
    public function withTitle($value)
477
    {
478
        $this->data['Title'] = $value;
479
        $this->options['form_params']['Title'] = $value;
480
481
        return $this;
482
    }
483
484
    /**
485
     * @param string $value
486
     *
487
     * @return $this
488
     */
489
    public function withPlatform($value)
490
    {
491
        $this->data['Platform'] = $value;
492
        $this->options['form_params']['Platform'] = $value;
493
494
        return $this;
495
    }
496
497
    /**
498
     * @param string $value
499
     *
500
     * @return $this
501
     */
502
    public function withExtra($value)
503
    {
504
        $this->data['Extra'] = $value;
505
        $this->options['form_params']['Extra'] = $value;
506
507
        return $this;
508
    }
509
510
    /**
511
     * @param string $value
512
     *
513
     * @return $this
514
     */
515
    public function withCategoryId($value)
516
    {
517
        $this->data['CategoryId'] = $value;
518
        $this->options['form_params']['CategoryId'] = $value;
519
520
        return $this;
521
    }
522
}
523
524
/**
525
 * @method string getLanguage()
526
 * @method string getTitle()
527
 * @method string getPlatform()
528
 * @method string getExtra()
529
 * @method string getAttributes()
530
 * @method string getHotWords()
531
 * @method string getCategoryId()
532
 */
533
class GetTitleGenerate extends Rpc
534
{
535
536
    /**
537
     * @param string $value
538
     *
539
     * @return $this
540
     */
541
    public function withLanguage($value)
542
    {
543
        $this->data['Language'] = $value;
544
        $this->options['form_params']['Language'] = $value;
545
546
        return $this;
547
    }
548
549
    /**
550
     * @param string $value
551
     *
552
     * @return $this
553
     */
554
    public function withTitle($value)
555
    {
556
        $this->data['Title'] = $value;
557
        $this->options['form_params']['Title'] = $value;
558
559
        return $this;
560
    }
561
562
    /**
563
     * @param string $value
564
     *
565
     * @return $this
566
     */
567
    public function withPlatform($value)
568
    {
569
        $this->data['Platform'] = $value;
570
        $this->options['form_params']['Platform'] = $value;
571
572
        return $this;
573
    }
574
575
    /**
576
     * @param string $value
577
     *
578
     * @return $this
579
     */
580
    public function withExtra($value)
581
    {
582
        $this->data['Extra'] = $value;
583
        $this->options['form_params']['Extra'] = $value;
584
585
        return $this;
586
    }
587
588
    /**
589
     * @param string $value
590
     *
591
     * @return $this
592
     */
593
    public function withAttributes($value)
594
    {
595
        $this->data['Attributes'] = $value;
596
        $this->options['form_params']['Attributes'] = $value;
597
598
        return $this;
599
    }
600
601
    /**
602
     * @param string $value
603
     *
604
     * @return $this
605
     */
606
    public function withHotWords($value)
607
    {
608
        $this->data['HotWords'] = $value;
609
        $this->options['form_params']['HotWords'] = $value;
610
611
        return $this;
612
    }
613
614
    /**
615
     * @param string $value
616
     *
617
     * @return $this
618
     */
619
    public function withCategoryId($value)
620
    {
621
        $this->data['CategoryId'] = $value;
622
        $this->options['form_params']['CategoryId'] = $value;
623
624
        return $this;
625
    }
626
}
627
628
/**
629
 * @method string getCatLevelThreeId()
630
 * @method string getCatLevelTwoId()
631
 * @method string getKeywords()
632
 * @method string getPlatform()
633
 * @method string getExtra()
634
 */
635
class GetTitleIntelligence extends Rpc
636
{
637
638
    /**
639
     * @param string $value
640
     *
641
     * @return $this
642
     */
643
    public function withCatLevelThreeId($value)
644
    {
645
        $this->data['CatLevelThreeId'] = $value;
646
        $this->options['form_params']['CatLevelThreeId'] = $value;
647
648
        return $this;
649
    }
650
651
    /**
652
     * @param string $value
653
     *
654
     * @return $this
655
     */
656
    public function withCatLevelTwoId($value)
657
    {
658
        $this->data['CatLevelTwoId'] = $value;
659
        $this->options['form_params']['CatLevelTwoId'] = $value;
660
661
        return $this;
662
    }
663
664
    /**
665
     * @param string $value
666
     *
667
     * @return $this
668
     */
669
    public function withKeywords($value)
670
    {
671
        $this->data['Keywords'] = $value;
672
        $this->options['form_params']['Keywords'] = $value;
673
674
        return $this;
675
    }
676
677
    /**
678
     * @param string $value
679
     *
680
     * @return $this
681
     */
682
    public function withPlatform($value)
683
    {
684
        $this->data['Platform'] = $value;
685
        $this->options['form_params']['Platform'] = $value;
686
687
        return $this;
688
    }
689
690
    /**
691
     * @param string $value
692
     *
693
     * @return $this
694
     */
695
    public function withExtra($value)
696
    {
697
        $this->data['Extra'] = $value;
698
        $this->options['form_params']['Extra'] = $value;
699
700
        return $this;
701
    }
702
}
703
704
/**
705
 * @method string getTaskId()
706
 */
707
class GetTranslateImageBatchResult extends Rpc
708
{
709
710
    /**
711
     * @param string $value
712
     *
713
     * @return $this
714
     */
715
    public function withTaskId($value)
716
    {
717
        $this->data['TaskId'] = $value;
718
        $this->options['form_params']['TaskId'] = $value;
719
720
        return $this;
721
    }
722
}
723
724
/**
725
 * @method string getEndTime()
726
 * @method $this withEndTime($value)
727
 * @method string getBeginTime()
728
 * @method $this withBeginTime($value)
729
 * @method string getApiName()
730
 * @method $this withApiName($value)
731
 * @method string getGroup()
732
 * @method $this withGroup($value)
733
 */
734
class GetTranslateReport extends Rpc
735
{
736
}
737
738
/**
739
 * @method string getOwnerId()
740
 * @method $this withOwnerId($value)
741
 * @method string getType()
742
 * @method $this withType($value)
743
 */
744
class OpenAlimtService extends Rpc
745
{
746
}
747
748
/**
749
 * @method string getSourceLanguage()
750
 * @method string getSourceText()
751
 * @method string getFormatType()
752
 * @method string getScene()
753
 * @method string getContext()
754
 * @method $this withContext($value)
755
 * @method string getTargetLanguage()
756
 */
757
class Translate extends Rpc
758
{
759
760
    /**
761
     * @param string $value
762
     *
763
     * @return $this
764
     */
765
    public function withSourceLanguage($value)
766
    {
767
        $this->data['SourceLanguage'] = $value;
768
        $this->options['form_params']['SourceLanguage'] = $value;
769
770
        return $this;
771
    }
772
773
    /**
774
     * @param string $value
775
     *
776
     * @return $this
777
     */
778
    public function withSourceText($value)
779
    {
780
        $this->data['SourceText'] = $value;
781
        $this->options['form_params']['SourceText'] = $value;
782
783
        return $this;
784
    }
785
786
    /**
787
     * @param string $value
788
     *
789
     * @return $this
790
     */
791
    public function withFormatType($value)
792
    {
793
        $this->data['FormatType'] = $value;
794
        $this->options['form_params']['FormatType'] = $value;
795
796
        return $this;
797
    }
798
799
    /**
800
     * @param string $value
801
     *
802
     * @return $this
803
     */
804
    public function withScene($value)
805
    {
806
        $this->data['Scene'] = $value;
807
        $this->options['form_params']['Scene'] = $value;
808
809
        return $this;
810
    }
811
812
    /**
813
     * @param string $value
814
     *
815
     * @return $this
816
     */
817
    public function withTargetLanguage($value)
818
    {
819
        $this->data['TargetLanguage'] = $value;
820
        $this->options['form_params']['TargetLanguage'] = $value;
821
822
        return $this;
823
    }
824
}
825
826
/**
827
 * @method string getExt()
828
 * @method string getSourceLanguage()
829
 * @method string getCertificateType()
830
 * @method string getResultType()
831
 * @method string getImageUrl()
832
 * @method string getTargetLanguage()
833
 */
834
class TranslateCertificate extends Rpc
835
{
836
837
    /**
838
     * @param string $value
839
     *
840
     * @return $this
841
     */
842
    public function withExt($value)
843
    {
844
        $this->data['Ext'] = $value;
845
        $this->options['form_params']['Ext'] = $value;
846
847
        return $this;
848
    }
849
850
    /**
851
     * @param string $value
852
     *
853
     * @return $this
854
     */
855
    public function withSourceLanguage($value)
856
    {
857
        $this->data['SourceLanguage'] = $value;
858
        $this->options['form_params']['SourceLanguage'] = $value;
859
860
        return $this;
861
    }
862
863
    /**
864
     * @param string $value
865
     *
866
     * @return $this
867
     */
868
    public function withCertificateType($value)
869
    {
870
        $this->data['CertificateType'] = $value;
871
        $this->options['form_params']['CertificateType'] = $value;
872
873
        return $this;
874
    }
875
876
    /**
877
     * @param string $value
878
     *
879
     * @return $this
880
     */
881
    public function withResultType($value)
882
    {
883
        $this->data['ResultType'] = $value;
884
        $this->options['form_params']['ResultType'] = $value;
885
886
        return $this;
887
    }
888
889
    /**
890
     * @param string $value
891
     *
892
     * @return $this
893
     */
894
    public function withImageUrl($value)
895
    {
896
        $this->data['ImageUrl'] = $value;
897
        $this->options['form_params']['ImageUrl'] = $value;
898
899
        return $this;
900
    }
901
902
    /**
903
     * @param string $value
904
     *
905
     * @return $this
906
     */
907
    public function withTargetLanguage($value)
908
    {
909
        $this->data['TargetLanguage'] = $value;
910
        $this->options['form_params']['TargetLanguage'] = $value;
911
912
        return $this;
913
    }
914
}
915
916
/**
917
 * @method string getSourceLanguage()
918
 * @method string getSourceText()
919
 * @method string getFormatType()
920
 * @method string getScene()
921
 * @method string getContext()
922
 * @method $this withContext($value)
923
 * @method string getTargetLanguage()
924
 */
925
class TranslateECommerce extends Rpc
926
{
927
928
    /**
929
     * @param string $value
930
     *
931
     * @return $this
932
     */
933
    public function withSourceLanguage($value)
934
    {
935
        $this->data['SourceLanguage'] = $value;
936
        $this->options['form_params']['SourceLanguage'] = $value;
937
938
        return $this;
939
    }
940
941
    /**
942
     * @param string $value
943
     *
944
     * @return $this
945
     */
946
    public function withSourceText($value)
947
    {
948
        $this->data['SourceText'] = $value;
949
        $this->options['form_params']['SourceText'] = $value;
950
951
        return $this;
952
    }
953
954
    /**
955
     * @param string $value
956
     *
957
     * @return $this
958
     */
959
    public function withFormatType($value)
960
    {
961
        $this->data['FormatType'] = $value;
962
        $this->options['form_params']['FormatType'] = $value;
963
964
        return $this;
965
    }
966
967
    /**
968
     * @param string $value
969
     *
970
     * @return $this
971
     */
972
    public function withScene($value)
973
    {
974
        $this->data['Scene'] = $value;
975
        $this->options['form_params']['Scene'] = $value;
976
977
        return $this;
978
    }
979
980
    /**
981
     * @param string $value
982
     *
983
     * @return $this
984
     */
985
    public function withTargetLanguage($value)
986
    {
987
        $this->data['TargetLanguage'] = $value;
988
        $this->options['form_params']['TargetLanguage'] = $value;
989
990
        return $this;
991
    }
992
}
993
994
/**
995
 * @method string getSourceLanguage()
996
 * @method string getSourceText()
997
 * @method string getFormatType()
998
 * @method string getScene()
999
 * @method string getContext()
1000
 * @method $this withContext($value)
1001
 * @method string getTargetLanguage()
1002
 */
1003
class TranslateGeneral extends Rpc
1004
{
1005
1006
    /**
1007
     * @param string $value
1008
     *
1009
     * @return $this
1010
     */
1011
    public function withSourceLanguage($value)
1012
    {
1013
        $this->data['SourceLanguage'] = $value;
1014
        $this->options['form_params']['SourceLanguage'] = $value;
1015
1016
        return $this;
1017
    }
1018
1019
    /**
1020
     * @param string $value
1021
     *
1022
     * @return $this
1023
     */
1024
    public function withSourceText($value)
1025
    {
1026
        $this->data['SourceText'] = $value;
1027
        $this->options['form_params']['SourceText'] = $value;
1028
1029
        return $this;
1030
    }
1031
1032
    /**
1033
     * @param string $value
1034
     *
1035
     * @return $this
1036
     */
1037
    public function withFormatType($value)
1038
    {
1039
        $this->data['FormatType'] = $value;
1040
        $this->options['form_params']['FormatType'] = $value;
1041
1042
        return $this;
1043
    }
1044
1045
    /**
1046
     * @param string $value
1047
     *
1048
     * @return $this
1049
     */
1050
    public function withScene($value)
1051
    {
1052
        $this->data['Scene'] = $value;
1053
        $this->options['form_params']['Scene'] = $value;
1054
1055
        return $this;
1056
    }
1057
1058
    /**
1059
     * @param string $value
1060
     *
1061
     * @return $this
1062
     */
1063
    public function withTargetLanguage($value)
1064
    {
1065
        $this->data['TargetLanguage'] = $value;
1066
        $this->options['form_params']['TargetLanguage'] = $value;
1067
1068
        return $this;
1069
    }
1070
}
1071
1072
/**
1073
 * @method string getExt()
1074
 * @method string getSourceLanguage()
1075
 * @method string getField()
1076
 * @method string getImageUrl()
1077
 * @method string getTargetLanguage()
1078
 * @method string getImageBase64()
1079
 */
1080
class TranslateImage extends Rpc
1081
{
1082
1083
    /**
1084
     * @param string $value
1085
     *
1086
     * @return $this
1087
     */
1088
    public function withExt($value)
1089
    {
1090
        $this->data['Ext'] = $value;
1091
        $this->options['form_params']['Ext'] = $value;
1092
1093
        return $this;
1094
    }
1095
1096
    /**
1097
     * @param string $value
1098
     *
1099
     * @return $this
1100
     */
1101
    public function withSourceLanguage($value)
1102
    {
1103
        $this->data['SourceLanguage'] = $value;
1104
        $this->options['form_params']['SourceLanguage'] = $value;
1105
1106
        return $this;
1107
    }
1108
1109
    /**
1110
     * @param string $value
1111
     *
1112
     * @return $this
1113
     */
1114
    public function withField($value)
1115
    {
1116
        $this->data['Field'] = $value;
1117
        $this->options['form_params']['Field'] = $value;
1118
1119
        return $this;
1120
    }
1121
1122
    /**
1123
     * @param string $value
1124
     *
1125
     * @return $this
1126
     */
1127
    public function withImageUrl($value)
1128
    {
1129
        $this->data['ImageUrl'] = $value;
1130
        $this->options['form_params']['ImageUrl'] = $value;
1131
1132
        return $this;
1133
    }
1134
1135
    /**
1136
     * @param string $value
1137
     *
1138
     * @return $this
1139
     */
1140
    public function withTargetLanguage($value)
1141
    {
1142
        $this->data['TargetLanguage'] = $value;
1143
        $this->options['form_params']['TargetLanguage'] = $value;
1144
1145
        return $this;
1146
    }
1147
1148
    /**
1149
     * @param string $value
1150
     *
1151
     * @return $this
1152
     */
1153
    public function withImageBase64($value)
1154
    {
1155
        $this->data['ImageBase64'] = $value;
1156
        $this->options['form_params']['ImageBase64'] = $value;
1157
1158
        return $this;
1159
    }
1160
}
1161
1162
/**
1163
 * @method string getExt()
1164
 * @method string getSourceLanguage()
1165
 * @method string getImageUrls()
1166
 * @method string getCustomTaskId()
1167
 * @method string getField()
1168
 * @method string getTargetLanguage()
1169
 */
1170
class TranslateImageBatch extends Rpc
1171
{
1172
1173
    /**
1174
     * @param string $value
1175
     *
1176
     * @return $this
1177
     */
1178
    public function withExt($value)
1179
    {
1180
        $this->data['Ext'] = $value;
1181
        $this->options['form_params']['Ext'] = $value;
1182
1183
        return $this;
1184
    }
1185
1186
    /**
1187
     * @param string $value
1188
     *
1189
     * @return $this
1190
     */
1191
    public function withSourceLanguage($value)
1192
    {
1193
        $this->data['SourceLanguage'] = $value;
1194
        $this->options['form_params']['SourceLanguage'] = $value;
1195
1196
        return $this;
1197
    }
1198
1199
    /**
1200
     * @param string $value
1201
     *
1202
     * @return $this
1203
     */
1204
    public function withImageUrls($value)
1205
    {
1206
        $this->data['ImageUrls'] = $value;
1207
        $this->options['form_params']['ImageUrls'] = $value;
1208
1209
        return $this;
1210
    }
1211
1212
    /**
1213
     * @param string $value
1214
     *
1215
     * @return $this
1216
     */
1217
    public function withCustomTaskId($value)
1218
    {
1219
        $this->data['CustomTaskId'] = $value;
1220
        $this->options['form_params']['CustomTaskId'] = $value;
1221
1222
        return $this;
1223
    }
1224
1225
    /**
1226
     * @param string $value
1227
     *
1228
     * @return $this
1229
     */
1230
    public function withField($value)
1231
    {
1232
        $this->data['Field'] = $value;
1233
        $this->options['form_params']['Field'] = $value;
1234
1235
        return $this;
1236
    }
1237
1238
    /**
1239
     * @param string $value
1240
     *
1241
     * @return $this
1242
     */
1243
    public function withTargetLanguage($value)
1244
    {
1245
        $this->data['TargetLanguage'] = $value;
1246
        $this->options['form_params']['TargetLanguage'] = $value;
1247
1248
        return $this;
1249
    }
1250
}
1251