package com.google.android.datatransport; /* loaded from: classes2.dex */ public final class AutoValue_Event extends Event { public final Integer code; public final Object payload; public final Priority priority; public final ProductData productData; @Override // com.google.android.datatransport.Event public Integer getCode() { return this.code; } @Override // com.google.android.datatransport.Event public Object getPayload() { return this.payload; } @Override // com.google.android.datatransport.Event public Priority getPriority() { return this.priority; } @Override // com.google.android.datatransport.Event public ProductData getProductData() { return this.productData; } public AutoValue_Event(Integer num, Object obj, Priority priority, ProductData productData) { this.code = num; if (obj == null) { throw new NullPointerException("Null payload"); } this.payload = obj; if (priority == null) { throw new NullPointerException("Null priority"); } this.priority = priority; this.productData = productData; } public String toString() { return "Event{code=" + this.code + ", payload=" + this.payload + ", priority=" + this.priority + ", productData=" + this.productData + "}"; } public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof Event)) { return false; } Event event = (Event) obj; Integer num = this.code; if (num != null ? num.equals(event.getCode()) : event.getCode() == null) { if (this.payload.equals(event.getPayload()) && this.priority.equals(event.getPriority())) { ProductData productData = this.productData; if (productData == null) { if (event.getProductData() == null) { return true; } } else if (productData.equals(event.getProductData())) { return true; } } } return false; } public int hashCode() { Integer num = this.code; int hashCode = ((((((num == null ? 0 : num.hashCode()) ^ 1000003) * 1000003) ^ this.payload.hashCode()) * 1000003) ^ this.priority.hashCode()) * 1000003; ProductData productData = this.productData; return hashCode ^ (productData != null ? productData.hashCode() : 0); } }