w.smali

.class public final Lcom/google/protobuf/w;
.super Lcom/google/protobuf/a;
.source "SourceFile"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/google/protobuf/w$c;
    }
.end annotation


# instance fields
.field public final a:Lcom/google/protobuf/t$b;

.field public final b:Lcom/google/protobuf/l0;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/google/protobuf/l0<",
            "Lcom/google/protobuf/t$g;",
            ">;"
        }
    .end annotation
.end field

.field public final c:[Lcom/google/protobuf/t$g;

.field public final d:Lcom/google/protobuf/i3;

.field public e:I


# direct methods
.method public constructor <init>(Lcom/google/protobuf/t$b;Lcom/google/protobuf/l0;[Lcom/google/protobuf/t$g;Lcom/google/protobuf/i3;)V
    .registers 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/google/protobuf/t$b;",
            "Lcom/google/protobuf/l0<",
            "Lcom/google/protobuf/t$g;",
            ">;[",
            "Lcom/google/protobuf/t$g;",
            "Lcom/google/protobuf/i3;",
            ")V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Lcom/google/protobuf/a;-><init>()V

    const/4 v0, -0x1

    .line 2
    iput v0, p0, Lcom/google/protobuf/w;->e:I

    .line 3
    iput-object p1, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    .line 4
    iput-object p2, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    .line 5
    iput-object p3, p0, Lcom/google/protobuf/w;->c:[Lcom/google/protobuf/t$g;

    .line 6
    iput-object p4, p0, Lcom/google/protobuf/w;->d:Lcom/google/protobuf/i3;

    return-void
.end method

.method public static a(Lcom/google/protobuf/t$b;)Lcom/google/protobuf/w;
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/google/protobuf/t$b;->a:Lcom/google/protobuf/DescriptorProtos$DescriptorProto;

    .line 2
    invoke-virtual {v0}, Lcom/google/protobuf/DescriptorProtos$DescriptorProto;->getOneofDeclCount()I

    move-result v0

    .line 3
    new-array v0, v0, [Lcom/google/protobuf/t$g;

    .line 4
    new-instance v1, Lcom/google/protobuf/w;

    .line 5
    sget-object v2, Lcom/google/protobuf/l0;->d:Lcom/google/protobuf/l0;

    .line 6
    sget-object v3, Lcom/google/protobuf/i3;->b:Lcom/google/protobuf/i3;

    .line 7
    invoke-direct {v1, p0, v2, v0, v3}, Lcom/google/protobuf/w;-><init>(Lcom/google/protobuf/t$b;Lcom/google/protobuf/l0;[Lcom/google/protobuf/t$g;Lcom/google/protobuf/i3;)V

    return-object v1
.end method


# virtual methods
.method public final X()Lcom/google/protobuf/w$c;
    .registers 3

    .line 1
    new-instance v0, Lcom/google/protobuf/w$c;

    iget-object v1, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    .line 2
    invoke-direct {v0, v1}, Lcom/google/protobuf/w$c;-><init>(Lcom/google/protobuf/t$b;)V

    return-object v0
.end method

.method public final getAllFields()Ljava/util/Map;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/Map<",
            "Lcom/google/protobuf/t$g;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation

    iget-object v0, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    invoke-virtual {v0}, Lcom/google/protobuf/l0;->i()Ljava/util/Map;

    move-result-object v0

    return-object v0
.end method

.method public final getDefaultInstanceForType()Lcom/google/protobuf/l1;
    .registers 2

    .line 1
    iget-object v0, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    invoke-static {v0}, Lcom/google/protobuf/w;->a(Lcom/google/protobuf/t$b;)Lcom/google/protobuf/w;

    move-result-object v0

    return-object v0
.end method

.method public final getDefaultInstanceForType()Lcom/google/protobuf/o1;
    .registers 2

    .line 2
    iget-object v0, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    invoke-static {v0}, Lcom/google/protobuf/w;->a(Lcom/google/protobuf/t$b;)Lcom/google/protobuf/w;

    move-result-object v0

    return-object v0
.end method

.method public final getDescriptorForType()Lcom/google/protobuf/t$b;
    .registers 2

    iget-object v0, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    return-object v0
.end method

.method public final getField(Lcom/google/protobuf/t$g;)Ljava/lang/Object;
    .registers 4

    .line 1
    iget-object v0, p1, Lcom/google/protobuf/t$g;->h:Lcom/google/protobuf/t$b;

    .line 2
    iget-object v1, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    if-ne v0, v1, :cond_2f

    .line 3
    iget-object v0, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    invoke-virtual {v0, p1}, Lcom/google/protobuf/l0;->j(Lcom/google/protobuf/l0$c;)Ljava/lang/Object;

    move-result-object v0

    if-nez v0, :cond_2e

    .line 4
    invoke-virtual {p1}, Lcom/google/protobuf/t$g;->isRepeated()Z

    move-result v0

    if-eqz v0, :cond_19

    .line 5
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v0

    goto :goto_2e

    .line 6
    :cond_19
    invoke-virtual {p1}, Lcom/google/protobuf/t$g;->j()Lcom/google/protobuf/t$g$b;

    move-result-object v0

    sget-object v1, Lcom/google/protobuf/t$g$b;->MESSAGE:Lcom/google/protobuf/t$g$b;

    if-ne v0, v1, :cond_2a

    .line 7
    invoke-virtual {p1}, Lcom/google/protobuf/t$g;->k()Lcom/google/protobuf/t$b;

    move-result-object p1

    invoke-static {p1}, Lcom/google/protobuf/w;->a(Lcom/google/protobuf/t$b;)Lcom/google/protobuf/w;

    move-result-object v0

    goto :goto_2e

    .line 8
    :cond_2a
    invoke-virtual {p1}, Lcom/google/protobuf/t$g;->g()Ljava/lang/Object;

    move-result-object v0

    :cond_2e
    :goto_2e
    return-object v0

    .line 9
    :cond_2f
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "FieldDescriptor does not match message type."

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final getOneofFieldDescriptor(Lcom/google/protobuf/t$k;)Lcom/google/protobuf/t$g;
    .registers 4

    .line 1
    iget-object v0, p1, Lcom/google/protobuf/t$k;->e:Lcom/google/protobuf/t$b;

    .line 2
    iget-object v1, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    if-ne v0, v1, :cond_d

    .line 3
    iget-object v0, p0, Lcom/google/protobuf/w;->c:[Lcom/google/protobuf/t$g;

    .line 4
    iget p1, p1, Lcom/google/protobuf/t$k;->a:I

    .line 5
    aget-object p1, v0, p1

    return-object p1

    .line 6
    :cond_d
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "OneofDescriptor does not match message type."

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final getParserForType()Lcom/google/protobuf/f2;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/google/protobuf/f2<",
            "Lcom/google/protobuf/w;",
            ">;"
        }
    .end annotation

    new-instance v0, Lcom/google/protobuf/w$a;

    invoke-direct {v0, p0}, Lcom/google/protobuf/w$a;-><init>(Lcom/google/protobuf/w;)V

    return-object v0
.end method

.method public final getSerializedSize()I
    .registers 3

    .line 1
    iget v0, p0, Lcom/google/protobuf/w;->e:I

    const/4 v1, -0x1

    if-eq v0, v1, :cond_6

    return v0

    .line 2
    :cond_6
    iget-object v0, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    invoke-virtual {v0}, Lcom/google/protobuf/t$b;->n()Lcom/google/protobuf/DescriptorProtos$MessageOptions;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/protobuf/DescriptorProtos$MessageOptions;->getMessageSetWireFormat()Z

    move-result v0

    if-eqz v0, :cond_1f

    .line 3
    iget-object v0, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    invoke-virtual {v0}, Lcom/google/protobuf/l0;->k()I

    move-result v0

    .line 4
    iget-object v1, p0, Lcom/google/protobuf/w;->d:Lcom/google/protobuf/i3;

    invoke-virtual {v1}, Lcom/google/protobuf/i3;->a()I

    move-result v1

    goto :goto_2b

    .line 5
    :cond_1f
    iget-object v0, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    invoke-virtual {v0}, Lcom/google/protobuf/l0;->o()I

    move-result v0

    .line 6
    iget-object v1, p0, Lcom/google/protobuf/w;->d:Lcom/google/protobuf/i3;

    invoke-virtual {v1}, Lcom/google/protobuf/i3;->getSerializedSize()I

    move-result v1

    :goto_2b
    add-int/2addr v1, v0

    .line 7
    iput v1, p0, Lcom/google/protobuf/w;->e:I

    return v1
.end method

.method public final getUnknownFields()Lcom/google/protobuf/i3;
    .registers 2

    iget-object v0, p0, Lcom/google/protobuf/w;->d:Lcom/google/protobuf/i3;

    return-object v0
.end method

.method public final hasField(Lcom/google/protobuf/t$g;)Z
    .registers 4

    .line 1
    iget-object v0, p1, Lcom/google/protobuf/t$g;->h:Lcom/google/protobuf/t$b;

    .line 2
    iget-object v1, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    if-ne v0, v1, :cond_d

    .line 3
    iget-object v0, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    invoke-virtual {v0, p1}, Lcom/google/protobuf/l0;->q(Lcom/google/protobuf/l0$c;)Z

    move-result p1

    return p1

    .line 4
    :cond_d
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "FieldDescriptor does not match message type."

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final hasOneof(Lcom/google/protobuf/t$k;)Z
    .registers 4

    .line 1
    iget-object v0, p1, Lcom/google/protobuf/t$k;->e:Lcom/google/protobuf/t$b;

    .line 2
    iget-object v1, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    if-ne v0, v1, :cond_12

    .line 3
    iget-object v0, p0, Lcom/google/protobuf/w;->c:[Lcom/google/protobuf/t$g;

    .line 4
    iget p1, p1, Lcom/google/protobuf/t$k;->a:I

    .line 5
    aget-object p1, v0, p1

    if-nez p1, :cond_10

    const/4 p1, 0x0

    return p1

    :cond_10
    const/4 p1, 0x1

    return p1

    .line 6
    :cond_12
    new-instance p1, Ljava/lang/IllegalArgumentException;

    const-string v0, "OneofDescriptor does not match message type."

    invoke-direct {p1, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public final isInitialized()Z
    .registers 5

    .line 1
    iget-object v0, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    iget-object v1, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    .line 2
    invoke-virtual {v0}, Lcom/google/protobuf/t$b;->j()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_c
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_26

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/google/protobuf/t$g;

    .line 3
    invoke-virtual {v2}, Lcom/google/protobuf/t$g;->r()Z

    move-result v3

    if-eqz v3, :cond_c

    .line 4
    invoke-virtual {v1, v2}, Lcom/google/protobuf/l0;->q(Lcom/google/protobuf/l0$c;)Z

    move-result v2

    if-nez v2, :cond_c

    const/4 v0, 0x0

    goto :goto_2a

    .line 5
    :cond_26
    invoke-virtual {v1}, Lcom/google/protobuf/l0;->s()Z

    move-result v0

    :goto_2a
    return v0
.end method

.method public final bridge synthetic newBuilderForType()Lcom/google/protobuf/l1$a;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lcom/google/protobuf/w;->X()Lcom/google/protobuf/w$c;

    move-result-object v0

    return-object v0
.end method

.method public final bridge synthetic newBuilderForType()Lcom/google/protobuf/o1$a;
    .registers 2

    .line 2
    invoke-virtual {p0}, Lcom/google/protobuf/w;->X()Lcom/google/protobuf/w$c;

    move-result-object v0

    return-object v0
.end method

.method public final toBuilder()Lcom/google/protobuf/l1$a;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lcom/google/protobuf/w;->X()Lcom/google/protobuf/w$c;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/google/protobuf/w$c;->f(Lcom/google/protobuf/l1;)Lcom/google/protobuf/w$c;

    move-result-object v0

    return-object v0
.end method

.method public final toBuilder()Lcom/google/protobuf/o1$a;
    .registers 2

    .line 2
    invoke-virtual {p0}, Lcom/google/protobuf/w;->X()Lcom/google/protobuf/w$c;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/google/protobuf/w$c;->f(Lcom/google/protobuf/l1;)Lcom/google/protobuf/w$c;

    move-result-object v0

    return-object v0
.end method

.method public final writeTo(Lcom/google/protobuf/o;)V
    .registers 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lcom/google/protobuf/w;->a:Lcom/google/protobuf/t$b;

    invoke-virtual {v0}, Lcom/google/protobuf/t$b;->n()Lcom/google/protobuf/DescriptorProtos$MessageOptions;

    move-result-object v0

    invoke-virtual {v0}, Lcom/google/protobuf/DescriptorProtos$MessageOptions;->getMessageSetWireFormat()Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_43

    .line 2
    iget-object v0, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    .line 3
    :goto_f
    iget-object v2, v0, Lcom/google/protobuf/l0;->a:Lcom/google/protobuf/s2;

    invoke-virtual {v2}, Lcom/google/protobuf/s2;->g()I

    move-result v2

    if-ge v1, v2, :cond_23

    .line 4
    iget-object v2, v0, Lcom/google/protobuf/l0;->a:Lcom/google/protobuf/s2;

    invoke-virtual {v2, v1}, Lcom/google/protobuf/s2;->f(I)Ljava/util/Map$Entry;

    move-result-object v2

    invoke-virtual {v0, v2, p1}, Lcom/google/protobuf/l0;->F(Ljava/util/Map$Entry;Lcom/google/protobuf/o;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_f

    .line 5
    :cond_23
    iget-object v1, v0, Lcom/google/protobuf/l0;->a:Lcom/google/protobuf/s2;

    invoke-virtual {v1}, Lcom/google/protobuf/s2;->h()Ljava/lang/Iterable;

    move-result-object v1

    invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_2d
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_3d

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map$Entry;

    .line 6
    invoke-virtual {v0, v2, p1}, Lcom/google/protobuf/l0;->F(Ljava/util/Map$Entry;Lcom/google/protobuf/o;)V

    goto :goto_2d

    .line 7
    :cond_3d
    iget-object v0, p0, Lcom/google/protobuf/w;->d:Lcom/google/protobuf/i3;

    invoke-virtual {v0, p1}, Lcom/google/protobuf/i3;->f(Lcom/google/protobuf/o;)V

    goto :goto_8c

    .line 8
    :cond_43
    iget-object v0, p0, Lcom/google/protobuf/w;->b:Lcom/google/protobuf/l0;

    .line 9
    :goto_45
    iget-object v2, v0, Lcom/google/protobuf/l0;->a:Lcom/google/protobuf/s2;

    invoke-virtual {v2}, Lcom/google/protobuf/s2;->g()I

    move-result v2

    if-ge v1, v2, :cond_63

    .line 10
    iget-object v2, v0, Lcom/google/protobuf/l0;->a:Lcom/google/protobuf/s2;

    invoke-virtual {v2, v1}, Lcom/google/protobuf/s2;->f(I)Ljava/util/Map$Entry;

    move-result-object v2

    .line 11
    invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/google/protobuf/l0$c;

    invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    invoke-static {v3, v2, p1}, Lcom/google/protobuf/l0;->E(Lcom/google/protobuf/l0$c;Ljava/lang/Object;Lcom/google/protobuf/o;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_45

    .line 12
    :cond_63
    iget-object v0, v0, Lcom/google/protobuf/l0;->a:Lcom/google/protobuf/s2;

    invoke-virtual {v0}, Lcom/google/protobuf/s2;->h()Ljava/lang/Iterable;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_6d
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_87

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/Map$Entry;

    .line 13
    invoke-interface {v1}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/google/protobuf/l0$c;

    invoke-interface {v1}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v1

    invoke-static {v2, v1, p1}, Lcom/google/protobuf/l0;->E(Lcom/google/protobuf/l0$c;Ljava/lang/Object;Lcom/google/protobuf/o;)V

    goto :goto_6d

    .line 14
    :cond_87
    iget-object v0, p0, Lcom/google/protobuf/w;->d:Lcom/google/protobuf/i3;

    invoke-virtual {v0, p1}, Lcom/google/protobuf/i3;->writeTo(Lcom/google/protobuf/o;)V

    :goto_8c
    return-void
.end method