b.smali

.class public abstract Lcom/google/protobuf/b;
.super Ljava/lang/Object;
.source "SourceFile"

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


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

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<MessageType:",
        "Lcom/google/protobuf/b<",
        "TMessageType;TBuilderType;>;BuilderType:",
        "Lcom/google/protobuf/b$a<",
        "TMessageType;TBuilderType;>;>",
        "Ljava/lang/Object;",
        "Lcom/google/protobuf/o1;"
    }
.end annotation


# instance fields
.field public memoizedHashCode:I


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

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

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

    return-void
.end method

.method public static addAll(Ljava/lang/Iterable;Ljava/util/Collection;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Iterable<",
            "TT;>;",
            "Ljava/util/Collection<",
            "-TT;>;)V"
        }
    .end annotation

    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    .line 1
    check-cast p1, Ljava/util/List;

    invoke-static {p0, p1}, Lcom/google/protobuf/b$a;->addAll(Ljava/lang/Iterable;Ljava/util/List;)V

    return-void
.end method

.method public static addAll(Ljava/lang/Iterable;Ljava/util/List;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T:",
            "Ljava/lang/Object;",
            ">(",
            "Ljava/lang/Iterable<",
            "TT;>;",
            "Ljava/util/List<",
            "-TT;>;)V"
        }
    .end annotation

    .line 2
    invoke-static {p0, p1}, Lcom/google/protobuf/b$a;->addAll(Ljava/lang/Iterable;Ljava/util/List;)V

    return-void
.end method

.method public static checkByteStringIsUtf8(Lcom/google/protobuf/l;)V
    .registers 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Lcom/google/protobuf/l;->j()Z

    move-result p0

    if-eqz p0, :cond_7

    return-void

    .line 2
    :cond_7
    new-instance p0, Ljava/lang/IllegalArgumentException;

    const-string v0, "Byte string is not UTF-8."

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

    throw p0
.end method

.method private getSerializingExceptionMessage(Ljava/lang/String;)Ljava/lang/String;
    .registers 4

    const-string v0, "Serializing "

    .line 1
    invoke-static {v0}, Landroid/support/v4/media/c;->c(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    .line 2
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " to a "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " threw an IOException (should never happen)."

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method


# virtual methods
.method public getMemoizedSerializedSize()I
    .registers 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

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

    throw v0
.end method

.method public getSerializedSize(Lcom/google/protobuf/o2;)I
    .registers 4

    .line 1
    invoke-virtual {p0}, Lcom/google/protobuf/b;->getMemoizedSerializedSize()I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_e

    .line 2
    invoke-interface {p1, p0}, Lcom/google/protobuf/o2;->f(Ljava/lang/Object;)I

    move-result v0

    .line 3
    invoke-virtual {p0, v0}, Lcom/google/protobuf/b;->setMemoizedSerializedSize(I)V

    :cond_e
    return v0
.end method

.method public newUninitializedMessageException()Lcom/google/protobuf/g3;
    .registers 2

    new-instance v0, Lcom/google/protobuf/g3;

    invoke-direct {v0}, Lcom/google/protobuf/g3;-><init>()V

    return-object v0
.end method

.method public setMemoizedSerializedSize(I)V
    .registers 2

    new-instance p1, Ljava/lang/UnsupportedOperationException;

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

    throw p1
.end method

.method public toByteArray()[B
    .registers 4

    .line 1
    :try_start_0
    invoke-interface {p0}, Lcom/google/protobuf/o1;->getSerializedSize()I

    move-result v0

    new-array v1, v0, [B

    .line 2
    sget-object v2, Lcom/google/protobuf/o;->b:Ljava/util/logging/Logger;

    .line 3
    new-instance v2, Lcom/google/protobuf/o$c;

    invoke-direct {v2, v1, v0}, Lcom/google/protobuf/o$c;-><init>([BI)V

    .line 4
    invoke-interface {p0, v2}, Lcom/google/protobuf/o1;->writeTo(Lcom/google/protobuf/o;)V

    .line 5
    invoke-virtual {v2}, Lcom/google/protobuf/o;->b()V
    :try_end_13
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_13} :catch_14

    return-object v1

    :catch_14
    move-exception v0

    .line 6
    new-instance v1, Ljava/lang/RuntimeException;

    const-string v2, "byte array"

    invoke-direct {p0, v2}, Lcom/google/protobuf/b;->getSerializingExceptionMessage(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v1
.end method

.method public toByteString()Lcom/google/protobuf/l;
    .registers 4

    .line 1
    :try_start_0
    invoke-interface {p0}, Lcom/google/protobuf/o1;->getSerializedSize()I

    move-result v0

    sget-object v1, Lcom/google/protobuf/l;->b:Lcom/google/protobuf/l$h;

    .line 2
    new-array v1, v0, [B

    .line 3
    sget-object v2, Lcom/google/protobuf/o;->b:Ljava/util/logging/Logger;

    .line 4
    new-instance v2, Lcom/google/protobuf/o$c;

    invoke-direct {v2, v1, v0}, Lcom/google/protobuf/o$c;-><init>([BI)V

    .line 5
    invoke-interface {p0, v2}, Lcom/google/protobuf/o1;->writeTo(Lcom/google/protobuf/o;)V

    .line 6
    invoke-virtual {v2}, Lcom/google/protobuf/o;->b()V

    .line 7
    new-instance v0, Lcom/google/protobuf/l$h;

    invoke-direct {v0, v1}, Lcom/google/protobuf/l$h;-><init>([B)V
    :try_end_1a
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_1a} :catch_1b

    return-object v0

    :catch_1b
    move-exception v0

    .line 8
    new-instance v1, Ljava/lang/RuntimeException;

    const-string v2, "ByteString"

    invoke-direct {p0, v2}, Lcom/google/protobuf/b;->getSerializingExceptionMessage(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V

    throw v1
.end method

.method public writeDelimitedTo(Ljava/io/OutputStream;)V
    .registers 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-interface {p0}, Lcom/google/protobuf/o1;->getSerializedSize()I

    move-result v0

    .line 2
    invoke-static {v0}, Lcom/google/protobuf/o;->A(I)I

    move-result v1

    add-int/2addr v1, v0

    const/16 v2, 0x1000

    if-le v1, v2, :cond_f

    const/16 v1, 0x1000

    .line 3
    :cond_f
    new-instance v2, Lcom/google/protobuf/o$e;

    invoke-direct {v2, p1, v1}, Lcom/google/protobuf/o$e;-><init>(Ljava/io/OutputStream;I)V

    .line 4
    invoke-virtual {v2, v0}, Lcom/google/protobuf/o$e;->d0(I)V

    .line 5
    invoke-interface {p0, v2}, Lcom/google/protobuf/o1;->writeTo(Lcom/google/protobuf/o;)V

    .line 6
    iget p1, v2, Lcom/google/protobuf/o$b;->f:I

    if-lez p1, :cond_21

    .line 7
    invoke-virtual {v2}, Lcom/google/protobuf/o$e;->l0()V

    :cond_21
    return-void
.end method

.method public writeTo(Ljava/io/OutputStream;)V
    .registers 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 1
    invoke-interface {p0}, Lcom/google/protobuf/o1;->getSerializedSize()I

    move-result v0

    sget-object v1, Lcom/google/protobuf/o;->b:Ljava/util/logging/Logger;

    const/16 v1, 0x1000

    if-le v0, v1, :cond_c

    const/16 v0, 0x1000

    .line 2
    :cond_c
    new-instance v1, Lcom/google/protobuf/o$e;

    invoke-direct {v1, p1, v0}, Lcom/google/protobuf/o$e;-><init>(Ljava/io/OutputStream;I)V

    .line 3
    invoke-interface {p0, v1}, Lcom/google/protobuf/o1;->writeTo(Lcom/google/protobuf/o;)V

    .line 4
    iget p1, v1, Lcom/google/protobuf/o$b;->f:I

    if-lez p1, :cond_1b

    .line 5
    invoke-virtual {v1}, Lcom/google/protobuf/o$e;->l0()V

    :cond_1b
    return-void
.end method