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 ( 63a2fb...ddb9e2 )
by
unknown
12:09 queued 06:41
created

VerifyFaceMask::withImageURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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