BugsBunnyEvent$ProtoAdapter_BugsBunnyEvent.smali

.class final Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$ProtoAdapter_BugsBunnyEvent;
.super Lcom/squareup/wire/ProtoAdapter;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1a
    name = "ProtoAdapter_BugsBunnyEvent"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/squareup/wire/ProtoAdapter<",
        "Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;",
        ">;"
    }
.end annotation


# direct methods
.method constructor <init>()V
    .registers 3

    sget-object v0, Lcom/squareup/wire/FieldEncoding;->LENGTH_DELIMITED:Lcom/squareup/wire/FieldEncoding;

    const-class v1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    invoke-direct {p0, v0, v1}, Lcom/squareup/wire/ProtoAdapter;-><init>(Lcom/squareup/wire/FieldEncoding;Ljava/lang/Class;)V

    return-void
.end method


# virtual methods
.method public decode(Lcom/squareup/wire/ProtoReader;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;
    .registers 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    new-instance v0, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    invoke-direct {v0}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;-><init>()V

    invoke-virtual {p1}, Lcom/squareup/wire/ProtoReader;->beginMessage()J

    move-result-wide v1

    :goto_9
    invoke-virtual {p1}, Lcom/squareup/wire/ProtoReader;->nextTag()I

    move-result v3

    const/4 v4, -0x1

    if-eq v3, v4, :cond_77

    packed-switch v3, :pswitch_data_80

    invoke-virtual {p1}, Lcom/squareup/wire/ProtoReader;->peekFieldEncoding()Lcom/squareup/wire/FieldEncoding;

    move-result-object v4

    invoke-virtual {v4}, Lcom/squareup/wire/FieldEncoding;->rawProtoAdapter()Lcom/squareup/wire/ProtoAdapter;

    move-result-object v5

    invoke-virtual {v5, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v5

    invoke-virtual {v0, v3, v4, v5}, Lcom/squareup/wire/Message$Builder;->addUnknownField(ILcom/squareup/wire/FieldEncoding;Ljava/lang/Object;)Lcom/squareup/wire/Message$Builder;

    goto :goto_9

    :pswitch_23
    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v3, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v0, v3}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->url(Ljava/lang/String;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    goto :goto_9

    :pswitch_2f
    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v3, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v0, v3}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->filename(Ljava/lang/String;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    goto :goto_9

    :pswitch_3b
    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v3, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v0, v3}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->hostname(Ljava/lang/String;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    goto :goto_9

    :pswitch_47
    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->UINT64:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v3, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Long;

    invoke-virtual {v0, v3}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->receive_time(Ljava/lang/Long;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    goto :goto_9

    :pswitch_53
    sget-object v3, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v3, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;

    invoke-virtual {v0, v3}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->identity(Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    goto :goto_9

    :pswitch_5f
    iget-object v3, v0, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->bunny_params:Ljava/util/List;

    sget-object v4, Lcom/avast/sb/plugins/bugsbunny/KeyValue;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v4, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v3, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_9

    :pswitch_6b
    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v3, p1}, Lcom/squareup/wire/ProtoAdapter;->decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/String;

    invoke-virtual {v0, v3}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->name(Ljava/lang/String;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    goto :goto_9

    :cond_77
    invoke-virtual {p1, v1, v2}, Lcom/squareup/wire/ProtoReader;->endMessage(J)V

    invoke-virtual {v0}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->build()Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    move-result-object p1

    return-object p1

    nop

    :pswitch_data_80
    .packed-switch 0x1
        :pswitch_6b
        :pswitch_5f
        :pswitch_53
        :pswitch_47
        :pswitch_3b
        :pswitch_2f
        :pswitch_23
    .end packed-switch
.end method

.method public bridge synthetic decode(Lcom/squareup/wire/ProtoReader;)Ljava/lang/Object;
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    invoke-virtual {p0, p1}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$ProtoAdapter_BugsBunnyEvent;->decode(Lcom/squareup/wire/ProtoReader;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    move-result-object p1

    return-object p1
.end method

.method public encode(Lcom/squareup/wire/ProtoWriter;Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;)V
    .registers 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    iget-object v0, p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->name:Ljava/lang/String;

    if-eqz v0, :cond_a

    sget-object v1, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v2, 0x1

    invoke-virtual {v1, p1, v2, v0}, Lcom/squareup/wire/ProtoAdapter;->encodeWithTag(Lcom/squareup/wire/ProtoWriter;ILjava/lang/Object;)V

    :cond_a
    sget-object v0, Lcom/avast/sb/plugins/bugsbunny/KeyValue;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v0}, Lcom/squareup/wire/ProtoAdapter;->asRepeated()Lcom/squareup/wire/ProtoAdapter;

    move-result-object v0

    const/4 v1, 0x2

    iget-object v2, p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->bunny_params:Ljava/util/List;

    invoke-virtual {v0, p1, v1, v2}, Lcom/squareup/wire/ProtoAdapter;->encodeWithTag(Lcom/squareup/wire/ProtoWriter;ILjava/lang/Object;)V

    iget-object v0, p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->identity:Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;

    if-eqz v0, :cond_20

    sget-object v1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    const/4 v2, 0x3

    invoke-virtual {v1, p1, v2, v0}, Lcom/squareup/wire/ProtoAdapter;->encodeWithTag(Lcom/squareup/wire/ProtoWriter;ILjava/lang/Object;)V

    :cond_20
    iget-object v0, p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->receive_time:Ljava/lang/Long;

    if-eqz v0, :cond_2a

    sget-object v1, Lcom/squareup/wire/ProtoAdapter;->UINT64:Lcom/squareup/wire/ProtoAdapter;

    const/4 v2, 0x4

    invoke-virtual {v1, p1, v2, v0}, Lcom/squareup/wire/ProtoAdapter;->encodeWithTag(Lcom/squareup/wire/ProtoWriter;ILjava/lang/Object;)V

    :cond_2a
    iget-object v0, p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->hostname:Ljava/lang/String;

    if-eqz v0, :cond_34

    sget-object v1, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v2, 0x5

    invoke-virtual {v1, p1, v2, v0}, Lcom/squareup/wire/ProtoAdapter;->encodeWithTag(Lcom/squareup/wire/ProtoWriter;ILjava/lang/Object;)V

    :cond_34
    iget-object v0, p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->filename:Ljava/lang/String;

    if-eqz v0, :cond_3e

    sget-object v1, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v2, 0x6

    invoke-virtual {v1, p1, v2, v0}, Lcom/squareup/wire/ProtoAdapter;->encodeWithTag(Lcom/squareup/wire/ProtoWriter;ILjava/lang/Object;)V

    :cond_3e
    iget-object v0, p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->url:Ljava/lang/String;

    if-eqz v0, :cond_48

    sget-object v1, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v2, 0x7

    invoke-virtual {v1, p1, v2, v0}, Lcom/squareup/wire/ProtoAdapter;->encodeWithTag(Lcom/squareup/wire/ProtoWriter;ILjava/lang/Object;)V

    :cond_48
    invoke-virtual {p2}, Lcom/squareup/wire/Message;->unknownFields()Lokio/ByteString;

    move-result-object p2

    invoke-virtual {p1, p2}, Lcom/squareup/wire/ProtoWriter;->writeBytes(Lokio/ByteString;)V

    return-void
.end method

.method public bridge synthetic encode(Lcom/squareup/wire/ProtoWriter;Ljava/lang/Object;)V
    .registers 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    check-cast p2, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    invoke-virtual {p0, p1, p2}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$ProtoAdapter_BugsBunnyEvent;->encode(Lcom/squareup/wire/ProtoWriter;Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;)V

    return-void
.end method

.method public encodedSize(Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;)I
    .registers 7

    iget-object v0, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->name:Ljava/lang/String;

    const/4 v1, 0x0

    if-eqz v0, :cond_d

    sget-object v2, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v3, 0x1

    invoke-virtual {v2, v3, v0}, Lcom/squareup/wire/ProtoAdapter;->encodedSizeWithTag(ILjava/lang/Object;)I

    move-result v0

    goto :goto_e

    :cond_d
    const/4 v0, 0x0

    :goto_e
    sget-object v2, Lcom/avast/sb/plugins/bugsbunny/KeyValue;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v2}, Lcom/squareup/wire/ProtoAdapter;->asRepeated()Lcom/squareup/wire/ProtoAdapter;

    move-result-object v2

    const/4 v3, 0x2

    iget-object v4, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->bunny_params:Ljava/util/List;

    invoke-virtual {v2, v3, v4}, Lcom/squareup/wire/ProtoAdapter;->encodedSizeWithTag(ILjava/lang/Object;)I

    move-result v2

    add-int/2addr v0, v2

    iget-object v2, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->identity:Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;

    if-eqz v2, :cond_28

    sget-object v3, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    const/4 v4, 0x3

    invoke-virtual {v3, v4, v2}, Lcom/squareup/wire/ProtoAdapter;->encodedSizeWithTag(ILjava/lang/Object;)I

    move-result v2

    goto :goto_29

    :cond_28
    const/4 v2, 0x0

    :goto_29
    add-int/2addr v0, v2

    iget-object v2, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->receive_time:Ljava/lang/Long;

    if-eqz v2, :cond_36

    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->UINT64:Lcom/squareup/wire/ProtoAdapter;

    const/4 v4, 0x4

    invoke-virtual {v3, v4, v2}, Lcom/squareup/wire/ProtoAdapter;->encodedSizeWithTag(ILjava/lang/Object;)I

    move-result v2

    goto :goto_37

    :cond_36
    const/4 v2, 0x0

    :goto_37
    add-int/2addr v0, v2

    iget-object v2, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->hostname:Ljava/lang/String;

    if-eqz v2, :cond_44

    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v4, 0x5

    invoke-virtual {v3, v4, v2}, Lcom/squareup/wire/ProtoAdapter;->encodedSizeWithTag(ILjava/lang/Object;)I

    move-result v2

    goto :goto_45

    :cond_44
    const/4 v2, 0x0

    :goto_45
    add-int/2addr v0, v2

    iget-object v2, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->filename:Ljava/lang/String;

    if-eqz v2, :cond_52

    sget-object v3, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v4, 0x6

    invoke-virtual {v3, v4, v2}, Lcom/squareup/wire/ProtoAdapter;->encodedSizeWithTag(ILjava/lang/Object;)I

    move-result v2

    goto :goto_53

    :cond_52
    const/4 v2, 0x0

    :goto_53
    add-int/2addr v0, v2

    iget-object v2, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->url:Ljava/lang/String;

    if-eqz v2, :cond_5f

    sget-object v1, Lcom/squareup/wire/ProtoAdapter;->STRING:Lcom/squareup/wire/ProtoAdapter;

    const/4 v3, 0x7

    invoke-virtual {v1, v3, v2}, Lcom/squareup/wire/ProtoAdapter;->encodedSizeWithTag(ILjava/lang/Object;)I

    move-result v1

    :cond_5f
    add-int/2addr v0, v1

    invoke-virtual {p1}, Lcom/squareup/wire/Message;->unknownFields()Lokio/ByteString;

    move-result-object p1

    invoke-virtual {p1}, Lokio/ByteString;->Q()I

    move-result p1

    add-int/2addr v0, p1

    return v0
.end method

.method public bridge synthetic encodedSize(Ljava/lang/Object;)I
    .registers 2

    check-cast p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    invoke-virtual {p0, p1}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$ProtoAdapter_BugsBunnyEvent;->encodedSize(Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;)I

    move-result p1

    return p1
.end method

.method public redact(Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;
    .registers 4

    invoke-virtual {p1}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;->newBuilder()Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;

    move-result-object p1

    iget-object v0, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->bunny_params:Ljava/util/List;

    sget-object v1, Lcom/avast/sb/plugins/bugsbunny/KeyValue;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    invoke-static {v0, v1}, Lcom/squareup/wire/internal/Internal;->redactElements(Ljava/util/List;Lcom/squareup/wire/ProtoAdapter;)V

    iget-object v0, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->identity:Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;

    if-eqz v0, :cond_19

    sget-object v1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;->ADAPTER:Lcom/squareup/wire/ProtoAdapter;

    invoke-virtual {v1, v0}, Lcom/squareup/wire/ProtoAdapter;->redact(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;

    iput-object v0, p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->identity:Lcom/avast/sb/plugins/bugsbunny/BugsBunnyIdentity;

    :cond_19
    invoke-virtual {p1}, Lcom/squareup/wire/Message$Builder;->clearUnknownFields()Lcom/squareup/wire/Message$Builder;

    invoke-virtual {p1}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$Builder;->build()Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    move-result-object p1

    return-object p1
.end method

.method public bridge synthetic redact(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 2

    check-cast p1, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    invoke-virtual {p0, p1}, Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent$ProtoAdapter_BugsBunnyEvent;->redact(Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;)Lcom/avast/sb/plugins/bugsbunny/BugsBunnyEvent;

    move-result-object p1

    return-object p1
.end method