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 ( 5f253a...1aedd4 )
by
unknown
06:32
created

CreateBodyDb   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

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