granularity level: instruction
.class public final Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;
.super Ljava/lang/Object;
.source "ClientMetrics.java"
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics$Builder;
}
.end annotation
.field private static final DEFAULT_INSTANCE:Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;
.field private final app_namespace_:Ljava/lang/String;
.field private final global_metrics_:Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;
.field private final log_source_metrics_:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Lcom/google/android/datatransport/runtime/firebase/transport/LogSourceMetrics;",
">;"
}
.end annotation
.end field
.field private final window_:Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics$Builder;
invoke-direct {v0}, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics$Builder;-><init>()V
invoke-virtual {v0}, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics$Builder;->build()Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;
move-result-object v0
sput-object v0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->DEFAULT_INSTANCE:Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;
return-void
.end method
.method constructor <init>(Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;Ljava/util/List;Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;Ljava/lang/String;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;",
"Ljava/util/List<",
"Lcom/google/android/datatransport/runtime/firebase/transport/LogSourceMetrics;",
">;",
"Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;",
"Ljava/lang/String;",
")V"
}
.end annotation
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->window_:Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;
iput-object p2, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->log_source_metrics_:Ljava/util/List;
iput-object p3, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->global_metrics_:Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;
iput-object p4, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->app_namespace_:Ljava/lang/String;
return-void
.end method
.method public static getDefaultInstance()Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;
.locals 1
sget-object v0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->DEFAULT_INSTANCE:Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;
return-object v0
.end method
.method public static newBuilder()Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics$Builder;
.locals 1
new-instance v0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics$Builder;
invoke-direct {v0}, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics$Builder;-><init>()V
return-object v0
.end method
.method public getAppNamespace()Ljava/lang/String;
.locals 1
iget-object v0, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->app_namespace_:Ljava/lang/String;
return-object v0
.end method
.method public getGlobalMetrics()Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;
.locals 1
.annotation runtime Lcom/google/firebase/encoders/annotations/Encodable$Ignore;
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->global_metrics_:Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;
if-nez v0, :cond_0
invoke-static {}, Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;->getDefaultInstance()Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;
move-result-object v0
:cond_0
return-object v0
.end method
.method public getGlobalMetricsInternal()Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;
.locals 1
.annotation runtime Lcom/google/firebase/encoders/annotations/Encodable$Field;
name = "globalMetrics"
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->global_metrics_:Lcom/google/android/datatransport/runtime/firebase/transport/GlobalMetrics;
return-object v0
.end method
.method public getLogSourceMetricsList()Ljava/util/List;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Ljava/util/List<",
"Lcom/google/android/datatransport/runtime/firebase/transport/LogSourceMetrics;",
">;"
}
.end annotation
.annotation runtime Lcom/google/firebase/encoders/annotations/Encodable$Field;
name = "logSourceMetrics"
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->log_source_metrics_:Ljava/util/List;
return-object v0
.end method
.method public getWindow()Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;
.locals 1
.annotation runtime Lcom/google/firebase/encoders/annotations/Encodable$Ignore;
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->window_:Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;
if-nez v0, :cond_0
invoke-static {}, Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;->getDefaultInstance()Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;
move-result-object v0
:cond_0
return-object v0
.end method
.method public getWindowInternal()Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;
.locals 1
.annotation runtime Lcom/google/firebase/encoders/annotations/Encodable$Field;
name = "window"
.end annotation
iget-object v0, p0, Lcom/google/android/datatransport/runtime/firebase/transport/ClientMetrics;->window_:Lcom/google/android/datatransport/runtime/firebase/transport/TimeWindow;
return-object v0
.end method
.method public toByteArray()[B
.locals 1
invoke-static {p0}, Lcom/google/android/datatransport/runtime/ProtoEncoderDoNotUse;->encode(Ljava/lang/Object;)[B
move-result-object v0
return-object v0
.end method
.method public writeTo(Ljava/io/OutputStream;)V
.locals 0
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/io/IOException;
}
.end annotation
invoke-static {p0, p1}, Lcom/google/android/datatransport/runtime/ProtoEncoderDoNotUse;->encode(Ljava/lang/Object;Ljava/io/OutputStream;)V
return-void
.end method