This commit is contained in:
2022-06-10 21:38:30 +09:00
commit 27f5152838
51323 changed files with 12934539 additions and 0 deletions
@@ -0,0 +1,97 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyCelebritiesResult;
.super Ljava/lang/Object;
.source "IdentifyCelebritiesResult.java"
# interfaces
.implements Lcom/amplifyframework/predictions/result/IdentifyResult;
# instance fields
.field private final celebrities:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/CelebrityDetails;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/CelebrityDetails;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyCelebritiesResult;->celebrities:Ljava/util/List;
return-void
.end method
.method public static fromCelebrities(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyCelebritiesResult;
.locals 1
.param p0 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/CelebrityDetails;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyCelebritiesResult;"
}
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyCelebritiesResult;
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p0, Ljava/util/List;
invoke-direct {v0, p0}, Lcom/amplifyframework/predictions/result/IdentifyCelebritiesResult;-><init>(Ljava/util/List;)V
return-object v0
.end method
# virtual methods
.method public getCelebrities()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/CelebrityDetails;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyCelebritiesResult;->celebrities:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$1;
.super Ljava/lang/Object;
.source "IdentifyDocumentTextResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,505 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.super Ljava/lang/Object;
.source "IdentifyDocumentTextResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private fullText:Ljava/lang/String;
.field private keyValues:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/BoundedKeyValue;",
">;"
}
.end annotation
.end field
.field private lines:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
.field private rawLineText:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private selections:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Selection;",
">;"
}
.end annotation
.end field
.field private tables:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Table;",
">;"
}
.end annotation
.end field
.field private words:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>()V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->rawLineText:Ljava/util/List;
.line 4
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->words:Ljava/util/List;
.line 5
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->lines:Ljava/util/List;
.line 6
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->selections:Ljava/util/List;
.line 7
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->tables:Ljava/util/List;
.line 8
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->keyValues:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$1;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;-><init>()V
return-void
.end method
# virtual methods
.method public build()Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;-><init>(Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$1;)V
return-object v0
.end method
.method public fullText(Ljava/lang/String;)Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->fullText:Ljava/lang/String;
return-object p0
.end method
.method public getFullText()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->fullText:Ljava/lang/String;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
.end method
.method public getKeyValues()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/BoundedKeyValue;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->keyValues:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getLines()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->lines:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getRawLineText()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->rawLineText:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getSelections()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Selection;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->selections:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getTables()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Table;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->tables:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getWords()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->words:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public keyValues(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/BoundedKeyValue;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->keyValues:Ljava/util/List;
return-object p0
.end method
.method public lines(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->lines:Ljava/util/List;
return-object p0
.end method
.method public rawLineText(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->rawLineText:Ljava/util/List;
return-object p0
.end method
.method public selections(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Selection;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->selections:Ljava/util/List;
return-object p0
.end method
.method public tables(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Table;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->tables:Ljava/util/List;
return-object p0
.end method
.method public words(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->words:Ljava/util/List;
return-object p0
.end method
@@ -0,0 +1,319 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;
.super Ljava/lang/Object;
.source "IdentifyDocumentTextResult.java"
# interfaces
.implements Lcom/amplifyframework/predictions/result/IdentifyResult;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
}
.end annotation
# instance fields
.field private final fullText:Ljava/lang/String;
.field private final keyValues:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/BoundedKeyValue;",
">;"
}
.end annotation
.end field
.field private final lines:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
.field private final rawLineText:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final selections:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Selection;",
">;"
}
.end annotation
.end field
.field private final tables:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Table;",
">;"
}
.end annotation
.end field
.field private final words:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;)V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->getFullText()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->fullText:Ljava/lang/String;
.line 4
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->getRawLineText()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->rawLineText:Ljava/util/List;
.line 5
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->getWords()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->words:Ljava/util/List;
.line 6
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->getLines()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->lines:Ljava/util/List;
.line 7
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->getSelections()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->selections:Ljava/util/List;
.line 8
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->getTables()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->tables:Ljava/util/List;
.line 9
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;->getKeyValues()Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->keyValues:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;-><init>(Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;)V
return-void
.end method
.method public static builder()Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$Builder;-><init>(Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult$1;)V
return-object v0
.end method
# virtual methods
.method public getFullText()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->fullText:Ljava/lang/String;
return-object v0
.end method
.method public getKeyValues()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/BoundedKeyValue;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->keyValues:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getLines()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->lines:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getRawLineText()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->rawLineText:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getSelections()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Selection;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->selections:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getTables()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Table;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->tables:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getWords()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyDocumentTextResult;->words:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,97 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyEntitiesResult;
.super Ljava/lang/Object;
.source "IdentifyEntitiesResult.java"
# interfaces
.implements Lcom/amplifyframework/predictions/result/IdentifyResult;
# instance fields
.field private final entities:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityDetails;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityDetails;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyEntitiesResult;->entities:Ljava/util/List;
return-void
.end method
.method public static fromEntityDetails(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyEntitiesResult;
.locals 1
.param p0 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityDetails;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyEntitiesResult;"
}
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyEntitiesResult;
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p0, Ljava/util/List;
invoke-direct {v0, p0}, Lcom/amplifyframework/predictions/result/IdentifyEntitiesResult;-><init>(Ljava/util/List;)V
return-object v0
.end method
# virtual methods
.method public getEntities()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityDetails;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyEntitiesResult;->entities:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,97 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyEntityMatchesResult;
.super Ljava/lang/Object;
.source "IdentifyEntityMatchesResult.java"
# interfaces
.implements Lcom/amplifyframework/predictions/result/IdentifyResult;
# instance fields
.field private final entityMatches:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityMatch;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Ljava/util/List;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityMatch;",
">;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyEntityMatchesResult;->entityMatches:Ljava/util/List;
return-void
.end method
.method public static fromEntityMatches(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyEntityMatchesResult;
.locals 1
.param p0 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityMatch;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyEntityMatchesResult;"
}
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyEntityMatchesResult;
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p0, Ljava/util/List;
invoke-direct {v0, p0}, Lcom/amplifyframework/predictions/result/IdentifyEntityMatchesResult;-><init>(Ljava/util/List;)V
return-object v0
.end method
# virtual methods
.method public getEntityMatches()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/EntityMatch;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyEntityMatchesResult;->entityMatches:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$1;
.super Ljava/lang/Object;
.source "IdentifyLabelsResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,145 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
.super Ljava/lang/Object;
.source "IdentifyLabelsResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private labels:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;"
}
.end annotation
.end field
.field private unsafeContent:Z
# direct methods
.method private constructor <init>()V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->labels:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$1;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;-><init>()V
return-void
.end method
# virtual methods
.method public build()Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;-><init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$1;)V
return-object v0
.end method
.method public getLabels()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->labels:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getUnsafeContent()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->unsafeContent:Z
return v0
.end method
.method public labels(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->labels:Ljava/util/List;
return-object p0
.end method
.method public unsafeContent(Z)Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
.locals 0
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iput-boolean p1, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->unsafeContent:Z
return-object p0
.end method
@@ -0,0 +1,112 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;
.super Ljava/lang/Object;
.source "IdentifyLabelsResult.java"
# interfaces
.implements Lcom/amplifyframework/predictions/result/IdentifyResult;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
}
.end annotation
# instance fields
.field private final labels:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;"
}
.end annotation
.end field
.field private final unsafeContent:Z
# direct methods
.method private constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;)V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->getLabels()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;->labels:Ljava/util/List;
.line 4
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;->getUnsafeContent()Z
move-result p1
iput-boolean p1, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;->unsafeContent:Z
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;-><init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;)V
return-void
.end method
.method public static builder()Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$Builder;-><init>(Lcom/amplifyframework/predictions/result/IdentifyLabelsResult$1;)V
return-object v0
.end method
# virtual methods
.method public getLabels()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Label;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;->labels:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public isUnsafeContent()Z
.locals 1
.line 1
iget-boolean v0, p0, Lcom/amplifyframework/predictions/result/IdentifyLabelsResult;->unsafeContent:Z
return v0
.end method
@@ -0,0 +1,3 @@
.class public interface abstract Lcom/amplifyframework/predictions/result/IdentifyResult;
.super Ljava/lang/Object;
.source "IdentifyResult.java"
@@ -0,0 +1,14 @@
.class synthetic Lcom/amplifyframework/predictions/result/IdentifyTextResult$1;
.super Ljava/lang/Object;
.source "IdentifyTextResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/IdentifyTextResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,265 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
.super Ljava/lang/Object;
.source "IdentifyTextResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/IdentifyTextResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private fullText:Ljava/lang/String;
.field private lines:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
.field private rawLineText:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private words:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public build()Lcom/amplifyframework/predictions/result/IdentifyTextResult;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/amplifyframework/predictions/result/IdentifyTextResult;-><init>(Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;Lcom/amplifyframework/predictions/result/IdentifyTextResult$1;)V
return-object v0
.end method
.method public fullText(Ljava/lang/String;)Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->fullText:Ljava/lang/String;
return-object p0
.end method
.method public getFullText()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->fullText:Ljava/lang/String;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
.end method
.method public getLines()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->lines:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getRawLineText()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->rawLineText:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public getWords()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->words:Ljava/util/List;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast v0, Ljava/util/List;
return-object v0
.end method
.method public lines(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->lines:Ljava/util/List;
return-object p0
.end method
.method public rawLineText(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->rawLineText:Ljava/util/List;
return-object p0
.end method
.method public words(Ljava/util/List;)Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;)",
"Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->words:Ljava/util/List;
return-object p0
.end method
@@ -0,0 +1,194 @@
.class public final Lcom/amplifyframework/predictions/result/IdentifyTextResult;
.super Ljava/lang/Object;
.source "IdentifyTextResult.java"
# interfaces
.implements Lcom/amplifyframework/predictions/result/IdentifyResult;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
}
.end annotation
# instance fields
.field private final fullText:Ljava/lang/String;
.field private final lines:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
.field private final rawLineText:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final words:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;)V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->getFullText()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->fullText:Ljava/lang/String;
.line 4
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->getRawLineText()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->rawLineText:Ljava/util/List;
.line 5
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->getWords()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->words:Ljava/util/List;
.line 6
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;->getLines()Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->lines:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;Lcom/amplifyframework/predictions/result/IdentifyTextResult$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/amplifyframework/predictions/result/IdentifyTextResult;-><init>(Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;)V
return-void
.end method
.method public static builder()Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;
invoke-direct {v0}, Lcom/amplifyframework/predictions/result/IdentifyTextResult$Builder;-><init>()V
return-object v0
.end method
# virtual methods
.method public getFullText()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->fullText:Ljava/lang/String;
return-object v0
.end method
.method public getLines()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->lines:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getRawLineText()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->rawLineText:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getWords()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/IdentifiedText;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/IdentifyTextResult;->words:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/amplifyframework/predictions/result/InterpretResult$1;
.super Ljava/lang/Object;
.source "InterpretResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/InterpretResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,368 @@
.class public final Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.super Ljava/lang/Object;
.source "InterpretResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/InterpretResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private entities:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Entity;",
">;"
}
.end annotation
.end field
.field private features:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Feature<",
"*>;>;"
}
.end annotation
.end field
.field private keyPhrases:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/KeyPhrase;",
">;"
}
.end annotation
.end field
.field private language:Lcom/amplifyframework/predictions/models/Language;
.field private sentiment:Lcom/amplifyframework/predictions/models/Sentiment;
.field private syntax:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Syntax;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>()V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->features:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/InterpretResult$1;)V
.locals 0
.line 1
invoke-direct {p0}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;-><init>()V
return-void
.end method
# virtual methods
.method public build()Lcom/amplifyframework/predictions/result/InterpretResult;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/InterpretResult;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/amplifyframework/predictions/result/InterpretResult;-><init>(Lcom/amplifyframework/predictions/result/InterpretResult$Builder;Lcom/amplifyframework/predictions/result/InterpretResult$1;)V
return-object v0
.end method
.method public entities(Ljava/util/List;)Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Entity;",
">;)",
"Lcom/amplifyframework/predictions/result/InterpretResult$Builder;"
}
.end annotation
.line 1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->entities:Ljava/util/List;
return-object p0
.end method
.method public feature(Lcom/amplifyframework/predictions/models/Feature;)Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 1
.param p1 # Lcom/amplifyframework/predictions/models/Feature;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/amplifyframework/predictions/models/Feature<",
"*>;)",
"Lcom/amplifyframework/predictions/result/InterpretResult$Builder;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->features:Ljava/util/List;
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-object p0
.end method
.method public features(Ljava/util/List;)Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Feature<",
"*>;>;)",
"Lcom/amplifyframework/predictions/result/InterpretResult$Builder;"
}
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
check-cast p1, Ljava/util/List;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->features:Ljava/util/List;
return-object p0
.end method
.method public getEntities()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Entity;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->entities:Ljava/util/List;
return-object v0
.end method
.method public getFeatures()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Feature<",
"*>;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->features:Ljava/util/List;
return-object v0
.end method
.method public getKeyPhrases()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/KeyPhrase;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->keyPhrases:Ljava/util/List;
return-object v0
.end method
.method public getLanguage()Lcom/amplifyframework/predictions/models/Language;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->language:Lcom/amplifyframework/predictions/models/Language;
return-object v0
.end method
.method public getSentiment()Lcom/amplifyframework/predictions/models/Sentiment;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->sentiment:Lcom/amplifyframework/predictions/models/Sentiment;
return-object v0
.end method
.method public getSyntax()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Syntax;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->syntax:Ljava/util/List;
return-object v0
.end method
.method public keyPhrases(Ljava/util/List;)Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/KeyPhrase;",
">;)",
"Lcom/amplifyframework/predictions/result/InterpretResult$Builder;"
}
.end annotation
.line 1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->keyPhrases:Ljava/util/List;
return-object p0
.end method
.method public language(Lcom/amplifyframework/predictions/models/Language;)Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 0
.param p1 # Lcom/amplifyframework/predictions/models/Language;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->language:Lcom/amplifyframework/predictions/models/Language;
return-object p0
.end method
.method public sentiment(Lcom/amplifyframework/predictions/models/Sentiment;)Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 0
.param p1 # Lcom/amplifyframework/predictions/models/Sentiment;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->sentiment:Lcom/amplifyframework/predictions/models/Sentiment;
return-object p0
.end method
.method public syntax(Ljava/util/List;)Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 0
.param p1 # Ljava/util/List;
.annotation build Landroidx/annotation/Nullable;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Syntax;",
">;)",
"Lcom/amplifyframework/predictions/result/InterpretResult$Builder;"
}
.end annotation
.line 1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->syntax:Ljava/util/List;
return-object p0
.end method
@@ -0,0 +1,254 @@
.class public final Lcom/amplifyframework/predictions/result/InterpretResult;
.super Ljava/lang/Object;
.source "InterpretResult.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
}
.end annotation
# instance fields
.field private final entities:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Entity;",
">;"
}
.end annotation
.end field
.field private final features:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Feature<",
"*>;>;"
}
.end annotation
.end field
.field private final keyPhrases:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/KeyPhrase;",
">;"
}
.end annotation
.end field
.field private final language:Lcom/amplifyframework/predictions/models/Language;
.field private final sentiment:Lcom/amplifyframework/predictions/models/Sentiment;
.field private final syntax:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Syntax;",
">;"
}
.end annotation
.end field
# direct methods
.method private constructor <init>(Lcom/amplifyframework/predictions/result/InterpretResult$Builder;)V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->getLanguage()Lcom/amplifyframework/predictions/models/Language;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->language:Lcom/amplifyframework/predictions/models/Language;
.line 4
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->getSentiment()Lcom/amplifyframework/predictions/models/Sentiment;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->sentiment:Lcom/amplifyframework/predictions/models/Sentiment;
.line 5
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->getKeyPhrases()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->keyPhrases:Ljava/util/List;
.line 6
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->getEntities()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->entities:Ljava/util/List;
.line 7
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->getSyntax()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->syntax:Ljava/util/List;
.line 8
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;->getFeatures()Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->features:Ljava/util/List;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/InterpretResult$Builder;Lcom/amplifyframework/predictions/result/InterpretResult$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/amplifyframework/predictions/result/InterpretResult;-><init>(Lcom/amplifyframework/predictions/result/InterpretResult$Builder;)V
return-void
.end method
.method public static builder()Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;
const/4 v1, 0x0
invoke-direct {v0, v1}, Lcom/amplifyframework/predictions/result/InterpretResult$Builder;-><init>(Lcom/amplifyframework/predictions/result/InterpretResult$1;)V
return-object v0
.end method
# virtual methods
.method public getEntities()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Entity;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->entities:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getFeatures()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Feature<",
"*>;>;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->features:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getKeyPhrases()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/KeyPhrase;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->keyPhrases:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
.method public getLanguage()Lcom/amplifyframework/predictions/models/Language;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->language:Lcom/amplifyframework/predictions/models/Language;
return-object v0
.end method
.method public getSentiment()Lcom/amplifyframework/predictions/models/Sentiment;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->sentiment:Lcom/amplifyframework/predictions/models/Sentiment;
return-object v0
.end method
.method public getSyntax()Ljava/util/List;
.locals 1
.annotation build Landroidx/annotation/Nullable;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/amplifyframework/predictions/models/Syntax;",
">;"
}
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/InterpretResult;->syntax:Ljava/util/List;
invoke-static {v0}, Lcom/amplifyframework/util/Immutable;->of(Ljava/util/List;)Ljava/util/List;
move-result-object v0
return-object v0
.end method
@@ -0,0 +1,57 @@
.class public final Lcom/amplifyframework/predictions/result/TextToSpeechResult;
.super Ljava/lang/Object;
.source "TextToSpeechResult.java"
# instance fields
.field private final audioData:Ljava/io/InputStream;
# direct methods
.method private constructor <init>(Ljava/io/InputStream;)V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lcom/amplifyframework/predictions/result/TextToSpeechResult;->audioData:Ljava/io/InputStream;
return-void
.end method
.method public static fromAudioData(Ljava/io/InputStream;)Lcom/amplifyframework/predictions/result/TextToSpeechResult;
.locals 2
.param p0 # Ljava/io/InputStream;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/TextToSpeechResult;
invoke-static {p0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
move-object v1, p0
check-cast v1, Ljava/io/InputStream;
invoke-direct {v0, p0}, Lcom/amplifyframework/predictions/result/TextToSpeechResult;-><init>(Ljava/io/InputStream;)V
return-object v0
.end method
# virtual methods
.method public getAudioData()Ljava/io/InputStream;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/TextToSpeechResult;->audioData:Ljava/io/InputStream;
return-object v0
.end method
@@ -0,0 +1,14 @@
.class synthetic Lcom/amplifyframework/predictions/result/TranslateTextResult$1;
.super Ljava/lang/Object;
.source "TranslateTextResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/TranslateTextResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x1009
name = null
.end annotation
@@ -0,0 +1,108 @@
.class public final Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;
.super Ljava/lang/Object;
.source "TranslateTextResult.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/amplifyframework/predictions/result/TranslateTextResult;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# instance fields
.field private targetLanguage:Lcom/amplifyframework/predictions/models/LanguageType;
.field private translatedText:Ljava/lang/String;
# direct methods
.method public constructor <init>()V
.locals 0
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public build()Lcom/amplifyframework/predictions/result/TranslateTextResult;
.locals 2
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/TranslateTextResult;
const/4 v1, 0x0
invoke-direct {v0, p0, v1}, Lcom/amplifyframework/predictions/result/TranslateTextResult;-><init>(Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;Lcom/amplifyframework/predictions/result/TranslateTextResult$1;)V
return-object v0
.end method
.method public getTargetLanguage()Lcom/amplifyframework/predictions/models/LanguageType;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;->targetLanguage:Lcom/amplifyframework/predictions/models/LanguageType;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
.end method
.method public getTranslatedText()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;->translatedText:Ljava/lang/String;
invoke-static {v0}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
return-object v0
.end method
.method public targetLanguage(Lcom/amplifyframework/predictions/models/LanguageType;)Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;
.locals 0
.param p1 # Lcom/amplifyframework/predictions/models/LanguageType;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;->targetLanguage:Lcom/amplifyframework/predictions/models/LanguageType;
return-object p0
.end method
.method public translatedText(Ljava/lang/String;)Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;
.locals 0
.param p1 # Ljava/lang/String;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
invoke-static {p1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
iput-object p1, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;->translatedText:Ljava/lang/String;
return-object p0
.end method
@@ -0,0 +1,88 @@
.class public final Lcom/amplifyframework/predictions/result/TranslateTextResult;
.super Ljava/lang/Object;
.source "TranslateTextResult.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;
}
.end annotation
# instance fields
.field private final targetLanguage:Lcom/amplifyframework/predictions/models/LanguageType;
.field private final translatedText:Ljava/lang/String;
# direct methods
.method private constructor <init>(Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;)V
.locals 1
.line 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 3
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;->getTranslatedText()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult;->translatedText:Ljava/lang/String;
.line 4
invoke-virtual {p1}, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;->getTargetLanguage()Lcom/amplifyframework/predictions/models/LanguageType;
move-result-object p1
iput-object p1, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult;->targetLanguage:Lcom/amplifyframework/predictions/models/LanguageType;
return-void
.end method
.method public synthetic constructor <init>(Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;Lcom/amplifyframework/predictions/result/TranslateTextResult$1;)V
.locals 0
.line 1
invoke-direct {p0, p1}, Lcom/amplifyframework/predictions/result/TranslateTextResult;-><init>(Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;)V
return-void
.end method
.method public static builder()Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
new-instance v0, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;
invoke-direct {v0}, Lcom/amplifyframework/predictions/result/TranslateTextResult$Builder;-><init>()V
return-object v0
.end method
# virtual methods
.method public getTargetLanguage()Lcom/amplifyframework/predictions/models/LanguageType;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult;->targetLanguage:Lcom/amplifyframework/predictions/models/LanguageType;
return-object v0
.end method
.method public getTranslatedText()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
.line 1
iget-object v0, p0, Lcom/amplifyframework/predictions/result/TranslateTextResult;->translatedText:Ljava/lang/String;
return-object v0
.end method