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 ( e82024...9a449b )
by
unknown
08:29
created

BeautifyBody   A

Complexity

Total Complexity 12

Size/Duplication

Total Lines 157
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 12
eloc 37
dl 0
loc 157
rs 10
c 0
b 0
f 0

12 Methods

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