- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
108 lines
3.3 KiB
Java
108 lines
3.3 KiB
Java
package androidx.datastore.preferences.protobuf;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.Collections;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
final class StructuralMessageInfo implements MessageInfo {
|
|
private final int[] checkInitialized;
|
|
private final MessageLite defaultInstance;
|
|
private final FieldInfo[] fields;
|
|
private final boolean messageSetWireFormat;
|
|
private final ProtoSyntax syntax;
|
|
|
|
public int[] getCheckInitialized() {
|
|
return this.checkInitialized;
|
|
}
|
|
|
|
@Override // androidx.datastore.preferences.protobuf.MessageInfo
|
|
public MessageLite getDefaultInstance() {
|
|
return this.defaultInstance;
|
|
}
|
|
|
|
public FieldInfo[] getFields() {
|
|
return this.fields;
|
|
}
|
|
|
|
@Override // androidx.datastore.preferences.protobuf.MessageInfo
|
|
public ProtoSyntax getSyntax() {
|
|
return this.syntax;
|
|
}
|
|
|
|
@Override // androidx.datastore.preferences.protobuf.MessageInfo
|
|
public boolean isMessageSetWireFormat() {
|
|
return this.messageSetWireFormat;
|
|
}
|
|
|
|
public StructuralMessageInfo(ProtoSyntax protoSyntax, boolean z, int[] iArr, FieldInfo[] fieldInfoArr, Object obj) {
|
|
this.syntax = protoSyntax;
|
|
this.messageSetWireFormat = z;
|
|
this.checkInitialized = iArr;
|
|
this.fields = fieldInfoArr;
|
|
this.defaultInstance = (MessageLite) Internal.checkNotNull(obj, "defaultInstance");
|
|
}
|
|
|
|
public static Builder newBuilder() {
|
|
return new Builder();
|
|
}
|
|
|
|
public static Builder newBuilder(int i) {
|
|
return new Builder(i);
|
|
}
|
|
|
|
public static final class Builder {
|
|
private int[] checkInitialized;
|
|
private Object defaultInstance;
|
|
private final List<FieldInfo> fields;
|
|
private boolean messageSetWireFormat;
|
|
private ProtoSyntax syntax;
|
|
private boolean wasBuilt;
|
|
|
|
public void withCheckInitialized(int[] iArr) {
|
|
this.checkInitialized = iArr;
|
|
}
|
|
|
|
public void withDefaultInstance(Object obj) {
|
|
this.defaultInstance = obj;
|
|
}
|
|
|
|
public void withMessageSetWireFormat(boolean z) {
|
|
this.messageSetWireFormat = z;
|
|
}
|
|
|
|
public Builder() {
|
|
this.checkInitialized = null;
|
|
this.fields = new ArrayList();
|
|
}
|
|
|
|
public Builder(int i) {
|
|
this.checkInitialized = null;
|
|
this.fields = new ArrayList(i);
|
|
}
|
|
|
|
public void withSyntax(ProtoSyntax protoSyntax) {
|
|
this.syntax = (ProtoSyntax) Internal.checkNotNull(protoSyntax, "syntax");
|
|
}
|
|
|
|
public void withField(FieldInfo fieldInfo) {
|
|
if (this.wasBuilt) {
|
|
throw new IllegalStateException("Builder can only build once");
|
|
}
|
|
this.fields.add(fieldInfo);
|
|
}
|
|
|
|
public StructuralMessageInfo build() {
|
|
if (this.wasBuilt) {
|
|
throw new IllegalStateException("Builder can only build once");
|
|
}
|
|
if (this.syntax == null) {
|
|
throw new IllegalStateException("Must specify a proto syntax");
|
|
}
|
|
this.wasBuilt = true;
|
|
Collections.sort(this.fields);
|
|
return new StructuralMessageInfo(this.syntax, this.messageSetWireFormat, this.checkInitialized, (FieldInfo[]) this.fields.toArray(new FieldInfo[0]), this.defaultInstance);
|
|
}
|
|
}
|
|
}
|