.class public abstract Lcom/google/protobuf/AbstractMessage; .super Lcom/google/protobuf/AbstractMessageLite; .source "AbstractMessage.java" # interfaces .implements Lcom/google/protobuf/Message; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/google/protobuf/AbstractMessage$Builder;, Lcom/google/protobuf/AbstractMessage$BuilderParent; } .end annotation # instance fields .field public memoizedSize:I # direct methods .method public constructor ()V .locals 1 .line 1 invoke-direct {p0}, Lcom/google/protobuf/AbstractMessageLite;->()V const/4 v0, -0x1 .line 2 iput v0, p0, Lcom/google/protobuf/AbstractMessage;->memoizedSize:I return-void .end method .method private static compareBytes(Ljava/lang/Object;Ljava/lang/Object;)Z .locals 1 .line 1 instance-of v0, p0, [B if-eqz v0, :cond_0 instance-of v0, p1, [B if-eqz v0, :cond_0 .line 2 check-cast p0, [B check-cast p1, [B invoke-static {p0, p1}, Ljava/util/Arrays;->equals([B[B)Z move-result p0 return p0 .line 3 :cond_0 invoke-static {p0}, Lcom/google/protobuf/AbstractMessage;->toByteString(Ljava/lang/Object;)Lcom/google/protobuf/ByteString; move-result-object p0 invoke-static {p1}, Lcom/google/protobuf/AbstractMessage;->toByteString(Ljava/lang/Object;)Lcom/google/protobuf/ByteString; move-result-object p1 invoke-virtual {p0, p1}, Lcom/google/protobuf/ByteString;->equals(Ljava/lang/Object;)Z move-result p0 return p0 .end method .method public static compareFields(Ljava/util/Map;Ljava/util/Map;)Z .locals 7 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map<", "Lcom/google/protobuf/Descriptors$FieldDescriptor;", "Ljava/lang/Object;", ">;", "Ljava/util/Map<", "Lcom/google/protobuf/Descriptors$FieldDescriptor;", "Ljava/lang/Object;", ">;)Z" } .end annotation .line 1 invoke-interface {p0}, Ljava/util/Map;->size()I move-result v0 invoke-interface {p1}, Ljava/util/Map;->size()I move-result v1 const/4 v2, 0x0 if-eq v0, v1, :cond_0 return v2 .line 2 :cond_0 invoke-interface {p0}, Ljava/util/Map;->keySet()Ljava/util/Set; move-result-object v0 invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object v0 :cond_1 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_8 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/google/protobuf/Descriptors$FieldDescriptor; .line 3 invoke-interface {p1, v1}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z move-result v3 if-nez v3, :cond_2 return v2 .line 4 :cond_2 invoke-interface {p0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v3 .line 5 invoke-interface {p1, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v4 .line 6 invoke-virtual {v1}, Lcom/google/protobuf/Descriptors$FieldDescriptor;->getType()Lcom/google/protobuf/Descriptors$FieldDescriptor$Type; move-result-object v5 sget-object v6, Lcom/google/protobuf/Descriptors$FieldDescriptor$Type;->BYTES:Lcom/google/protobuf/Descriptors$FieldDescriptor$Type; if-ne v5, v6, :cond_6 .line 7 invoke-virtual {v1}, Lcom/google/protobuf/Descriptors$FieldDescriptor;->isRepeated()Z move-result v1 if-eqz v1, :cond_5 .line 8 check-cast v3, Ljava/util/List; .line 9 check-cast v4, Ljava/util/List; .line 10 invoke-interface {v3}, Ljava/util/List;->size()I move-result v1 invoke-interface {v4}, Ljava/util/List;->size()I move-result v5 if-eq v1, v5, :cond_3 return v2 :cond_3 move v1, v2 .line 11 :goto_0 invoke-interface {v3}, Ljava/util/List;->size()I move-result v5 if-ge v1, v5, :cond_1 .line 12 invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v5 invoke-interface {v4, v1}, Ljava/util/List;->get(I)Ljava/lang/Object; move-result-object v6 invoke-static {v5, v6}, Lcom/google/protobuf/AbstractMessage;->compareBytes(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v5 if-nez v5, :cond_4 return v2 :cond_4 add-int/lit8 v1, v1, 0x1 goto :goto_0 .line 13 :cond_5 invoke-static {v3, v4}, Lcom/google/protobuf/AbstractMessage;->compareBytes(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_1 return v2 .line 14 :cond_6 invoke-virtual {v1}, Lcom/google/protobuf/Descriptors$FieldDescriptor;->isMapField()Z move-result v1 if-eqz v1, :cond_7 .line 15 invoke-static {v3, v4}, Lcom/google/protobuf/AbstractMessage;->compareMapField(Ljava/lang/Object;Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_1 return v2 .line 16 :cond_7 invoke-virtual {v3, v4}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_1 return v2 :cond_8 const/4 p0, 0x1 return p0 .end method .method private static compareMapField(Ljava/lang/Object;Ljava/lang/Object;)Z .locals 0 .line 1 check-cast p0, Ljava/util/List; invoke-static {p0}, Lcom/google/protobuf/AbstractMessage;->convertMapEntryListToMap(Ljava/util/List;)Ljava/util/Map; move-result-object p0 .line 2 check-cast p1, Ljava/util/List; invoke-static {p1}, Lcom/google/protobuf/AbstractMessage;->convertMapEntryListToMap(Ljava/util/List;)Ljava/util/Map; move-result-object p1 .line 3 invoke-static {p0, p1}, Lcom/google/protobuf/MapFieldLite;->equals(Ljava/util/Map;Ljava/util/Map;)Z move-result p0 return p0 .end method .method private static convertMapEntryListToMap(Ljava/util/List;)Ljava/util/Map; .locals 6 .line 1 invoke-interface {p0}, Ljava/util/List;->isEmpty()Z move-result v0 if-eqz v0, :cond_0 .line 2 invoke-static {}, Ljava/util/Collections;->emptyMap()Ljava/util/Map; move-result-object p0 return-object p0 .line 3 :cond_0 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V .line 4 invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p0 .line 5 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/google/protobuf/Message; .line 6 invoke-interface {v1}, Lcom/google/protobuf/MessageOrBuilder;->getDescriptorForType()Lcom/google/protobuf/Descriptors$Descriptor; move-result-object v2 const-string v3, "key" .line 7 invoke-virtual {v2, v3}, Lcom/google/protobuf/Descriptors$Descriptor;->findFieldByName(Ljava/lang/String;)Lcom/google/protobuf/Descriptors$FieldDescriptor; move-result-object v3 const-string v4, "value" .line 8 invoke-virtual {v2, v4}, Lcom/google/protobuf/Descriptors$Descriptor;->findFieldByName(Ljava/lang/String;)Lcom/google/protobuf/Descriptors$FieldDescriptor; move-result-object v2 .line 9 invoke-interface {v1, v2}, Lcom/google/protobuf/MessageOrBuilder;->getField(Lcom/google/protobuf/Descriptors$FieldDescriptor;)Ljava/lang/Object; move-result-object v4 .line 10 instance-of v5, v4, Lcom/google/protobuf/Descriptors$EnumValueDescriptor; if-eqz v5, :cond_1 .line 11 check-cast v4, Lcom/google/protobuf/Descriptors$EnumValueDescriptor; invoke-virtual {v4}, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;->getNumber()I move-result v4 invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 .line 12 :cond_1 invoke-interface {v1, v3}, Lcom/google/protobuf/MessageOrBuilder;->getField(Lcom/google/protobuf/Descriptors$FieldDescriptor;)Ljava/lang/Object; move-result-object v1 invoke-virtual {v0, v1, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 13 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_3 .line 14 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/google/protobuf/Message; .line 15 invoke-interface {v1, v2}, Lcom/google/protobuf/MessageOrBuilder;->getField(Lcom/google/protobuf/Descriptors$FieldDescriptor;)Ljava/lang/Object; move-result-object v4 .line 16 instance-of v5, v4, Lcom/google/protobuf/Descriptors$EnumValueDescriptor; if-eqz v5, :cond_2 .line 17 check-cast v4, Lcom/google/protobuf/Descriptors$EnumValueDescriptor; invoke-virtual {v4}, Lcom/google/protobuf/Descriptors$EnumValueDescriptor;->getNumber()I move-result v4 invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object v4 .line 18 :cond_2 invoke-interface {v1, v3}, Lcom/google/protobuf/MessageOrBuilder;->getField(Lcom/google/protobuf/Descriptors$FieldDescriptor;)Ljava/lang/Object; move-result-object v1 invoke-virtual {v0, v1, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_0 :cond_3 return-object v0 .end method .method public static hashBoolean(Z)I .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation if-eqz p0, :cond_0 const/16 p0, 0x4cf goto :goto_0 :cond_0 const/16 p0, 0x4d5 :goto_0 return p0 .end method .method public static hashEnum(Lcom/google/protobuf/Internal$EnumLite;)I .locals 0 .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-interface {p0}, Lcom/google/protobuf/Internal$EnumLite;->getNumber()I move-result p0 return p0 .end method .method public static hashEnumList(Ljava/util/List;)I .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/List<", "+", "Lcom/google/protobuf/Internal$EnumLite;", ">;)I" } .end annotation .annotation runtime Ljava/lang/Deprecated; .end annotation .line 1 invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator; move-result-object p0 const/4 v0, 0x1 :goto_0 invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z move-result v1 if-eqz v1, :cond_0 invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/google/protobuf/Internal$EnumLite; mul-int/lit8 v0, v0, 0x1f .line 2 invoke-static {v1}, Lcom/google/protobuf/AbstractMessage;->hashEnum(Lcom/google/protobuf/Internal$EnumLite;)I move-result v1 add-int/2addr v0, v1 goto :goto_0 :cond_0 return v0 .end method .method public static hashFields(ILjava/util/Map;)I .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "(I", "Ljava/util/Map<", "Lcom/google/protobuf/Descriptors$FieldDescriptor;", "Ljava/lang/Object;", ">;)I" } .end annotation .line 1 invoke-interface {p1}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object p1 invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object p1 :goto_0 invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z move-result v0 if-eqz v0, :cond_3 invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map$Entry; .line 2 invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/google/protobuf/Descriptors$FieldDescriptor; .line 3 invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v0 mul-int/lit8 p0, p0, 0x25 .line 4 invoke-virtual {v1}, Lcom/google/protobuf/Descriptors$FieldDescriptor;->getNumber()I move-result v2 add-int/2addr v2, p0 .line 5 invoke-virtual {v1}, Lcom/google/protobuf/Descriptors$FieldDescriptor;->isMapField()Z move-result p0 if-eqz p0, :cond_0 mul-int/lit8 v2, v2, 0x35 .line 6 invoke-static {v0}, Lcom/google/protobuf/AbstractMessage;->hashMapField(Ljava/lang/Object;)I move-result p0 add-int/2addr v2, p0 move p0, v2 goto :goto_0 .line 7 :cond_0 invoke-virtual {v1}, Lcom/google/protobuf/Descriptors$FieldDescriptor;->getType()Lcom/google/protobuf/Descriptors$FieldDescriptor$Type; move-result-object p0 sget-object v3, Lcom/google/protobuf/Descriptors$FieldDescriptor$Type;->ENUM:Lcom/google/protobuf/Descriptors$FieldDescriptor$Type; if-eq p0, v3, :cond_1 mul-int/lit8 v2, v2, 0x35 .line 8 invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I move-result p0 :goto_1 add-int/2addr p0, v2 goto :goto_0 .line 9 :cond_1 invoke-virtual {v1}, Lcom/google/protobuf/Descriptors$FieldDescriptor;->isRepeated()Z move-result p0 if-eqz p0, :cond_2 .line 10 check-cast v0, Ljava/util/List; mul-int/lit8 v2, v2, 0x35 .line 11 invoke-static {v0}, Lcom/google/protobuf/Internal;->hashEnumList(Ljava/util/List;)I move-result p0 goto :goto_1 :cond_2 mul-int/lit8 v2, v2, 0x35 .line 12 check-cast v0, Lcom/google/protobuf/Internal$EnumLite; invoke-static {v0}, Lcom/google/protobuf/Internal;->hashEnum(Lcom/google/protobuf/Internal$EnumLite;)I move-result p0 goto :goto_1 :cond_3 return p0 .end method .method public static hashLong(J)I .locals 2 .annotation runtime Ljava/lang/Deprecated; .end annotation const/16 v0, 0x20 ushr-long v0, p0, v0 xor-long/2addr p0, v0 long-to-int p0, p0 return p0 .end method .method private static hashMapField(Ljava/lang/Object;)I .locals 0 .line 1 check-cast p0, Ljava/util/List; invoke-static {p0}, Lcom/google/protobuf/AbstractMessage;->convertMapEntryListToMap(Ljava/util/List;)Ljava/util/Map; move-result-object p0 invoke-static {p0}, Lcom/google/protobuf/MapFieldLite;->calculateHashCodeForMap(Ljava/util/Map;)I move-result p0 return p0 .end method .method private static toByteString(Ljava/lang/Object;)Lcom/google/protobuf/ByteString; .locals 1 .line 1 instance-of v0, p0, [B if-eqz v0, :cond_0 .line 2 check-cast p0, [B invoke-static {p0}, Lcom/google/protobuf/ByteString;->copyFrom([B)Lcom/google/protobuf/ByteString; move-result-object p0 return-object p0 .line 3 :cond_0 check-cast p0, Lcom/google/protobuf/ByteString; return-object p0 .end method # virtual methods .method public equals(Ljava/lang/Object;)Z .locals 4 const/4 v0, 0x1 if-ne p1, p0, :cond_0 return v0 .line 1 :cond_0 instance-of v1, p1, Lcom/google/protobuf/Message; const/4 v2, 0x0 if-nez v1, :cond_1 return v2 .line 2 :cond_1 check-cast p1, Lcom/google/protobuf/Message; .line 3 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getDescriptorForType()Lcom/google/protobuf/Descriptors$Descriptor; move-result-object v1 invoke-interface {p1}, Lcom/google/protobuf/MessageOrBuilder;->getDescriptorForType()Lcom/google/protobuf/Descriptors$Descriptor; move-result-object v3 if-eq v1, v3, :cond_2 return v2 .line 4 :cond_2 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getAllFields()Ljava/util/Map; move-result-object v1 invoke-interface {p1}, Lcom/google/protobuf/MessageOrBuilder;->getAllFields()Ljava/util/Map; move-result-object v3 invoke-static {v1, v3}, Lcom/google/protobuf/AbstractMessage;->compareFields(Ljava/util/Map;Ljava/util/Map;)Z move-result v1 if-eqz v1, :cond_3 .line 5 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getUnknownFields()Lcom/google/protobuf/UnknownFieldSet; move-result-object v1 invoke-interface {p1}, Lcom/google/protobuf/MessageOrBuilder;->getUnknownFields()Lcom/google/protobuf/UnknownFieldSet; move-result-object p1 invoke-virtual {v1, p1}, Lcom/google/protobuf/UnknownFieldSet;->equals(Ljava/lang/Object;)Z move-result p1 if-eqz p1, :cond_3 goto :goto_0 :cond_3 move v0, v2 :goto_0 return v0 .end method .method public findInitializationErrors()Ljava/util/List; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/List<", "Ljava/lang/String;", ">;" } .end annotation .line 1 invoke-static {p0}, Lcom/google/protobuf/MessageReflection;->findMissingFields(Lcom/google/protobuf/MessageOrBuilder;)Ljava/util/List; move-result-object v0 return-object v0 .end method .method public getInitializationErrorString()Ljava/lang/String; .locals 1 .line 1 invoke-virtual {p0}, Lcom/google/protobuf/AbstractMessage;->findInitializationErrors()Ljava/util/List; move-result-object v0 invoke-static {v0}, Lcom/google/protobuf/MessageReflection;->delimitWithCommas(Ljava/util/List;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public getOneofFieldDescriptor(Lcom/google/protobuf/Descriptors$OneofDescriptor;)Lcom/google/protobuf/Descriptors$FieldDescriptor; .locals 1 .line 1 new-instance p1, Ljava/lang/UnsupportedOperationException; const-string v0, "getOneofFieldDescriptor() is not implemented." invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;->(Ljava/lang/String;)V throw p1 .end method .method public getSerializedSize()I .locals 2 .line 1 iget v0, p0, Lcom/google/protobuf/AbstractMessage;->memoizedSize:I const/4 v1, -0x1 if-eq v0, v1, :cond_0 return v0 .line 2 :cond_0 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getAllFields()Ljava/util/Map; move-result-object v0 invoke-static {p0, v0}, Lcom/google/protobuf/MessageReflection;->getSerializedSize(Lcom/google/protobuf/Message;Ljava/util/Map;)I move-result v0 iput v0, p0, Lcom/google/protobuf/AbstractMessage;->memoizedSize:I return v0 .end method .method public hasOneof(Lcom/google/protobuf/Descriptors$OneofDescriptor;)Z .locals 1 .line 1 new-instance p1, Ljava/lang/UnsupportedOperationException; const-string v0, "hasOneof() is not implemented." invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;->(Ljava/lang/String;)V throw p1 .end method .method public hashCode()I .locals 2 .line 1 iget v0, p0, Lcom/google/protobuf/AbstractMessageLite;->memoizedHashCode:I if-nez v0, :cond_0 .line 2 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getDescriptorForType()Lcom/google/protobuf/Descriptors$Descriptor; move-result-object v0 invoke-virtual {v0}, Ljava/lang/Object;->hashCode()I move-result v0 add-int/lit16 v0, v0, 0x30b .line 3 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getAllFields()Ljava/util/Map; move-result-object v1 invoke-static {v0, v1}, Lcom/google/protobuf/AbstractMessage;->hashFields(ILjava/util/Map;)I move-result v0 mul-int/lit8 v0, v0, 0x1d .line 4 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getUnknownFields()Lcom/google/protobuf/UnknownFieldSet; move-result-object v1 invoke-virtual {v1}, Lcom/google/protobuf/UnknownFieldSet;->hashCode()I move-result v1 add-int/2addr v0, v1 .line 5 iput v0, p0, Lcom/google/protobuf/AbstractMessageLite;->memoizedHashCode:I :cond_0 return v0 .end method .method public isInitialized()Z .locals 1 .line 1 invoke-static {p0}, Lcom/google/protobuf/MessageReflection;->isInitialized(Lcom/google/protobuf/MessageOrBuilder;)Z move-result v0 return v0 .end method .method public newBuilderForType(Lcom/google/protobuf/AbstractMessage$BuilderParent;)Lcom/google/protobuf/Message$Builder; .locals 1 .line 1 new-instance p1, Ljava/lang/UnsupportedOperationException; const-string v0, "Nested builder is not supported for this type." invoke-direct {p1, v0}, Ljava/lang/UnsupportedOperationException;->(Ljava/lang/String;)V throw p1 .end method .method public newUninitializedMessageException()Lcom/google/protobuf/UninitializedMessageException; .locals 1 .line 1 invoke-static {p0}, Lcom/google/protobuf/AbstractMessage$Builder;->newUninitializedMessageException(Lcom/google/protobuf/Message;)Lcom/google/protobuf/UninitializedMessageException; move-result-object v0 return-object v0 .end method .method public final toString()Ljava/lang/String; .locals 1 .line 1 invoke-static {p0}, Lcom/google/protobuf/TextFormat;->printToString(Lcom/google/protobuf/MessageOrBuilder;)Ljava/lang/String; move-result-object v0 return-object v0 .end method .method public writeTo(Lcom/google/protobuf/CodedOutputStream;)V .locals 2 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation .line 1 invoke-interface {p0}, Lcom/google/protobuf/MessageOrBuilder;->getAllFields()Ljava/util/Map; move-result-object v0 const/4 v1, 0x0 invoke-static {p0, v0, p1, v1}, Lcom/google/protobuf/MessageReflection;->writeMessageTo(Lcom/google/protobuf/Message;Ljava/util/Map;Lcom/google/protobuf/CodedOutputStream;Z)V return-void .end method