-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_enums.go
106 lines (85 loc) · 2.77 KB
/
api_enums.go
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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package transcribe
type LanguageCode string
// Enum values for LanguageCode
const (
LanguageCodeEnUs LanguageCode = "en-US"
LanguageCodeEsUs LanguageCode = "es-US"
LanguageCodeEnAu LanguageCode = "en-AU"
LanguageCodeFrCa LanguageCode = "fr-CA"
LanguageCodeEnGb LanguageCode = "en-GB"
LanguageCodeDeDe LanguageCode = "de-DE"
LanguageCodePtBr LanguageCode = "pt-BR"
LanguageCodeFrFr LanguageCode = "fr-FR"
LanguageCodeItIt LanguageCode = "it-IT"
LanguageCodeKoKr LanguageCode = "ko-KR"
LanguageCodeEsEs LanguageCode = "es-ES"
LanguageCodeEnIn LanguageCode = "en-IN"
LanguageCodeHiIn LanguageCode = "hi-IN"
LanguageCodeArSa LanguageCode = "ar-SA"
LanguageCodeRuRu LanguageCode = "ru-RU"
LanguageCodeZhCn LanguageCode = "zh-CN"
)
func (enum LanguageCode) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum LanguageCode) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type MediaFormat string
// Enum values for MediaFormat
const (
MediaFormatMp3 MediaFormat = "mp3"
MediaFormatMp4 MediaFormat = "mp4"
MediaFormatWav MediaFormat = "wav"
MediaFormatFlac MediaFormat = "flac"
)
func (enum MediaFormat) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum MediaFormat) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type OutputLocationType string
// Enum values for OutputLocationType
const (
OutputLocationTypeCustomerBucket OutputLocationType = "CUSTOMER_BUCKET"
OutputLocationTypeServiceBucket OutputLocationType = "SERVICE_BUCKET"
)
func (enum OutputLocationType) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum OutputLocationType) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type TranscriptionJobStatus string
// Enum values for TranscriptionJobStatus
const (
TranscriptionJobStatusInProgress TranscriptionJobStatus = "IN_PROGRESS"
TranscriptionJobStatusFailed TranscriptionJobStatus = "FAILED"
TranscriptionJobStatusCompleted TranscriptionJobStatus = "COMPLETED"
)
func (enum TranscriptionJobStatus) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum TranscriptionJobStatus) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}
type VocabularyState string
// Enum values for VocabularyState
const (
VocabularyStatePending VocabularyState = "PENDING"
VocabularyStateReady VocabularyState = "READY"
VocabularyStateFailed VocabularyState = "FAILED"
)
func (enum VocabularyState) MarshalValue() (string, error) {
return string(enum), nil
}
func (enum VocabularyState) MarshalValueBuf(b []byte) ([]byte, error) {
b = b[0:0]
return append(b, enum...), nil
}