File tree 2 files changed +11
-1
lines changed
src/main/java/com/assemblyai/api/resources/transcripts/types
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ publishing {
47
47
maven(MavenPublication ) {
48
48
groupId = ' com.assemblyai'
49
49
artifactId = ' assemblyai-java'
50
- version = ' 1.0.8 '
50
+ version = ' 1.0.9 '
51
51
from components. java
52
52
}
53
53
}
Original file line number Diff line number Diff line change 7
7
import com .fasterxml .jackson .annotation .JsonValue ;
8
8
9
9
public final class SpeechModel {
10
+ public static final SpeechModel CONFORMER2 = new SpeechModel (Value .CONFORMER2 , "conformer-2" );
11
+
10
12
public static final SpeechModel NANO = new SpeechModel (Value .NANO , "nano" );
11
13
12
14
private final Value value ;
@@ -40,6 +42,8 @@ public int hashCode() {
40
42
41
43
public <T > T visit (Visitor <T > visitor ) {
42
44
switch (value ) {
45
+ case CONFORMER2 :
46
+ return visitor .visitConformer2 ();
43
47
case NANO :
44
48
return visitor .visitNano ();
45
49
case UNKNOWN :
@@ -51,6 +55,8 @@ public <T> T visit(Visitor<T> visitor) {
51
55
@ JsonCreator (mode = JsonCreator .Mode .DELEGATING )
52
56
public static SpeechModel valueOf (String value ) {
53
57
switch (value ) {
58
+ case "conformer-2" :
59
+ return CONFORMER2 ;
54
60
case "nano" :
55
61
return NANO ;
56
62
default :
@@ -61,12 +67,16 @@ public static SpeechModel valueOf(String value) {
61
67
public enum Value {
62
68
NANO ,
63
69
70
+ CONFORMER2 ,
71
+
64
72
UNKNOWN
65
73
}
66
74
67
75
public interface Visitor <T > {
68
76
T visitNano ();
69
77
78
+ T visitConformer2 ();
79
+
70
80
T visitUnknown (String unknownType );
71
81
}
72
82
}
You can’t perform that action at this time.
0 commit comments