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 ( 8742c7...72fc2e )
by
unknown
07:44
created

SearchFace   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 6
eloc 19
dl 0
loc 79
rs 10
c 1
b 0
f 1

6 Methods

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