package com.google.android.gms.internal.ads;

import android.text.TextUtils;
import androidx.annotation.Nullable;

/* JADX INFO: loaded from: classes2.dex */
public final class py0 {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f15547a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final String f15548b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public int f15549c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public long f15550d;

    @Nullable
    final Integer zze;

    public py0(String str, String str2, int i10, long j10, @Nullable Integer num) {
        this.f15547a = str;
        this.f15548b = str2;
        this.f15549c = i10;
        this.f15550d = j10;
        this.zze = num;
    }

    public final String toString() {
        Integer num;
        int i10 = this.f15549c;
        long j10 = this.f15550d;
        String str = this.f15547a;
        StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 1 + String.valueOf(i10).length() + 1 + String.valueOf(j10).length());
        sb.append(str);
        sb.append(".");
        sb.append(i10);
        sb.append(".");
        sb.append(j10);
        String string = sb.toString();
        String str2 = this.f15548b;
        if (!TextUtils.isEmpty(str2)) {
            string = defpackage.e.p(new StringBuilder(string.length() + 1 + String.valueOf(str2).length()), string, ".", str2);
        }
        if (!((Boolean) n7.y.f31093e.f31096c.b(ao.Z1)).booleanValue() || (num = this.zze) == null || TextUtils.isEmpty(str2)) {
            return string;
        }
        StringBuilder sb2 = new StringBuilder(string.length() + 1 + num.toString().length());
        sb2.append(string);
        sb2.append(".");
        sb2.append(num);
        return sb2.toString();
    }
}
