AndroidDevice$GetOffersResponse.smali
.class public final Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;
.super Lcom/google/protobuf/GeneratedMessageLite;
# interfaces
.implements Lcom/google/protobuf/MessageLiteOrBuilder;
# static fields
.field private static final i:Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;
.field public static j:Lcom/google/protobuf/Parser;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/protobuf/Parser<",
"Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;",
">;"
}
.end annotation
.end field
# instance fields
.field private f:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/avast/alpha/vanheim/api/Offers$Offer;",
">;"
}
.end annotation
.end field
.field private g:B
.field private h:I
# direct methods
.method static constructor <clinit>()V
.registers 2
new-instance v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse$1;
invoke-direct {v0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse$1;-><init>()V
sput-object v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->j:Lcom/google/protobuf/Parser;
new-instance v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;
const/4 v1, 0x1
invoke-direct {v0, v1}, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;-><init>(Z)V
sput-object v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->i:Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;
invoke-direct {v0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->i()V
return-void
.end method
.method private constructor <init>(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)V
.registers 8
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
invoke-direct {p0}, Lcom/google/protobuf/GeneratedMessageLite;-><init>()V
const/4 v0, -0x1
iput-byte v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->g:B
iput v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->h:I
invoke-direct {p0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->i()V
const/4 v0, 0x0
const/4 v1, 0x0
:cond_d
:goto_d
const/4 v2, 0x1
if-nez v0, :cond_61
:try_start_10
invoke-virtual {p1}, Lcom/google/protobuf/CodedInputStream;->u()I
move-result v3
if-eqz v3, :cond_3a
const/16 v4, 0xa
if-eq v3, v4, :cond_21
invoke-virtual {p0, p1, p2, v3}, Lcom/google/protobuf/GeneratedMessageLite;->g(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;I)Z
move-result v3
if-nez v3, :cond_d
goto :goto_3a
:cond_21
and-int/lit8 v3, v1, 0x1
if-eq v3, v2, :cond_2e
new-instance v3, Ljava/util/ArrayList;
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
iput-object v3, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
or-int/lit8 v1, v1, 0x1
:cond_2e
iget-object v3, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
sget-object v4, Lcom/avast/alpha/vanheim/api/Offers$Offer;->w:Lcom/google/protobuf/Parser;
invoke-virtual {p1, v4, p2}, Lcom/google/protobuf/CodedInputStream;->n(Lcom/google/protobuf/Parser;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/MessageLite;
move-result-object v4
invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_39
.catch Lcom/google/protobuf/InvalidProtocolBufferException; {:try_start_10 .. :try_end_39} :catch_4c
.catch Ljava/io/IOException; {:try_start_10 .. :try_end_39} :catch_3e
.catchall {:try_start_10 .. :try_end_39} :catchall_3c
goto :goto_d
:cond_3a
:goto_3a
const/4 v0, 0x1
goto :goto_d
:catchall_3c
move-exception p1
goto :goto_51
:catch_3e
move-exception p1
:try_start_3f
new-instance p2, Lcom/google/protobuf/InvalidProtocolBufferException;
invoke-virtual {p1}, Ljava/io/IOException;->getMessage()Ljava/lang/String;
move-result-object p1
invoke-direct {p2, p1}, Lcom/google/protobuf/InvalidProtocolBufferException;-><init>(Ljava/lang/String;)V
invoke-virtual {p2, p0}, Lcom/google/protobuf/InvalidProtocolBufferException;->g(Lcom/google/protobuf/MessageLite;)Lcom/google/protobuf/InvalidProtocolBufferException;
throw p2
:catch_4c
move-exception p1
invoke-virtual {p1, p0}, Lcom/google/protobuf/InvalidProtocolBufferException;->g(Lcom/google/protobuf/MessageLite;)Lcom/google/protobuf/InvalidProtocolBufferException;
throw p1
:try_end_51
.catchall {:try_start_3f .. :try_end_51} :catchall_3c
:goto_51
and-int/lit8 p2, v1, 0x1
if-ne p2, v2, :cond_5d
iget-object p2, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
invoke-static {p2}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p2
iput-object p2, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
:cond_5d
invoke-virtual {p0}, Lcom/google/protobuf/GeneratedMessageLite;->f()V
throw p1
:cond_61
and-int/lit8 p1, v1, 0x1
if-ne p1, v2, :cond_6d
iget-object p1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
invoke-static {p1}, Ljava/util/Collections;->unmodifiableList(Ljava/util/List;)Ljava/util/List;
move-result-object p1
iput-object p1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
:cond_6d
invoke-virtual {p0}, Lcom/google/protobuf/GeneratedMessageLite;->f()V
return-void
.end method
.method synthetic constructor <init>(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;Lcom/avast/alpha/vanheim/api/AndroidDevice$1;)V
.registers 4
.annotation system Ldalvik/annotation/Throws;
value = {
Lcom/google/protobuf/InvalidProtocolBufferException;
}
.end annotation
invoke-direct {p0, p1, p2}, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;-><init>(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)V
return-void
.end method
.method private constructor <init>(Z)V
.registers 2
invoke-direct {p0}, Lcom/google/protobuf/GeneratedMessageLite;-><init>()V
const/4 p1, -0x1
iput-byte p1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->g:B
iput p1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->h:I
return-void
.end method
.method private i()V
.registers 2
invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;
move-result-object v0
iput-object v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
return-void
.end method
.method public static parseFrom(Ljava/io/InputStream;)Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
sget-object v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->j:Lcom/google/protobuf/Parser;
invoke-interface {v0, p0}, Lcom/google/protobuf/Parser;->a(Ljava/io/InputStream;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;
return-object p0
.end method
# virtual methods
.method public b(Lcom/google/protobuf/CodedOutputStream;)V
.registers 5
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-virtual {p0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->c()I
const/4 v0, 0x0
:goto_4
iget-object v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v1
if-ge v0, v1, :cond_1b
iget-object v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
invoke-interface {v1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Lcom/google/protobuf/MessageLite;
const/4 v2, 0x1
invoke-virtual {p1, v2, v1}, Lcom/google/protobuf/CodedOutputStream;->M(ILcom/google/protobuf/MessageLite;)V
add-int/lit8 v0, v0, 0x1
goto :goto_4
:cond_1b
return-void
.end method
.method public c()I
.registers 5
iget v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->h:I
const/4 v1, -0x1
if-eq v0, v1, :cond_6
return v0
:cond_6
const/4 v0, 0x0
const/4 v1, 0x0
:goto_8
iget-object v2, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
invoke-interface {v2}, Ljava/util/List;->size()I
move-result v2
if-ge v0, v2, :cond_21
iget-object v2, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
invoke-interface {v2, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Lcom/google/protobuf/MessageLite;
const/4 v3, 0x1
invoke-static {v3, v2}, Lcom/google/protobuf/CodedOutputStream;->p(ILcom/google/protobuf/MessageLite;)I
move-result v2
add-int/2addr v1, v2
add-int/lit8 v0, v0, 0x1
goto :goto_8
:cond_21
iput v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->h:I
return v1
.end method
.method public h()Ljava/util/List;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/avast/alpha/vanheim/api/Offers$Offer;",
">;"
}
.end annotation
iget-object v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->f:Ljava/util/List;
return-object v0
.end method
.method public final isInitialized()Z
.registers 4
iget-byte v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->g:B
const/4 v1, 0x1
const/4 v2, -0x1
if-eq v0, v2, :cond_b
if-ne v0, v1, :cond_9
goto :goto_a
:cond_9
const/4 v1, 0x0
:goto_a
return v1
:cond_b
iput-byte v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$GetOffersResponse;->g:B
return v1
.end method