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 ( 70bb45...140412 )
by
unknown
07:15
created

ExtractPedestrianFeatureAttr::withServiceVersion()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 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 BlurFace blurFace(array $options = [])
12
 * @method BodyPosture bodyPosture(array $options = [])
13
 * @method CompareFace compareFace(array $options = [])
14
 * @method CountCrowd countCrowd(array $options = [])
15
 * @method CreateBodyDb createBodyDb(array $options = [])
16
 * @method CreateBodyPerson createBodyPerson(array $options = [])
17
 * @method CreateFaceDb createFaceDb(array $options = [])
18
 * @method DeleteBodyDb deleteBodyDb(array $options = [])
19
 * @method DeleteBodyPerson deleteBodyPerson(array $options = [])
20
 * @method DeleteFace deleteFace(array $options = [])
21
 * @method DeleteFaceDb deleteFaceDb(array $options = [])
22
 * @method DeleteFaceEntity deleteFaceEntity(array $options = [])
23
 * @method DetectBodyCount detectBodyCount(array $options = [])
24
 * @method DetectCelebrity detectCelebrity(array $options = [])
25
 * @method DetectChefCap detectChefCap(array $options = [])
26
 * @method DetectFace detectFace(array $options = [])
27
 * @method DetectIPCPedestrian detectIPCPedestrian(array $options = [])
28
 * @method DetectLivingFace detectLivingFace(array $options = [])
29
 * @method DetectMask detectMask(array $options = [])
30
 * @method DetectPedestrian detectPedestrian(array $options = [])
31
 * @method DetectPedestrianIntrusion detectPedestrianIntrusion(array $options = [])
32
 * @method DetectVideoLivingFace detectVideoLivingFace(array $options = [])
33
 * @method EnhanceFace enhanceFace(array $options = [])
34
 * @method ExtractPedestrianFeatureAttr extractPedestrianFeatureAttr(array $options = [])
35
 * @method ExtractPedestrianFeatureAttribute extractPedestrianFeatureAttribute(array $options = [])
36
 * @method FaceBeauty faceBeauty(array $options = [])
37
 * @method FaceFilter faceFilter(array $options = [])
38
 * @method FaceMakeup faceMakeup(array $options = [])
39
 * @method FaceTidyup faceTidyup(array $options = [])
40
 * @method GenerateHumanAnimeStyle generateHumanAnimeStyle(array $options = [])
41
 * @method GenRealPersonVerificationToken genRealPersonVerificationToken(array $options = [])
42
 * @method GetBodyPerson getBodyPerson(array $options = [])
43
 * @method GetFaceEntity getFaceEntity(array $options = [])
44
 * @method GetRealPersonVerificationResult getRealPersonVerificationResult(array $options = [])
45
 * @method HandPosture handPosture(array $options = [])
46
 * @method ListBodyDbs listBodyDbs(array $options = [])
47
 * @method ListBodyPerson listBodyPerson(array $options = [])
48
 * @method ListFaceDbs listFaceDbs(array $options = [])
49
 * @method ListFaceEntities listFaceEntities(array $options = [])
50
 * @method PedestrianDetectAttribute pedestrianDetectAttribute(array $options = [])
51
 * @method RecognizeAction recognizeAction(array $options = [])
52
 * @method RecognizeExpression recognizeExpression(array $options = [])
53
 * @method RecognizeFace recognizeFace(array $options = [])
54
 * @method RecognizePublicFace recognizePublicFace(array $options = [])
55
 * @method SearchBodyTrace searchBodyTrace(array $options = [])
56
 * @method SearchFace searchFace(array $options = [])
57
 * @method SwapFacialFeatures swapFacialFeatures(array $options = [])
58
 * @method UpdateFaceEntity updateFaceEntity(array $options = [])
59
 * @method VerifyFaceMask verifyFaceMask(array $options = [])
60
 */
61
class FacebodyApiResolver extends ApiResolver
62
{
63
}
64
65
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
66
{
67
    /** @var string */
68
    public $product = 'facebody';
69
70
    /** @var string */
71
    public $version = '2019-12-30';
72
73
    /** @var string */
74
    public $method = 'POST';
75
76
    /** @var string */
77
    public $serviceCode = 'facebody';
78
}
79
80
/**
81
 * @method string getExtraData()
82
 * @method string getPersonId()
83
 * @method string getImages()
84
 * @method string getDbId()
85
 */
86
class AddBodyTrace extends Rpc
87
{
88
89
    /**
90
     * @param string $value
91
     *
92
     * @return $this
93
     */
94
    public function withExtraData($value)
95
    {
96
        $this->data['ExtraData'] = $value;
97
        $this->options['form_params']['ExtraData'] = $value;
98
99
        return $this;
100
    }
101
102
    /**
103
     * @param string $value
104
     *
105
     * @return $this
106
     */
107
    public function withPersonId($value)
108
    {
109
        $this->data['PersonId'] = $value;
110
        $this->options['form_params']['PersonId'] = $value;
111
112
        return $this;
113
    }
114
115
    /**
116
     * @param string $value
117
     *
118
     * @return $this
119
     */
120
    public function withImages($value)
121
    {
122
        $this->data['Images'] = $value;
123
        $this->options['form_params']['Images'] = $value;
124
125
        return $this;
126
    }
127
128
    /**
129
     * @param string $value
130
     *
131
     * @return $this
132
     */
133
    public function withDbId($value)
134
    {
135
        $this->data['DbId'] = $value;
136
        $this->options['form_params']['DbId'] = $value;
137
138
        return $this;
139
    }
140
}
141
142
/**
143
 * @method string getEntityId()
144
 * @method string getDbName()
145
 * @method string getImageUrl()
146
 * @method string getExtraData()
147
 */
148
class AddFace extends Rpc
149
{
150
151
    /**
152
     * @param string $value
153
     *
154
     * @return $this
155
     */
156
    public function withEntityId($value)
157
    {
158
        $this->data['EntityId'] = $value;
159
        $this->options['form_params']['EntityId'] = $value;
160
161
        return $this;
162
    }
163
164
    /**
165
     * @param string $value
166
     *
167
     * @return $this
168
     */
169
    public function withDbName($value)
170
    {
171
        $this->data['DbName'] = $value;
172
        $this->options['form_params']['DbName'] = $value;
173
174
        return $this;
175
    }
176
177
    /**
178
     * @param string $value
179
     *
180
     * @return $this
181
     */
182
    public function withImageUrl($value)
183
    {
184
        $this->data['ImageUrl'] = $value;
185
        $this->options['form_params']['ImageUrl'] = $value;
186
187
        return $this;
188
    }
189
190
    /**
191
     * @param string $value
192
     *
193
     * @return $this
194
     */
195
    public function withExtraData($value)
196
    {
197
        $this->data['ExtraData'] = $value;
198
        $this->options['form_params']['ExtraData'] = $value;
199
200
        return $this;
201
    }
202
}
203
204
/**
205
 * @method string getEntityId()
206
 * @method string getLabels()
207
 * @method string getDbName()
208
 */
209
class AddFaceEntity extends Rpc
210
{
211
212
    /**
213
     * @param string $value
214
     *
215
     * @return $this
216
     */
217
    public function withEntityId($value)
218
    {
219
        $this->data['EntityId'] = $value;
220
        $this->options['form_params']['EntityId'] = $value;
221
222
        return $this;
223
    }
224
225
    /**
226
     * @param string $value
227
     *
228
     * @return $this
229
     */
230
    public function withLabels($value)
231
    {
232
        $this->data['Labels'] = $value;
233
        $this->options['form_params']['Labels'] = $value;
234
235
        return $this;
236
    }
237
238
    /**
239
     * @param string $value
240
     *
241
     * @return $this
242
     */
243
    public function withDbName($value)
244
    {
245
        $this->data['DbName'] = $value;
246
        $this->options['form_params']['DbName'] = $value;
247
248
        return $this;
249
    }
250
}
251
252
/**
253
 * @method string getImageURL()
254
 */
255
class BlurFace extends Rpc
256
{
257
258
    /**
259
     * @param string $value
260
     *
261
     * @return $this
262
     */
263
    public function withImageURL($value)
264
    {
265
        $this->data['ImageURL'] = $value;
266
        $this->options['form_params']['ImageURL'] = $value;
267
268
        return $this;
269
    }
270
}
271
272
/**
273
 * @method string getImageURL()
274
 */
275
class BodyPosture extends Rpc
276
{
277
278
    /**
279
     * @param string $value
280
     *
281
     * @return $this
282
     */
283
    public function withImageURL($value)
284
    {
285
        $this->data['ImageURL'] = $value;
286
        $this->options['form_params']['ImageURL'] = $value;
287
288
        return $this;
289
    }
290
}
291
292
/**
293
 * @method string getImageURLB()
294
 * @method string getImageURLA()
295
 * @method string getImageType()
296
 */
297
class CompareFace extends Rpc
298
{
299
300
    /**
301
     * @param string $value
302
     *
303
     * @return $this
304
     */
305
    public function withImageURLB($value)
306
    {
307
        $this->data['ImageURLB'] = $value;
308
        $this->options['form_params']['ImageURLB'] = $value;
309
310
        return $this;
311
    }
312
313
    /**
314
     * @param string $value
315
     *
316
     * @return $this
317
     */
318
    public function withImageURLA($value)
319
    {
320
        $this->data['ImageURLA'] = $value;
321
        $this->options['form_params']['ImageURLA'] = $value;
322
323
        return $this;
324
    }
325
326
    /**
327
     * @param string $value
328
     *
329
     * @return $this
330
     */
331
    public function withImageType($value)
332
    {
333
        $this->data['ImageType'] = $value;
334
        $this->options['form_params']['ImageType'] = $value;
335
336
        return $this;
337
    }
338
}
339
340
/**
341
 * @method string getIsShow()
342
 * @method string getImageURL()
343
 */
344
class CountCrowd extends Rpc
345
{
346
347
    /**
348
     * @param string $value
349
     *
350
     * @return $this
351
     */
352
    public function withIsShow($value)
353
    {
354
        $this->data['IsShow'] = $value;
355
        $this->options['form_params']['IsShow'] = $value;
356
357
        return $this;
358
    }
359
360
    /**
361
     * @param string $value
362
     *
363
     * @return $this
364
     */
365
    public function withImageURL($value)
366
    {
367
        $this->data['ImageURL'] = $value;
368
        $this->options['form_params']['ImageURL'] = $value;
369
370
        return $this;
371
    }
372
}
373
374
/**
375
 * @method string getName()
376
 */
377
class CreateBodyDb extends Rpc
378
{
379
380
    /**
381
     * @param string $value
382
     *
383
     * @return $this
384
     */
385
    public function withName($value)
386
    {
387
        $this->data['Name'] = $value;
388
        $this->options['form_params']['Name'] = $value;
389
390
        return $this;
391
    }
392
}
393
394
/**
395
 * @method string getDbId()
396
 * @method string getName()
397
 */
398
class CreateBodyPerson extends Rpc
399
{
400
401
    /**
402
     * @param string $value
403
     *
404
     * @return $this
405
     */
406
    public function withDbId($value)
407
    {
408
        $this->data['DbId'] = $value;
409
        $this->options['form_params']['DbId'] = $value;
410
411
        return $this;
412
    }
413
414
    /**
415
     * @param string $value
416
     *
417
     * @return $this
418
     */
419
    public function withName($value)
420
    {
421
        $this->data['Name'] = $value;
422
        $this->options['form_params']['Name'] = $value;
423
424
        return $this;
425
    }
426
}
427
428
/**
429
 * @method string getName()
430
 */
431
class CreateFaceDb extends Rpc
432
{
433
434
    /**
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function withName($value)
440
    {
441
        $this->data['Name'] = $value;
442
        $this->options['form_params']['Name'] = $value;
443
444
        return $this;
445
    }
446
}
447
448
/**
449
 * @method string getId()
450
 */
451
class DeleteBodyDb extends Rpc
452
{
453
454
    /**
455
     * @param string $value
456
     *
457
     * @return $this
458
     */
459
    public function withId($value)
460
    {
461
        $this->data['Id'] = $value;
462
        $this->options['form_params']['Id'] = $value;
463
464
        return $this;
465
    }
466
}
467
468
/**
469
 * @method string getPersonId()
470
 * @method string getDbId()
471
 */
472
class DeleteBodyPerson extends Rpc
473
{
474
475
    /**
476
     * @param string $value
477
     *
478
     * @return $this
479
     */
480
    public function withPersonId($value)
481
    {
482
        $this->data['PersonId'] = $value;
483
        $this->options['form_params']['PersonId'] = $value;
484
485
        return $this;
486
    }
487
488
    /**
489
     * @param string $value
490
     *
491
     * @return $this
492
     */
493
    public function withDbId($value)
494
    {
495
        $this->data['DbId'] = $value;
496
        $this->options['form_params']['DbId'] = $value;
497
498
        return $this;
499
    }
500
}
501
502
/**
503
 * @method string getFaceId()
504
 * @method string getDbName()
505
 */
506
class DeleteFace extends Rpc
507
{
508
509
    /**
510
     * @param string $value
511
     *
512
     * @return $this
513
     */
514
    public function withFaceId($value)
515
    {
516
        $this->data['FaceId'] = $value;
517
        $this->options['form_params']['FaceId'] = $value;
518
519
        return $this;
520
    }
521
522
    /**
523
     * @param string $value
524
     *
525
     * @return $this
526
     */
527
    public function withDbName($value)
528
    {
529
        $this->data['DbName'] = $value;
530
        $this->options['form_params']['DbName'] = $value;
531
532
        return $this;
533
    }
534
}
535
536
/**
537
 * @method string getName()
538
 */
539
class DeleteFaceDb extends Rpc
540
{
541
542
    /**
543
     * @param string $value
544
     *
545
     * @return $this
546
     */
547
    public function withName($value)
548
    {
549
        $this->data['Name'] = $value;
550
        $this->options['form_params']['Name'] = $value;
551
552
        return $this;
553
    }
554
}
555
556
/**
557
 * @method string getEntityId()
558
 * @method string getDbName()
559
 */
560
class DeleteFaceEntity extends Rpc
561
{
562
563
    /**
564
     * @param string $value
565
     *
566
     * @return $this
567
     */
568
    public function withEntityId($value)
569
    {
570
        $this->data['EntityId'] = $value;
571
        $this->options['form_params']['EntityId'] = $value;
572
573
        return $this;
574
    }
575
576
    /**
577
     * @param string $value
578
     *
579
     * @return $this
580
     */
581
    public function withDbName($value)
582
    {
583
        $this->data['DbName'] = $value;
584
        $this->options['form_params']['DbName'] = $value;
585
586
        return $this;
587
    }
588
}
589
590
/**
591
 * @method string getImageURL()
592
 */
593
class DetectBodyCount extends Rpc
594
{
595
596
    /**
597
     * @param string $value
598
     *
599
     * @return $this
600
     */
601
    public function withImageURL($value)
602
    {
603
        $this->data['ImageURL'] = $value;
604
        $this->options['form_params']['ImageURL'] = $value;
605
606
        return $this;
607
    }
608
}
609
610
/**
611
 * @method string getImageURL()
612
 */
613
class DetectCelebrity extends Rpc
614
{
615
616
    /**
617
     * @param string $value
618
     *
619
     * @return $this
620
     */
621
    public function withImageURL($value)
622
    {
623
        $this->data['ImageURL'] = $value;
624
        $this->options['form_params']['ImageURL'] = $value;
625
626
        return $this;
627
    }
628
}
629
630
/**
631
 * @method string getImageURL()
632
 */
633
class DetectChefCap extends Rpc
634
{
635
636
    /**
637
     * @param string $value
638
     *
639
     * @return $this
640
     */
641
    public function withImageURL($value)
642
    {
643
        $this->data['ImageURL'] = $value;
644
        $this->options['form_params']['ImageURL'] = $value;
645
646
        return $this;
647
    }
648
}
649
650
/**
651
 * @method string getImageType()
652
 * @method string getImageURL()
653
 */
654
class DetectFace extends Rpc
655
{
656
657
    /**
658
     * @param string $value
659
     *
660
     * @return $this
661
     */
662
    public function withImageType($value)
663
    {
664
        $this->data['ImageType'] = $value;
665
        $this->options['form_params']['ImageType'] = $value;
666
667
        return $this;
668
    }
669
670
    /**
671
     * @param string $value
672
     *
673
     * @return $this
674
     */
675
    public function withImageURL($value)
676
    {
677
        $this->data['ImageURL'] = $value;
678
        $this->options['form_params']['ImageURL'] = $value;
679
680
        return $this;
681
    }
682
}
683
684
/**
685
 * @method string getImageData()
686
 * @method array getURLList()
687
 * @method string getContinueOnError()
688
 * @method string getWidth()
689
 * @method string getHeight()
690
 */
691
class DetectIPCPedestrian extends Rpc
692
{
693
694
    /**
695
     * @param string $value
696
     *
697
     * @return $this
698
     */
699
    public function withImageData($value)
700
    {
701
        $this->data['ImageData'] = $value;
702
        $this->options['form_params']['ImageData'] = $value;
703
704
        return $this;
705
    }
706
707
    /**
708
     * @param array $uRLList
709
     *
710
     * @return $this
711
     */
712
	public function withURLList(array $uRLList)
713
	{
714
	    $this->data['URLList'] = $uRLList;
715
		foreach ($uRLList as $depth1 => $depth1Value) {
716
			if(isset($depth1Value['DataId'])){
717
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
718
			}
719
			if(isset($depth1Value['ImageURL'])){
720
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
721
			}
722
		}
723
724
		return $this;
725
    }
726
727
    /**
728
     * @param string $value
729
     *
730
     * @return $this
731
     */
732
    public function withContinueOnError($value)
733
    {
734
        $this->data['ContinueOnError'] = $value;
735
        $this->options['form_params']['ContinueOnError'] = $value;
736
737
        return $this;
738
    }
739
740
    /**
741
     * @param string $value
742
     *
743
     * @return $this
744
     */
745
    public function withWidth($value)
746
    {
747
        $this->data['Width'] = $value;
748
        $this->options['form_params']['Width'] = $value;
749
750
        return $this;
751
    }
752
753
    /**
754
     * @param string $value
755
     *
756
     * @return $this
757
     */
758
    public function withHeight($value)
759
    {
760
        $this->data['Height'] = $value;
761
        $this->options['form_params']['Height'] = $value;
762
763
        return $this;
764
    }
765
}
766
767
/**
768
 * @method array getTasks()
769
 */
770
class DetectLivingFace extends Rpc
771
{
772
773
    /**
774
     * @param array $tasks
775
     *
776
     * @return $this
777
     */
778
	public function withTasks(array $tasks)
779
	{
780
	    $this->data['Tasks'] = $tasks;
781
		foreach ($tasks as $depth1 => $depth1Value) {
782
			if(isset($depth1Value['ImageURL'])){
783
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
784
			}
785
		}
786
787
		return $this;
788
    }
789
}
790
791
/**
792
 * @method string getImageURL()
793
 */
794
class DetectMask extends Rpc
795
{
796
797
    /**
798
     * @param string $value
799
     *
800
     * @return $this
801
     */
802
    public function withImageURL($value)
803
    {
804
        $this->data['ImageURL'] = $value;
805
        $this->options['form_params']['ImageURL'] = $value;
806
807
        return $this;
808
    }
809
}
810
811
/**
812
 * @method string getImageURL()
813
 */
814
class DetectPedestrian extends Rpc
815
{
816
817
    /**
818
     * @param string $value
819
     *
820
     * @return $this
821
     */
822
    public function withImageURL($value)
823
    {
824
        $this->data['ImageURL'] = $value;
825
        $this->options['form_params']['ImageURL'] = $value;
826
827
        return $this;
828
    }
829
}
830
831
/**
832
 * @method string getDetectRegion()
833
 * @method string getRegionType()
834
 * @method string getImageURL()
835
 */
836
class DetectPedestrianIntrusion extends Rpc
837
{
838
839
    /**
840
     * @param string $value
841
     *
842
     * @return $this
843
     */
844
    public function withDetectRegion($value)
845
    {
846
        $this->data['DetectRegion'] = $value;
847
        $this->options['form_params']['DetectRegion'] = $value;
848
849
        return $this;
850
    }
851
852
    /**
853
     * @param string $value
854
     *
855
     * @return $this
856
     */
857
    public function withRegionType($value)
858
    {
859
        $this->data['RegionType'] = $value;
860
        $this->options['form_params']['RegionType'] = $value;
861
862
        return $this;
863
    }
864
865
    /**
866
     * @param string $value
867
     *
868
     * @return $this
869
     */
870
    public function withImageURL($value)
871
    {
872
        $this->data['ImageURL'] = $value;
873
        $this->options['form_params']['ImageURL'] = $value;
874
875
        return $this;
876
    }
877
}
878
879
/**
880
 * @method string getVideoUrl()
881
 */
882
class DetectVideoLivingFace extends Rpc
883
{
884
885
    /**
886
     * @param string $value
887
     *
888
     * @return $this
889
     */
890
    public function withVideoUrl($value)
891
    {
892
        $this->data['VideoUrl'] = $value;
893
        $this->options['form_params']['VideoUrl'] = $value;
894
895
        return $this;
896
    }
897
}
898
899
/**
900
 * @method string getImageURL()
901
 */
902
class EnhanceFace extends Rpc
903
{
904
905
    /**
906
     * @param string $value
907
     *
908
     * @return $this
909
     */
910
    public function withImageURL($value)
911
    {
912
        $this->data['ImageURL'] = $value;
913
        $this->options['form_params']['ImageURL'] = $value;
914
915
        return $this;
916
    }
917
}
918
919
/**
920
 * @method string getMode()
921
 * @method string getImageURL()
922
 * @method string getServiceVersion()
923
 */
924
class ExtractPedestrianFeatureAttr extends Rpc
925
{
926
927
    /**
928
     * @param string $value
929
     *
930
     * @return $this
931
     */
932
    public function withMode($value)
933
    {
934
        $this->data['Mode'] = $value;
935
        $this->options['form_params']['Mode'] = $value;
936
937
        return $this;
938
    }
939
940
    /**
941
     * @param string $value
942
     *
943
     * @return $this
944
     */
945
    public function withImageURL($value)
946
    {
947
        $this->data['ImageURL'] = $value;
948
        $this->options['form_params']['ImageURL'] = $value;
949
950
        return $this;
951
    }
952
953
    /**
954
     * @param string $value
955
     *
956
     * @return $this
957
     */
958
    public function withServiceVersion($value)
959
    {
960
        $this->data['ServiceVersion'] = $value;
961
        $this->options['form_params']['ServiceVersion'] = $value;
962
963
        return $this;
964
    }
965
}
966
967
/**
968
 * @method array getUrlList()
969
 * @method string getMode()
970
 * @method string getImageURL()
971
 */
972
class ExtractPedestrianFeatureAttribute extends Rpc
973
{
974
975
    /**
976
     * @param array $urlList
977
     *
978
     * @return $this
979
     */
980
	public function withUrlList(array $urlList)
981
	{
982
	    $this->data['UrlList'] = $urlList;
983
		foreach ($urlList as $depth1 => $depth1Value) {
984
			if(isset($depth1Value['Url'])){
985
				$this->options['form_params']['UrlList.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
986
			}
987
		}
988
989
		return $this;
990
    }
991
992
    /**
993
     * @param string $value
994
     *
995
     * @return $this
996
     */
997
    public function withMode($value)
998
    {
999
        $this->data['Mode'] = $value;
1000
        $this->options['form_params']['Mode'] = $value;
1001
1002
        return $this;
1003
    }
1004
1005
    /**
1006
     * @param string $value
1007
     *
1008
     * @return $this
1009
     */
1010
    public function withImageURL($value)
1011
    {
1012
        $this->data['ImageURL'] = $value;
1013
        $this->options['form_params']['ImageURL'] = $value;
1014
1015
        return $this;
1016
    }
1017
}
1018
1019
/**
1020
 * @method string getSharp()
1021
 * @method string getWhite()
1022
 * @method string getImageURL()
1023
 * @method string getSmooth()
1024
 */
1025
class FaceBeauty extends Rpc
1026
{
1027
1028
    /**
1029
     * @param string $value
1030
     *
1031
     * @return $this
1032
     */
1033
    public function withSharp($value)
1034
    {
1035
        $this->data['Sharp'] = $value;
1036
        $this->options['form_params']['Sharp'] = $value;
1037
1038
        return $this;
1039
    }
1040
1041
    /**
1042
     * @param string $value
1043
     *
1044
     * @return $this
1045
     */
1046
    public function withWhite($value)
1047
    {
1048
        $this->data['White'] = $value;
1049
        $this->options['form_params']['White'] = $value;
1050
1051
        return $this;
1052
    }
1053
1054
    /**
1055
     * @param string $value
1056
     *
1057
     * @return $this
1058
     */
1059
    public function withImageURL($value)
1060
    {
1061
        $this->data['ImageURL'] = $value;
1062
        $this->options['form_params']['ImageURL'] = $value;
1063
1064
        return $this;
1065
    }
1066
1067
    /**
1068
     * @param string $value
1069
     *
1070
     * @return $this
1071
     */
1072
    public function withSmooth($value)
1073
    {
1074
        $this->data['Smooth'] = $value;
1075
        $this->options['form_params']['Smooth'] = $value;
1076
1077
        return $this;
1078
    }
1079
}
1080
1081
/**
1082
 * @method string getStrength()
1083
 * @method string getResourceType()
1084
 * @method string getImageURL()
1085
 */
1086
class FaceFilter extends Rpc
1087
{
1088
1089
    /**
1090
     * @param string $value
1091
     *
1092
     * @return $this
1093
     */
1094
    public function withStrength($value)
1095
    {
1096
        $this->data['Strength'] = $value;
1097
        $this->options['form_params']['Strength'] = $value;
1098
1099
        return $this;
1100
    }
1101
1102
    /**
1103
     * @param string $value
1104
     *
1105
     * @return $this
1106
     */
1107
    public function withResourceType($value)
1108
    {
1109
        $this->data['ResourceType'] = $value;
1110
        $this->options['form_params']['ResourceType'] = $value;
1111
1112
        return $this;
1113
    }
1114
1115
    /**
1116
     * @param string $value
1117
     *
1118
     * @return $this
1119
     */
1120
    public function withImageURL($value)
1121
    {
1122
        $this->data['ImageURL'] = $value;
1123
        $this->options['form_params']['ImageURL'] = $value;
1124
1125
        return $this;
1126
    }
1127
}
1128
1129
/**
1130
 * @method string getStrength()
1131
 * @method string getMakeupType()
1132
 * @method string getResourceType()
1133
 * @method string getImageURL()
1134
 */
1135
class FaceMakeup extends Rpc
1136
{
1137
1138
    /**
1139
     * @param string $value
1140
     *
1141
     * @return $this
1142
     */
1143
    public function withStrength($value)
1144
    {
1145
        $this->data['Strength'] = $value;
1146
        $this->options['form_params']['Strength'] = $value;
1147
1148
        return $this;
1149
    }
1150
1151
    /**
1152
     * @param string $value
1153
     *
1154
     * @return $this
1155
     */
1156
    public function withMakeupType($value)
1157
    {
1158
        $this->data['MakeupType'] = $value;
1159
        $this->options['form_params']['MakeupType'] = $value;
1160
1161
        return $this;
1162
    }
1163
1164
    /**
1165
     * @param string $value
1166
     *
1167
     * @return $this
1168
     */
1169
    public function withResourceType($value)
1170
    {
1171
        $this->data['ResourceType'] = $value;
1172
        $this->options['form_params']['ResourceType'] = $value;
1173
1174
        return $this;
1175
    }
1176
1177
    /**
1178
     * @param string $value
1179
     *
1180
     * @return $this
1181
     */
1182
    public function withImageURL($value)
1183
    {
1184
        $this->data['ImageURL'] = $value;
1185
        $this->options['form_params']['ImageURL'] = $value;
1186
1187
        return $this;
1188
    }
1189
}
1190
1191
/**
1192
 * @method string getShapeType()
1193
 * @method string getStrength()
1194
 * @method string getImageURL()
1195
 */
1196
class FaceTidyup extends Rpc
1197
{
1198
1199
    /**
1200
     * @param string $value
1201
     *
1202
     * @return $this
1203
     */
1204
    public function withShapeType($value)
1205
    {
1206
        $this->data['ShapeType'] = $value;
1207
        $this->options['form_params']['ShapeType'] = $value;
1208
1209
        return $this;
1210
    }
1211
1212
    /**
1213
     * @param string $value
1214
     *
1215
     * @return $this
1216
     */
1217
    public function withStrength($value)
1218
    {
1219
        $this->data['Strength'] = $value;
1220
        $this->options['form_params']['Strength'] = $value;
1221
1222
        return $this;
1223
    }
1224
1225
    /**
1226
     * @param string $value
1227
     *
1228
     * @return $this
1229
     */
1230
    public function withImageURL($value)
1231
    {
1232
        $this->data['ImageURL'] = $value;
1233
        $this->options['form_params']['ImageURL'] = $value;
1234
1235
        return $this;
1236
    }
1237
}
1238
1239
/**
1240
 * @method string getAlgoType()
1241
 * @method $this withAlgoType($value)
1242
 * @method string getImageURL()
1243
 * @method $this withImageURL($value)
1244
 */
1245
class GenerateHumanAnimeStyle extends Rpc
1246
{
1247
}
1248
1249
/**
1250
 * @method string getCertificateNumber()
1251
 * @method string getCertificateName()
1252
 * @method string getMetaInfo()
1253
 */
1254
class GenRealPersonVerificationToken extends Rpc
1255
{
1256
1257
    /**
1258
     * @param string $value
1259
     *
1260
     * @return $this
1261
     */
1262
    public function withCertificateNumber($value)
1263
    {
1264
        $this->data['CertificateNumber'] = $value;
1265
        $this->options['form_params']['CertificateNumber'] = $value;
1266
1267
        return $this;
1268
    }
1269
1270
    /**
1271
     * @param string $value
1272
     *
1273
     * @return $this
1274
     */
1275
    public function withCertificateName($value)
1276
    {
1277
        $this->data['CertificateName'] = $value;
1278
        $this->options['form_params']['CertificateName'] = $value;
1279
1280
        return $this;
1281
    }
1282
1283
    /**
1284
     * @param string $value
1285
     *
1286
     * @return $this
1287
     */
1288
    public function withMetaInfo($value)
1289
    {
1290
        $this->data['MetaInfo'] = $value;
1291
        $this->options['form_params']['MetaInfo'] = $value;
1292
1293
        return $this;
1294
    }
1295
}
1296
1297
/**
1298
 * @method string getPersonId()
1299
 * @method $this withPersonId($value)
1300
 * @method string getDbId()
1301
 * @method $this withDbId($value)
1302
 */
1303
class GetBodyPerson extends Rpc
1304
{
1305
1306
    /** @var string */
1307
    public $method = 'GET';
1308
}
1309
1310
/**
1311
 * @method string getEntityId()
1312
 * @method string getDbName()
1313
 */
1314
class GetFaceEntity extends Rpc
1315
{
1316
1317
    /**
1318
     * @param string $value
1319
     *
1320
     * @return $this
1321
     */
1322
    public function withEntityId($value)
1323
    {
1324
        $this->data['EntityId'] = $value;
1325
        $this->options['form_params']['EntityId'] = $value;
1326
1327
        return $this;
1328
    }
1329
1330
    /**
1331
     * @param string $value
1332
     *
1333
     * @return $this
1334
     */
1335
    public function withDbName($value)
1336
    {
1337
        $this->data['DbName'] = $value;
1338
        $this->options['form_params']['DbName'] = $value;
1339
1340
        return $this;
1341
    }
1342
}
1343
1344
/**
1345
 * @method string getVerificationToken()
1346
 * @method string getMaterialHash()
1347
 */
1348
class GetRealPersonVerificationResult extends Rpc
1349
{
1350
1351
    /**
1352
     * @param string $value
1353
     *
1354
     * @return $this
1355
     */
1356
    public function withVerificationToken($value)
1357
    {
1358
        $this->data['VerificationToken'] = $value;
1359
        $this->options['form_params']['VerificationToken'] = $value;
1360
1361
        return $this;
1362
    }
1363
1364
    /**
1365
     * @param string $value
1366
     *
1367
     * @return $this
1368
     */
1369
    public function withMaterialHash($value)
1370
    {
1371
        $this->data['MaterialHash'] = $value;
1372
        $this->options['form_params']['MaterialHash'] = $value;
1373
1374
        return $this;
1375
    }
1376
}
1377
1378
/**
1379
 * @method string getImageURL()
1380
 */
1381
class HandPosture extends Rpc
1382
{
1383
1384
    /**
1385
     * @param string $value
1386
     *
1387
     * @return $this
1388
     */
1389
    public function withImageURL($value)
1390
    {
1391
        $this->data['ImageURL'] = $value;
1392
        $this->options['form_params']['ImageURL'] = $value;
1393
1394
        return $this;
1395
    }
1396
}
1397
1398
/**
1399
 * @method string getLimit()
1400
 * @method $this withLimit($value)
1401
 * @method string getOffset()
1402
 * @method $this withOffset($value)
1403
 */
1404
class ListBodyDbs extends Rpc
1405
{
1406
1407
    /** @var string */
1408
    public $method = 'GET';
1409
}
1410
1411
/**
1412
 * @method string getLimit()
1413
 * @method $this withLimit($value)
1414
 * @method string getOffset()
1415
 * @method $this withOffset($value)
1416
 * @method string getDbId()
1417
 * @method $this withDbId($value)
1418
 */
1419
class ListBodyPerson extends Rpc
1420
{
1421
1422
    /** @var string */
1423
    public $method = 'GET';
1424
}
1425
1426
class ListFaceDbs extends Rpc
1427
{
1428
}
1429
1430
/**
1431
 * @method string getEntityIdPrefix()
1432
 * @method string getLimit()
1433
 * @method string getOrder()
1434
 * @method string getOffset()
1435
 * @method string getToken()
1436
 * @method string getLabels()
1437
 * @method string getDbName()
1438
 */
1439
class ListFaceEntities extends Rpc
1440
{
1441
1442
    /**
1443
     * @param string $value
1444
     *
1445
     * @return $this
1446
     */
1447
    public function withEntityIdPrefix($value)
1448
    {
1449
        $this->data['EntityIdPrefix'] = $value;
1450
        $this->options['form_params']['EntityIdPrefix'] = $value;
1451
1452
        return $this;
1453
    }
1454
1455
    /**
1456
     * @param string $value
1457
     *
1458
     * @return $this
1459
     */
1460
    public function withLimit($value)
1461
    {
1462
        $this->data['Limit'] = $value;
1463
        $this->options['form_params']['Limit'] = $value;
1464
1465
        return $this;
1466
    }
1467
1468
    /**
1469
     * @param string $value
1470
     *
1471
     * @return $this
1472
     */
1473
    public function withOrder($value)
1474
    {
1475
        $this->data['Order'] = $value;
1476
        $this->options['form_params']['Order'] = $value;
1477
1478
        return $this;
1479
    }
1480
1481
    /**
1482
     * @param string $value
1483
     *
1484
     * @return $this
1485
     */
1486
    public function withOffset($value)
1487
    {
1488
        $this->data['Offset'] = $value;
1489
        $this->options['form_params']['Offset'] = $value;
1490
1491
        return $this;
1492
    }
1493
1494
    /**
1495
     * @param string $value
1496
     *
1497
     * @return $this
1498
     */
1499
    public function withToken($value)
1500
    {
1501
        $this->data['Token'] = $value;
1502
        $this->options['form_params']['Token'] = $value;
1503
1504
        return $this;
1505
    }
1506
1507
    /**
1508
     * @param string $value
1509
     *
1510
     * @return $this
1511
     */
1512
    public function withLabels($value)
1513
    {
1514
        $this->data['Labels'] = $value;
1515
        $this->options['form_params']['Labels'] = $value;
1516
1517
        return $this;
1518
    }
1519
1520
    /**
1521
     * @param string $value
1522
     *
1523
     * @return $this
1524
     */
1525
    public function withDbName($value)
1526
    {
1527
        $this->data['DbName'] = $value;
1528
        $this->options['form_params']['DbName'] = $value;
1529
1530
        return $this;
1531
    }
1532
}
1533
1534
/**
1535
 * @method string getImageURL()
1536
 */
1537
class PedestrianDetectAttribute extends Rpc
1538
{
1539
1540
    /**
1541
     * @param string $value
1542
     *
1543
     * @return $this
1544
     */
1545
    public function withImageURL($value)
1546
    {
1547
        $this->data['ImageURL'] = $value;
1548
        $this->options['form_params']['ImageURL'] = $value;
1549
1550
        return $this;
1551
    }
1552
}
1553
1554
/**
1555
 * @method array getURLList()
1556
 * @method string getType()
1557
 * @method string getVideoUrl()
1558
 */
1559
class RecognizeAction extends Rpc
1560
{
1561
1562
    /**
1563
     * @param array $uRLList
1564
     *
1565
     * @return $this
1566
     */
1567
	public function withURLList(array $uRLList)
1568
	{
1569
	    $this->data['URLList'] = $uRLList;
1570
		foreach ($uRLList as $depth1 => $depth1Value) {
1571
			if(isset($depth1Value['URL'])){
1572
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.URL'] = $depth1Value['URL'];
1573
			}
1574
		}
1575
1576
		return $this;
1577
    }
1578
1579
    /**
1580
     * @param string $value
1581
     *
1582
     * @return $this
1583
     */
1584
    public function withType($value)
1585
    {
1586
        $this->data['Type'] = $value;
1587
        $this->options['form_params']['Type'] = $value;
1588
1589
        return $this;
1590
    }
1591
1592
    /**
1593
     * @param string $value
1594
     *
1595
     * @return $this
1596
     */
1597
    public function withVideoUrl($value)
1598
    {
1599
        $this->data['VideoUrl'] = $value;
1600
        $this->options['form_params']['VideoUrl'] = $value;
1601
1602
        return $this;
1603
    }
1604
}
1605
1606
/**
1607
 * @method string getImageURL()
1608
 */
1609
class RecognizeExpression extends Rpc
1610
{
1611
1612
    /**
1613
     * @param string $value
1614
     *
1615
     * @return $this
1616
     */
1617
    public function withImageURL($value)
1618
    {
1619
        $this->data['ImageURL'] = $value;
1620
        $this->options['form_params']['ImageURL'] = $value;
1621
1622
        return $this;
1623
    }
1624
}
1625
1626
/**
1627
 * @method string getImageType()
1628
 * @method string getImageURL()
1629
 */
1630
class RecognizeFace extends Rpc
1631
{
1632
1633
    /**
1634
     * @param string $value
1635
     *
1636
     * @return $this
1637
     */
1638
    public function withImageType($value)
1639
    {
1640
        $this->data['ImageType'] = $value;
1641
        $this->options['form_params']['ImageType'] = $value;
1642
1643
        return $this;
1644
    }
1645
1646
    /**
1647
     * @param string $value
1648
     *
1649
     * @return $this
1650
     */
1651
    public function withImageURL($value)
1652
    {
1653
        $this->data['ImageURL'] = $value;
1654
        $this->options['form_params']['ImageURL'] = $value;
1655
1656
        return $this;
1657
    }
1658
}
1659
1660
/**
1661
 * @method array getTask()
1662
 */
1663
class RecognizePublicFace extends Rpc
1664
{
1665
1666
    /**
1667
     * @param array $task
1668
     *
1669
     * @return $this
1670
     */
1671
	public function withTask(array $task)
1672
	{
1673
	    $this->data['Task'] = $task;
1674
		foreach ($task as $depth1 => $depth1Value) {
1675
			if(isset($depth1Value['ImageURL'])){
1676
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
1677
			}
1678
		}
1679
1680
		return $this;
1681
    }
1682
}
1683
1684
/**
1685
 * @method string getMinScore()
1686
 * @method string getLimit()
1687
 * @method string getImages()
1688
 * @method string getDbId()
1689
 */
1690
class SearchBodyTrace extends Rpc
1691
{
1692
1693
    /**
1694
     * @param string $value
1695
     *
1696
     * @return $this
1697
     */
1698
    public function withMinScore($value)
1699
    {
1700
        $this->data['MinScore'] = $value;
1701
        $this->options['form_params']['MinScore'] = $value;
1702
1703
        return $this;
1704
    }
1705
1706
    /**
1707
     * @param string $value
1708
     *
1709
     * @return $this
1710
     */
1711
    public function withLimit($value)
1712
    {
1713
        $this->data['Limit'] = $value;
1714
        $this->options['form_params']['Limit'] = $value;
1715
1716
        return $this;
1717
    }
1718
1719
    /**
1720
     * @param string $value
1721
     *
1722
     * @return $this
1723
     */
1724
    public function withImages($value)
1725
    {
1726
        $this->data['Images'] = $value;
1727
        $this->options['form_params']['Images'] = $value;
1728
1729
        return $this;
1730
    }
1731
1732
    /**
1733
     * @param string $value
1734
     *
1735
     * @return $this
1736
     */
1737
    public function withDbId($value)
1738
    {
1739
        $this->data['DbId'] = $value;
1740
        $this->options['form_params']['DbId'] = $value;
1741
1742
        return $this;
1743
    }
1744
}
1745
1746
/**
1747
 * @method string getDbNames()
1748
 * @method $this withDbNames($value)
1749
 * @method string getDbName()
1750
 * @method string getImageUrl()
1751
 * @method string getLimit()
1752
 */
1753
class SearchFace extends Rpc
1754
{
1755
1756
    /**
1757
     * @param string $value
1758
     *
1759
     * @return $this
1760
     */
1761
    public function withDbName($value)
1762
    {
1763
        $this->data['DbName'] = $value;
1764
        $this->options['form_params']['DbName'] = $value;
1765
1766
        return $this;
1767
    }
1768
1769
    /**
1770
     * @param string $value
1771
     *
1772
     * @return $this
1773
     */
1774
    public function withImageUrl($value)
1775
    {
1776
        $this->data['ImageUrl'] = $value;
1777
        $this->options['form_params']['ImageUrl'] = $value;
1778
1779
        return $this;
1780
    }
1781
1782
    /**
1783
     * @param string $value
1784
     *
1785
     * @return $this
1786
     */
1787
    public function withLimit($value)
1788
    {
1789
        $this->data['Limit'] = $value;
1790
        $this->options['form_params']['Limit'] = $value;
1791
1792
        return $this;
1793
    }
1794
}
1795
1796
/**
1797
 * @method string getTargetImageURL()
1798
 * @method string getSourceImageURL()
1799
 * @method string getEditPart()
1800
 */
1801
class SwapFacialFeatures extends Rpc
1802
{
1803
1804
    /**
1805
     * @param string $value
1806
     *
1807
     * @return $this
1808
     */
1809
    public function withTargetImageURL($value)
1810
    {
1811
        $this->data['TargetImageURL'] = $value;
1812
        $this->options['form_params']['TargetImageURL'] = $value;
1813
1814
        return $this;
1815
    }
1816
1817
    /**
1818
     * @param string $value
1819
     *
1820
     * @return $this
1821
     */
1822
    public function withSourceImageURL($value)
1823
    {
1824
        $this->data['SourceImageURL'] = $value;
1825
        $this->options['form_params']['SourceImageURL'] = $value;
1826
1827
        return $this;
1828
    }
1829
1830
    /**
1831
     * @param string $value
1832
     *
1833
     * @return $this
1834
     */
1835
    public function withEditPart($value)
1836
    {
1837
        $this->data['EditPart'] = $value;
1838
        $this->options['form_params']['EditPart'] = $value;
1839
1840
        return $this;
1841
    }
1842
}
1843
1844
/**
1845
 * @method string getEntityId()
1846
 * @method string getLabels()
1847
 * @method string getDbName()
1848
 */
1849
class UpdateFaceEntity extends Rpc
1850
{
1851
1852
    /**
1853
     * @param string $value
1854
     *
1855
     * @return $this
1856
     */
1857
    public function withEntityId($value)
1858
    {
1859
        $this->data['EntityId'] = $value;
1860
        $this->options['form_params']['EntityId'] = $value;
1861
1862
        return $this;
1863
    }
1864
1865
    /**
1866
     * @param string $value
1867
     *
1868
     * @return $this
1869
     */
1870
    public function withLabels($value)
1871
    {
1872
        $this->data['Labels'] = $value;
1873
        $this->options['form_params']['Labels'] = $value;
1874
1875
        return $this;
1876
    }
1877
1878
    /**
1879
     * @param string $value
1880
     *
1881
     * @return $this
1882
     */
1883
    public function withDbName($value)
1884
    {
1885
        $this->data['DbName'] = $value;
1886
        $this->options['form_params']['DbName'] = $value;
1887
1888
        return $this;
1889
    }
1890
}
1891
1892
/**
1893
 * @method string getImageURL()
1894
 * @method string getRefUrl()
1895
 */
1896
class VerifyFaceMask extends Rpc
1897
{
1898
1899
    /**
1900
     * @param string $value
1901
     *
1902
     * @return $this
1903
     */
1904
    public function withImageURL($value)
1905
    {
1906
        $this->data['ImageURL'] = $value;
1907
        $this->options['form_params']['ImageURL'] = $value;
1908
1909
        return $this;
1910
    }
1911
1912
    /**
1913
     * @param string $value
1914
     *
1915
     * @return $this
1916
     */
1917
    public function withRefUrl($value)
1918
    {
1919
        $this->data['RefUrl'] = $value;
1920
        $this->options['form_params']['RefUrl'] = $value;
1921
1922
        return $this;
1923
    }
1924
}
1925