-
Notifications
You must be signed in to change notification settings - Fork 4
/
MpsClient.java
870 lines (786 loc) · 42.6 KB
/
MpsClient.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.mps.v20190612;
import java.lang.reflect.Type;
import com.google.gson.JsonSyntaxException;
import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
import com.tencentcloudapi.common.AbstractClient;
import com.tencentcloudapi.common.profile.ClientProfile;
import com.tencentcloudapi.common.JsonResponseModel;
import com.tencentcloudapi.common.Credential;
import com.tencentcloudapi.mps.v20190612.models.*;
public class MpsClient extends AbstractClient{
private static String endpoint = "mps.tencentcloudapi.com";
private static String service = "mps";
private static String version = "2019-06-12";
public MpsClient(Credential credential, String region) {
this(credential, region, new ClientProfile());
}
public MpsClient(Credential credential, String region, ClientProfile profile) {
super(MpsClient.endpoint, MpsClient.version, credential, region, profile);
}
/**
*This API is used to create a custom content analysis template. Up to 50 templates can be created.
* @param req CreateAIAnalysisTemplateRequest
* @return CreateAIAnalysisTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateAIAnalysisTemplateResponse CreateAIAnalysisTemplate(CreateAIAnalysisTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAIAnalysisTemplate", CreateAIAnalysisTemplateResponse.class);
}
/**
*This API is used to create a custom content recognition template. Up to 50 templates can be created.
* @param req CreateAIRecognitionTemplateRequest
* @return CreateAIRecognitionTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateAIRecognitionTemplateResponse CreateAIRecognitionTemplate(CreateAIRecognitionTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAIRecognitionTemplate", CreateAIRecognitionTemplateResponse.class);
}
/**
*This API is used to create an adaptive bitrate streaming template. Up up to 100 such templates can be created.
* @param req CreateAdaptiveDynamicStreamingTemplateRequest
* @return CreateAdaptiveDynamicStreamingTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateAdaptiveDynamicStreamingTemplateResponse CreateAdaptiveDynamicStreamingTemplate(CreateAdaptiveDynamicStreamingTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAdaptiveDynamicStreamingTemplate", CreateAdaptiveDynamicStreamingTemplateResponse.class);
}
/**
*This API is used to create a custom animated image generating template. Up to 16 templates can be created.
* @param req CreateAnimatedGraphicsTemplateRequest
* @return CreateAnimatedGraphicsTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateAnimatedGraphicsTemplateResponse CreateAnimatedGraphicsTemplate(CreateAnimatedGraphicsTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateAnimatedGraphicsTemplate", CreateAnimatedGraphicsTemplateResponse.class);
}
/**
*This API is used to create a custom content moderation template. Up to 50 templates can be created in total.
* @param req CreateContentReviewTemplateRequest
* @return CreateContentReviewTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateContentReviewTemplateResponse CreateContentReviewTemplate(CreateContentReviewTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateContentReviewTemplate", CreateContentReviewTemplateResponse.class);
}
/**
*This API is used to create a custom image sprite generating template. Up to 16 templates can be created.
* @param req CreateImageSpriteTemplateRequest
* @return CreateImageSpriteTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateImageSpriteTemplateResponse CreateImageSpriteTemplate(CreateImageSpriteTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateImageSpriteTemplate", CreateImageSpriteTemplateResponse.class);
}
/**
*This API is used to create image samples for video processing operations such as content recognition and inappropriate information detection with the help of technologies such as facial feature positioning.
* @param req CreatePersonSampleRequest
* @return CreatePersonSampleResponse
* @throws TencentCloudSDKException
*/
public CreatePersonSampleResponse CreatePersonSample(CreatePersonSampleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreatePersonSample", CreatePersonSampleResponse.class);
}
/**
*This API is used to create a custom sampled screencapturing template. Up to 16 templates can be created.
* @param req CreateSampleSnapshotTemplateRequest
* @return CreateSampleSnapshotTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateSampleSnapshotTemplateResponse CreateSampleSnapshotTemplate(CreateSampleSnapshotTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSampleSnapshotTemplate", CreateSampleSnapshotTemplateResponse.class);
}
/**
*This API is used to create a scheme for media files uploaded to a specified COS bucket. A scheme may include the following tasks:
1. Video transcoding (with watermark)
2. Animated screenshot generating
3. Time point screencapturing
4. Sampled screencapturing
5. Image sprite generating
6. Adaptive bitrate streaming
7. Intelligent content moderation (detection of pornographic and sensitive content)
8. Intelligent content analysis (labeling, categorization, thumbnail generation, labeling by frame)
9. Intelligent content recognition (face, full text, text keyword, full speech, and speech keyword)
Note: A scheme is disabled upon creation. You need to manually enable it.
* @param req CreateScheduleRequest
* @return CreateScheduleResponse
* @throws TencentCloudSDKException
*/
public CreateScheduleResponse CreateSchedule(CreateScheduleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSchedule", CreateScheduleResponse.class);
}
/**
*This API is used to create a custom time point screencapturing template. Up to 16 templates can be created.
* @param req CreateSnapshotByTimeOffsetTemplateRequest
* @return CreateSnapshotByTimeOffsetTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateSnapshotByTimeOffsetTemplateResponse CreateSnapshotByTimeOffsetTemplate(CreateSnapshotByTimeOffsetTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateSnapshotByTimeOffsetTemplate", CreateSnapshotByTimeOffsetTemplateResponse.class);
}
/**
*This API is used to create a custom transcoding template. Up to 1,000 templates can be created.
* @param req CreateTranscodeTemplateRequest
* @return CreateTranscodeTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateTranscodeTemplateResponse CreateTranscodeTemplate(CreateTranscodeTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateTranscodeTemplate", CreateTranscodeTemplateResponse.class);
}
/**
*This API is used to create a custom watermarking template. Up to 1,000 templates can be created.
* @param req CreateWatermarkTemplateRequest
* @return CreateWatermarkTemplateResponse
* @throws TencentCloudSDKException
*/
public CreateWatermarkTemplateResponse CreateWatermarkTemplate(CreateWatermarkTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateWatermarkTemplate", CreateWatermarkTemplateResponse.class);
}
/**
*This API is used to create keyword samples in batches for video processing operations such as content recognition and inappropriate information detection with the help of the OCR and ASR technologies.
* @param req CreateWordSamplesRequest
* @return CreateWordSamplesResponse
* @throws TencentCloudSDKException
*/
public CreateWordSamplesResponse CreateWordSamples(CreateWordSamplesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateWordSamples", CreateWordSamplesResponse.class);
}
/**
*This API is used to create a workflow for media files uploaded to a specified COS bucket. A workflow may include the following tasks:
1. Video transcoding (with watermark)
2. Animated image generating
3. Time point screencapturing
4. Sampled screencapturing
5. Image sprite generating
6. Adaptive bitrate streaming
7. Intelligent content moderation (detection of pornographic and sensitive content)
8. Intelligent content analysis (labeling, categorization, thumbnail generation, frame-specific labeling)
9. Intelligent content recognition (face, full text, text keyword, full speech, and speech keyword)
Note: A workflow is disabled upon creation. You need to manually enable it.
* @param req CreateWorkflowRequest
* @return CreateWorkflowResponse
* @throws TencentCloudSDKException
*/
public CreateWorkflowResponse CreateWorkflow(CreateWorkflowRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "CreateWorkflow", CreateWorkflowResponse.class);
}
/**
*This API is used to delete a custom content analysis template.
Note: templates with an ID below 10000 are preset and cannot be deleted.
* @param req DeleteAIAnalysisTemplateRequest
* @return DeleteAIAnalysisTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteAIAnalysisTemplateResponse DeleteAIAnalysisTemplate(DeleteAIAnalysisTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAIAnalysisTemplate", DeleteAIAnalysisTemplateResponse.class);
}
/**
*This API is used to delete a custom content recognition template.
* @param req DeleteAIRecognitionTemplateRequest
* @return DeleteAIRecognitionTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteAIRecognitionTemplateResponse DeleteAIRecognitionTemplate(DeleteAIRecognitionTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAIRecognitionTemplate", DeleteAIRecognitionTemplateResponse.class);
}
/**
*This API is used to delete an adaptive bitrate streaming template.
* @param req DeleteAdaptiveDynamicStreamingTemplateRequest
* @return DeleteAdaptiveDynamicStreamingTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteAdaptiveDynamicStreamingTemplateResponse DeleteAdaptiveDynamicStreamingTemplate(DeleteAdaptiveDynamicStreamingTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAdaptiveDynamicStreamingTemplate", DeleteAdaptiveDynamicStreamingTemplateResponse.class);
}
/**
*This API is used to delete a custom animated image generating template.
* @param req DeleteAnimatedGraphicsTemplateRequest
* @return DeleteAnimatedGraphicsTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteAnimatedGraphicsTemplateResponse DeleteAnimatedGraphicsTemplate(DeleteAnimatedGraphicsTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteAnimatedGraphicsTemplate", DeleteAnimatedGraphicsTemplateResponse.class);
}
/**
*This API is used to delete a custom content moderation template.
* @param req DeleteContentReviewTemplateRequest
* @return DeleteContentReviewTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteContentReviewTemplateResponse DeleteContentReviewTemplate(DeleteContentReviewTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteContentReviewTemplate", DeleteContentReviewTemplateResponse.class);
}
/**
*This API is used to delete an image sprite generating template.
* @param req DeleteImageSpriteTemplateRequest
* @return DeleteImageSpriteTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteImageSpriteTemplateResponse DeleteImageSpriteTemplate(DeleteImageSpriteTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteImageSpriteTemplate", DeleteImageSpriteTemplateResponse.class);
}
/**
*This API is used to delete image samples by image ID.
* @param req DeletePersonSampleRequest
* @return DeletePersonSampleResponse
* @throws TencentCloudSDKException
*/
public DeletePersonSampleResponse DeletePersonSample(DeletePersonSampleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeletePersonSample", DeletePersonSampleResponse.class);
}
/**
*This API is used to delete a custom sampled screencapturing template.
* @param req DeleteSampleSnapshotTemplateRequest
* @return DeleteSampleSnapshotTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteSampleSnapshotTemplateResponse DeleteSampleSnapshotTemplate(DeleteSampleSnapshotTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSampleSnapshotTemplate", DeleteSampleSnapshotTemplateResponse.class);
}
/**
*This API is used to delete a scheme.
* @param req DeleteScheduleRequest
* @return DeleteScheduleResponse
* @throws TencentCloudSDKException
*/
public DeleteScheduleResponse DeleteSchedule(DeleteScheduleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSchedule", DeleteScheduleResponse.class);
}
/**
*This API is used to delete a custom time point screencapturing template.
* @param req DeleteSnapshotByTimeOffsetTemplateRequest
* @return DeleteSnapshotByTimeOffsetTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteSnapshotByTimeOffsetTemplateResponse DeleteSnapshotByTimeOffsetTemplate(DeleteSnapshotByTimeOffsetTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteSnapshotByTimeOffsetTemplate", DeleteSnapshotByTimeOffsetTemplateResponse.class);
}
/**
*This API is used to delete a custom transcoding template.
* @param req DeleteTranscodeTemplateRequest
* @return DeleteTranscodeTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteTranscodeTemplateResponse DeleteTranscodeTemplate(DeleteTranscodeTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteTranscodeTemplate", DeleteTranscodeTemplateResponse.class);
}
/**
*This API is used to delete a custom watermarking template.
* @param req DeleteWatermarkTemplateRequest
* @return DeleteWatermarkTemplateResponse
* @throws TencentCloudSDKException
*/
public DeleteWatermarkTemplateResponse DeleteWatermarkTemplate(DeleteWatermarkTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteWatermarkTemplate", DeleteWatermarkTemplateResponse.class);
}
/**
*This API is used to delete keyword samples in batches.
* @param req DeleteWordSamplesRequest
* @return DeleteWordSamplesResponse
* @throws TencentCloudSDKException
*/
public DeleteWordSamplesResponse DeleteWordSamples(DeleteWordSamplesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteWordSamples", DeleteWordSamplesResponse.class);
}
/**
*This API is used to delete a workflow. An enabled workflow must be disabled before it can be deleted.
* @param req DeleteWorkflowRequest
* @return DeleteWorkflowResponse
* @throws TencentCloudSDKException
*/
public DeleteWorkflowResponse DeleteWorkflow(DeleteWorkflowRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DeleteWorkflow", DeleteWorkflowResponse.class);
}
/**
*This API is used to get the list of content analysis templates based on unique template ID. The returned result includes all eligible custom and preset video content analysis templates.
* @param req DescribeAIAnalysisTemplatesRequest
* @return DescribeAIAnalysisTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeAIAnalysisTemplatesResponse DescribeAIAnalysisTemplates(DescribeAIAnalysisTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAIAnalysisTemplates", DescribeAIAnalysisTemplatesResponse.class);
}
/**
*This API is used to get the list of content recognition templates based on unique template ID. The return result includes all eligible custom and preset content recognition templates.
* @param req DescribeAIRecognitionTemplatesRequest
* @return DescribeAIRecognitionTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeAIRecognitionTemplatesResponse DescribeAIRecognitionTemplates(DescribeAIRecognitionTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAIRecognitionTemplates", DescribeAIRecognitionTemplatesResponse.class);
}
/**
*This API is used to query the list of adaptive bitrate streaming templates and supports paginated queries by filters.
* @param req DescribeAdaptiveDynamicStreamingTemplatesRequest
* @return DescribeAdaptiveDynamicStreamingTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeAdaptiveDynamicStreamingTemplatesResponse DescribeAdaptiveDynamicStreamingTemplates(DescribeAdaptiveDynamicStreamingTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAdaptiveDynamicStreamingTemplates", DescribeAdaptiveDynamicStreamingTemplatesResponse.class);
}
/**
*This API is used to query the list of animated image generating templates and supports paged queries by filters.
* @param req DescribeAnimatedGraphicsTemplatesRequest
* @return DescribeAnimatedGraphicsTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeAnimatedGraphicsTemplatesResponse DescribeAnimatedGraphicsTemplates(DescribeAnimatedGraphicsTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeAnimatedGraphicsTemplates", DescribeAnimatedGraphicsTemplatesResponse.class);
}
/**
*This API is used to query content moderation templates by template ID. Both custom and preset templates that match the template IDs passed in will be returned.
* @param req DescribeContentReviewTemplatesRequest
* @return DescribeContentReviewTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeContentReviewTemplatesResponse DescribeContentReviewTemplates(DescribeContentReviewTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeContentReviewTemplates", DescribeContentReviewTemplatesResponse.class);
}
/**
*This API is used to query the list of image sprite generating templates and supports paged queries by filters.
* @param req DescribeImageSpriteTemplatesRequest
* @return DescribeImageSpriteTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeImageSpriteTemplatesResponse DescribeImageSpriteTemplates(DescribeImageSpriteTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeImageSpriteTemplates", DescribeImageSpriteTemplatesResponse.class);
}
/**
*This API is used to get the metadata of media, such as video image width/height, codec, length, and frame rate.
* @param req DescribeMediaMetaDataRequest
* @return DescribeMediaMetaDataResponse
* @throws TencentCloudSDKException
*/
public DescribeMediaMetaDataResponse DescribeMediaMetaData(DescribeMediaMetaDataRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeMediaMetaData", DescribeMediaMetaDataResponse.class);
}
/**
*This API is used to query the information of image samples. It supports paginated queries by image ID, name, and tag.
* @param req DescribePersonSamplesRequest
* @return DescribePersonSamplesResponse
* @throws TencentCloudSDKException
*/
public DescribePersonSamplesResponse DescribePersonSamples(DescribePersonSamplesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribePersonSamples", DescribePersonSamplesResponse.class);
}
/**
*This API is used to query the list of sampled screencapturing templates and supports paged queries by filters.
* @param req DescribeSampleSnapshotTemplatesRequest
* @return DescribeSampleSnapshotTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeSampleSnapshotTemplatesResponse DescribeSampleSnapshotTemplates(DescribeSampleSnapshotTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSampleSnapshotTemplates", DescribeSampleSnapshotTemplatesResponse.class);
}
/**
*This API is used to query a scheme.
* @param req DescribeSchedulesRequest
* @return DescribeSchedulesResponse
* @throws TencentCloudSDKException
*/
public DescribeSchedulesResponse DescribeSchedules(DescribeSchedulesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSchedules", DescribeSchedulesResponse.class);
}
/**
*This API is used to query the list of time point screencapturing templates and supports paged queries by filters.
* @param req DescribeSnapshotByTimeOffsetTemplatesRequest
* @return DescribeSnapshotByTimeOffsetTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeSnapshotByTimeOffsetTemplatesResponse DescribeSnapshotByTimeOffsetTemplates(DescribeSnapshotByTimeOffsetTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeSnapshotByTimeOffsetTemplates", DescribeSnapshotByTimeOffsetTemplatesResponse.class);
}
/**
*This API is used to query the details of execution status and result of a task submitted in the last 3 days by task ID.
* @param req DescribeTaskDetailRequest
* @return DescribeTaskDetailResponse
* @throws TencentCloudSDKException
*/
public DescribeTaskDetailResponse DescribeTaskDetail(DescribeTaskDetailRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTaskDetail", DescribeTaskDetailResponse.class);
}
/**
** This API is used to query tasks.
* If the data is large, one API call may not be able to obtain all the tasks in the query. You can use the `ScrollToken` parameter to query tasks with multiple calls.
* Only tasks in the last seven days (168 hours) can be queried.
* @param req DescribeTasksRequest
* @return DescribeTasksResponse
* @throws TencentCloudSDKException
*/
public DescribeTasksResponse DescribeTasks(DescribeTasksRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTasks", DescribeTasksResponse.class);
}
/**
*This API is used to get the list of transcoding templates based on unique template ID. The return result includes all eligible custom and [preset transcoding templates](https://intl.cloud.tencent.com/document/product/266/33476?from_cn_redirect=1#.E9.A2.84.E7.BD.AE.E8.BD.AC.E7.A0.81.E6.A8.A1.E6.9D.BF).
* @param req DescribeTranscodeTemplatesRequest
* @return DescribeTranscodeTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeTranscodeTemplatesResponse DescribeTranscodeTemplates(DescribeTranscodeTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeTranscodeTemplates", DescribeTranscodeTemplatesResponse.class);
}
/**
*This API is used to query custom watermarking templates and supports paged queries by filters.
* @param req DescribeWatermarkTemplatesRequest
* @return DescribeWatermarkTemplatesResponse
* @throws TencentCloudSDKException
*/
public DescribeWatermarkTemplatesResponse DescribeWatermarkTemplates(DescribeWatermarkTemplatesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeWatermarkTemplates", DescribeWatermarkTemplatesResponse.class);
}
/**
*This API is used to perform paged queries of keyword sample information by use case, keyword, and tag.
* @param req DescribeWordSamplesRequest
* @return DescribeWordSamplesResponse
* @throws TencentCloudSDKException
*/
public DescribeWordSamplesResponse DescribeWordSamples(DescribeWordSamplesRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeWordSamples", DescribeWordSamplesResponse.class);
}
/**
*This API is used to get the list of workflow details by workflow ID.
* @param req DescribeWorkflowsRequest
* @return DescribeWorkflowsResponse
* @throws TencentCloudSDKException
*/
public DescribeWorkflowsResponse DescribeWorkflows(DescribeWorkflowsRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DescribeWorkflows", DescribeWorkflowsResponse.class);
}
/**
*This API is used to disable a scheme.
* @param req DisableScheduleRequest
* @return DisableScheduleResponse
* @throws TencentCloudSDKException
*/
public DisableScheduleResponse DisableSchedule(DisableScheduleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisableSchedule", DisableScheduleResponse.class);
}
/**
*This API is used to disable a workflow.
* @param req DisableWorkflowRequest
* @return DisableWorkflowResponse
* @throws TencentCloudSDKException
*/
public DisableWorkflowResponse DisableWorkflow(DisableWorkflowRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "DisableWorkflow", DisableWorkflowResponse.class);
}
/**
*This API is used to edit a video to generate a new video. Editing actions may include:
1. **Simple editing**: Simple video editing such as clipping and splicing
1.1 Clipping a file to generate a new video
1.2 Splicing multiple files to generate a new video
1.3 Clipping multiple files and then splicing the clips to generate a new video
2. **Compositing**: Composing a new video as required
2.1 Adding different tracks (video, audio, subtitles) or elements (video, image, audio, text, empty)
2.2 Image: Adding, scaling, rotating, or mirroring an image
2.3 Audio: Adjusting volume and adding audio effects such as fade and reverb
2.4 Video: Adding transition effects, changing playback speed, splicing and clipping videos, adding subtitles, playing videos picture-in-picture, separating audio from videos, adding animation effects, etc.
* @param req EditMediaRequest
* @return EditMediaResponse
* @throws TencentCloudSDKException
*/
public EditMediaResponse EditMedia(EditMediaRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "EditMedia", EditMediaResponse.class);
}
/**
*This API is used to enable a scheme.
* @param req EnableScheduleRequest
* @return EnableScheduleResponse
* @throws TencentCloudSDKException
*/
public EnableScheduleResponse EnableSchedule(EnableScheduleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "EnableSchedule", EnableScheduleResponse.class);
}
/**
*This API is used to enable a workflow.
* @param req EnableWorkflowRequest
* @return EnableWorkflowResponse
* @throws TencentCloudSDKException
*/
public EnableWorkflowResponse EnableWorkflow(EnableWorkflowRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "EnableWorkflow", EnableWorkflowResponse.class);
}
/**
*This API is reserved for special circumstances. Do not use it unless you are directed to use it by technical support.
* @param req ExecuteFunctionRequest
* @return ExecuteFunctionResponse
* @throws TencentCloudSDKException
*/
public ExecuteFunctionResponse ExecuteFunction(ExecuteFunctionRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ExecuteFunction", ExecuteFunctionResponse.class);
}
/**
*This API is used to manage initiated tasks.
* @param req ManageTaskRequest
* @return ManageTaskResponse
* @throws TencentCloudSDKException
*/
public ManageTaskResponse ManageTask(ManageTaskRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ManageTask", ManageTaskResponse.class);
}
/**
*This API is used to modify a custom content analysis template.
Note: templates with an ID below 10000 are preset and cannot be modified.
* @param req ModifyAIAnalysisTemplateRequest
* @return ModifyAIAnalysisTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyAIAnalysisTemplateResponse ModifyAIAnalysisTemplate(ModifyAIAnalysisTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAIAnalysisTemplate", ModifyAIAnalysisTemplateResponse.class);
}
/**
*This API is used to modify a custom content recognition template.
* @param req ModifyAIRecognitionTemplateRequest
* @return ModifyAIRecognitionTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyAIRecognitionTemplateResponse ModifyAIRecognitionTemplate(ModifyAIRecognitionTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAIRecognitionTemplate", ModifyAIRecognitionTemplateResponse.class);
}
/**
*This API is used to modify an adaptive bitrate streaming template.
* @param req ModifyAdaptiveDynamicStreamingTemplateRequest
* @return ModifyAdaptiveDynamicStreamingTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyAdaptiveDynamicStreamingTemplateResponse ModifyAdaptiveDynamicStreamingTemplate(ModifyAdaptiveDynamicStreamingTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAdaptiveDynamicStreamingTemplate", ModifyAdaptiveDynamicStreamingTemplateResponse.class);
}
/**
*This API is used to modify a custom animated image generating template.
* @param req ModifyAnimatedGraphicsTemplateRequest
* @return ModifyAnimatedGraphicsTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyAnimatedGraphicsTemplateResponse ModifyAnimatedGraphicsTemplate(ModifyAnimatedGraphicsTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyAnimatedGraphicsTemplate", ModifyAnimatedGraphicsTemplateResponse.class);
}
/**
*This API is used to modify a custom content moderation template.
* @param req ModifyContentReviewTemplateRequest
* @return ModifyContentReviewTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyContentReviewTemplateResponse ModifyContentReviewTemplate(ModifyContentReviewTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyContentReviewTemplate", ModifyContentReviewTemplateResponse.class);
}
/**
*This API is used to modify a custom image sprite generating template.
* @param req ModifyImageSpriteTemplateRequest
* @return ModifyImageSpriteTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyImageSpriteTemplateResponse ModifyImageSpriteTemplate(ModifyImageSpriteTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyImageSpriteTemplate", ModifyImageSpriteTemplateResponse.class);
}
/**
*This API is used to modify image samples by image ID. You can use it to modify the name and description of an image sample and add/delete/reset facial features or tags. There must be at least one image left after the deletion of facial features; otherwise, please reset instead of delete the facial features.
* @param req ModifyPersonSampleRequest
* @return ModifyPersonSampleResponse
* @throws TencentCloudSDKException
*/
public ModifyPersonSampleResponse ModifyPersonSample(ModifyPersonSampleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyPersonSample", ModifyPersonSampleResponse.class);
}
/**
*This API is used to modify a custom sampled screencapturing template.
* @param req ModifySampleSnapshotTemplateRequest
* @return ModifySampleSnapshotTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifySampleSnapshotTemplateResponse ModifySampleSnapshotTemplate(ModifySampleSnapshotTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifySampleSnapshotTemplate", ModifySampleSnapshotTemplateResponse.class);
}
/**
*This API is used to modify a scheme.
* @param req ModifyScheduleRequest
* @return ModifyScheduleResponse
* @throws TencentCloudSDKException
*/
public ModifyScheduleResponse ModifySchedule(ModifyScheduleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifySchedule", ModifyScheduleResponse.class);
}
/**
*This API is used to modify a custom time point screencapturing template.
* @param req ModifySnapshotByTimeOffsetTemplateRequest
* @return ModifySnapshotByTimeOffsetTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifySnapshotByTimeOffsetTemplateResponse ModifySnapshotByTimeOffsetTemplate(ModifySnapshotByTimeOffsetTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifySnapshotByTimeOffsetTemplate", ModifySnapshotByTimeOffsetTemplateResponse.class);
}
/**
*This API is used to modify a custom transcoding template.
* @param req ModifyTranscodeTemplateRequest
* @return ModifyTranscodeTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyTranscodeTemplateResponse ModifyTranscodeTemplate(ModifyTranscodeTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyTranscodeTemplate", ModifyTranscodeTemplateResponse.class);
}
/**
*This API is used to modify a custom watermarking template. The watermark type cannot be modified.
* @param req ModifyWatermarkTemplateRequest
* @return ModifyWatermarkTemplateResponse
* @throws TencentCloudSDKException
*/
public ModifyWatermarkTemplateResponse ModifyWatermarkTemplate(ModifyWatermarkTemplateRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyWatermarkTemplate", ModifyWatermarkTemplateResponse.class);
}
/**
*This API is used to modify the use case and tag of a keyword. The keyword itself cannot be modified, but you can delete it and create another one if needed.
* @param req ModifyWordSampleRequest
* @return ModifyWordSampleResponse
* @throws TencentCloudSDKException
*/
public ModifyWordSampleResponse ModifyWordSample(ModifyWordSampleRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ModifyWordSample", ModifyWordSampleResponse.class);
}
/**
*This API is used to parse the content of an MPS live stream processing event notification from the `msgBody` field in the message received from CMQ.
Instead of initiating a video processing task, this API is used to help generate SDKs for various programming languages. You can parse the event notification based on the analytic function of the SDKs.
* @param req ParseLiveStreamProcessNotificationRequest
* @return ParseLiveStreamProcessNotificationResponse
* @throws TencentCloudSDKException
*/
public ParseLiveStreamProcessNotificationResponse ParseLiveStreamProcessNotification(ParseLiveStreamProcessNotificationRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ParseLiveStreamProcessNotification", ParseLiveStreamProcessNotificationResponse.class);
}
/**
*This API is used to parse the content of an MPS event notification from the `msgBody` field in the message received from CMQ.
Instead of initiating a video processing task, this API is used to help generate SDKs for various programming languages. You can parse the event notification based on the analytic function of the SDKs.
* @param req ParseNotificationRequest
* @return ParseNotificationResponse
* @throws TencentCloudSDKException
*/
public ParseNotificationResponse ParseNotification(ParseNotificationRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ParseNotification", ParseNotificationResponse.class);
}
/**
*This API is used to initiate live stream processing tasks. Such tasks may include the following:
* Intelligent content moderation (detection of pornographic content in images and audio, detection of sensitive information)
* Intelligent content recognition (face, full text, text keyword, full speech, speech keyword, real-time speech translation, object recognition, game event tracking)
* Intelligent content analysis (real-time news splitting)
* Quality control, including recognizing live stream format, checking audio/video content for flickering, blur, low light, overexposure, black bars, white bars, black screen, white screen, noise, pixelation, QR code, etc., and no-reference scoring.
* Recording
HTTP callbacks are supported for live stream processing events. Notifications can also be written in real time to and read from a CMQ queue. The output files of processing tasks are saved to the storage you specify.
* @param req ProcessLiveStreamRequest
* @return ProcessLiveStreamResponse
* @throws TencentCloudSDKException
*/
public ProcessLiveStreamResponse ProcessLiveStream(ProcessLiveStreamRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ProcessLiveStream", ProcessLiveStreamResponse.class);
}
/**
*This API is used to initiate processing tasks for media specified by a URL or in COS. Such tasks may include the following:
1. Video transcoding (general transcoding, Top Speed Codec, audio/video enhancement)
2. Animated image generating
3. Time point screencapturing
4. Sampled screencapturing
5. Image sprite generating
6. Adaptive bitrate streaming
7. Intelligent content moderation (detection of pornographic and sensitive content)
8. Intelligent content analysis (labeling, categorization, thumbnail generation, labeling by frame, splitting, highlight generation, opening and closing segment recognition)
9. Intelligent content recognition (face, full text, text keyword, full speech, speech keyword, speech translation, object recognition)
* @param req ProcessMediaRequest
* @return ProcessMediaResponse
* @throws TencentCloudSDKException
*/
public ProcessMediaResponse ProcessMedia(ProcessMediaRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ProcessMedia", ProcessMediaResponse.class);
}
/**
*This API is used to reset an existing workflow that is disabled.
* @param req ResetWorkflowRequest
* @return ResetWorkflowResponse
* @throws TencentCloudSDKException
*/
public ResetWorkflowResponse ResetWorkflow(ResetWorkflowRequest req) throws TencentCloudSDKException{
req.setSkipSign(false);
return this.internalRequest(req, "ResetWorkflow", ResetWorkflowResponse.class);
}
}