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 ( dc07d9...f8cf9f )
by
unknown
09:23
created

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