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 ( 043f30...0ff414 )
by
unknown
07:48
created

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