package com.google.android.datatransport.runtime;

import com.google.android.datatransport.runtime.j;
import defpackage.ci7;
import java.util.Arrays;

/* JADX INFO: loaded from: classes.dex */
final class c extends j {
    public final String a;
    public final byte[] b;
    public final ci7 c;

    public static final class b extends j.a {
        public String a;
        public byte[] b;
        public ci7 c;

        @Override // com.google.android.datatransport.runtime.j.a
        public final j a() {
            String strConcat = this.a == null ? " backendName" : "";
            if (this.c == null) {
                strConcat = strConcat.concat(" priority");
            }
            if (strConcat.isEmpty()) {
                return new c(this.a, this.b, this.c);
            }
            throw new IllegalStateException("Missing required properties:".concat(strConcat));
        }

        @Override // com.google.android.datatransport.runtime.j.a
        public final j.a b(String str) {
            if (str == null) {
                throw new NullPointerException("Null backendName");
            }
            this.a = str;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.j.a
        public final j.a c(byte[] bArr) {
            this.b = bArr;
            return this;
        }

        @Override // com.google.android.datatransport.runtime.j.a
        public final j.a d(ci7 ci7Var) {
            if (ci7Var == null) {
                throw new NullPointerException("Null priority");
            }
            this.c = ci7Var;
            return this;
        }
    }

    public c(String str, byte[] bArr, ci7 ci7Var) {
        this.a = str;
        this.b = bArr;
        this.c = ci7Var;
    }

    @Override // com.google.android.datatransport.runtime.j
    public final String b() {
        return this.a;
    }

    @Override // com.google.android.datatransport.runtime.j
    public final byte[] c() {
        return this.b;
    }

    @Override // com.google.android.datatransport.runtime.j
    public final ci7 d() {
        return this.c;
    }

    public final boolean equals(Object obj) {
        if (obj == this) {
            return true;
        }
        if (!(obj instanceof j)) {
            return false;
        }
        j jVar = (j) obj;
        if (this.a.equals(jVar.b())) {
            return Arrays.equals(this.b, jVar instanceof c ? ((c) jVar).b : jVar.c()) && this.c.equals(jVar.d());
        }
        return false;
    }

    public final int hashCode() {
        return ((((this.a.hashCode() ^ 1000003) * 1000003) ^ Arrays.hashCode(this.b)) * 1000003) ^ this.c.hashCode();
    }
}
