Skip to content

Commit

Permalink
Merge pull request #39 from AssemblyAI/fern-bot/12-13-2023-0406PM
Browse files Browse the repository at this point in the history
🌿 Fern Regeneration -- December 13, 2023
  • Loading branch information
Swimburger authored Dec 13, 2023
2 parents 222bdcc + 4ea1271 commit b3af4c8
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.assemblyai'
artifactId = 'assemblyai-java'
version = '0.0.5-beta11'
version = '1.0.0'
from components.java
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/assemblyai/api/core/ClientOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ private ClientOptions(
"X-Fern-SDK-Name",
"com.assemblyai.fern:api-sdk",
"X-Fern-SDK-Version",
"0.0.5-beta11",
"1.0.0",
"X-Fern-Language",
"JAVA"));
this.headerSuppliers = headerSuppliers;
Expand Down
83 changes: 83 additions & 0 deletions src/main/java/com/assemblyai/api/types/AudioEncoding.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.assemblyai.api.types;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public final class AudioEncoding {
public static final AudioEncoding PCM_S_16_LE = new AudioEncoding(Value.PCM_S_16_LE, "pcm_s16le");

public static final AudioEncoding PCM_MULAW = new AudioEncoding(Value.PCM_MULAW, "pcm_mulaw");

private final Value value;

private final String string;

AudioEncoding(Value value, String string) {
this.value = value;
this.string = string;
}

public Value getEnumValue() {
return value;
}

@Override
@JsonValue
public String toString() {
return this.string;
}

@Override
public boolean equals(Object other) {
return (this == other)
|| (other instanceof AudioEncoding && this.string.equals(((AudioEncoding) other).string));
}

@Override
public int hashCode() {
return this.string.hashCode();
}

public <T> T visit(Visitor<T> visitor) {
switch (value) {
case PCM_S_16_LE:
return visitor.visitPcmS16Le();
case PCM_MULAW:
return visitor.visitPcmMulaw();
case UNKNOWN:
default:
return visitor.visitUnknown(string);
}
}

@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
public static AudioEncoding valueOf(String value) {
switch (value) {
case "pcm_s16le":
return PCM_S_16_LE;
case "pcm_mulaw":
return PCM_MULAW;
default:
return new AudioEncoding(Value.UNKNOWN, value);
}
}

public enum Value {
PCM_S_16_LE,

PCM_MULAW,

UNKNOWN
}

public interface Visitor<T> {
T visitPcmS16Le();

T visitPcmMulaw();

T visitUnknown(String unknownType);
}
}

0 comments on commit b3af4c8

Please sign in to comment.