ProtoLiteUtils.smali

.class public Lio/grpc/protobuf/lite/ProtoLiteUtils;
.super Ljava/lang/Object;
.source "ProtoLiteUtils.java"


# static fields
.field private static volatile globalRegistry:Lcom/google/protobuf/l;


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

    .line 1
    invoke-static {}, Lcom/google/protobuf/l;->a()Lcom/google/protobuf/l;

    move-result-object v0

    sput-object v0, Lio/grpc/protobuf/lite/ProtoLiteUtils;->globalRegistry:Lcom/google/protobuf/l;

    return-void
.end method

.method private constructor <init>()V
    .registers 1

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

    return-void
.end method

.method static synthetic access$000()Lcom/google/protobuf/l;
    .registers 1

    .line 1
    sget-object v0, Lio/grpc/protobuf/lite/ProtoLiteUtils;->globalRegistry:Lcom/google/protobuf/l;

    return-object v0
.end method

.method public static marshaller(Lcom/google/protobuf/x;)Lio/grpc/MethodDescriptor$Marshaller;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T::",
            "Lcom/google/protobuf/x;",
            ">(TT;)",
            "Lio/grpc/MethodDescriptor$Marshaller<",
            "TT;>;"
        }
    .end annotation

    .line 1
    invoke-interface {p0}, Lcom/google/protobuf/x;->getParserForType()Lcom/google/protobuf/A;

    move-result-object p0

    .line 2
    new-instance v0, Lio/grpc/protobuf/lite/ProtoLiteUtils$1;

    invoke-direct {v0, p0}, Lio/grpc/protobuf/lite/ProtoLiteUtils$1;-><init>(Lcom/google/protobuf/A;)V

    return-object v0
.end method

.method public static metadataMarshaller(Lcom/google/protobuf/x;)Lio/grpc/Metadata$BinaryMarshaller;
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "<T::",
            "Lcom/google/protobuf/x;",
            ">(TT;)",
            "Lio/grpc/Metadata$BinaryMarshaller<",
            "TT;>;"
        }
    .end annotation

    .line 1
    new-instance v0, Lio/grpc/protobuf/lite/ProtoLiteUtils$2;

    invoke-direct {v0, p0}, Lio/grpc/protobuf/lite/ProtoLiteUtils$2;-><init>(Lcom/google/protobuf/x;)V

    return-object v0
.end method

.method public static setExtensionRegistry(Lcom/google/protobuf/l;)V
    .registers 2

    const-string v0, "newRegistry"

    .line 1
    invoke-static {p0, v0}, Lcom/google/common/base/r;->a(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    check-cast p0, Lcom/google/protobuf/l;

    sput-object p0, Lio/grpc/protobuf/lite/ProtoLiteUtils;->globalRegistry:Lcom/google/protobuf/l;

    return-void
.end method