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 ( 6a150a...be5de0 )
by
unknown
06:31
created

DetectCelebrity::withImageURL()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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