Field$c.smali
.class public final enum Lcom/google/protobuf/Field$c;
.super Ljava/lang/Enum;
.source "SourceFile"
# interfaces
.implements Lcom/google/protobuf/s0$c;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/protobuf/Field;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x4019
name = "c"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Enum<",
"Lcom/google/protobuf/Field$c;",
">;",
"Lcom/google/protobuf/s0$c;"
}
.end annotation
# static fields
.field private static final synthetic $VALUES:[Lcom/google/protobuf/Field$c;
.field public static final enum CARDINALITY_OPTIONAL:Lcom/google/protobuf/Field$c;
.field public static final CARDINALITY_OPTIONAL_VALUE:I = 0x1
.field public static final enum CARDINALITY_REPEATED:Lcom/google/protobuf/Field$c;
.field public static final CARDINALITY_REPEATED_VALUE:I = 0x3
.field public static final enum CARDINALITY_REQUIRED:Lcom/google/protobuf/Field$c;
.field public static final CARDINALITY_REQUIRED_VALUE:I = 0x2
.field public static final enum CARDINALITY_UNKNOWN:Lcom/google/protobuf/Field$c;
.field public static final CARDINALITY_UNKNOWN_VALUE:I
.field public static final enum UNRECOGNIZED:Lcom/google/protobuf/Field$c;
.field private static final VALUES:[Lcom/google/protobuf/Field$c;
.field private static final internalValueMap:Lcom/google/protobuf/s0$d;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/google/protobuf/s0$d<",
"Lcom/google/protobuf/Field$c;",
">;"
}
.end annotation
.end field
# instance fields
.field private final value:I
# direct methods
.method private static synthetic $values()[Lcom/google/protobuf/Field$c;
.registers 3
const/4 v0, 0x5
new-array v0, v0, [Lcom/google/protobuf/Field$c;
sget-object v1, Lcom/google/protobuf/Field$c;->CARDINALITY_UNKNOWN:Lcom/google/protobuf/Field$c;
const/4 v2, 0x0
aput-object v1, v0, v2
sget-object v1, Lcom/google/protobuf/Field$c;->CARDINALITY_OPTIONAL:Lcom/google/protobuf/Field$c;
const/4 v2, 0x1
aput-object v1, v0, v2
sget-object v1, Lcom/google/protobuf/Field$c;->CARDINALITY_REQUIRED:Lcom/google/protobuf/Field$c;
const/4 v2, 0x2
aput-object v1, v0, v2
sget-object v1, Lcom/google/protobuf/Field$c;->CARDINALITY_REPEATED:Lcom/google/protobuf/Field$c;
const/4 v2, 0x3
aput-object v1, v0, v2
sget-object v1, Lcom/google/protobuf/Field$c;->UNRECOGNIZED:Lcom/google/protobuf/Field$c;
const/4 v2, 0x4
aput-object v1, v0, v2
return-object v0
.end method
.method public static constructor <clinit>()V
.registers 4
.line 1
new-instance v0, Lcom/google/protobuf/Field$c;
const-string v1, "CARDINALITY_UNKNOWN"
const/4 v2, 0x0
invoke-direct {v0, v1, v2, v2}, Lcom/google/protobuf/Field$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/protobuf/Field$c;->CARDINALITY_UNKNOWN:Lcom/google/protobuf/Field$c;
.line 2
new-instance v0, Lcom/google/protobuf/Field$c;
const-string v1, "CARDINALITY_OPTIONAL"
const/4 v2, 0x1
invoke-direct {v0, v1, v2, v2}, Lcom/google/protobuf/Field$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/protobuf/Field$c;->CARDINALITY_OPTIONAL:Lcom/google/protobuf/Field$c;
.line 3
new-instance v0, Lcom/google/protobuf/Field$c;
const-string v1, "CARDINALITY_REQUIRED"
const/4 v2, 0x2
invoke-direct {v0, v1, v2, v2}, Lcom/google/protobuf/Field$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/protobuf/Field$c;->CARDINALITY_REQUIRED:Lcom/google/protobuf/Field$c;
.line 4
new-instance v0, Lcom/google/protobuf/Field$c;
const-string v1, "CARDINALITY_REPEATED"
const/4 v2, 0x3
invoke-direct {v0, v1, v2, v2}, Lcom/google/protobuf/Field$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/protobuf/Field$c;->CARDINALITY_REPEATED:Lcom/google/protobuf/Field$c;
.line 5
new-instance v0, Lcom/google/protobuf/Field$c;
const-string v1, "UNRECOGNIZED"
const/4 v2, 0x4
const/4 v3, -0x1
invoke-direct {v0, v1, v2, v3}, Lcom/google/protobuf/Field$c;-><init>(Ljava/lang/String;II)V
sput-object v0, Lcom/google/protobuf/Field$c;->UNRECOGNIZED:Lcom/google/protobuf/Field$c;
.line 6
invoke-static {}, Lcom/google/protobuf/Field$c;->$values()[Lcom/google/protobuf/Field$c;
move-result-object v0
sput-object v0, Lcom/google/protobuf/Field$c;->$VALUES:[Lcom/google/protobuf/Field$c;
.line 7
new-instance v0, Lcom/google/protobuf/Field$c$a;
invoke-direct {v0}, Lcom/google/protobuf/Field$c$a;-><init>()V
sput-object v0, Lcom/google/protobuf/Field$c;->internalValueMap:Lcom/google/protobuf/s0$d;
.line 8
invoke-static {}, Lcom/google/protobuf/Field$c;->values()[Lcom/google/protobuf/Field$c;
move-result-object v0
sput-object v0, Lcom/google/protobuf/Field$c;->VALUES:[Lcom/google/protobuf/Field$c;
return-void
.end method
.method private constructor <init>(Ljava/lang/String;II)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(I)V"
}
.end annotation
.line 1
invoke-direct {p0, p1, p2}, Ljava/lang/Enum;-><init>(Ljava/lang/String;I)V
.line 2
iput p3, p0, Lcom/google/protobuf/Field$c;->value:I
return-void
.end method
.method public static forNumber(I)Lcom/google/protobuf/Field$c;
.registers 2
if-eqz p0, :cond_16
const/4 v0, 0x1
if-eq p0, v0, :cond_13
const/4 v0, 0x2
if-eq p0, v0, :cond_10
const/4 v0, 0x3
if-eq p0, v0, :cond_d
const/4 p0, 0x0
return-object p0
.line 1
:cond_d
sget-object p0, Lcom/google/protobuf/Field$c;->CARDINALITY_REPEATED:Lcom/google/protobuf/Field$c;
return-object p0
.line 2
:cond_10
sget-object p0, Lcom/google/protobuf/Field$c;->CARDINALITY_REQUIRED:Lcom/google/protobuf/Field$c;
return-object p0
.line 3
:cond_13
sget-object p0, Lcom/google/protobuf/Field$c;->CARDINALITY_OPTIONAL:Lcom/google/protobuf/Field$c;
return-object p0
.line 4
:cond_16
sget-object p0, Lcom/google/protobuf/Field$c;->CARDINALITY_UNKNOWN:Lcom/google/protobuf/Field$c;
return-object p0
.end method
.method public static final getDescriptor()Lcom/google/protobuf/t$e;
.registers 2
invoke-static {}, Lcom/google/protobuf/Field;->getDescriptor()Lcom/google/protobuf/t$b;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/t$b;->i()Ljava/util/List;
move-result-object v0
const/4 v1, 0x1
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/t$e;
return-object v0
.end method
.method public static internalGetValueMap()Lcom/google/protobuf/s0$d;
.registers 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/protobuf/s0$d<",
"Lcom/google/protobuf/Field$c;",
">;"
}
.end annotation
sget-object v0, Lcom/google/protobuf/Field$c;->internalValueMap:Lcom/google/protobuf/s0$d;
return-object v0
.end method
.method public static valueOf(I)Lcom/google/protobuf/Field$c;
.registers 1
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 2
invoke-static {p0}, Lcom/google/protobuf/Field$c;->forNumber(I)Lcom/google/protobuf/Field$c;
move-result-object p0
return-object p0
.end method
.method public static valueOf(Lcom/google/protobuf/t$f;)Lcom/google/protobuf/Field$c;
.registers 3
.line 3
iget-object v0, p0, Lcom/google/protobuf/t$f;->d:Lcom/google/protobuf/t$e;
.line 4
invoke-static {}, Lcom/google/protobuf/Field$c;->getDescriptor()Lcom/google/protobuf/t$e;
move-result-object v1
if-ne v0, v1, :cond_15
.line 5
iget p0, p0, Lcom/google/protobuf/t$f;->a:I
const/4 v0, -0x1
if-ne p0, v0, :cond_10
.line 6
sget-object p0, Lcom/google/protobuf/Field$c;->UNRECOGNIZED:Lcom/google/protobuf/Field$c;
return-object p0
.line 7
:cond_10
sget-object v0, Lcom/google/protobuf/Field$c;->VALUES:[Lcom/google/protobuf/Field$c;
aget-object p0, v0, p0
return-object p0
.line 8
:cond_15
new-instance p0, Ljava/lang/IllegalArgumentException;
const-string v0, "EnumValueDescriptor is not for this type."
invoke-direct {p0, v0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public static valueOf(Ljava/lang/String;)Lcom/google/protobuf/Field$c;
.registers 2
.line 1
const-class v0, Lcom/google/protobuf/Field$c;
invoke-static {v0, p0}, Ljava/lang/Enum;->valueOf(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
move-result-object p0
check-cast p0, Lcom/google/protobuf/Field$c;
return-object p0
.end method
.method public static values()[Lcom/google/protobuf/Field$c;
.registers 1
sget-object v0, Lcom/google/protobuf/Field$c;->$VALUES:[Lcom/google/protobuf/Field$c;
invoke-virtual {v0}, [Lcom/google/protobuf/Field$c;->clone()Ljava/lang/Object;
move-result-object v0
check-cast v0, [Lcom/google/protobuf/Field$c;
return-object v0
.end method
# virtual methods
.method public final getDescriptorForType()Lcom/google/protobuf/t$e;
.registers 2
invoke-static {}, Lcom/google/protobuf/Field$c;->getDescriptor()Lcom/google/protobuf/t$e;
move-result-object v0
return-object v0
.end method
.method public final getNumber()I
.registers 3
.line 1
sget-object v0, Lcom/google/protobuf/Field$c;->UNRECOGNIZED:Lcom/google/protobuf/Field$c;
if-eq p0, v0, :cond_7
.line 2
iget v0, p0, Lcom/google/protobuf/Field$c;->value:I
return v0
.line 3
:cond_7
new-instance v0, Ljava/lang/IllegalArgumentException;
const-string v1, "Can\'t get the number of an unknown enum value."
invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public final getValueDescriptor()Lcom/google/protobuf/t$f;
.registers 3
.line 1
sget-object v0, Lcom/google/protobuf/Field$c;->UNRECOGNIZED:Lcom/google/protobuf/Field$c;
if-eq p0, v0, :cond_17
.line 2
invoke-static {}, Lcom/google/protobuf/Field$c;->getDescriptor()Lcom/google/protobuf/t$e;
move-result-object v0
invoke-virtual {v0}, Lcom/google/protobuf/t$e;->h()Ljava/util/List;
move-result-object v0
invoke-virtual {p0}, Ljava/lang/Enum;->ordinal()I
move-result v1
invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lcom/google/protobuf/t$f;
return-object v0
.line 3
:cond_17
new-instance v0, Ljava/lang/IllegalStateException;
const-string v1, "Can\'t get the descriptor of an unrecognized enum value."
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method