得物.apk(点击下载) / LiveAnchorTaskMessage.java
package com.shizhuang.duapp.modules.live.common.model.live.message;
import a.f;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.appcompat.widget.a;
import com.goim.bootstrap.core.config.MessageLevel;
import com.google.protobuf.AbstractMessageLite;
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.RepeatedFieldBuilderV3;
import com.meituan.robust.ChangeQuickRedirect;
import com.meituan.robust.PatchProxy;
import com.meituan.robust.PatchProxyResult;
import com.shizhuang.duapp.NoArgSupport;
import com.shizhuang.duapp.message.LiveAnchorTaskMessageProto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlinx.android.parcel.Parcelize;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@NoArgSupport
@Parcelize
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000R\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u001e\n\u0002\u0010\u0000\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\b\u0018\u0000 <2\u00020\u00012\u00020\u0002:\u0001<B\u000f\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005B\u0007\b\u0016¢\u0006\u0002\u0010\u0006BQ\u0012\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b\u0012\u000e\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\n\u0012\u000e\u0010\f\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\n\u0012\b\b\u0002\u0010\u000e\u001a\u00020\u000f\u0012\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\b\u0012\b\b\u0002\u0010\u0011\u001a\u00020\u0012¢\u0006\u0002\u0010\u0013J\u000b\u0010(\u001a\u0004\u0018\u00010\bHÆ\u0003J\u0011\u0010)\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\nHÆ\u0003J\u0011\u0010*\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\nHÆ\u0003J\t\u0010+\u001a\u00020\u000fHÆ\u0003J\u000b\u0010,\u001a\u0004\u0018\u00010\bHÆ\u0003J\t\u0010-\u001a\u00020\u0012HÆ\u0003JY\u0010.\u001a\u00020\u00002\n\b\u0002\u0010\u0007\u001a\u0004\u0018\u00010\b2\u0010\b\u0002\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\n2\u0010\b\u0002\u0010\f\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\n2\b\b\u0002\u0010\u000e\u001a\u00020\u000f2\n\b\u0002\u0010\u0010\u001a\u0004\u0018\u00010\b2\b\b\u0002\u0010\u0011\u001a\u00020\u0012HÆ\u0001J\u0013\u0010/\u001a\u00020\u00122\b\u00100\u001a\u0004\u0018\u000101HÖ\u0003J\t\u00102\u001a\u00020\u000fHÖ\u0001J\u0012\u00103\u001a\u0004\u0018\u00010\u00012\u0006\u00104\u001a\u00020\u000fH\u0016J\b\u00105\u001a\u00020\u0004H\u0016J\t\u00106\u001a\u00020\bHÖ\u0001J\u0019\u00107\u001a\u0002082\u0006\u00109\u001a\u00020:2\u0006\u0010;\u001a\u00020\u000fHÖ\u0001R\u001a\u0010\u0011\u001a\u00020\u0012X\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0014\u0010\u0015\"\u0004\b\u0016\u0010\u0017R\"\u0010\t\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\nX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0018\u0010\u0019\"\u0004\b\u001a\u0010\u001bR\"\u0010\f\u001a\n\u0012\u0004\u0012\u00020\r\u0018\u00010\nX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001c\u0010\u0019\"\u0004\b\u001d\u0010\u001bR\u001c\u0010\u0007\u001a\u0004\u0018\u00010\bX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001e\u0010\u001f\"\u0004\b \u0010!R\u001c\u0010\u0010\u001a\u0004\u0018\u00010\bX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\"\u0010\u001f\"\u0004\b#\u0010!R\u001a\u0010\u000e\u001a\u00020\u000fX\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b$\u0010%\"\u0004\b&\u0010'¨\u0006="}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/LiveAnchorTaskMessage;", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/BaseLiveChatMessage;", "Landroid/os/Parcelable;", "protoBody", "Lcom/shizhuang/duapp/message/LiveAnchorTaskMessageProto$LiveAnchorTaskMessage;", "(Lcom/shizhuang/duapp/message/LiveAnchorTaskMessageProto$LiveAnchorTaskMessage;)V", "()V", "taskName", "", "rate", "", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/TaskRateInfo;", "reward", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/TaskRewardInfo;", "type", "", "taskUrl", "next", "", "(Ljava/lang/String;Ljava/util/List;Ljava/util/List;ILjava/lang/String;Z)V", "getNext", "()Z", "setNext", "(Z)V", "getRate", "()Ljava/util/List;", "setRate", "(Ljava/util/List;)V", "getReward", "setReward", "getTaskName", "()Ljava/lang/String;", "setTaskName", "(Ljava/lang/String;)V", "getTaskUrl", "setTaskUrl", "getType", "()I", "setType", "(I)V", "component1", "component2", "component3", "component4", "component5", "component6", "copy", "equals", "other", "", "hashCode", "mock", "ct", "toProtoMessage", "toString", "writeToParcel", "", "parcel", "Landroid/os/Parcel;", "flags", "Companion", "du_live_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: LiveAnchorTaskMessage.kt */
public final class LiveAnchorTaskMessage extends BaseLiveChatMessage {
public static final Parcelable.Creator<LiveAnchorTaskMessage> CREATOR = new Creator();
@NotNull
public static final Companion Companion = new Companion(null);
public static ChangeQuickRedirect changeQuickRedirect;
private boolean next;
@Nullable
private List<TaskRateInfo> rate;
@Nullable
private List<TaskRewardInfo> reward;
@Nullable
private String taskName;
@Nullable
private String taskUrl;
private int type;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0000\b\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0007¨\u0006\u0007"}, d2 = {"Lcom/shizhuang/duapp/modules/live/common/model/live/message/LiveAnchorTaskMessage$Companion;", "", "()V", "toProtoMessage", "Lcom/shizhuang/duapp/modules/live/common/model/live/message/LiveAnchorTaskMessage;", "data", "", "du_live_release"}, k = 1, mv = {1, 4, 2})
/* compiled from: LiveAnchorTaskMessage.kt */
public static final class Companion {
public static ChangeQuickRedirect changeQuickRedirect;
private Companion() {
}
@JvmStatic
@Nullable
public final LiveAnchorTaskMessage toProtoMessage(@NotNull byte[] bArr) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bArr}, this, changeQuickRedirect, false, 198347, new Class[]{byte[].class}, LiveAnchorTaskMessage.class);
if (proxy.isSupported) {
return (LiveAnchorTaskMessage) proxy.result;
}
try {
return new LiveAnchorTaskMessage(LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.parseFrom(bArr));
} catch (InvalidProtocolBufferException e) {
e.printStackTrace();
return null;
}
}
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
}
@Metadata(bv = {1, 0, 3}, k = 3, mv = {1, 4, 2})
public static final class Creator implements Parcelable.Creator<LiveAnchorTaskMessage> {
public static ChangeQuickRedirect changeQuickRedirect;
@Override // android.os.Parcelable.Creator
@NotNull
public final LiveAnchorTaskMessage createFromParcel(@NotNull Parcel parcel) {
ArrayList arrayList;
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{parcel}, this, changeQuickRedirect, false, 198349, new Class[]{Parcel.class}, LiveAnchorTaskMessage.class);
if (proxy.isSupported) {
return (LiveAnchorTaskMessage) proxy.result;
}
String readString = parcel.readString();
ArrayList arrayList2 = null;
if (parcel.readInt() != 0) {
int readInt = parcel.readInt();
ArrayList arrayList3 = new ArrayList(readInt);
while (readInt != 0) {
arrayList3.add(TaskRateInfo.CREATOR.createFromParcel(parcel));
readInt--;
}
arrayList = arrayList3;
} else {
arrayList = null;
}
if (parcel.readInt() != 0) {
int readInt2 = parcel.readInt();
ArrayList arrayList4 = new ArrayList(readInt2);
while (readInt2 != 0) {
arrayList4.add(TaskRewardInfo.CREATOR.createFromParcel(parcel));
readInt2--;
}
arrayList2 = arrayList4;
}
return new LiveAnchorTaskMessage(readString, arrayList, arrayList2, parcel.readInt(), parcel.readString(), parcel.readInt() != 0);
}
@Override // android.os.Parcelable.Creator
@NotNull
public final LiveAnchorTaskMessage[] newArray(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198348, new Class[]{Integer.TYPE}, LiveAnchorTaskMessage[].class);
return proxy.isSupported ? (LiveAnchorTaskMessage[]) proxy.result : new LiveAnchorTaskMessage[i];
}
}
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
public /* synthetic */ LiveAnchorTaskMessage(String str, List list, List list2, int i, String str2, boolean z, int i3, DefaultConstructorMarker defaultConstructorMarker) {
this((i3 & 1) != 0 ? "" : str, list, list2, (i3 & 8) != 0 ? 0 : i, (i3 & 16) != 0 ? "" : str2, (i3 & 32) != 0 ? true : z);
}
/* JADX DEBUG: Multi-variable search result rejected for r4v0, resolved type: com.shizhuang.duapp.modules.live.common.model.live.message.LiveAnchorTaskMessage */
/* JADX WARN: Multi-variable type inference failed */
public static /* synthetic */ LiveAnchorTaskMessage copy$default(LiveAnchorTaskMessage liveAnchorTaskMessage, String str, List list, List list2, int i, String str2, boolean z, int i3, Object obj) {
if ((i3 & 1) != 0) {
str = liveAnchorTaskMessage.taskName;
}
if ((i3 & 2) != 0) {
list = liveAnchorTaskMessage.rate;
}
if ((i3 & 4) != 0) {
list2 = liveAnchorTaskMessage.reward;
}
if ((i3 & 8) != 0) {
i = liveAnchorTaskMessage.type;
}
if ((i3 & 16) != 0) {
str2 = liveAnchorTaskMessage.taskUrl;
}
if ((i3 & 32) != 0) {
z = liveAnchorTaskMessage.next;
}
return liveAnchorTaskMessage.copy(str, list, list2, i, str2, z);
}
@JvmStatic
@Nullable
public static final LiveAnchorTaskMessage toProtoMessage(@NotNull byte[] bArr) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{bArr}, null, changeQuickRedirect, true, 198346, new Class[]{byte[].class}, LiveAnchorTaskMessage.class);
return proxy.isSupported ? (LiveAnchorTaskMessage) proxy.result : Companion.toProtoMessage(bArr);
}
@Nullable
public final String component1() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198335, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : this.taskName;
}
@Nullable
public final List<TaskRateInfo> component2() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198336, new Class[0], List.class);
return proxy.isSupported ? (List) proxy.result : this.rate;
}
@Nullable
public final List<TaskRewardInfo> component3() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198337, new Class[0], List.class);
return proxy.isSupported ? (List) proxy.result : this.reward;
}
public final int component4() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198338, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.type;
}
@Nullable
public final String component5() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198339, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : this.taskUrl;
}
public final boolean component6() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198340, new Class[0], Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.next;
}
@NotNull
public final LiveAnchorTaskMessage copy(@Nullable String str, @Nullable List<TaskRateInfo> list, @Nullable List<TaskRewardInfo> list2, int i, @Nullable String str2, boolean z) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str, list, list2, new Integer(i), str2, new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 198341, new Class[]{String.class, List.class, List.class, Integer.TYPE, String.class, Boolean.TYPE}, LiveAnchorTaskMessage.class);
return proxy.isSupported ? (LiveAnchorTaskMessage) proxy.result : new LiveAnchorTaskMessage(str, list, list2, i, str2, z);
}
public boolean equals(@Nullable Object obj) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{obj}, this, changeQuickRedirect, false, 198344, new Class[]{Object.class}, Boolean.TYPE);
if (proxy.isSupported) {
return ((Boolean) proxy.result).booleanValue();
}
if (this != obj) {
if (obj instanceof LiveAnchorTaskMessage) {
LiveAnchorTaskMessage liveAnchorTaskMessage = (LiveAnchorTaskMessage) obj;
if (!Intrinsics.areEqual(this.taskName, liveAnchorTaskMessage.taskName) || !Intrinsics.areEqual(this.rate, liveAnchorTaskMessage.rate) || !Intrinsics.areEqual(this.reward, liveAnchorTaskMessage.reward) || this.type != liveAnchorTaskMessage.type || !Intrinsics.areEqual(this.taskUrl, liveAnchorTaskMessage.taskUrl) || this.next != liveAnchorTaskMessage.next) {
return false;
}
}
return false;
}
return true;
}
public final boolean getNext() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198333, new Class[0], Boolean.TYPE);
return proxy.isSupported ? ((Boolean) proxy.result).booleanValue() : this.next;
}
@Nullable
public final List<TaskRateInfo> getRate() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198325, new Class[0], List.class);
return proxy.isSupported ? (List) proxy.result : this.rate;
}
@Nullable
public final List<TaskRewardInfo> getReward() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198327, new Class[0], List.class);
return proxy.isSupported ? (List) proxy.result : this.reward;
}
@Nullable
public final String getTaskName() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198323, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : this.taskName;
}
@Nullable
public final String getTaskUrl() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198331, new Class[0], String.class);
return proxy.isSupported ? (String) proxy.result : this.taskUrl;
}
public final int getType() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198329, new Class[0], Integer.TYPE);
return proxy.isSupported ? ((Integer) proxy.result).intValue() : this.type;
}
public int hashCode() {
int i = 0;
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198343, new Class[0], Integer.TYPE);
if (proxy.isSupported) {
return ((Integer) proxy.result).intValue();
}
String str = this.taskName;
int hashCode = (str != null ? str.hashCode() : 0) * 31;
List<TaskRateInfo> list = this.rate;
int hashCode2 = (hashCode + (list != null ? list.hashCode() : 0)) * 31;
List<TaskRewardInfo> list2 = this.reward;
int hashCode3 = (((hashCode2 + (list2 != null ? list2.hashCode() : 0)) * 31) + this.type) * 31;
String str2 = this.taskUrl;
if (str2 != null) {
i = str2.hashCode();
}
int i3 = (hashCode3 + i) * 31;
boolean z = this.next;
if (z) {
z = true;
}
int i12 = z ? 1 : 0;
int i13 = z ? 1 : 0;
int i14 = z ? 1 : 0;
return i3 + i12;
}
@Override // com.shizhuang.duapp.modules.live.common.model.live.message.MockInterface
@Nullable
public BaseLiveChatMessage mock(int i) {
PatchProxyResult proxy = PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198321, new Class[]{Integer.TYPE}, BaseLiveChatMessage.class);
if (proxy.isSupported) {
return (BaseLiveChatMessage) proxy.result;
}
this.taskName = "mock 导师每日任务";
this.type = 0;
this.taskUrl = "https://t1-m.dewu.net/rn-activity/live/daily-tasks";
this.next = true;
ArrayList arrayList = new ArrayList();
arrayList.add(new TaskRateInfo("分钟", "开播时长", 0, 60));
arrayList.add(new TaskRateInfo("关注", "新增关注数", 0, 60));
this.rate = arrayList;
ArrayList arrayList2 = new ArrayList();
arrayList2.add(new TaskRewardInfo("热气值", 2000));
arrayList2.add(new TaskRewardInfo("热气值", 2000));
this.reward = arrayList2;
return this;
}
public final void setNext(boolean z) {
if (!PatchProxy.proxy(new Object[]{new Byte(z ? (byte) 1 : 0)}, this, changeQuickRedirect, false, 198334, new Class[]{Boolean.TYPE}, Void.TYPE).isSupported) {
this.next = z;
}
}
public final void setRate(@Nullable List<TaskRateInfo> list) {
if (!PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 198326, new Class[]{List.class}, Void.TYPE).isSupported) {
this.rate = list;
}
}
public final void setReward(@Nullable List<TaskRewardInfo> list) {
if (!PatchProxy.proxy(new Object[]{list}, this, changeQuickRedirect, false, 198328, new Class[]{List.class}, Void.TYPE).isSupported) {
this.reward = list;
}
}
public final void setTaskName(@Nullable String str) {
if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 198324, new Class[]{String.class}, Void.TYPE).isSupported) {
this.taskName = str;
}
}
public final void setTaskUrl(@Nullable String str) {
if (!PatchProxy.proxy(new Object[]{str}, this, changeQuickRedirect, false, 198332, new Class[]{String.class}, Void.TYPE).isSupported) {
this.taskUrl = str;
}
}
public final void setType(int i) {
if (!PatchProxy.proxy(new Object[]{new Integer(i)}, this, changeQuickRedirect, false, 198330, new Class[]{Integer.TYPE}, Void.TYPE).isSupported) {
this.type = i;
}
}
@NotNull
public String toString() {
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198342, new Class[0], String.class);
if (proxy.isSupported) {
return (String) proxy.result;
}
StringBuilder h12 = f.h("LiveAnchorTaskMessage(taskName=");
h12.append(this.taskName);
h12.append(", rate=");
h12.append(this.rate);
h12.append(", reward=");
h12.append(this.reward);
h12.append(", type=");
h12.append(this.type);
h12.append(", taskUrl=");
h12.append(this.taskUrl);
h12.append(", next=");
return a.k(h12, this.next, ")");
}
@Override // com.shizhuang.duapp.modules.live.common.model.live.message.BaseLiveChatMessage
public void writeToParcel(@NotNull Parcel parcel, int i) {
if (!PatchProxy.proxy(new Object[]{parcel, new Integer(i)}, this, changeQuickRedirect, false, 198345, new Class[]{Parcel.class, Integer.TYPE}, Void.TYPE).isSupported) {
parcel.writeString(this.taskName);
List<TaskRateInfo> list = this.rate;
if (list != null) {
Iterator b = vq0.a.b(parcel, 1, list);
while (b.hasNext()) {
((TaskRateInfo) b.next()).writeToParcel(parcel, 0);
}
} else {
parcel.writeInt(0);
}
List<TaskRewardInfo> list2 = this.reward;
if (list2 != null) {
Iterator b2 = vq0.a.b(parcel, 1, list2);
while (b2.hasNext()) {
((TaskRewardInfo) b2.next()).writeToParcel(parcel, 0);
}
} else {
parcel.writeInt(0);
}
parcel.writeInt(this.type);
parcel.writeString(this.taskUrl);
parcel.writeInt(this.next ? 1 : 0);
}
}
public LiveAnchorTaskMessage(@Nullable String str, @Nullable List<TaskRateInfo> list, @Nullable List<TaskRewardInfo> list2, int i, @Nullable String str2, boolean z) {
this.taskName = str;
this.rate = list;
this.reward = list2;
this.type = i;
this.taskUrl = str2;
this.next = z;
this.category = 35;
this.priorityLevel = MessageLevel.LOW.getLevel();
}
@Override // com.shizhuang.duapp.modules.live.common.model.live.message.BaseLiveChatMessage
@NotNull
public LiveAnchorTaskMessageProto.LiveAnchorTaskMessage toProtoMessage() {
ArrayList arrayList;
ArrayList arrayList2;
PatchProxyResult proxy = PatchProxy.proxy(new Object[0], this, changeQuickRedirect, false, 198322, new Class[0], LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.class);
if (proxy.isSupported) {
return (LiveAnchorTaskMessageProto.LiveAnchorTaskMessage) proxy.result;
}
LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b newBuilder = LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.newBuilder();
String str = this.taskName;
String str2 = "";
if (str == null) {
str = str2;
}
PatchProxyResult proxy2 = PatchProxy.proxy(new Object[]{str}, newBuilder, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.changeQuickRedirect, false, 54306, new Class[]{String.class}, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.class);
if (proxy2.isSupported) {
newBuilder = (LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b) proxy2.result;
} else {
newBuilder.f10577c = str;
newBuilder.onChanged();
}
List<TaskRateInfo> list = this.rate;
if (list != null) {
arrayList = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10));
Iterator<T> it2 = list.iterator();
while (it2.hasNext()) {
arrayList.add(it2.next().toProtoMessage());
}
} else {
arrayList = new ArrayList();
}
PatchProxyResult proxy3 = PatchProxy.proxy(new Object[]{arrayList}, newBuilder, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.changeQuickRedirect, false, 54319, new Class[]{Iterable.class}, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.class);
if (proxy3.isSupported) {
newBuilder = (LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b) proxy3.result;
} else {
RepeatedFieldBuilderV3<LiveAnchorTaskMessageProto.TaskRateInfo, LiveAnchorTaskMessageProto.TaskRateInfo.b, LiveAnchorTaskMessageProto.TaskRateInfoOrBuilder> repeatedFieldBuilderV3 = newBuilder.e;
if (repeatedFieldBuilderV3 == null) {
newBuilder.h();
AbstractMessageLite.Builder.addAll((Iterable) arrayList, (List) newBuilder.d);
newBuilder.onChanged();
} else {
repeatedFieldBuilderV3.addAllMessages(arrayList);
}
}
List<TaskRewardInfo> list2 = this.reward;
if (list2 != null) {
arrayList2 = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10));
Iterator<T> it3 = list2.iterator();
while (it3.hasNext()) {
arrayList2.add(it3.next().toProtoMessage());
}
} else {
arrayList2 = new ArrayList();
}
PatchProxyResult proxy4 = PatchProxy.proxy(new Object[]{arrayList2}, newBuilder, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.changeQuickRedirect, false, 54339, new Class[]{Iterable.class}, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.class);
if (proxy4.isSupported) {
newBuilder = (LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b) proxy4.result;
} else {
RepeatedFieldBuilderV3<LiveAnchorTaskMessageProto.TaskRewardInfo, LiveAnchorTaskMessageProto.TaskRewardInfo.b, LiveAnchorTaskMessageProto.TaskRewardInfoOrBuilder> repeatedFieldBuilderV32 = newBuilder.f10578g;
if (repeatedFieldBuilderV32 == null) {
newBuilder.i();
AbstractMessageLite.Builder.addAll((Iterable) arrayList2, (List) newBuilder.f);
newBuilder.onChanged();
} else {
repeatedFieldBuilderV32.addAllMessages(arrayList2);
}
}
LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b t = newBuilder.t(this.type);
String str3 = this.taskUrl;
if (str3 != null) {
str2 = str3;
}
PatchProxyResult proxy5 = PatchProxy.proxy(new Object[]{str2}, t, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.changeQuickRedirect, false, 54354, new Class[]{String.class}, LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b.class);
if (proxy5.isSupported) {
t = (LiveAnchorTaskMessageProto.LiveAnchorTaskMessage.b) proxy5.result;
} else {
t.i = str2;
t.onChanged();
}
return t.r(this.next).build();
}
/* JADX WARNING: Illegal instructions before constructor call */
public LiveAnchorTaskMessage(@NotNull LiveAnchorTaskMessageProto.LiveAnchorTaskMessage liveAnchorTaskMessage) {
this(r1, r2, r4, liveAnchorTaskMessage.getType(), liveAnchorTaskMessage.getTaskUrl(), liveAnchorTaskMessage.getNext());
String taskName2 = liveAnchorTaskMessage.getTaskName();
List<LiveAnchorTaskMessageProto.TaskRateInfo> rateList = liveAnchorTaskMessage.getRateList();
ArrayList arrayList = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(rateList, 10));
Iterator<T> it2 = rateList.iterator();
while (it2.hasNext()) {
arrayList.add(new TaskRateInfo(it2.next()));
}
List<LiveAnchorTaskMessageProto.TaskRewardInfo> rewardList = liveAnchorTaskMessage.getRewardList();
ArrayList arrayList2 = new ArrayList(CollectionsKt__IterablesKt.collectionSizeOrDefault(rewardList, 10));
Iterator<T> it3 = rewardList.iterator();
while (it3.hasNext()) {
arrayList2.add(new TaskRewardInfo(it3.next()));
}
}
public LiveAnchorTaskMessage() {
this(null, null, null, 0, null, false);
}
}