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 ( 694faa...d7c0f9 )
by
unknown
11:13 queued 04:46
created

GenerateHumanAnimeStyle::withImageURL()   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 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 getAlgoType()
997
 * @method $this withAlgoType($value)
998
 * @method string getImageURL()
999
 * @method $this withImageURL($value)
1000
 */
1001
class GenerateHumanAnimeStyle extends Rpc
1002
{
1003
}
1004
1005
/**
1006
 * @method string getEntityId()
1007
 * @method string getDbName()
1008
 */
1009
class GetFaceEntity extends Rpc
1010
{
1011
1012
    /**
1013
     * @param string $value
1014
     *
1015
     * @return $this
1016
     */
1017
    public function withEntityId($value)
1018
    {
1019
        $this->data['EntityId'] = $value;
1020
        $this->options['form_params']['EntityId'] = $value;
1021
1022
        return $this;
1023
    }
1024
1025
    /**
1026
     * @param string $value
1027
     *
1028
     * @return $this
1029
     */
1030
    public function withDbName($value)
1031
    {
1032
        $this->data['DbName'] = $value;
1033
        $this->options['form_params']['DbName'] = $value;
1034
1035
        return $this;
1036
    }
1037
}
1038
1039
/**
1040
 * @method string getImageURL()
1041
 */
1042
class HandPosture 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
class ListFaceDbs extends Rpc
1060
{
1061
}
1062
1063
/**
1064
 * @method string getEntityIdPrefix()
1065
 * @method string getLimit()
1066
 * @method string getOrder()
1067
 * @method string getOffset()
1068
 * @method string getToken()
1069
 * @method string getLabels()
1070
 * @method string getDbName()
1071
 */
1072
class ListFaceEntities extends Rpc
1073
{
1074
1075
    /**
1076
     * @param string $value
1077
     *
1078
     * @return $this
1079
     */
1080
    public function withEntityIdPrefix($value)
1081
    {
1082
        $this->data['EntityIdPrefix'] = $value;
1083
        $this->options['form_params']['EntityIdPrefix'] = $value;
1084
1085
        return $this;
1086
    }
1087
1088
    /**
1089
     * @param string $value
1090
     *
1091
     * @return $this
1092
     */
1093
    public function withLimit($value)
1094
    {
1095
        $this->data['Limit'] = $value;
1096
        $this->options['form_params']['Limit'] = $value;
1097
1098
        return $this;
1099
    }
1100
1101
    /**
1102
     * @param string $value
1103
     *
1104
     * @return $this
1105
     */
1106
    public function withOrder($value)
1107
    {
1108
        $this->data['Order'] = $value;
1109
        $this->options['form_params']['Order'] = $value;
1110
1111
        return $this;
1112
    }
1113
1114
    /**
1115
     * @param string $value
1116
     *
1117
     * @return $this
1118
     */
1119
    public function withOffset($value)
1120
    {
1121
        $this->data['Offset'] = $value;
1122
        $this->options['form_params']['Offset'] = $value;
1123
1124
        return $this;
1125
    }
1126
1127
    /**
1128
     * @param string $value
1129
     *
1130
     * @return $this
1131
     */
1132
    public function withToken($value)
1133
    {
1134
        $this->data['Token'] = $value;
1135
        $this->options['form_params']['Token'] = $value;
1136
1137
        return $this;
1138
    }
1139
1140
    /**
1141
     * @param string $value
1142
     *
1143
     * @return $this
1144
     */
1145
    public function withLabels($value)
1146
    {
1147
        $this->data['Labels'] = $value;
1148
        $this->options['form_params']['Labels'] = $value;
1149
1150
        return $this;
1151
    }
1152
1153
    /**
1154
     * @param string $value
1155
     *
1156
     * @return $this
1157
     */
1158
    public function withDbName($value)
1159
    {
1160
        $this->data['DbName'] = $value;
1161
        $this->options['form_params']['DbName'] = $value;
1162
1163
        return $this;
1164
    }
1165
}
1166
1167
/**
1168
 * @method string getImageURL()
1169
 */
1170
class PedestrianDetectAttribute extends Rpc
1171
{
1172
1173
    /**
1174
     * @param string $value
1175
     *
1176
     * @return $this
1177
     */
1178
    public function withImageURL($value)
1179
    {
1180
        $this->data['ImageURL'] = $value;
1181
        $this->options['form_params']['ImageURL'] = $value;
1182
1183
        return $this;
1184
    }
1185
}
1186
1187
/**
1188
 * @method array getURLList()
1189
 * @method string getType()
1190
 * @method string getVideoUrl()
1191
 */
1192
class RecognizeAction extends Rpc
1193
{
1194
1195
    /**
1196
     * @param array $uRLList
1197
     *
1198
     * @return $this
1199
     */
1200
	public function withURLList(array $uRLList)
1201
	{
1202
	    $this->data['URLList'] = $uRLList;
1203
		foreach ($uRLList as $depth1 => $depth1Value) {
1204
			if(isset($depth1Value['URL'])){
1205
				$this->options['form_params']['URLList.' . ($depth1 + 1) . '.URL'] = $depth1Value['URL'];
1206
			}
1207
		}
1208
1209
		return $this;
1210
    }
1211
1212
    /**
1213
     * @param string $value
1214
     *
1215
     * @return $this
1216
     */
1217
    public function withType($value)
1218
    {
1219
        $this->data['Type'] = $value;
1220
        $this->options['form_params']['Type'] = $value;
1221
1222
        return $this;
1223
    }
1224
1225
    /**
1226
     * @param string $value
1227
     *
1228
     * @return $this
1229
     */
1230
    public function withVideoUrl($value)
1231
    {
1232
        $this->data['VideoUrl'] = $value;
1233
        $this->options['form_params']['VideoUrl'] = $value;
1234
1235
        return $this;
1236
    }
1237
}
1238
1239
/**
1240
 * @method string getImageURL()
1241
 */
1242
class RecognizeExpression extends Rpc
1243
{
1244
1245
    /**
1246
     * @param string $value
1247
     *
1248
     * @return $this
1249
     */
1250
    public function withImageURL($value)
1251
    {
1252
        $this->data['ImageURL'] = $value;
1253
        $this->options['form_params']['ImageURL'] = $value;
1254
1255
        return $this;
1256
    }
1257
}
1258
1259
/**
1260
 * @method string getImageType()
1261
 * @method string getImageURL()
1262
 */
1263
class RecognizeFace extends Rpc
1264
{
1265
1266
    /**
1267
     * @param string $value
1268
     *
1269
     * @return $this
1270
     */
1271
    public function withImageType($value)
1272
    {
1273
        $this->data['ImageType'] = $value;
1274
        $this->options['form_params']['ImageType'] = $value;
1275
1276
        return $this;
1277
    }
1278
1279
    /**
1280
     * @param string $value
1281
     *
1282
     * @return $this
1283
     */
1284
    public function withImageURL($value)
1285
    {
1286
        $this->data['ImageURL'] = $value;
1287
        $this->options['form_params']['ImageURL'] = $value;
1288
1289
        return $this;
1290
    }
1291
}
1292
1293
/**
1294
 * @method array getTask()
1295
 */
1296
class RecognizePublicFace extends Rpc
1297
{
1298
1299
    /**
1300
     * @param array $task
1301
     *
1302
     * @return $this
1303
     */
1304
	public function withTask(array $task)
1305
	{
1306
	    $this->data['Task'] = $task;
1307
		foreach ($task as $depth1 => $depth1Value) {
1308
			if(isset($depth1Value['ImageURL'])){
1309
				$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
1310
			}
1311
		}
1312
1313
		return $this;
1314
    }
1315
}
1316
1317
/**
1318
 * @method string getDbName()
1319
 * @method string getImageUrl()
1320
 * @method string getLimit()
1321
 */
1322
class SearchFace extends Rpc
1323
{
1324
1325
    /**
1326
     * @param string $value
1327
     *
1328
     * @return $this
1329
     */
1330
    public function withDbName($value)
1331
    {
1332
        $this->data['DbName'] = $value;
1333
        $this->options['form_params']['DbName'] = $value;
1334
1335
        return $this;
1336
    }
1337
1338
    /**
1339
     * @param string $value
1340
     *
1341
     * @return $this
1342
     */
1343
    public function withImageUrl($value)
1344
    {
1345
        $this->data['ImageUrl'] = $value;
1346
        $this->options['form_params']['ImageUrl'] = $value;
1347
1348
        return $this;
1349
    }
1350
1351
    /**
1352
     * @param string $value
1353
     *
1354
     * @return $this
1355
     */
1356
    public function withLimit($value)
1357
    {
1358
        $this->data['Limit'] = $value;
1359
        $this->options['form_params']['Limit'] = $value;
1360
1361
        return $this;
1362
    }
1363
}
1364
1365
/**
1366
 * @method string getTargetImageURL()
1367
 * @method string getSourceImageURL()
1368
 * @method string getEditPart()
1369
 */
1370
class SwapFacialFeatures extends Rpc
1371
{
1372
1373
    /**
1374
     * @param string $value
1375
     *
1376
     * @return $this
1377
     */
1378
    public function withTargetImageURL($value)
1379
    {
1380
        $this->data['TargetImageURL'] = $value;
1381
        $this->options['form_params']['TargetImageURL'] = $value;
1382
1383
        return $this;
1384
    }
1385
1386
    /**
1387
     * @param string $value
1388
     *
1389
     * @return $this
1390
     */
1391
    public function withSourceImageURL($value)
1392
    {
1393
        $this->data['SourceImageURL'] = $value;
1394
        $this->options['form_params']['SourceImageURL'] = $value;
1395
1396
        return $this;
1397
    }
1398
1399
    /**
1400
     * @param string $value
1401
     *
1402
     * @return $this
1403
     */
1404
    public function withEditPart($value)
1405
    {
1406
        $this->data['EditPart'] = $value;
1407
        $this->options['form_params']['EditPart'] = $value;
1408
1409
        return $this;
1410
    }
1411
}
1412
1413
/**
1414
 * @method string getEntityId()
1415
 * @method string getLabels()
1416
 * @method string getDbName()
1417
 */
1418
class UpdateFaceEntity extends Rpc
1419
{
1420
1421
    /**
1422
     * @param string $value
1423
     *
1424
     * @return $this
1425
     */
1426
    public function withEntityId($value)
1427
    {
1428
        $this->data['EntityId'] = $value;
1429
        $this->options['form_params']['EntityId'] = $value;
1430
1431
        return $this;
1432
    }
1433
1434
    /**
1435
     * @param string $value
1436
     *
1437
     * @return $this
1438
     */
1439
    public function withLabels($value)
1440
    {
1441
        $this->data['Labels'] = $value;
1442
        $this->options['form_params']['Labels'] = $value;
1443
1444
        return $this;
1445
    }
1446
1447
    /**
1448
     * @param string $value
1449
     *
1450
     * @return $this
1451
     */
1452
    public function withDbName($value)
1453
    {
1454
        $this->data['DbName'] = $value;
1455
        $this->options['form_params']['DbName'] = $value;
1456
1457
        return $this;
1458
    }
1459
}
1460
1461
/**
1462
 * @method string getImageURL()
1463
 * @method string getRefUrl()
1464
 */
1465
class VerifyFaceMask extends Rpc
1466
{
1467
1468
    /**
1469
     * @param string $value
1470
     *
1471
     * @return $this
1472
     */
1473
    public function withImageURL($value)
1474
    {
1475
        $this->data['ImageURL'] = $value;
1476
        $this->options['form_params']['ImageURL'] = $value;
1477
1478
        return $this;
1479
    }
1480
1481
    /**
1482
     * @param string $value
1483
     *
1484
     * @return $this
1485
     */
1486
    public function withRefUrl($value)
1487
    {
1488
        $this->data['RefUrl'] = $value;
1489
        $this->options['form_params']['RefUrl'] = $value;
1490
1491
        return $this;
1492
    }
1493
}
1494