granularity level: instruction

		.class public final Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;
.super Ljava/lang/Object;
.source "ProtobufEncoder.java"
.implements Lcom/google/firebase/encoders/config/EncoderConfig;

.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/firebase/encoders/proto/ProtobufEncoder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Lcom/google/firebase/encoders/config/EncoderConfig<",
"Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;",
">;"
}
.end annotation

.field private static final DEFAULT_FALLBACK_ENCODER:Lcom/google/firebase/encoders/ObjectEncoder;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/encoders/ObjectEncoder<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private fallbackEncoder:Lcom/google/firebase/encoders/ObjectEncoder;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/firebase/encoders/ObjectEncoder<",
"Ljava/lang/Object;",
">;"
}
.end annotation
.end field
.field private final objectEncoders:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Lcom/google/firebase/encoders/ObjectEncoder<",
"*>;>;"
}
.end annotation
.end field
.field private final valueEncoders:Ljava/util/Map;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/Map<",
"Ljava/lang/Class<",
"*>;",
"Lcom/google/firebase/encoders/ValueEncoder<",
"*>;>;"
}
.end annotation
.end field


.method static constructor <clinit>()V
	.locals 1

	new-instance v0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder$$ExternalSyntheticLambda0;
	invoke-direct {v0}, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder$$ExternalSyntheticLambda0;-><init>()V
	sput-object v0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->DEFAULT_FALLBACK_ENCODER:Lcom/google/firebase/encoders/ObjectEncoder;
	return-void
.end method

.method public constructor <init>()V
	.locals 1

	invoke-direct {p0}, Ljava/lang/Object;-><init>()V
	new-instance v0, Ljava/util/HashMap;
	invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->objectEncoders:Ljava/util/Map;
	new-instance v0, Ljava/util/HashMap;
	invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
	iput-object v0, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->valueEncoders:Ljava/util/Map;
	sget-object v0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->DEFAULT_FALLBACK_ENCODER:Lcom/google/firebase/encoders/ObjectEncoder;
	iput-object v0, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->fallbackEncoder:Lcom/google/firebase/encoders/ObjectEncoder;
	return-void
.end method

.method static synthetic lambda$static$0(Ljava/lang/Object;Lcom/google/firebase/encoders/ObjectEncoderContext;)V
	.locals 2
	.annotation system Ldalvik/annotation/Throws;
	value = {
	Ljava/io/IOException;
	}
	.end annotation

	new-instance p1, Lcom/google/firebase/encoders/EncodingException;
	new-instance v0, Ljava/lang/StringBuilder;
	invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
	const-string v1, "Couldn\'t find encoder for type "
	invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
	move-result-object p0
	invoke-virtual {p0}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;
	move-result-object p0
	invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p0
	invoke-direct {p1, p0}, Lcom/google/firebase/encoders/EncodingException;-><init>(Ljava/lang/String;)V
	throw p1
.end method

.method public build()Lcom/google/firebase/encoders/proto/ProtobufEncoder;
	.locals 4

	new-instance v0, Lcom/google/firebase/encoders/proto/ProtobufEncoder;
	new-instance v1, Ljava/util/HashMap;
	iget-object v2, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->objectEncoders:Ljava/util/Map;
	invoke-direct {v1, v2}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
	new-instance v2, Ljava/util/HashMap;
	iget-object v3, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->valueEncoders:Ljava/util/Map;
	invoke-direct {v2, v3}, Ljava/util/HashMap;-><init>(Ljava/util/Map;)V
	iget-object v3, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->fallbackEncoder:Lcom/google/firebase/encoders/ObjectEncoder;
	invoke-direct {v0, v1, v2, v3}, Lcom/google/firebase/encoders/proto/ProtobufEncoder;-><init>(Ljava/util/Map;Ljava/util/Map;Lcom/google/firebase/encoders/ObjectEncoder;)V
	return-object v0
.end method

.method public configureWith(Lcom/google/firebase/encoders/config/Configurator;)Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;
	.locals 0

	invoke-interface {p1, p0}, Lcom/google/firebase/encoders/config/Configurator;->configure(Lcom/google/firebase/encoders/config/EncoderConfig;)V
	return-object p0
.end method

.method public bridge synthetic registerEncoder(Ljava/lang/Class;Lcom/google/firebase/encoders/ObjectEncoder;)Lcom/google/firebase/encoders/config/EncoderConfig;
	.locals 0

	invoke-virtual {p0, p1, p2}, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->registerEncoder(Ljava/lang/Class;Lcom/google/firebase/encoders/ObjectEncoder;)Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;
	move-result-object p1
	return-object p1
.end method

.method public bridge synthetic registerEncoder(Ljava/lang/Class;Lcom/google/firebase/encoders/ValueEncoder;)Lcom/google/firebase/encoders/config/EncoderConfig;
	.locals 0

	invoke-virtual {p0, p1, p2}, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->registerEncoder(Ljava/lang/Class;Lcom/google/firebase/encoders/ValueEncoder;)Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;
	move-result-object p1
	return-object p1
.end method

.method public registerEncoder(Ljava/lang/Class;Lcom/google/firebase/encoders/ObjectEncoder;)Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<U:",
	"Ljava/lang/Object;",
	">(",
	"Ljava/lang/Class<",
	"TU;>;",
	"Lcom/google/firebase/encoders/ObjectEncoder<",
	"-TU;>;)",
	"Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->objectEncoders:Ljava/util/Map;
	invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	iget-object p2, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->valueEncoders:Ljava/util/Map;
	invoke-interface {p2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
	return-object p0
.end method

.method public registerEncoder(Ljava/lang/Class;Lcom/google/firebase/encoders/ValueEncoder;)Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;
	.locals 1
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"<U:",
	"Ljava/lang/Object;",
	">(",
	"Ljava/lang/Class<",
	"TU;>;",
	"Lcom/google/firebase/encoders/ValueEncoder<",
	"-TU;>;)",
	"Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;"
	}
	.end annotation

	iget-object v0, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->valueEncoders:Ljava/util/Map;
	invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
	iget-object p2, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->objectEncoders:Ljava/util/Map;
	invoke-interface {p2, p1}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
	return-object p0
.end method

.method public registerFallbackEncoder(Lcom/google/firebase/encoders/ObjectEncoder;)Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;
	.locals 0
	.annotation system Ldalvik/annotation/Signature;
	value = {
	"(",
	"Lcom/google/firebase/encoders/ObjectEncoder<",
	"Ljava/lang/Object;",
	">;)",
	"Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;"
	}
	.end annotation

	iput-object p1, p0, Lcom/google/firebase/encoders/proto/ProtobufEncoder$Builder;->fallbackEncoder:Lcom/google/firebase/encoders/ObjectEncoder;
	return-object p0
.end method