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 ( 60623c...b18e87 )
by
unknown
10:07 queued 03:49
created

CountCrowd   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 7
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A withImageURL() 0 6 1
A withIsShow() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\Facebody\V20191230;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddFace addFace(array $options = [])
9
 * @method AddFaceEntity addFaceEntity(array $options = [])
10
 * @method BlurFace blurFace(array $options = [])
11
 * @method BodyPosture bodyPosture(array $options = [])
12
 * @method CompareFace compareFace(array $options = [])
13
 * @method CountCrowd countCrowd(array $options = [])
14
 * @method CreateFaceDb createFaceDb(array $options = [])
15
 * @method DeleteFace deleteFace(array $options = [])
16
 * @method DeleteFaceDb deleteFaceDb(array $options = [])
17
 * @method DeleteFaceEntity deleteFaceEntity(array $options = [])
18
 * @method DetectBodyCount detectBodyCount(array $options = [])
19
 * @method DetectCelebrity detectCelebrity(array $options = [])
20
 * @method DetectChefCap detectChefCap(array $options = [])
21
 * @method DetectFace detectFace(array $options = [])
22
 * @method DetectIPCPedestrian detectIPCPedestrian(array $options = [])
23
 * @method DetectLivingFace detectLivingFace(array $options = [])
24
 * @method DetectMask detectMask(array $options = [])
25
 * @method DetectPedestrian detectPedestrian(array $options = [])
26
 * @method DetectVideoLivingFace detectVideoLivingFace(array $options = [])
27
 * @method EnhanceFace enhanceFace(array $options = [])
28
 * @method ExtractPedestrianFeatureAttr extractPedestrianFeatureAttr(array $options = [])
29
 * @method ExtractPedestrianFeatureAttribute extractPedestrianFeatureAttribute(array $options = [])
30
 * @method FaceBeauty faceBeauty(array $options = [])
31
 * @method FaceFilter faceFilter(array $options = [])
32
 * @method FaceMakeup faceMakeup(array $options = [])
33
 * @method FaceTidyup faceTidyup(array $options = [])
34
 * @method GenerateHumanAnimeStyle generateHumanAnimeStyle(array $options = [])
35
 * @method GetFaceEntity getFaceEntity(array $options = [])
36
 * @method HandPosture handPosture(array $options = [])
37
 * @method ListFaceDbs listFaceDbs(array $options = [])
38
 * @method ListFaceEntities listFaceEntities(array $options = [])
39
 * @method PedestrianDetectAttribute pedestrianDetectAttribute(array $options = [])
40
 * @method RecognizeAction recognizeAction(array $options = [])
41
 * @method RecognizeExpression recognizeExpression(array $options = [])
42
 * @method RecognizeFace recognizeFace(array $options = [])
43
 * @method RecognizePublicFace recognizePublicFace(array $options = [])
44
 * @method SearchFace searchFace(array $options = [])
45
 * @method SwapFacialFeatures swapFacialFeatures(array $options = [])
46
 * @method UpdateFaceEntity updateFaceEntity(array $options = [])
47
 * @method VerifyFaceMask verifyFaceMask(array $options = [])
48
 */
49
class FacebodyApiResolver extends ApiResolver
50
{
51
}
52
53
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
54
{
55
    /** @var string */
56
    public $product = 'facebody';
57
58
    /** @var string */
59
    public $version = '2019-12-30';
60
61
    /** @var string */
62
    public $method = 'POST';
63
64
    /** @var string */
65
    public $serviceCode = 'facebody';
66
}
67
68
/**
69
 * @method string getEntityId()
70
 * @method string getDbName()
71
 * @method string getImageUrl()
72
 * @method string getExtraData()
73
 */
74
class AddFace extends Rpc
75
{
76
77
    /**
78
     * @param string $value
79
     *
80
     * @return $this
81
     */
82
    public function withEntityId($value)
83
    {
84
        $this->data['EntityId'] = $value;
85
        $this->options['form_params']['EntityId'] = $value;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @param string $value
92
     *
93
     * @return $this
94
     */
95
    public function withDbName($value)
96
    {
97
        $this->data['DbName'] = $value;
98
        $this->options['form_params']['DbName'] = $value;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @param string $value
105
     *
106
     * @return $this
107
     */
108
    public function withImageUrl($value)
109
    {
110
        $this->data['ImageUrl'] = $value;
111
        $this->options['form_params']['ImageUrl'] = $value;
112
113
        return $this;
114
    }
115
116
    /**
117
     * @param string $value
118
     *
119
     * @return $this
120
     */
121
    public function withExtraData($value)
122
    {
123
        $this->data['ExtraData'] = $value;
124
        $this->options['form_params']['ExtraData'] = $value;
125
126
        return $this;
127
    }
128
}
129
130
/**
131
 * @method string getEntityId()
132
 * @method string getLabels()
133
 * @method string getDbName()
134
 */
135
class AddFaceEntity extends Rpc
136
{
137
138
    /**
139
     * @param string $value
140
     *
141
     * @return $this
142
     */
143
    public function withEntityId($value)
144
    {
145
        $this->data['EntityId'] = $value;
146
        $this->options['form_params']['EntityId'] = $value;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @param string $value
153
     *
154
     * @return $this
155
     */
156
    public function withLabels($value)
157
    {
158
        $this->data['Labels'] = $value;
159
        $this->options['form_params']['Labels'] = $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
/**
179
 * @method string getImageURL()
180
 */
181
class BlurFace extends Rpc
182
{
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withImageURL($value)
190
    {
191
        $this->data['ImageURL'] = $value;
192
        $this->options['form_params']['ImageURL'] = $value;
193
194
        return $this;
195
    }
196
}
197
198
/**
199
 * @method string getImageURL()
200
 */
201
class BodyPosture extends Rpc
202
{
203
204
    /**
205
     * @param string $value
206
     *
207
     * @return $this
208
     */
209
    public function withImageURL($value)
210
    {
211
        $this->data['ImageURL'] = $value;
212
        $this->options['form_params']['ImageURL'] = $value;
213
214
        return $this;
215
    }
216
}
217
218
/**
219
 * @method string getImageType()
220
 * @method string getImageURLB()
221
 * @method string getImageURLA()
222
 */
223
class CompareFace extends Rpc
224
{
225
226
    /**
227
     * @param string $value
228
     *
229
     * @return $this
230
     */
231
    public function withImageType($value)
232
    {
233
        $this->data['ImageType'] = $value;
234
        $this->options['form_params']['ImageType'] = $value;
235
236
        return $this;
237
    }
238
239
    /**
240
     * @param string $value
241
     *
242
     * @return $this
243
     */
244
    public function withImageURLB($value)
245
    {
246
        $this->data['ImageURLB'] = $value;
247
        $this->options['form_params']['ImageURLB'] = $value;
248
249
        return $this;
250
    }
251
252
    /**
253
     * @param string $value
254
     *
255
     * @return $this
256
     */
257
    public function withImageURLA($value)
258
    {
259
        $this->data['ImageURLA'] = $value;
260
        $this->options['form_params']['ImageURLA'] = $value;
261
262
        return $this;
263
    }
264
}
265
266
/**
267
 * @method string getIsShow()
268
 * @method string getImageURL()
269
 */
270
class CountCrowd extends Rpc
271
{
272
273
    /**
274
     * @param string $value
275
     *
276
     * @return $this
277
     */
278
    public function withIsShow($value)
279
    {
280
        $this->data['IsShow'] = $value;
281
        $this->options['form_params']['IsShow'] = $value;
282
283
        return $this;
284
    }
285
286
    /**
287
     * @param string $value
288
     *
289
     * @return $this
290
     */
291
    public function withImageURL($value)
292
    {
293
        $this->data['ImageURL'] = $value;
294
        $this->options['form_params']['ImageURL'] = $value;
295
296
        return $this;
297
    }
298
}
299
300
/**
301
 * @method string getName()
302
 */
303
class CreateFaceDb extends Rpc
304
{
305
306
    /**
307
     * @param string $value
308
     *
309
     * @return $this
310
     */
311
    public function withName($value)
312
    {
313
        $this->data['Name'] = $value;
314
        $this->options['form_params']['Name'] = $value;
315
316
        return $this;
317
    }
318
}
319
320
/**
321
 * @method string getFaceId()
322
 * @method string getDbName()
323
 */
324
class DeleteFace extends Rpc
325
{
326
327
    /**
328
     * @param string $value
329
     *
330
     * @return $this
331
     */
332
    public function withFaceId($value)
333
    {
334
        $this->data['FaceId'] = $value;
335
        $this->options['form_params']['FaceId'] = $value;
336
337
        return $this;
338
    }
339
340
    /**
341
     * @param string $value
342
     *
343
     * @return $this
344
     */
345
    public function withDbName($value)
346
    {
347
        $this->data['DbName'] = $value;
348
        $this->options['form_params']['DbName'] = $value;
349
350
        return $this;
351
    }
352
}
353
354
/**
355
 * @method string getName()
356
 */
357
class DeleteFaceDb extends Rpc
358
{
359
360
    /**
361
     * @param string $value
362
     *
363
     * @return $this
364
     */
365
    public function withName($value)
366
    {
367
        $this->data['Name'] = $value;
368
        $this->options['form_params']['Name'] = $value;
369
370
        return $this;
371
    }
372
}
373
374
/**
375
 * @method string getEntityId()
376
 * @method string getDbName()
377
 */
378
class DeleteFaceEntity extends Rpc
379
{
380
381
    /**
382
     * @param string $value
383
     *
384
     * @return $this
385
     */
386
    public function withEntityId($value)
387
    {
388
        $this->data['EntityId'] = $value;
389
        $this->options['form_params']['EntityId'] = $value;
390
391
        return $this;
392
    }
393
394
    /**
395
     * @param string $value
396
     *
397
     * @return $this
398
     */
399
    public function withDbName($value)
400
    {
401
        $this->data['DbName'] = $value;
402
        $this->options['form_params']['DbName'] = $value;
403
404
        return $this;
405
    }
406
}
407
408
/**
409
 * @method string getImageURL()
410
 */
411
class DetectBodyCount extends Rpc
412
{
413
414
    /**
415
     * @param string $value
416
     *
417
     * @return $this
418
     */
419
    public function withImageURL($value)
420
    {
421
        $this->data['ImageURL'] = $value;
422
        $this->options['form_params']['ImageURL'] = $value;
423
424
        return $this;
425
    }
426
}
427
428
/**
429
 * @method string getImageURL()
430
 */
431
class DetectCelebrity extends Rpc
432
{
433
434
    /**
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function withImageURL($value)
440
    {
441
        $this->data['ImageURL'] = $value;
442
        $this->options['form_params']['ImageURL'] = $value;
443
444
        return $this;
445
    }
446
}
447
448
/**
449
 * @method string getImageURL()
450
 */
451
class DetectChefCap extends Rpc
452
{
453
454
    /**
455
     * @param string $value
456
     *
457
     * @return $this
458
     */
459
    public function withImageURL($value)
460
    {
461
        $this->data['ImageURL'] = $value;
462
        $this->options['form_params']['ImageURL'] = $value;
463
464
        return $this;
465
    }
466
}
467
468
/**
469
 * @method string getImageType()
470
 * @method string getImageURL()
471
 */
472
class DetectFace extends Rpc
473
{
474
475
    /**
476
     * @param string $value
477
     *
478
     * @return $this
479
     */
480
    public function withImageType($value)
481
    {
482
        $this->data['ImageType'] = $value;
483
        $this->options['form_params']['ImageType'] = $value;
484
485
        return $this;
486
    }
487
488
    /**
489
     * @param string $value
490
     *
491
     * @return $this
492
     */
493
    public function withImageURL($value)
494
    {
495
        $this->data['ImageURL'] = $value;
496
        $this->options['form_params']['ImageURL'] = $value;
497
498
        return $this;
499
    }
500
}
501
502
/**
503
 * @method string getImageData()
504
 * @method array getURLList()
505
 * @method string getContinueOnError()
506
 * @method string getWidth()
507
 * @method string getHeight()
508
 */
509
class DetectIPCPedestrian extends Rpc
510
{
511
512
    /**
513
     * @param string $value
514
     *
515
     * @return $this
516
     */
517
    public function withImageData($value)
518
    {
519
        $this->data['ImageData'] = $value;
520
        $this->options['form_params']['ImageData'] = $value;
521
522
        return $this;
523
    }
524
525
    /**
526
     * @param array $uRLList
527
     *
528
     * @return $this
529
     */
530
	public function withURLList(array $uRLList)
531
	{
532
	    $this->data['URLList'] = $uRLList;
533
		foreach ($uRLList as $depth1 => $depth1Value) {
534
			if(isset($depth1Value['DataId'])){
535
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
536
			}
537
			if(isset($depth1Value['ImageURL'])){
538
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
539
			}
540
		}
541
542
		return $this;
543
    }
544
545
    /**
546
     * @param string $value
547
     *
548
     * @return $this
549
     */
550
    public function withContinueOnError($value)
551
    {
552
        $this->data['ContinueOnError'] = $value;
553
        $this->options['form_params']['ContinueOnError'] = $value;
554
555
        return $this;
556
    }
557
558
    /**
559
     * @param string $value
560
     *
561
     * @return $this
562
     */
563
    public function withWidth($value)
564
    {
565
        $this->data['Width'] = $value;
566
        $this->options['form_params']['Width'] = $value;
567
568
        return $this;
569
    }
570
571
    /**
572
     * @param string $value
573
     *
574
     * @return $this
575
     */
576
    public function withHeight($value)
577
    {
578
        $this->data['Height'] = $value;
579
        $this->options['form_params']['Height'] = $value;
580
581
        return $this;
582
    }
583
}
584
585
/**
586
 * @method array getTasks()
587
 */
588
class DetectLivingFace extends Rpc
589
{
590
591
    /**
592
     * @param array $tasks
593
     *
594
     * @return $this
595
     */
596
	public function withTasks(array $tasks)
597
	{
598
	    $this->data['Tasks'] = $tasks;
599
		foreach ($tasks as $depth1 => $depth1Value) {
600
			if(isset($depth1Value['ImageURL'])){
601
				$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
602
			}
603
		}
604
605
		return $this;
606
    }
607
}
608
609
/**
610
 * @method string getImageURL()
611
 */
612
class DetectMask extends Rpc
613
{
614
615
    /**
616
     * @param string $value
617
     *
618
     * @return $this
619
     */
620
    public function withImageURL($value)
621
    {
622
        $this->data['ImageURL'] = $value;
623
        $this->options['form_params']['ImageURL'] = $value;
624
625
        return $this;
626
    }
627
}
628
629
/**
630
 * @method string getImageURL()
631
 */
632
class DetectPedestrian extends Rpc
633
{
634
635
    /**
636
     * @param string $value
637
     *
638
     * @return $this
639
     */
640
    public function withImageURL($value)
641
    {
642
        $this->data['ImageURL'] = $value;
643
        $this->options['form_params']['ImageURL'] = $value;
644
645
        return $this;
646
    }
647
}
648
649
/**
650
 * @method string getVideoUrl()
651
 */
652
class DetectVideoLivingFace extends Rpc
653
{
654
655
    /**
656
     * @param string $value
657
     *
658
     * @return $this
659
     */
660
    public function withVideoUrl($value)
661
    {
662
        $this->data['VideoUrl'] = $value;
663
        $this->options['form_params']['VideoUrl'] = $value;
664
665
        return $this;
666
    }
667
}
668
669
/**
670
 * @method string getImageURL()
671
 */
672
class EnhanceFace extends Rpc
673
{
674
675
    /**
676
     * @param string $value
677
     *
678
     * @return $this
679
     */
680
    public function withImageURL($value)
681
    {
682
        $this->data['ImageURL'] = $value;
683
        $this->options['form_params']['ImageURL'] = $value;
684
685
        return $this;
686
    }
687
}
688
689
/**
690
 * @method string getMode()
691
 * @method string getImageURL()
692
 */
693
class ExtractPedestrianFeatureAttr extends Rpc
694
{
695
696
    /**
697
     * @param string $value
698
     *
699
     * @return $this
700
     */
701
    public function withMode($value)
702
    {
703
        $this->data['Mode'] = $value;
704
        $this->options['form_params']['Mode'] = $value;
705
706
        return $this;
707
    }
708
709
    /**
710
     * @param string $value
711
     *
712
     * @return $this
713
     */
714
    public function withImageURL($value)
715
    {
716
        $this->data['ImageURL'] = $value;
717
        $this->options['form_params']['ImageURL'] = $value;
718
719
        return $this;
720
    }
721
}
722
723
/**
724
 * @method array getUrlList()
725
 * @method string getMode()
726
 * @method string getImageURL()
727
 */
728
class ExtractPedestrianFeatureAttribute extends Rpc
729
{
730
731
    /**
732
     * @param array $urlList
733
     *
734
     * @return $this
735
     */
736
	public function withUrlList(array $urlList)
737
	{
738
	    $this->data['UrlList'] = $urlList;
739
		foreach ($urlList as $depth1 => $depth1Value) {
740
			if(isset($depth1Value['Url'])){
741
				$this->options['form_params']['UrlList.' . ($depth1 + 1) . '.Url'] = $depth1Value['Url'];
742
			}
743
		}
744
745
		return $this;
746
    }
747
748
    /**
749
     * @param string $value
750
     *
751
     * @return $this
752
     */
753
    public function withMode($value)
754
    {
755
        $this->data['Mode'] = $value;
756
        $this->options['form_params']['Mode'] = $value;
757
758
        return $this;
759
    }
760
761
    /**
762
     * @param string $value
763
     *
764
     * @return $this
765
     */
766
    public function withImageURL($value)
767
    {
768
        $this->data['ImageURL'] = $value;
769
        $this->options['form_params']['ImageURL'] = $value;
770
771
        return $this;
772
    }
773
}
774
775
/**
776
 * @method string getSharp()
777
 * @method string getWhite()
778
 * @method string getImageURL()
779
 * @method string getSmooth()
780
 */
781
class FaceBeauty extends Rpc
782
{
783
784
    /**
785
     * @param string $value
786
     *
787
     * @return $this
788
     */
789
    public function withSharp($value)
790
    {
791
        $this->data['Sharp'] = $value;
792
        $this->options['form_params']['Sharp'] = $value;
793
794
        return $this;
795
    }
796
797
    /**
798
     * @param string $value
799
     *
800
     * @return $this
801
     */
802
    public function withWhite($value)
803
    {
804
        $this->data['White'] = $value;
805
        $this->options['form_params']['White'] = $value;
806
807
        return $this;
808
    }
809
810
    /**
811
     * @param string $value
812
     *
813
     * @return $this
814
     */
815
    public function withImageURL($value)
816
    {
817
        $this->data['ImageURL'] = $value;
818
        $this->options['form_params']['ImageURL'] = $value;
819
820
        return $this;
821
    }
822
823
    /**
824
     * @param string $value
825
     *
826
     * @return $this
827
     */
828
    public function withSmooth($value)
829
    {
830
        $this->data['Smooth'] = $value;
831
        $this->options['form_params']['Smooth'] = $value;
832
833
        return $this;
834
    }
835
}
836
837
/**
838
 * @method string getStrength()
839
 * @method string getResourceType()
840
 * @method string getImageURL()
841
 */
842
class FaceFilter extends Rpc
843
{
844
845
    /**
846
     * @param string $value
847
     *
848
     * @return $this
849
     */
850
    public function withStrength($value)
851
    {
852
        $this->data['Strength'] = $value;
853
        $this->options['form_params']['Strength'] = $value;
854
855
        return $this;
856
    }
857
858
    /**
859
     * @param string $value
860
     *
861
     * @return $this
862
     */
863
    public function withResourceType($value)
864
    {
865
        $this->data['ResourceType'] = $value;
866
        $this->options['form_params']['ResourceType'] = $value;
867
868
        return $this;
869
    }
870
871
    /**
872
     * @param string $value
873
     *
874
     * @return $this
875
     */
876
    public function withImageURL($value)
877
    {
878
        $this->data['ImageURL'] = $value;
879
        $this->options['form_params']['ImageURL'] = $value;
880
881
        return $this;
882
    }
883
}
884
885
/**
886
 * @method string getStrength()
887
 * @method string getMakeupType()
888
 * @method string getResourceType()
889
 * @method string getImageURL()
890
 */
891
class FaceMakeup extends Rpc
892
{
893
894
    /**
895
     * @param string $value
896
     *
897
     * @return $this
898
     */
899
    public function withStrength($value)
900
    {
901
        $this->data['Strength'] = $value;
902
        $this->options['form_params']['Strength'] = $value;
903
904
        return $this;
905
    }
906
907
    /**
908
     * @param string $value
909
     *
910
     * @return $this
911
     */
912
    public function withMakeupType($value)
913
    {
914
        $this->data['MakeupType'] = $value;
915
        $this->options['form_params']['MakeupType'] = $value;
916
917
        return $this;
918
    }
919
920
    /**
921
     * @param string $value
922
     *
923
     * @return $this
924
     */
925
    public function withResourceType($value)
926
    {
927
        $this->data['ResourceType'] = $value;
928
        $this->options['form_params']['ResourceType'] = $value;
929
930
        return $this;
931
    }
932
933
    /**
934
     * @param string $value
935
     *
936
     * @return $this
937
     */
938
    public function withImageURL($value)
939
    {
940
        $this->data['ImageURL'] = $value;
941
        $this->options['form_params']['ImageURL'] = $value;
942
943
        return $this;
944
    }
945
}
946
947
/**
948
 * @method string getShapeType()
949
 * @method string getStrength()
950
 * @method string getImageURL()
951
 */
952
class FaceTidyup extends Rpc
953
{
954
955
    /**
956
     * @param string $value
957
     *
958
     * @return $this
959
     */
960
    public function withShapeType($value)
961
    {
962
        $this->data['ShapeType'] = $value;
963
        $this->options['form_params']['ShapeType'] = $value;
964
965
        return $this;
966
    }
967
968
    /**
969
     * @param string $value
970
     *
971
     * @return $this
972
     */
973
    public function withStrength($value)
974
    {
975
        $this->data['Strength'] = $value;
976
        $this->options['form_params']['Strength'] = $value;
977
978
        return $this;
979
    }
980
981
    /**
982
     * @param string $value
983
     *
984
     * @return $this
985
     */
986
    public function withImageURL($value)
987
    {
988
        $this->data['ImageURL'] = $value;
989
        $this->options['form_params']['ImageURL'] = $value;
990
991
        return $this;
992
    }
993
}
994
995
/**
996
 * @method string getImageURL()
997
 */
998
class GenerateHumanAnimeStyle extends Rpc
999
{
1000
1001
    /**
1002
     * @param string $value
1003
     *
1004
     * @return $this
1005
     */
1006
    public function withImageURL($value)
1007
    {
1008
        $this->data['ImageURL'] = $value;
1009
        $this->options['form_params']['ImageURL'] = $value;
1010
1011
        return $this;
1012
    }
1013
}
1014
1015
/**
1016
 * @method string getEntityId()
1017
 * @method string getDbName()
1018
 */
1019
class GetFaceEntity extends Rpc
1020
{
1021
1022
    /**
1023
     * @param string $value
1024
     *
1025
     * @return $this
1026
     */
1027
    public function withEntityId($value)
1028
    {
1029
        $this->data['EntityId'] = $value;
1030
        $this->options['form_params']['EntityId'] = $value;
1031
1032
        return $this;
1033
    }
1034
1035
    /**
1036
     * @param string $value
1037
     *
1038
     * @return $this
1039
     */
1040
    public function withDbName($value)
1041
    {
1042
        $this->data['DbName'] = $value;
1043
        $this->options['form_params']['DbName'] = $value;
1044
1045
        return $this;
1046
    }
1047
}
1048
1049
/**
1050
 * @method string getImageURL()
1051
 */
1052
class HandPosture extends Rpc
1053
{
1054
1055
    /**
1056
     * @param string $value
1057
     *
1058
     * @return $this
1059
     */
1060
    public function withImageURL($value)
1061
    {
1062
        $this->data['ImageURL'] = $value;
1063
        $this->options['form_params']['ImageURL'] = $value;
1064
1065
        return $this;
1066
    }
1067
}
1068
1069
class ListFaceDbs extends Rpc
1070
{
1071
}
1072
1073
/**
1074
 * @method string getEntityIdPrefix()
1075
 * @method string getLimit()
1076
 * @method string getOrder()
1077
 * @method string getOffset()
1078
 * @method string getToken()
1079
 * @method string getLabels()
1080
 * @method string getDbName()
1081
 */
1082
class ListFaceEntities extends Rpc
1083
{
1084
1085
    /**
1086
     * @param string $value
1087
     *
1088
     * @return $this
1089
     */
1090
    public function withEntityIdPrefix($value)
1091
    {
1092
        $this->data['EntityIdPrefix'] = $value;
1093
        $this->options['form_params']['EntityIdPrefix'] = $value;
1094
1095
        return $this;
1096
    }
1097
1098
    /**
1099
     * @param string $value
1100
     *
1101
     * @return $this
1102
     */
1103
    public function withLimit($value)
1104
    {
1105
        $this->data['Limit'] = $value;
1106
        $this->options['form_params']['Limit'] = $value;
1107
1108
        return $this;
1109
    }
1110
1111
    /**
1112
     * @param string $value
1113
     *
1114
     * @return $this
1115
     */
1116
    public function withOrder($value)
1117
    {
1118
        $this->data['Order'] = $value;
1119
        $this->options['form_params']['Order'] = $value;
1120
1121
        return $this;
1122
    }
1123
1124
    /**
1125
     * @param string $value
1126
     *
1127
     * @return $this
1128
     */
1129
    public function withOffset($value)
1130
    {
1131
        $this->data['Offset'] = $value;
1132
        $this->options['form_params']['Offset'] = $value;
1133
1134
        return $this;
1135
    }
1136
1137
    /**
1138
     * @param string $value
1139
     *
1140
     * @return $this
1141
     */
1142
    public function withToken($value)
1143
    {
1144
        $this->data['Token'] = $value;
1145
        $this->options['form_params']['Token'] = $value;
1146
1147
        return $this;
1148
    }
1149
1150
    /**
1151
     * @param string $value
1152
     *
1153
     * @return $this
1154
     */
1155
    public function withLabels($value)
1156
    {
1157
        $this->data['Labels'] = $value;
1158
        $this->options['form_params']['Labels'] = $value;
1159
1160
        return $this;
1161
    }
1162
1163
    /**
1164
     * @param string $value
1165
     *
1166
     * @return $this
1167
     */
1168
    public function withDbName($value)
1169
    {
1170
        $this->data['DbName'] = $value;
1171
        $this->options['form_params']['DbName'] = $value;
1172
1173
        return $this;
1174
    }
1175
}
1176
1177
/**
1178
 * @method string getImageURL()
1179
 */
1180
class PedestrianDetectAttribute extends Rpc
1181
{
1182
1183
    /**
1184
     * @param string $value
1185
     *
1186
     * @return $this
1187
     */
1188
    public function withImageURL($value)
1189
    {
1190
        $this->data['ImageURL'] = $value;
1191
        $this->options['form_params']['ImageURL'] = $value;
1192
1193
        return $this;
1194
    }
1195
}
1196
1197
/**
1198
 * @method array getURLList()
1199
 * @method string getType()
1200
 * @method string getVideoUrl()
1201
 */
1202
class RecognizeAction extends Rpc
1203
{
1204
1205
    /**
1206
     * @param array $uRLList
1207
     *
1208
     * @return $this
1209
     */
1210
	public function withURLList(array $uRLList)
1211
	{
1212
	    $this->data['URLList'] = $uRLList;
1213
		foreach ($uRLList as $depth1 => $depth1Value) {
1214
			if(isset($depth1Value['URL'])){
1215
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.URL'] = $depth1Value['URL'];
1216
			}
1217
		}
1218
1219
		return $this;
1220
    }
1221
1222
    /**
1223
     * @param string $value
1224
     *
1225
     * @return $this
1226
     */
1227
    public function withType($value)
1228
    {
1229
        $this->data['Type'] = $value;
1230
        $this->options['form_params']['Type'] = $value;
1231
1232
        return $this;
1233
    }
1234
1235
    /**
1236
     * @param string $value
1237
     *
1238
     * @return $this
1239
     */
1240
    public function withVideoUrl($value)
1241
    {
1242
        $this->data['VideoUrl'] = $value;
1243
        $this->options['form_params']['VideoUrl'] = $value;
1244
1245
        return $this;
1246
    }
1247
}
1248
1249
/**
1250
 * @method string getImageURL()
1251
 */
1252
class RecognizeExpression extends Rpc
1253
{
1254
1255
    /**
1256
     * @param string $value
1257
     *
1258
     * @return $this
1259
     */
1260
    public function withImageURL($value)
1261
    {
1262
        $this->data['ImageURL'] = $value;
1263
        $this->options['form_params']['ImageURL'] = $value;
1264
1265
        return $this;
1266
    }
1267
}
1268
1269
/**
1270
 * @method string getImageType()
1271
 * @method string getImageURL()
1272
 */
1273
class RecognizeFace extends Rpc
1274
{
1275
1276
    /**
1277
     * @param string $value
1278
     *
1279
     * @return $this
1280
     */
1281
    public function withImageType($value)
1282
    {
1283
        $this->data['ImageType'] = $value;
1284
        $this->options['form_params']['ImageType'] = $value;
1285
1286
        return $this;
1287
    }
1288
1289
    /**
1290
     * @param string $value
1291
     *
1292
     * @return $this
1293
     */
1294
    public function withImageURL($value)
1295
    {
1296
        $this->data['ImageURL'] = $value;
1297
        $this->options['form_params']['ImageURL'] = $value;
1298
1299
        return $this;
1300
    }
1301
}
1302
1303
/**
1304
 * @method array getTask()
1305
 */
1306
class RecognizePublicFace extends Rpc
1307
{
1308
1309
    /**
1310
     * @param array $task
1311
     *
1312
     * @return $this
1313
     */
1314
	public function withTask(array $task)
1315
	{
1316
	    $this->data['Task'] = $task;
1317
		foreach ($task as $depth1 => $depth1Value) {
1318
			if(isset($depth1Value['ImageURL'])){
1319
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
1320
			}
1321
		}
1322
1323
		return $this;
1324
    }
1325
}
1326
1327
/**
1328
 * @method string getDbName()
1329
 * @method string getImageUrl()
1330
 * @method string getLimit()
1331
 */
1332
class SearchFace extends Rpc
1333
{
1334
1335
    /**
1336
     * @param string $value
1337
     *
1338
     * @return $this
1339
     */
1340
    public function withDbName($value)
1341
    {
1342
        $this->data['DbName'] = $value;
1343
        $this->options['form_params']['DbName'] = $value;
1344
1345
        return $this;
1346
    }
1347
1348
    /**
1349
     * @param string $value
1350
     *
1351
     * @return $this
1352
     */
1353
    public function withImageUrl($value)
1354
    {
1355
        $this->data['ImageUrl'] = $value;
1356
        $this->options['form_params']['ImageUrl'] = $value;
1357
1358
        return $this;
1359
    }
1360
1361
    /**
1362
     * @param string $value
1363
     *
1364
     * @return $this
1365
     */
1366
    public function withLimit($value)
1367
    {
1368
        $this->data['Limit'] = $value;
1369
        $this->options['form_params']['Limit'] = $value;
1370
1371
        return $this;
1372
    }
1373
}
1374
1375
/**
1376
 * @method string getTargetImageURL()
1377
 * @method string getSourceImageURL()
1378
 * @method string getEditPart()
1379
 */
1380
class SwapFacialFeatures extends Rpc
1381
{
1382
1383
    /**
1384
     * @param string $value
1385
     *
1386
     * @return $this
1387
     */
1388
    public function withTargetImageURL($value)
1389
    {
1390
        $this->data['TargetImageURL'] = $value;
1391
        $this->options['form_params']['TargetImageURL'] = $value;
1392
1393
        return $this;
1394
    }
1395
1396
    /**
1397
     * @param string $value
1398
     *
1399
     * @return $this
1400
     */
1401
    public function withSourceImageURL($value)
1402
    {
1403
        $this->data['SourceImageURL'] = $value;
1404
        $this->options['form_params']['SourceImageURL'] = $value;
1405
1406
        return $this;
1407
    }
1408
1409
    /**
1410
     * @param string $value
1411
     *
1412
     * @return $this
1413
     */
1414
    public function withEditPart($value)
1415
    {
1416
        $this->data['EditPart'] = $value;
1417
        $this->options['form_params']['EditPart'] = $value;
1418
1419
        return $this;
1420
    }
1421
}
1422
1423
/**
1424
 * @method string getEntityId()
1425
 * @method string getLabels()
1426
 * @method string getDbName()
1427
 */
1428
class UpdateFaceEntity extends Rpc
1429
{
1430
1431
    /**
1432
     * @param string $value
1433
     *
1434
     * @return $this
1435
     */
1436
    public function withEntityId($value)
1437
    {
1438
        $this->data['EntityId'] = $value;
1439
        $this->options['form_params']['EntityId'] = $value;
1440
1441
        return $this;
1442
    }
1443
1444
    /**
1445
     * @param string $value
1446
     *
1447
     * @return $this
1448
     */
1449
    public function withLabels($value)
1450
    {
1451
        $this->data['Labels'] = $value;
1452
        $this->options['form_params']['Labels'] = $value;
1453
1454
        return $this;
1455
    }
1456
1457
    /**
1458
     * @param string $value
1459
     *
1460
     * @return $this
1461
     */
1462
    public function withDbName($value)
1463
    {
1464
        $this->data['DbName'] = $value;
1465
        $this->options['form_params']['DbName'] = $value;
1466
1467
        return $this;
1468
    }
1469
}
1470
1471
/**
1472
 * @method string getImageURL()
1473
 * @method string getRefUrl()
1474
 */
1475
class VerifyFaceMask extends Rpc
1476
{
1477
1478
    /**
1479
     * @param string $value
1480
     *
1481
     * @return $this
1482
     */
1483
    public function withImageURL($value)
1484
    {
1485
        $this->data['ImageURL'] = $value;
1486
        $this->options['form_params']['ImageURL'] = $value;
1487
1488
        return $this;
1489
    }
1490
1491
    /**
1492
     * @param string $value
1493
     *
1494
     * @return $this
1495
     */
1496
    public function withRefUrl($value)
1497
    {
1498
        $this->data['RefUrl'] = $value;
1499
        $this->options['form_params']['RefUrl'] = $value;
1500
1501
        return $this;
1502
    }
1503
}
1504