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.
Test Failed
Push — master ( 3bce03...c6c685 )
by
unknown
07:03
created

RetouchBody   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 10
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A withImageURL() 0 6 1
A withLengthenDegree() 0 6 1
A withSlimDegree() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Facebody\V20191230;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddBodyTrace addBodyTrace(array $options = [])
9
 * @method AddFace addFace(array $options = [])
10
 * @method AddFaceEntity addFaceEntity(array $options = [])
11
 * @method AddFaceImageTemplate addFaceImageTemplate(array $options = [])
12
 * @method BeautifyBody beautifyBody(array $options = [])
13
 * @method BlurFace blurFace(array $options = [])
14
 * @method BodyPosture bodyPosture(array $options = [])
15
 * @method CompareFace compareFace(array $options = [])
16
 * @method CountCrowd countCrowd(array $options = [])
17
 * @method CreateBodyDb createBodyDb(array $options = [])
18
 * @method CreateBodyPerson createBodyPerson(array $options = [])
19
 * @method CreateFaceDb createFaceDb(array $options = [])
20
 * @method DeleteBodyDb deleteBodyDb(array $options = [])
21
 * @method DeleteBodyPerson deleteBodyPerson(array $options = [])
22
 * @method DeleteFace deleteFace(array $options = [])
23
 * @method DeleteFaceDb deleteFaceDb(array $options = [])
24
 * @method DeleteFaceEntity deleteFaceEntity(array $options = [])
25
 * @method DeleteFaceImageTemplate deleteFaceImageTemplate(array $options = [])
26
 * @method DetectBodyCount detectBodyCount(array $options = [])
27
 * @method DetectCelebrity detectCelebrity(array $options = [])
28
 * @method DetectChefCap detectChefCap(array $options = [])
29
 * @method DetectFace detectFace(array $options = [])
30
 * @method DetectIPCPedestrian detectIPCPedestrian(array $options = [])
31
 * @method DetectLivingFace detectLivingFace(array $options = [])
32
 * @method DetectMask detectMask(array $options = [])
33
 * @method DetectPedestrian detectPedestrian(array $options = [])
34
 * @method DetectPedestrianIntrusion detectPedestrianIntrusion(array $options = [])
35
 * @method DetectVideoLivingFace detectVideoLivingFace(array $options = [])
36
 * @method EnhanceFace enhanceFace(array $options = [])
37
 * @method ExtractFingerPrint extractFingerPrint(array $options = [])
38
 * @method ExtractPedestrianFeatureAttr extractPedestrianFeatureAttr(array $options = [])
39
 * @method ExtractPedestrianFeatureAttribute extractPedestrianFeatureAttribute(array $options = [])
40
 * @method FaceBeauty faceBeauty(array $options = [])
41
 * @method FaceFilter faceFilter(array $options = [])
42
 * @method FaceMakeup faceMakeup(array $options = [])
43
 * @method FaceTidyup faceTidyup(array $options = [])
44
 * @method GenerateHumanAnimeStyle generateHumanAnimeStyle(array $options = [])
45
 * @method GenerateHumanSketchStyle generateHumanSketchStyle(array $options = [])
46
 * @method GenRealPersonVerificationToken genRealPersonVerificationToken(array $options = [])
47
 * @method GetBodyPerson getBodyPerson(array $options = [])
48
 * @method GetFaceEntity getFaceEntity(array $options = [])
49
 * @method GetRealPersonVerificationResult getRealPersonVerificationResult(array $options = [])
50
 * @method HandPosture handPosture(array $options = [])
51
 * @method ListBodyDbs listBodyDbs(array $options = [])
52
 * @method ListBodyPerson listBodyPerson(array $options = [])
53
 * @method ListFaceDbs listFaceDbs(array $options = [])
54
 * @method ListFaceEntities listFaceEntities(array $options = [])
55
 * @method MergeImageFace mergeImageFace(array $options = [])
56
 * @method MonitorExamination monitorExamination(array $options = [])
57
 * @method PedestrianDetectAttribute pedestrianDetectAttribute(array $options = [])
58
 * @method QueryFaceImageTemplate queryFaceImageTemplate(array $options = [])
59
 * @method RecognizeAction recognizeAction(array $options = [])
60
 * @method RecognizeExpression recognizeExpression(array $options = [])
61
 * @method RecognizeFace recognizeFace(array $options = [])
62
 * @method RecognizeHandGesture recognizeHandGesture(array $options = [])
63
 * @method RecognizePublicFace recognizePublicFace(array $options = [])
64
 * @method RetouchBody retouchBody(array $options = [])
65
 * @method SearchBodyTrace searchBodyTrace(array $options = [])
66
 * @method SearchFace searchFace(array $options = [])
67
 * @method SwapFacialFeatures swapFacialFeatures(array $options = [])
68
 * @method UpdateFaceEntity updateFaceEntity(array $options = [])
69
 * @method VerifyFaceMask verifyFaceMask(array $options = [])
70
 */
71
class FacebodyApiResolver extends ApiResolver
72
{
73
}
74
75
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
76
{
77
    /** @var string */
78
    public $product = 'facebody';
79
80
    /** @var string */
81
    public $version = '2019-12-30';
82
83
    /** @var string */
84
    public $method = 'POST';
85
86
    /** @var string */
87
    public $serviceCode = 'facebody';
88
}
89
90
/**
91
 * @method string getExtraData()
92
 * @method string getPersonId()
93
 * @method string getImages()
94
 * @method string getDbId()
95
 */
96
class AddBodyTrace extends Rpc
97
{
98
99
    /**
100
     * @param string $value
101
     *
102
     * @return $this
103
     */
104
    public function withExtraData($value)
105
    {
106
        $this->data['ExtraData'] = $value;
107
        $this->options['form_params']['ExtraData'] = $value;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @param string $value
114
     *
115
     * @return $this
116
     */
117
    public function withPersonId($value)
118
    {
119
        $this->data['PersonId'] = $value;
120
        $this->options['form_params']['PersonId'] = $value;
121
122
        return $this;
123
    }
124
125
    /**
126
     * @param string $value
127
     *
128
     * @return $this
129
     */
130
    public function withImages($value)
131
    {
132
        $this->data['Images'] = $value;
133
        $this->options['form_params']['Images'] = $value;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @param string $value
140
     *
141
     * @return $this
142
     */
143
    public function withDbId($value)
144
    {
145
        $this->data['DbId'] = $value;
146
        $this->options['form_params']['DbId'] = $value;
147
148
        return $this;
149
    }
150
}
151
152
/**
153
 * @method string getEntityId()
154
 * @method string getExtraData()
155
 * @method string getDbName()
156
 * @method string getImageUrl()
157
 */
158
class AddFace extends Rpc
159
{
160
161
    /**
162
     * @param string $value
163
     *
164
     * @return $this
165
     */
166
    public function withEntityId($value)
167
    {
168
        $this->data['EntityId'] = $value;
169
        $this->options['form_params']['EntityId'] = $value;
170
171
        return $this;
172
    }
173
174
    /**
175
     * @param string $value
176
     *
177
     * @return $this
178
     */
179
    public function withExtraData($value)
180
    {
181
        $this->data['ExtraData'] = $value;
182
        $this->options['form_params']['ExtraData'] = $value;
183
184
        return $this;
185
    }
186
187
    /**
188
     * @param string $value
189
     *
190
     * @return $this
191
     */
192
    public function withDbName($value)
193
    {
194
        $this->data['DbName'] = $value;
195
        $this->options['form_params']['DbName'] = $value;
196
197
        return $this;
198
    }
199
200
    /**
201
     * @param string $value
202
     *
203
     * @return $this
204
     */
205
    public function withImageUrl($value)
206
    {
207
        $this->data['ImageUrl'] = $value;
208
        $this->options['form_params']['ImageUrl'] = $value;
209
210
        return $this;
211
    }
212
}
213
214
/**
215
 * @method string getEntityId()
216
 * @method string getLabels()
217
 * @method string getDbName()
218
 */
219
class AddFaceEntity extends Rpc
220
{
221
222
    /**
223
     * @param string $value
224
     *
225
     * @return $this
226
     */
227
    public function withEntityId($value)
228
    {
229
        $this->data['EntityId'] = $value;
230
        $this->options['form_params']['EntityId'] = $value;
231
232
        return $this;
233
    }
234
235
    /**
236
     * @param string $value
237
     *
238
     * @return $this
239
     */
240
    public function withLabels($value)
241
    {
242
        $this->data['Labels'] = $value;
243
        $this->options['form_params']['Labels'] = $value;
244
245
        return $this;
246
    }
247
248
    /**
249
     * @param string $value
250
     *
251
     * @return $this
252
     */
253
    public function withDbName($value)
254
    {
255
        $this->data['DbName'] = $value;
256
        $this->options['form_params']['DbName'] = $value;
257
258
        return $this;
259
    }
260
}
261
262
/**
263
 * @method string getUserId()
264
 * @method string getImageURL()
265
 */
266
class AddFaceImageTemplate extends Rpc
267
{
268
269
    /**
270
     * @param string $value
271
     *
272
     * @return $this
273
     */
274
    public function withUserId($value)
275
    {
276
        $this->data['UserId'] = $value;
277
        $this->options['form_params']['UserId'] = $value;
278
279
        return $this;
280
    }
281
282
    /**
283
     * @param string $value
284
     *
285
     * @return $this
286
     */
287
    public function withImageURL($value)
288
    {
289
        $this->data['ImageURL'] = $value;
290
        $this->options['form_params']['ImageURL'] = $value;
291
292
        return $this;
293
    }
294
}
295
296
/**
297
 * @method string getBodyBoxes()
298
 * @method string getLengthenDegree()
299
 * @method string getMaleLiquifyDegree()
300
 * @method string getOriginalWidth()
301
 * @method string getFaceList()
302
 * @method string getAgeRange()
303
 * @method string getCustom()
304
 * @method string getOriginalHeight()
305
 * @method string getImageURL()
306
 * @method string getFemaleLiquifyDegree()
307
 * @method string getPoseList()
308
 */
309
class BeautifyBody extends Rpc
310
{
311
312
    /**
313
     * @param string $value
314
     *
315
     * @return $this
316
     */
317
    public function withBodyBoxes($value)
318
    {
319
        $this->data['BodyBoxes'] = $value;
320
        $this->options['form_params']['BodyBoxes'] = $value;
321
322
        return $this;
323
    }
324
325
    /**
326
     * @param string $value
327
     *
328
     * @return $this
329
     */
330
    public function withLengthenDegree($value)
331
    {
332
        $this->data['LengthenDegree'] = $value;
333
        $this->options['form_params']['LengthenDegree'] = $value;
334
335
        return $this;
336
    }
337
338
    /**
339
     * @param string $value
340
     *
341
     * @return $this
342
     */
343
    public function withMaleLiquifyDegree($value)
344
    {
345
        $this->data['MaleLiquifyDegree'] = $value;
346
        $this->options['form_params']['MaleLiquifyDegree'] = $value;
347
348
        return $this;
349
    }
350
351
    /**
352
     * @param string $value
353
     *
354
     * @return $this
355
     */
356
    public function withOriginalWidth($value)
357
    {
358
        $this->data['OriginalWidth'] = $value;
359
        $this->options['form_params']['OriginalWidth'] = $value;
360
361
        return $this;
362
    }
363
364
    /**
365
     * @param string $value
366
     *
367
     * @return $this
368
     */
369
    public function withFaceList($value)
370
    {
371
        $this->data['FaceList'] = $value;
372
        $this->options['form_params']['FaceList'] = $value;
373
374
        return $this;
375
    }
376
377
    /**
378
     * @param string $value
379
     *
380
     * @return $this
381
     */
382
    public function withAgeRange($value)
383
    {
384
        $this->data['AgeRange'] = $value;
385
        $this->options['form_params']['AgeRange'] = $value;
386
387
        return $this;
388
    }
389
390
    /**
391
     * @param string $value
392
     *
393
     * @return $this
394
     */
395
    public function withCustom($value)
396
    {
397
        $this->data['Custom'] = $value;
398
        $this->options['form_params']['Custom'] = $value;
399
400
        return $this;
401
    }
402
403
    /**
404
     * @param string $value
405
     *
406
     * @return $this
407
     */
408
    public function withOriginalHeight($value)
409
    {
410
        $this->data['OriginalHeight'] = $value;
411
        $this->options['form_params']['OriginalHeight'] = $value;
412
413
        return $this;
414
    }
415
416
    /**
417
     * @param string $value
418
     *
419
     * @return $this
420
     */
421
    public function withImageURL($value)
422
    {
423
        $this->data['ImageURL'] = $value;
424
        $this->options['form_params']['ImageURL'] = $value;
425
426
        return $this;
427
    }
428
429
    /**
430
     * @param string $value
431
     *
432
     * @return $this
433
     */
434
    public function withFemaleLiquifyDegree($value)
435
    {
436
        $this->data['FemaleLiquifyDegree'] = $value;
437
        $this->options['form_params']['FemaleLiquifyDegree'] = $value;
438
439
        return $this;
440
    }
441
442
    /**
443
     * @param string $value
444
     *
445
     * @return $this
446
     */
447
    public function withPoseList($value)
448
    {
449
        $this->data['PoseList'] = $value;
450
        $this->options['form_params']['PoseList'] = $value;
451
452
        return $this;
453
    }
454
}
455
456
/**
457
 * @method string getImageURL()
458
 */
459
class BlurFace extends Rpc
460
{
461
462
    /**
463
     * @param string $value
464
     *
465
     * @return $this
466
     */
467
    public function withImageURL($value)
468
    {
469
        $this->data['ImageURL'] = $value;
470
        $this->options['form_params']['ImageURL'] = $value;
471
472
        return $this;
473
    }
474
}
475
476
/**
477
 * @method string getImageURL()
478
 */
479
class BodyPosture extends Rpc
480
{
481
482
    /**
483
     * @param string $value
484
     *
485
     * @return $this
486
     */
487
    public function withImageURL($value)
488
    {
489
        $this->data['ImageURL'] = $value;
490
        $this->options['form_params']['ImageURL'] = $value;
491
492
        return $this;
493
    }
494
}
495
496
/**
497
 * @method string getImageDataA()
498
 * @method string getImageDataB()
499
 * @method string getQualityScoreThreshold()
500
 * @method string getImageURLB()
501
 * @method string getImageURLA()
502
 * @method string getImageType()
503
 */
504
class CompareFace extends Rpc
505
{
506
507
    /**
508
     * @param string $value
509
     *
510
     * @return $this
511
     */
512
    public function withImageDataA($value)
513
    {
514
        $this->data['ImageDataA'] = $value;
515
        $this->options['form_params']['ImageDataA'] = $value;
516
517
        return $this;
518
    }
519
520
    /**
521
     * @param string $value
522
     *
523
     * @return $this
524
     */
525
    public function withImageDataB($value)
526
    {
527
        $this->data['ImageDataB'] = $value;
528
        $this->options['form_params']['ImageDataB'] = $value;
529
530
        return $this;
531
    }
532
533
    /**
534
     * @param string $value
535
     *
536
     * @return $this
537
     */
538
    public function withQualityScoreThreshold($value)
539
    {
540
        $this->data['QualityScoreThreshold'] = $value;
541
        $this->options['form_params']['QualityScoreThreshold'] = $value;
542
543
        return $this;
544
    }
545
546
    /**
547
     * @param string $value
548
     *
549
     * @return $this
550
     */
551
    public function withImageURLB($value)
552
    {
553
        $this->data['ImageURLB'] = $value;
554
        $this->options['form_params']['ImageURLB'] = $value;
555
556
        return $this;
557
    }
558
559
    /**
560
     * @param string $value
561
     *
562
     * @return $this
563
     */
564
    public function withImageURLA($value)
565
    {
566
        $this->data['ImageURLA'] = $value;
567
        $this->options['form_params']['ImageURLA'] = $value;
568
569
        return $this;
570
    }
571
572
    /**
573
     * @param string $value
574
     *
575
     * @return $this
576
     */
577
    public function withImageType($value)
578
    {
579
        $this->data['ImageType'] = $value;
580
        $this->options['form_params']['ImageType'] = $value;
581
582
        return $this;
583
    }
584
}
585
586
/**
587
 * @method string getIsShow()
588
 * @method string getImageURL()
589
 */
590
class CountCrowd extends Rpc
591
{
592
593
    /**
594
     * @param string $value
595
     *
596
     * @return $this
597
     */
598
    public function withIsShow($value)
599
    {
600
        $this->data['IsShow'] = $value;
601
        $this->options['form_params']['IsShow'] = $value;
602
603
        return $this;
604
    }
605
606
    /**
607
     * @param string $value
608
     *
609
     * @return $this
610
     */
611
    public function withImageURL($value)
612
    {
613
        $this->data['ImageURL'] = $value;
614
        $this->options['form_params']['ImageURL'] = $value;
615
616
        return $this;
617
    }
618
}
619
620
/**
621
 * @method string getName()
622
 */
623
class CreateBodyDb extends Rpc
624
{
625
626
    /**
627
     * @param string $value
628
     *
629
     * @return $this
630
     */
631
    public function withName($value)
632
    {
633
        $this->data['Name'] = $value;
634
        $this->options['form_params']['Name'] = $value;
635
636
        return $this;
637
    }
638
}
639
640
/**
641
 * @method string getDbId()
642
 * @method string getName()
643
 */
644
class CreateBodyPerson extends Rpc
645
{
646
647
    /**
648
     * @param string $value
649
     *
650
     * @return $this
651
     */
652
    public function withDbId($value)
653
    {
654
        $this->data['DbId'] = $value;
655
        $this->options['form_params']['DbId'] = $value;
656
657
        return $this;
658
    }
659
660
    /**
661
     * @param string $value
662
     *
663
     * @return $this
664
     */
665
    public function withName($value)
666
    {
667
        $this->data['Name'] = $value;
668
        $this->options['form_params']['Name'] = $value;
669
670
        return $this;
671
    }
672
}
673
674
/**
675
 * @method string getName()
676
 */
677
class CreateFaceDb extends Rpc
678
{
679
680
    /**
681
     * @param string $value
682
     *
683
     * @return $this
684
     */
685
    public function withName($value)
686
    {
687
        $this->data['Name'] = $value;
688
        $this->options['form_params']['Name'] = $value;
689
690
        return $this;
691
    }
692
}
693
694
/**
695
 * @method string getId()
696
 */
697
class DeleteBodyDb extends Rpc
698
{
699
700
    /**
701
     * @param string $value
702
     *
703
     * @return $this
704
     */
705
    public function withId($value)
706
    {
707
        $this->data['Id'] = $value;
708
        $this->options['form_params']['Id'] = $value;
709
710
        return $this;
711
    }
712
}
713
714
/**
715
 * @method string getPersonId()
716
 * @method string getDbId()
717
 */
718
class DeleteBodyPerson extends Rpc
719
{
720
721
    /**
722
     * @param string $value
723
     *
724
     * @return $this
725
     */
726
    public function withPersonId($value)
727
    {
728
        $this->data['PersonId'] = $value;
729
        $this->options['form_params']['PersonId'] = $value;
730
731
        return $this;
732
    }
733
734
    /**
735
     * @param string $value
736
     *
737
     * @return $this
738
     */
739
    public function withDbId($value)
740
    {
741
        $this->data['DbId'] = $value;
742
        $this->options['form_params']['DbId'] = $value;
743
744
        return $this;
745
    }
746
}
747
748
/**
749
 * @method string getFaceId()
750
 * @method string getDbName()
751
 */
752
class DeleteFace extends Rpc
753
{
754
755
    /**
756
     * @param string $value
757
     *
758
     * @return $this
759
     */
760
    public function withFaceId($value)
761
    {
762
        $this->data['FaceId'] = $value;
763
        $this->options['form_params']['FaceId'] = $value;
764
765
        return $this;
766
    }
767
768
    /**
769
     * @param string $value
770
     *
771
     * @return $this
772
     */
773
    public function withDbName($value)
774
    {
775
        $this->data['DbName'] = $value;
776
        $this->options['form_params']['DbName'] = $value;
777
778
        return $this;
779
    }
780
}
781
782
/**
783
 * @method string getName()
784
 */
785
class DeleteFaceDb extends Rpc
786
{
787
788
    /**
789
     * @param string $value
790
     *
791
     * @return $this
792
     */
793
    public function withName($value)
794
    {
795
        $this->data['Name'] = $value;
796
        $this->options['form_params']['Name'] = $value;
797
798
        return $this;
799
    }
800
}
801
802
/**
803
 * @method string getEntityId()
804
 * @method string getDbName()
805
 */
806
class DeleteFaceEntity extends Rpc
807
{
808
809
    /**
810
     * @param string $value
811
     *
812
     * @return $this
813
     */
814
    public function withEntityId($value)
815
    {
816
        $this->data['EntityId'] = $value;
817
        $this->options['form_params']['EntityId'] = $value;
818
819
        return $this;
820
    }
821
822
    /**
823
     * @param string $value
824
     *
825
     * @return $this
826
     */
827
    public function withDbName($value)
828
    {
829
        $this->data['DbName'] = $value;
830
        $this->options['form_params']['DbName'] = $value;
831
832
        return $this;
833
    }
834
}
835
836
/**
837
 * @method string getUserId()
838
 * @method string getTemplateId()
839
 */
840
class DeleteFaceImageTemplate extends Rpc
841
{
842
843
    /**
844
     * @param string $value
845
     *
846
     * @return $this
847
     */
848
    public function withUserId($value)
849
    {
850
        $this->data['UserId'] = $value;
851
        $this->options['form_params']['UserId'] = $value;
852
853
        return $this;
854
    }
855
856
    /**
857
     * @param string $value
858
     *
859
     * @return $this
860
     */
861
    public function withTemplateId($value)
862
    {
863
        $this->data['TemplateId'] = $value;
864
        $this->options['form_params']['TemplateId'] = $value;
865
866
        return $this;
867
    }
868
}
869
870
/**
871
 * @method string getImageURL()
872
 */
873
class DetectBodyCount extends Rpc
874
{
875
876
    /**
877
     * @param string $value
878
     *
879
     * @return $this
880
     */
881
    public function withImageURL($value)
882
    {
883
        $this->data['ImageURL'] = $value;
884
        $this->options['form_params']['ImageURL'] = $value;
885
886
        return $this;
887
    }
888
}
889
890
/**
891
 * @method string getImageURL()
892
 */
893
class DetectCelebrity extends Rpc
894
{
895
896
    /**
897
     * @param string $value
898
     *
899
     * @return $this
900
     */
901
    public function withImageURL($value)
902
    {
903
        $this->data['ImageURL'] = $value;
904
        $this->options['form_params']['ImageURL'] = $value;
905
906
        return $this;
907
    }
908
}
909
910
/**
911
 * @method string getImageURL()
912
 */
913
class DetectChefCap extends Rpc
914
{
915
916
    /**
917
     * @param string $value
918
     *
919
     * @return $this
920
     */
921
    public function withImageURL($value)
922
    {
923
        $this->data['ImageURL'] = $value;
924
        $this->options['form_params']['ImageURL'] = $value;
925
926
        return $this;
927
    }
928
}
929
930
/**
931
 * @method string getImageType()
932
 * @method string getImageURL()
933
 */
934
class DetectFace extends Rpc
935
{
936
937
    /**
938
     * @param string $value
939
     *
940
     * @return $this
941
     */
942
    public function withImageType($value)
943
    {
944
        $this->data['ImageType'] = $value;
945
        $this->options['form_params']['ImageType'] = $value;
946
947
        return $this;
948
    }
949
950
    /**
951
     * @param string $value
952
     *
953
     * @return $this
954
     */
955
    public function withImageURL($value)
956
    {
957
        $this->data['ImageURL'] = $value;
958
        $this->options['form_params']['ImageURL'] = $value;
959
960
        return $this;
961
    }
962
}
963
964
/**
965
 * @method string getContinueOnError()
966
 * @method string getHeight()
967
 * @method string getImageData()
968
 * @method string getDataId()
969
 * @method string getImageURL()
970
 * @method string getWidth()
971
 */
972
class DetectIPCPedestrian extends Rpc
973
{
974
975
    /**
976
     * @param string $value
977
     *
978
     * @return $this
979
     */
980
    public function withContinueOnError($value)
981
    {
982
        $this->data['ContinueOnError'] = $value;
983
        $this->options['form_params']['ContinueOnError'] = $value;
984
985
        return $this;
986
    }
987
988
    /**
989
     * @param string $value
990
     *
991
     * @return $this
992
     */
993
    public function withHeight($value)
994
    {
995
        $this->data['Height'] = $value;
996
        $this->options['form_params']['Height'] = $value;
997
998
        return $this;
999
    }
1000
1001
    /**
1002
     * @param string $value
1003
     *
1004
     * @return $this
1005
     */
1006
    public function withImageData($value)
1007
    {
1008
        $this->data['ImageData'] = $value;
1009
        $this->options['form_params']['ImageData'] = $value;
1010
1011
        return $this;
1012
    }
1013
1014
    /**
1015
     * @param string $value
1016
     *
1017
     * @return $this
1018
     */
1019
    public function withDataId($value)
1020
    {
1021
        $this->data['DataId'] = $value;
1022
        $this->options['form_params']['DataId'] = $value;
1023
1024
        return $this;
1025
    }
1026
1027
    /**
1028
     * @param string $value
1029
     *
1030
     * @return $this
1031
     */
1032
    public function withImageURL($value)
1033
    {
1034
        $this->data['ImageURL'] = $value;
1035
        $this->options['form_params']['ImageURL'] = $value;
1036
1037
        return $this;
1038
    }
1039
1040
    /**
1041
     * @param string $value
1042
     *
1043
     * @return $this
1044
     */
1045
    public function withWidth($value)
1046
    {
1047
        $this->data['Width'] = $value;
1048
        $this->options['form_params']['Width'] = $value;
1049
1050
        return $this;
1051
    }
1052
}
1053
1054
/**
1055
 * @method array getTasks()
1056
 */
1057
class DetectLivingFace extends Rpc
1058
{
1059
1060
    /**
1061
     * @param array $tasks
1062
     *
1063
     * @return $this
1064
     */
1065
	public function withTasks(array $tasks)
1066
	{
1067
	    $this->data['Tasks'] = $tasks;
1068
		foreach ($tasks as $depth1 => $depth1Value) {
1069
			if(isset($depth1Value['ImageURL'])){
1070
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
1071
			}
1072
			if(isset($depth1Value['ImageData'])){
1073
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageData'] = $depth1Value['ImageData'];
1074
			}
1075
		}
1076
1077
		return $this;
1078
    }
1079
}
1080
1081
/**
1082
 * @method string getImageURL()
1083
 */
1084
class DetectMask extends Rpc
1085
{
1086
1087
    /**
1088
     * @param string $value
1089
     *
1090
     * @return $this
1091
     */
1092
    public function withImageURL($value)
1093
    {
1094
        $this->data['ImageURL'] = $value;
1095
        $this->options['form_params']['ImageURL'] = $value;
1096
1097
        return $this;
1098
    }
1099
}
1100
1101
/**
1102
 * @method string getImageURL()
1103
 */
1104
class DetectPedestrian extends Rpc
1105
{
1106
1107
    /**
1108
     * @param string $value
1109
     *
1110
     * @return $this
1111
     */
1112
    public function withImageURL($value)
1113
    {
1114
        $this->data['ImageURL'] = $value;
1115
        $this->options['form_params']['ImageURL'] = $value;
1116
1117
        return $this;
1118
    }
1119
}
1120
1121
/**
1122
 * @method string getDetectRegion()
1123
 * @method string getRegionType()
1124
 * @method string getImageURL()
1125
 */
1126
class DetectPedestrianIntrusion extends Rpc
1127
{
1128
1129
    /**
1130
     * @param string $value
1131
     *
1132
     * @return $this
1133
     */
1134
    public function withDetectRegion($value)
1135
    {
1136
        $this->data['DetectRegion'] = $value;
1137
        $this->options['form_params']['DetectRegion'] = $value;
1138
1139
        return $this;
1140
    }
1141
1142
    /**
1143
     * @param string $value
1144
     *
1145
     * @return $this
1146
     */
1147
    public function withRegionType($value)
1148
    {
1149
        $this->data['RegionType'] = $value;
1150
        $this->options['form_params']['RegionType'] = $value;
1151
1152
        return $this;
1153
    }
1154
1155
    /**
1156
     * @param string $value
1157
     *
1158
     * @return $this
1159
     */
1160
    public function withImageURL($value)
1161
    {
1162
        $this->data['ImageURL'] = $value;
1163
        $this->options['form_params']['ImageURL'] = $value;
1164
1165
        return $this;
1166
    }
1167
}
1168
1169
/**
1170
 * @method string getVideoUrl()
1171
 */
1172
class DetectVideoLivingFace extends Rpc
1173
{
1174
1175
    /**
1176
     * @param string $value
1177
     *
1178
     * @return $this
1179
     */
1180
    public function withVideoUrl($value)
1181
    {
1182
        $this->data['VideoUrl'] = $value;
1183
        $this->options['form_params']['VideoUrl'] = $value;
1184
1185
        return $this;
1186
    }
1187
}
1188
1189
/**
1190
 * @method string getImageURL()
1191
 */
1192
class EnhanceFace extends Rpc
1193
{
1194
1195
    /**
1196
     * @param string $value
1197
     *
1198
     * @return $this
1199
     */
1200
    public function withImageURL($value)
1201
    {
1202
        $this->data['ImageURL'] = $value;
1203
        $this->options['form_params']['ImageURL'] = $value;
1204
1205
        return $this;
1206
    }
1207
}
1208
1209
/**
1210
 * @method string getImageData()
1211
 * @method string getImageURL()
1212
 */
1213
class ExtractFingerPrint extends Rpc
1214
{
1215
1216
    /**
1217
     * @param string $value
1218
     *
1219
     * @return $this
1220
     */
1221
    public function withImageData($value)
1222
    {
1223
        $this->data['ImageData'] = $value;
1224
        $this->options['form_params']['ImageData'] = $value;
1225
1226
        return $this;
1227
    }
1228
1229
    /**
1230
     * @param string $value
1231
     *
1232
     * @return $this
1233
     */
1234
    public function withImageURL($value)
1235
    {
1236
        $this->data['ImageURL'] = $value;
1237
        $this->options['form_params']['ImageURL'] = $value;
1238
1239
        return $this;
1240
    }
1241
}
1242
1243
/**
1244
 * @method string getMode()
1245
 * @method string getImageURL()
1246
 * @method string getServiceVersion()
1247
 */
1248
class ExtractPedestrianFeatureAttr extends Rpc
1249
{
1250
1251
    /**
1252
     * @param string $value
1253
     *
1254
     * @return $this
1255
     */
1256
    public function withMode($value)
1257
    {
1258
        $this->data['Mode'] = $value;
1259
        $this->options['form_params']['Mode'] = $value;
1260
1261
        return $this;
1262
    }
1263
1264
    /**
1265
     * @param string $value
1266
     *
1267
     * @return $this
1268
     */
1269
    public function withImageURL($value)
1270
    {
1271
        $this->data['ImageURL'] = $value;
1272
        $this->options['form_params']['ImageURL'] = $value;
1273
1274
        return $this;
1275
    }
1276
1277
    /**
1278
     * @param string $value
1279
     *
1280
     * @return $this
1281
     */
1282
    public function withServiceVersion($value)
1283
    {
1284
        $this->data['ServiceVersion'] = $value;
1285
        $this->options['form_params']['ServiceVersion'] = $value;
1286
1287
        return $this;
1288
    }
1289
}
1290
1291
/**
1292
 * @method array getUrlList()
1293
 * @method string getMode()
1294
 * @method string getImageURL()
1295
 */
1296
class ExtractPedestrianFeatureAttribute extends Rpc
1297
{
1298
1299
    /**
1300
     * @param array $urlList
1301
     *
1302
     * @return $this
1303
     */
1304
	public function withUrlList(array $urlList)
1305
	{
1306
	    $this->data['UrlList'] = $urlList;
1307
		foreach ($urlList as $depth1 => $depth1Value) {
1308
			if(isset($depth1Value['Url'])){
1309
				$this->options['form_params']['UrlList.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
1310
			}
1311
		}
1312
1313
		return $this;
1314
    }
1315
1316
    /**
1317
     * @param string $value
1318
     *
1319
     * @return $this
1320
     */
1321
    public function withMode($value)
1322
    {
1323
        $this->data['Mode'] = $value;
1324
        $this->options['form_params']['Mode'] = $value;
1325
1326
        return $this;
1327
    }
1328
1329
    /**
1330
     * @param string $value
1331
     *
1332
     * @return $this
1333
     */
1334
    public function withImageURL($value)
1335
    {
1336
        $this->data['ImageURL'] = $value;
1337
        $this->options['form_params']['ImageURL'] = $value;
1338
1339
        return $this;
1340
    }
1341
}
1342
1343
/**
1344
 * @method string getWhite()
1345
 * @method string getSmooth()
1346
 * @method string getSharp()
1347
 * @method string getImageURL()
1348
 */
1349
class FaceBeauty extends Rpc
1350
{
1351
1352
    /**
1353
     * @param string $value
1354
     *
1355
     * @return $this
1356
     */
1357
    public function withWhite($value)
1358
    {
1359
        $this->data['White'] = $value;
1360
        $this->options['form_params']['White'] = $value;
1361
1362
        return $this;
1363
    }
1364
1365
    /**
1366
     * @param string $value
1367
     *
1368
     * @return $this
1369
     */
1370
    public function withSmooth($value)
1371
    {
1372
        $this->data['Smooth'] = $value;
1373
        $this->options['form_params']['Smooth'] = $value;
1374
1375
        return $this;
1376
    }
1377
1378
    /**
1379
     * @param string $value
1380
     *
1381
     * @return $this
1382
     */
1383
    public function withSharp($value)
1384
    {
1385
        $this->data['Sharp'] = $value;
1386
        $this->options['form_params']['Sharp'] = $value;
1387
1388
        return $this;
1389
    }
1390
1391
    /**
1392
     * @param string $value
1393
     *
1394
     * @return $this
1395
     */
1396
    public function withImageURL($value)
1397
    {
1398
        $this->data['ImageURL'] = $value;
1399
        $this->options['form_params']['ImageURL'] = $value;
1400
1401
        return $this;
1402
    }
1403
}
1404
1405
/**
1406
 * @method string getStrength()
1407
 * @method string getResourceType()
1408
 * @method string getImageURL()
1409
 */
1410
class FaceFilter extends Rpc
1411
{
1412
1413
    /**
1414
     * @param string $value
1415
     *
1416
     * @return $this
1417
     */
1418
    public function withStrength($value)
1419
    {
1420
        $this->data['Strength'] = $value;
1421
        $this->options['form_params']['Strength'] = $value;
1422
1423
        return $this;
1424
    }
1425
1426
    /**
1427
     * @param string $value
1428
     *
1429
     * @return $this
1430
     */
1431
    public function withResourceType($value)
1432
    {
1433
        $this->data['ResourceType'] = $value;
1434
        $this->options['form_params']['ResourceType'] = $value;
1435
1436
        return $this;
1437
    }
1438
1439
    /**
1440
     * @param string $value
1441
     *
1442
     * @return $this
1443
     */
1444
    public function withImageURL($value)
1445
    {
1446
        $this->data['ImageURL'] = $value;
1447
        $this->options['form_params']['ImageURL'] = $value;
1448
1449
        return $this;
1450
    }
1451
}
1452
1453
/**
1454
 * @method string getStrength()
1455
 * @method string getMakeupType()
1456
 * @method string getResourceType()
1457
 * @method string getImageURL()
1458
 */
1459
class FaceMakeup extends Rpc
1460
{
1461
1462
    /**
1463
     * @param string $value
1464
     *
1465
     * @return $this
1466
     */
1467
    public function withStrength($value)
1468
    {
1469
        $this->data['Strength'] = $value;
1470
        $this->options['form_params']['Strength'] = $value;
1471
1472
        return $this;
1473
    }
1474
1475
    /**
1476
     * @param string $value
1477
     *
1478
     * @return $this
1479
     */
1480
    public function withMakeupType($value)
1481
    {
1482
        $this->data['MakeupType'] = $value;
1483
        $this->options['form_params']['MakeupType'] = $value;
1484
1485
        return $this;
1486
    }
1487
1488
    /**
1489
     * @param string $value
1490
     *
1491
     * @return $this
1492
     */
1493
    public function withResourceType($value)
1494
    {
1495
        $this->data['ResourceType'] = $value;
1496
        $this->options['form_params']['ResourceType'] = $value;
1497
1498
        return $this;
1499
    }
1500
1501
    /**
1502
     * @param string $value
1503
     *
1504
     * @return $this
1505
     */
1506
    public function withImageURL($value)
1507
    {
1508
        $this->data['ImageURL'] = $value;
1509
        $this->options['form_params']['ImageURL'] = $value;
1510
1511
        return $this;
1512
    }
1513
}
1514
1515
/**
1516
 * @method string getShapeType()
1517
 * @method string getStrength()
1518
 * @method string getImageURL()
1519
 */
1520
class FaceTidyup extends Rpc
1521
{
1522
1523
    /**
1524
     * @param string $value
1525
     *
1526
     * @return $this
1527
     */
1528
    public function withShapeType($value)
1529
    {
1530
        $this->data['ShapeType'] = $value;
1531
        $this->options['form_params']['ShapeType'] = $value;
1532
1533
        return $this;
1534
    }
1535
1536
    /**
1537
     * @param string $value
1538
     *
1539
     * @return $this
1540
     */
1541
    public function withStrength($value)
1542
    {
1543
        $this->data['Strength'] = $value;
1544
        $this->options['form_params']['Strength'] = $value;
1545
1546
        return $this;
1547
    }
1548
1549
    /**
1550
     * @param string $value
1551
     *
1552
     * @return $this
1553
     */
1554
    public function withImageURL($value)
1555
    {
1556
        $this->data['ImageURL'] = $value;
1557
        $this->options['form_params']['ImageURL'] = $value;
1558
1559
        return $this;
1560
    }
1561
}
1562
1563
/**
1564
 * @method string getAlgoType()
1565
 * @method $this withAlgoType($value)
1566
 * @method string getImageURL()
1567
 * @method $this withImageURL($value)
1568
 */
1569
class GenerateHumanAnimeStyle extends Rpc
1570
{
1571
}
1572
1573
/**
1574
 * @method string getReturnType()
1575
 * @method string getImageURL()
1576
 */
1577
class GenerateHumanSketchStyle extends Rpc
1578
{
1579
1580
    /**
1581
     * @param string $value
1582
     *
1583
     * @return $this
1584
     */
1585
    public function withReturnType($value)
1586
    {
1587
        $this->data['ReturnType'] = $value;
1588
        $this->options['form_params']['ReturnType'] = $value;
1589
1590
        return $this;
1591
    }
1592
1593
    /**
1594
     * @param string $value
1595
     *
1596
     * @return $this
1597
     */
1598
    public function withImageURL($value)
1599
    {
1600
        $this->data['ImageURL'] = $value;
1601
        $this->options['form_params']['ImageURL'] = $value;
1602
1603
        return $this;
1604
    }
1605
}
1606
1607
/**
1608
 * @method string getMetaInfo()
1609
 * @method string getCertificateNumber()
1610
 * @method string getCertificateName()
1611
 */
1612
class GenRealPersonVerificationToken extends Rpc
1613
{
1614
1615
    /**
1616
     * @param string $value
1617
     *
1618
     * @return $this
1619
     */
1620
    public function withMetaInfo($value)
1621
    {
1622
        $this->data['MetaInfo'] = $value;
1623
        $this->options['form_params']['MetaInfo'] = $value;
1624
1625
        return $this;
1626
    }
1627
1628
    /**
1629
     * @param string $value
1630
     *
1631
     * @return $this
1632
     */
1633
    public function withCertificateNumber($value)
1634
    {
1635
        $this->data['CertificateNumber'] = $value;
1636
        $this->options['form_params']['CertificateNumber'] = $value;
1637
1638
        return $this;
1639
    }
1640
1641
    /**
1642
     * @param string $value
1643
     *
1644
     * @return $this
1645
     */
1646
    public function withCertificateName($value)
1647
    {
1648
        $this->data['CertificateName'] = $value;
1649
        $this->options['form_params']['CertificateName'] = $value;
1650
1651
        return $this;
1652
    }
1653
}
1654
1655
/**
1656
 * @method string getPersonId()
1657
 * @method $this withPersonId($value)
1658
 * @method string getDbId()
1659
 * @method $this withDbId($value)
1660
 */
1661
class GetBodyPerson extends Rpc
1662
{
1663
1664
    /** @var string */
1665
    public $method = 'GET';
1666
}
1667
1668
/**
1669
 * @method string getEntityId()
1670
 * @method string getDbName()
1671
 */
1672
class GetFaceEntity extends Rpc
1673
{
1674
1675
    /**
1676
     * @param string $value
1677
     *
1678
     * @return $this
1679
     */
1680
    public function withEntityId($value)
1681
    {
1682
        $this->data['EntityId'] = $value;
1683
        $this->options['form_params']['EntityId'] = $value;
1684
1685
        return $this;
1686
    }
1687
1688
    /**
1689
     * @param string $value
1690
     *
1691
     * @return $this
1692
     */
1693
    public function withDbName($value)
1694
    {
1695
        $this->data['DbName'] = $value;
1696
        $this->options['form_params']['DbName'] = $value;
1697
1698
        return $this;
1699
    }
1700
}
1701
1702
/**
1703
 * @method string getMaterialHash()
1704
 * @method string getVerificationToken()
1705
 */
1706
class GetRealPersonVerificationResult extends Rpc
1707
{
1708
1709
    /**
1710
     * @param string $value
1711
     *
1712
     * @return $this
1713
     */
1714
    public function withMaterialHash($value)
1715
    {
1716
        $this->data['MaterialHash'] = $value;
1717
        $this->options['form_params']['MaterialHash'] = $value;
1718
1719
        return $this;
1720
    }
1721
1722
    /**
1723
     * @param string $value
1724
     *
1725
     * @return $this
1726
     */
1727
    public function withVerificationToken($value)
1728
    {
1729
        $this->data['VerificationToken'] = $value;
1730
        $this->options['form_params']['VerificationToken'] = $value;
1731
1732
        return $this;
1733
    }
1734
}
1735
1736
/**
1737
 * @method string getImageURL()
1738
 */
1739
class HandPosture extends Rpc
1740
{
1741
1742
    /**
1743
     * @param string $value
1744
     *
1745
     * @return $this
1746
     */
1747
    public function withImageURL($value)
1748
    {
1749
        $this->data['ImageURL'] = $value;
1750
        $this->options['form_params']['ImageURL'] = $value;
1751
1752
        return $this;
1753
    }
1754
}
1755
1756
/**
1757
 * @method string getLimit()
1758
 * @method $this withLimit($value)
1759
 * @method string getOffset()
1760
 * @method $this withOffset($value)
1761
 */
1762
class ListBodyDbs extends Rpc
1763
{
1764
1765
    /** @var string */
1766
    public $method = 'GET';
1767
}
1768
1769
/**
1770
 * @method string getLimit()
1771
 * @method $this withLimit($value)
1772
 * @method string getOffset()
1773
 * @method $this withOffset($value)
1774
 * @method string getDbId()
1775
 * @method $this withDbId($value)
1776
 */
1777
class ListBodyPerson extends Rpc
1778
{
1779
1780
    /** @var string */
1781
    public $method = 'GET';
1782
}
1783
1784
class ListFaceDbs extends Rpc
1785
{
1786
}
1787
1788
/**
1789
 * @method string getEntityIdPrefix()
1790
 * @method string getLimit()
1791
 * @method string getOrder()
1792
 * @method string getOffset()
1793
 * @method string getToken()
1794
 * @method string getLabels()
1795
 * @method string getDbName()
1796
 */
1797
class ListFaceEntities extends Rpc
1798
{
1799
1800
    /**
1801
     * @param string $value
1802
     *
1803
     * @return $this
1804
     */
1805
    public function withEntityIdPrefix($value)
1806
    {
1807
        $this->data['EntityIdPrefix'] = $value;
1808
        $this->options['form_params']['EntityIdPrefix'] = $value;
1809
1810
        return $this;
1811
    }
1812
1813
    /**
1814
     * @param string $value
1815
     *
1816
     * @return $this
1817
     */
1818
    public function withLimit($value)
1819
    {
1820
        $this->data['Limit'] = $value;
1821
        $this->options['form_params']['Limit'] = $value;
1822
1823
        return $this;
1824
    }
1825
1826
    /**
1827
     * @param string $value
1828
     *
1829
     * @return $this
1830
     */
1831
    public function withOrder($value)
1832
    {
1833
        $this->data['Order'] = $value;
1834
        $this->options['form_params']['Order'] = $value;
1835
1836
        return $this;
1837
    }
1838
1839
    /**
1840
     * @param string $value
1841
     *
1842
     * @return $this
1843
     */
1844
    public function withOffset($value)
1845
    {
1846
        $this->data['Offset'] = $value;
1847
        $this->options['form_params']['Offset'] = $value;
1848
1849
        return $this;
1850
    }
1851
1852
    /**
1853
     * @param string $value
1854
     *
1855
     * @return $this
1856
     */
1857
    public function withToken($value)
1858
    {
1859
        $this->data['Token'] = $value;
1860
        $this->options['form_params']['Token'] = $value;
1861
1862
        return $this;
1863
    }
1864
1865
    /**
1866
     * @param string $value
1867
     *
1868
     * @return $this
1869
     */
1870
    public function withLabels($value)
1871
    {
1872
        $this->data['Labels'] = $value;
1873
        $this->options['form_params']['Labels'] = $value;
1874
1875
        return $this;
1876
    }
1877
1878
    /**
1879
     * @param string $value
1880
     *
1881
     * @return $this
1882
     */
1883
    public function withDbName($value)
1884
    {
1885
        $this->data['DbName'] = $value;
1886
        $this->options['form_params']['DbName'] = $value;
1887
1888
        return $this;
1889
    }
1890
}
1891
1892
/**
1893
 * @method string getUserId()
1894
 * @method string getTemplateId()
1895
 * @method string getImageURL()
1896
 */
1897
class MergeImageFace extends Rpc
1898
{
1899
1900
    /**
1901
     * @param string $value
1902
     *
1903
     * @return $this
1904
     */
1905
    public function withUserId($value)
1906
    {
1907
        $this->data['UserId'] = $value;
1908
        $this->options['form_params']['UserId'] = $value;
1909
1910
        return $this;
1911
    }
1912
1913
    /**
1914
     * @param string $value
1915
     *
1916
     * @return $this
1917
     */
1918
    public function withTemplateId($value)
1919
    {
1920
        $this->data['TemplateId'] = $value;
1921
        $this->options['form_params']['TemplateId'] = $value;
1922
1923
        return $this;
1924
    }
1925
1926
    /**
1927
     * @param string $value
1928
     *
1929
     * @return $this
1930
     */
1931
    public function withImageURL($value)
1932
    {
1933
        $this->data['ImageURL'] = $value;
1934
        $this->options['form_params']['ImageURL'] = $value;
1935
1936
        return $this;
1937
    }
1938
}
1939
1940
/**
1941
 * @method string getType()
1942
 * @method string getImageURL()
1943
 */
1944
class MonitorExamination extends Rpc
1945
{
1946
1947
    /**
1948
     * @param string $value
1949
     *
1950
     * @return $this
1951
     */
1952
    public function withType($value)
1953
    {
1954
        $this->data['Type'] = $value;
1955
        $this->options['form_params']['Type'] = $value;
1956
1957
        return $this;
1958
    }
1959
1960
    /**
1961
     * @param string $value
1962
     *
1963
     * @return $this
1964
     */
1965
    public function withImageURL($value)
1966
    {
1967
        $this->data['ImageURL'] = $value;
1968
        $this->options['form_params']['ImageURL'] = $value;
1969
1970
        return $this;
1971
    }
1972
}
1973
1974
/**
1975
 * @method string getImageURL()
1976
 */
1977
class PedestrianDetectAttribute extends Rpc
1978
{
1979
1980
    /**
1981
     * @param string $value
1982
     *
1983
     * @return $this
1984
     */
1985
    public function withImageURL($value)
1986
    {
1987
        $this->data['ImageURL'] = $value;
1988
        $this->options['form_params']['ImageURL'] = $value;
1989
1990
        return $this;
1991
    }
1992
}
1993
1994
/**
1995
 * @method string getUserId()
1996
 * @method $this withUserId($value)
1997
 * @method string getTemplateId()
1998
 * @method $this withTemplateId($value)
1999
 */
2000
class QueryFaceImageTemplate extends Rpc
2001
{
2002
2003
    /** @var string */
2004
    public $method = 'GET';
2005
}
2006
2007
/**
2008
 * @method string getType()
2009
 * @method string getVideoData()
2010
 * @method array getURLList()
2011
 * @method string getVideoUrl()
2012
 */
2013
class RecognizeAction extends Rpc
2014
{
2015
2016
    /**
2017
     * @param string $value
2018
     *
2019
     * @return $this
2020
     */
2021
    public function withType($value)
2022
    {
2023
        $this->data['Type'] = $value;
2024
        $this->options['form_params']['Type'] = $value;
2025
2026
        return $this;
2027
    }
2028
2029
    /**
2030
     * @param string $value
2031
     *
2032
     * @return $this
2033
     */
2034
    public function withVideoData($value)
2035
    {
2036
        $this->data['VideoData'] = $value;
2037
        $this->options['form_params']['VideoData'] = $value;
2038
2039
        return $this;
2040
    }
2041
2042
    /**
2043
     * @param array $uRLList
2044
     *
2045
     * @return $this
2046
     */
2047
	public function withURLList(array $uRLList)
2048
	{
2049
	    $this->data['URLList'] = $uRLList;
2050
		foreach ($uRLList as $depth1 => $depth1Value) {
2051
			if(isset($depth1Value['ImageData'])){
2052
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.imageData'] = $depth1Value['ImageData'];
2053
			}
2054
			if(isset($depth1Value['URL'])){
2055
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.URL'] = $depth1Value['URL'];
2056
			}
2057
		}
2058
2059
		return $this;
2060
    }
2061
2062
    /**
2063
     * @param string $value
2064
     *
2065
     * @return $this
2066
     */
2067
    public function withVideoUrl($value)
2068
    {
2069
        $this->data['VideoUrl'] = $value;
2070
        $this->options['form_params']['VideoUrl'] = $value;
2071
2072
        return $this;
2073
    }
2074
}
2075
2076
/**
2077
 * @method string getImageURL()
2078
 */
2079
class RecognizeExpression extends Rpc
2080
{
2081
2082
    /**
2083
     * @param string $value
2084
     *
2085
     * @return $this
2086
     */
2087
    public function withImageURL($value)
2088
    {
2089
        $this->data['ImageURL'] = $value;
2090
        $this->options['form_params']['ImageURL'] = $value;
2091
2092
        return $this;
2093
    }
2094
}
2095
2096
/**
2097
 * @method string getImageType()
2098
 * @method string getImageURL()
2099
 */
2100
class RecognizeFace extends Rpc
2101
{
2102
2103
    /**
2104
     * @param string $value
2105
     *
2106
     * @return $this
2107
     */
2108
    public function withImageType($value)
2109
    {
2110
        $this->data['ImageType'] = $value;
2111
        $this->options['form_params']['ImageType'] = $value;
2112
2113
        return $this;
2114
    }
2115
2116
    /**
2117
     * @param string $value
2118
     *
2119
     * @return $this
2120
     */
2121
    public function withImageURL($value)
2122
    {
2123
        $this->data['ImageURL'] = $value;
2124
        $this->options['form_params']['ImageURL'] = $value;
2125
2126
        return $this;
2127
    }
2128
}
2129
2130
/**
2131
 * @method string getGestureType()
2132
 * @method string getAppId()
2133
 * @method string getImageURL()
2134
 */
2135
class RecognizeHandGesture extends Rpc
2136
{
2137
2138
    /**
2139
     * @param string $value
2140
     *
2141
     * @return $this
2142
     */
2143
    public function withGestureType($value)
2144
    {
2145
        $this->data['GestureType'] = $value;
2146
        $this->options['form_params']['GestureType'] = $value;
2147
2148
        return $this;
2149
    }
2150
2151
    /**
2152
     * @param string $value
2153
     *
2154
     * @return $this
2155
     */
2156
    public function withAppId($value)
2157
    {
2158
        $this->data['AppId'] = $value;
2159
        $this->options['form_params']['AppId'] = $value;
2160
2161
        return $this;
2162
    }
2163
2164
    /**
2165
     * @param string $value
2166
     *
2167
     * @return $this
2168
     */
2169
    public function withImageURL($value)
2170
    {
2171
        $this->data['ImageURL'] = $value;
2172
        $this->options['form_params']['ImageURL'] = $value;
2173
2174
        return $this;
2175
    }
2176
}
2177
2178
/**
2179
 * @method array getTask()
2180
 */
2181
class RecognizePublicFace extends Rpc
2182
{
2183
2184
    /**
2185
     * @param array $task
2186
     *
2187
     * @return $this
2188
     */
2189
	public function withTask(array $task)
2190
	{
2191
	    $this->data['Task'] = $task;
2192
		foreach ($task as $depth1 => $depth1Value) {
2193
			if(isset($depth1Value['ImageURL'])){
2194
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
2195
			}
2196
			if(isset($depth1Value['ImageData'])){
2197
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageData'] = $depth1Value['ImageData'];
2198
			}
2199
		}
2200
2201
		return $this;
2202
    }
2203
}
2204
2205
/**
2206
 * @method string getLengthenDegree()
2207
 * @method string getSlimDegree()
2208
 * @method string getImageURL()
2209
 */
2210
class RetouchBody extends Rpc
2211
{
2212
2213
    /**
2214
     * @param string $value
2215
     *
2216
     * @return $this
2217
     */
2218
    public function withLengthenDegree($value)
2219
    {
2220
        $this->data['LengthenDegree'] = $value;
2221
        $this->options['form_params']['LengthenDegree'] = $value;
2222
2223
        return $this;
2224
    }
2225
2226
    /**
2227
     * @param string $value
2228
     *
2229
     * @return $this
2230
     */
2231
    public function withSlimDegree($value)
2232
    {
2233
        $this->data['SlimDegree'] = $value;
2234
        $this->options['form_params']['SlimDegree'] = $value;
2235
2236
        return $this;
2237
    }
2238
2239
    /**
2240
     * @param string $value
2241
     *
2242
     * @return $this
2243
     */
2244
    public function withImageURL($value)
2245
    {
2246
        $this->data['ImageURL'] = $value;
2247
        $this->options['form_params']['ImageURL'] = $value;
2248
2249
        return $this;
2250
    }
2251
}
2252
2253
/**
2254
 * @method string getMinScore()
2255
 * @method string getLimit()
2256
 * @method string getImages()
2257
 * @method string getDbId()
2258
 */
2259
class SearchBodyTrace extends Rpc
2260
{
2261
2262
    /**
2263
     * @param string $value
2264
     *
2265
     * @return $this
2266
     */
2267
    public function withMinScore($value)
2268
    {
2269
        $this->data['MinScore'] = $value;
2270
        $this->options['form_params']['MinScore'] = $value;
2271
2272
        return $this;
2273
    }
2274
2275
    /**
2276
     * @param string $value
2277
     *
2278
     * @return $this
2279
     */
2280
    public function withLimit($value)
2281
    {
2282
        $this->data['Limit'] = $value;
2283
        $this->options['form_params']['Limit'] = $value;
2284
2285
        return $this;
2286
    }
2287
2288
    /**
2289
     * @param string $value
2290
     *
2291
     * @return $this
2292
     */
2293
    public function withImages($value)
2294
    {
2295
        $this->data['Images'] = $value;
2296
        $this->options['form_params']['Images'] = $value;
2297
2298
        return $this;
2299
    }
2300
2301
    /**
2302
     * @param string $value
2303
     *
2304
     * @return $this
2305
     */
2306
    public function withDbId($value)
2307
    {
2308
        $this->data['DbId'] = $value;
2309
        $this->options['form_params']['DbId'] = $value;
2310
2311
        return $this;
2312
    }
2313
}
2314
2315
/**
2316
 * @method string getLimit()
2317
 * @method string getDbNames()
2318
 * @method $this withDbNames($value)
2319
 * @method string getDbName()
2320
 * @method string getImageUrl()
2321
 */
2322
class SearchFace extends Rpc
2323
{
2324
2325
    /**
2326
     * @param string $value
2327
     *
2328
     * @return $this
2329
     */
2330
    public function withLimit($value)
2331
    {
2332
        $this->data['Limit'] = $value;
2333
        $this->options['form_params']['Limit'] = $value;
2334
2335
        return $this;
2336
    }
2337
2338
    /**
2339
     * @param string $value
2340
     *
2341
     * @return $this
2342
     */
2343
    public function withDbName($value)
2344
    {
2345
        $this->data['DbName'] = $value;
2346
        $this->options['form_params']['DbName'] = $value;
2347
2348
        return $this;
2349
    }
2350
2351
    /**
2352
     * @param string $value
2353
     *
2354
     * @return $this
2355
     */
2356
    public function withImageUrl($value)
2357
    {
2358
        $this->data['ImageUrl'] = $value;
2359
        $this->options['form_params']['ImageUrl'] = $value;
2360
2361
        return $this;
2362
    }
2363
}
2364
2365
/**
2366
 * @method string getTargetImageURL()
2367
 * @method string getSourceImageData()
2368
 * @method string getSourceImageURL()
2369
 * @method string getTargetImageData()
2370
 * @method string getEditPart()
2371
 */
2372
class SwapFacialFeatures extends Rpc
2373
{
2374
2375
    /**
2376
     * @param string $value
2377
     *
2378
     * @return $this
2379
     */
2380
    public function withTargetImageURL($value)
2381
    {
2382
        $this->data['TargetImageURL'] = $value;
2383
        $this->options['form_params']['TargetImageURL'] = $value;
2384
2385
        return $this;
2386
    }
2387
2388
    /**
2389
     * @param string $value
2390
     *
2391
     * @return $this
2392
     */
2393
    public function withSourceImageData($value)
2394
    {
2395
        $this->data['SourceImageData'] = $value;
2396
        $this->options['form_params']['SourceImageData'] = $value;
2397
2398
        return $this;
2399
    }
2400
2401
    /**
2402
     * @param string $value
2403
     *
2404
     * @return $this
2405
     */
2406
    public function withSourceImageURL($value)
2407
    {
2408
        $this->data['SourceImageURL'] = $value;
2409
        $this->options['form_params']['SourceImageURL'] = $value;
2410
2411
        return $this;
2412
    }
2413
2414
    /**
2415
     * @param string $value
2416
     *
2417
     * @return $this
2418
     */
2419
    public function withTargetImageData($value)
2420
    {
2421
        $this->data['TargetImageData'] = $value;
2422
        $this->options['form_params']['TargetImageData'] = $value;
2423
2424
        return $this;
2425
    }
2426
2427
    /**
2428
     * @param string $value
2429
     *
2430
     * @return $this
2431
     */
2432
    public function withEditPart($value)
2433
    {
2434
        $this->data['EditPart'] = $value;
2435
        $this->options['form_params']['EditPart'] = $value;
2436
2437
        return $this;
2438
    }
2439
}
2440
2441
/**
2442
 * @method string getEntityId()
2443
 * @method string getLabels()
2444
 * @method string getDbName()
2445
 */
2446
class UpdateFaceEntity extends Rpc
2447
{
2448
2449
    /**
2450
     * @param string $value
2451
     *
2452
     * @return $this
2453
     */
2454
    public function withEntityId($value)
2455
    {
2456
        $this->data['EntityId'] = $value;
2457
        $this->options['form_params']['EntityId'] = $value;
2458
2459
        return $this;
2460
    }
2461
2462
    /**
2463
     * @param string $value
2464
     *
2465
     * @return $this
2466
     */
2467
    public function withLabels($value)
2468
    {
2469
        $this->data['Labels'] = $value;
2470
        $this->options['form_params']['Labels'] = $value;
2471
2472
        return $this;
2473
    }
2474
2475
    /**
2476
     * @param string $value
2477
     *
2478
     * @return $this
2479
     */
2480
    public function withDbName($value)
2481
    {
2482
        $this->data['DbName'] = $value;
2483
        $this->options['form_params']['DbName'] = $value;
2484
2485
        return $this;
2486
    }
2487
}
2488
2489
/**
2490
 * @method string getRefData()
2491
 * @method string getImageData()
2492
 * @method string getImageURL()
2493
 * @method string getRefUrl()
2494
 */
2495
class VerifyFaceMask extends Rpc
2496
{
2497
2498
    /**
2499
     * @param string $value
2500
     *
2501
     * @return $this
2502
     */
2503
    public function withRefData($value)
2504
    {
2505
        $this->data['RefData'] = $value;
2506
        $this->options['form_params']['RefData'] = $value;
2507
2508
        return $this;
2509
    }
2510
2511
    /**
2512
     * @param string $value
2513
     *
2514
     * @return $this
2515
     */
2516
    public function withImageData($value)
2517
    {
2518
        $this->data['ImageData'] = $value;
2519
        $this->options['form_params']['ImageData'] = $value;
2520
2521
        return $this;
2522
    }
2523
2524
    /**
2525
     * @param string $value
2526
     *
2527
     * @return $this
2528
     */
2529
    public function withImageURL($value)
2530
    {
2531
        $this->data['ImageURL'] = $value;
2532
        $this->options['form_params']['ImageURL'] = $value;
2533
2534
        return $this;
2535
    }
2536
2537
    /**
2538
     * @param string $value
2539
     *
2540
     * @return $this
2541
     */
2542
    public function withRefUrl($value)
2543
    {
2544
        $this->data['RefUrl'] = $value;
2545
        $this->options['form_params']['RefUrl'] = $value;
2546
2547
        return $this;
2548
    }
2549
}
2550