AndroidDevice$ReportInAppPurchaseResponse.smali

.class public final Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;
.super Lcom/google/protobuf/GeneratedMessageLite;

# interfaces
.implements Lcom/google/protobuf/MessageLiteOrBuilder;


# static fields
.field private static final j:Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;

.field public static k:Lcom/google/protobuf/Parser;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/protobuf/Parser<",
            "Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private f:I

.field private g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

.field private h:B

.field private i:I


# direct methods
.method static constructor <clinit>()V
    .registers 2

    new-instance v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse$1;

    invoke-direct {v0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse$1;-><init>()V

    sput-object v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->k:Lcom/google/protobuf/Parser;

    new-instance v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;-><init>(Z)V

    sput-object v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->j:Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;

    invoke-direct {v0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->i()V

    return-void
.end method

.method private constructor <init>(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;)V
    .registers 7
    .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$ReportInAppPurchaseResponse;->h:B

    iput v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->i:I

    invoke-direct {p0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->i()V

    const/4 v0, 0x0

    :cond_c
    :goto_c
    if-nez v0, :cond_62

    :try_start_e
    invoke-virtual {p1}, Lcom/google/protobuf/CodedInputStream;->u()I

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_47

    const/16 v3, 0xa

    if-eq v1, v3, :cond_20

    invoke-virtual {p0, p1, p2, v1}, Lcom/google/protobuf/GeneratedMessageLite;->g(Lcom/google/protobuf/CodedInputStream;Lcom/google/protobuf/ExtensionRegistryLite;I)Z

    move-result v1

    if-nez v1, :cond_c

    goto :goto_47

    :cond_20
    const/4 v1, 0x0

    iget v3, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->f:I

    and-int/2addr v3, v2

    if-ne v3, v2, :cond_2c

    iget-object v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

    invoke-virtual {v1}, Lcom/avast/alpha/common/api/Licences$MappedLicense;->I()Lcom/avast/alpha/common/api/Licences$MappedLicense$Builder;

    move-result-object v1

    :cond_2c
    sget-object v3, Lcom/avast/alpha/common/api/Licences$MappedLicense;->p:Lcom/google/protobuf/Parser;

    invoke-virtual {p1, v3, p2}, Lcom/google/protobuf/CodedInputStream;->n(Lcom/google/protobuf/Parser;Lcom/google/protobuf/ExtensionRegistryLite;)Lcom/google/protobuf/MessageLite;

    move-result-object v3

    check-cast v3, Lcom/avast/alpha/common/api/Licences$MappedLicense;

    iput-object v3, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

    if-eqz v1, :cond_41

    invoke-virtual {v1, v3}, Lcom/avast/alpha/common/api/Licences$MappedLicense$Builder;->n(Lcom/avast/alpha/common/api/Licences$MappedLicense;)Lcom/avast/alpha/common/api/Licences$MappedLicense$Builder;

    invoke-virtual {v1}, Lcom/avast/alpha/common/api/Licences$MappedLicense$Builder;->h()Lcom/avast/alpha/common/api/Licences$MappedLicense;

    move-result-object v1

    iput-object v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

    :cond_41
    iget v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->f:I

    or-int/2addr v1, v2

    iput v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->f:I
    :try_end_46
    .catch Lcom/google/protobuf/InvalidProtocolBufferException; {:try_start_e .. :try_end_46} :catch_59
    .catch Ljava/io/IOException; {:try_start_e .. :try_end_46} :catch_4b
    .catchall {:try_start_e .. :try_end_46} :catchall_49

    goto :goto_c

    :cond_47
    :goto_47
    const/4 v0, 0x1

    goto :goto_c

    :catchall_49
    move-exception p1

    goto :goto_5e

    :catch_4b
    move-exception p1

    :try_start_4c
    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_59
    move-exception p1

    invoke-virtual {p1, p0}, Lcom/google/protobuf/InvalidProtocolBufferException;->g(Lcom/google/protobuf/MessageLite;)Lcom/google/protobuf/InvalidProtocolBufferException;

    throw p1
    :try_end_5e
    .catchall {:try_start_4c .. :try_end_5e} :catchall_49

    :goto_5e
    invoke-virtual {p0}, Lcom/google/protobuf/GeneratedMessageLite;->f()V

    throw p1

    :cond_62
    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$ReportInAppPurchaseResponse;-><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$ReportInAppPurchaseResponse;->h:B

    iput p1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->i:I

    return-void
.end method

.method private i()V
    .registers 2

    invoke-static {}, Lcom/avast/alpha/common/api/Licences$MappedLicense;->w()Lcom/avast/alpha/common/api/Licences$MappedLicense;

    move-result-object v0

    iput-object v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

    return-void
.end method

.method public static parseFrom(Ljava/io/InputStream;)Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    sget-object v0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->k: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$ReportInAppPurchaseResponse;

    return-object p0
.end method


# virtual methods
.method public b(Lcom/google/protobuf/CodedOutputStream;)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0}, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->c()I

    iget v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->f:I

    const/4 v1, 0x1

    and-int/2addr v0, v1

    if-ne v0, v1, :cond_e

    iget-object v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

    invoke-virtual {p1, v1, v0}, Lcom/google/protobuf/CodedOutputStream;->M(ILcom/google/protobuf/MessageLite;)V

    :cond_e
    return-void
.end method

.method public c()I
    .registers 4

    iget v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->i:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_6

    return v0

    :cond_6
    const/4 v0, 0x0

    iget v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->f:I

    const/4 v2, 0x1

    and-int/2addr v1, v2

    if-ne v1, v2, :cond_14

    iget-object v1, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

    invoke-static {v2, v1}, Lcom/google/protobuf/CodedOutputStream;->p(ILcom/google/protobuf/MessageLite;)I

    move-result v1

    add-int/2addr v0, v1

    :cond_14
    iput v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->i:I

    return v0
.end method

.method public h()Lcom/avast/alpha/common/api/Licences$MappedLicense;
    .registers 2

    iget-object v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->g:Lcom/avast/alpha/common/api/Licences$MappedLicense;

    return-object v0
.end method

.method public final isInitialized()Z
    .registers 4

    iget-byte v0, p0, Lcom/avast/alpha/vanheim/api/AndroidDevice$ReportInAppPurchaseResponse;->h: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$ReportInAppPurchaseResponse;->h:B

    return v1
.end method