package com.ss.android.ugc.aweme.creative.model.publish;

import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.io.Serializable;
import java.util.Objects;

public class AVTextExtraStruct implements Parcelable, Serializable, Cloneable {
    public static final Parcelable.Creator<AVTextExtraStruct> CREATOR = new Parcelable.Creator<AVTextExtraStruct>() {
        static {
            Covode.recordClassIndex(62694);
        }

        public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
            return new AVTextExtraStruct[i];
        }

        public final /* synthetic */ Object createFromParcel(Parcel parcel) {
            return new AVTextExtraStruct(parcel);
        }
    };
    @c(LIZ = "at_user_type")
    public String atUserType;
    @c(LIZ = "aweme_id")
    public String awemeId;
    public String cid;
    @c(LIZ = "end")
    public int end;
    @c(LIZ = "hashtag_name")
    public String hashTagName;
    public boolean isDuet;
    public boolean isStarAtlasTag;
    public boolean isTransient;
    @c(LIZ = "line_idx")
    public int lineIndex;
    @c(LIZ = "sec_uid")
    public String mSecUid;
    @c(LIZ = "start")
    public int start;
    @c(LIZ = "sub_type")
    public int subType;
    @c(LIZ = "tag_id")
    public String tagId;
    @c(LIZ = "type")
    public int type;
    @c(LIZ = "user_id")
    public String userId;

    public int describeContents() {
        return 0;
    }

    public AVTextExtraStruct() {
    }

    public String getAtUserType() {
        return this.atUserType;
    }

    public String getAwemeId() {
        return this.awemeId;
    }

    public String getCid() {
        return this.cid;
    }

    public int getEnd() {
        return this.end;
    }

    public String getHashTagName() {
        return this.hashTagName;
    }

    public int getLineIndex() {
        return this.lineIndex;
    }

    public String getSecUid() {
        return this.mSecUid;
    }

    public int getStart() {
        return this.start;
    }

    public int getSubType() {
        return this.subType;
    }

    public String getTagId() {
        return this.tagId;
    }

    public int getType() {
        return this.type;
    }

    public String getUserId() {
        return this.userId;
    }

    public boolean isDuet() {
        return this.isDuet;
    }

    public boolean isStarAtlasTag() {
        return this.isStarAtlasTag;
    }

    public boolean isTransient() {
        return this.isTransient;
    }

    static {
        Covode.recordClassIndex(62693);
    }

    public AVTextExtraStruct clone() {
        AVTextExtraStruct aVTextExtraStruct = new AVTextExtraStruct();
        aVTextExtraStruct.setStart(this.start);
        aVTextExtraStruct.setEnd(this.end);
        aVTextExtraStruct.setUserId(this.userId);
        aVTextExtraStruct.setType(this.type);
        aVTextExtraStruct.setAtUserType(this.atUserType);
        aVTextExtraStruct.setHashTagName(this.hashTagName);
        aVTextExtraStruct.setAwemeId(this.awemeId);
        aVTextExtraStruct.setSubType(this.subType);
        aVTextExtraStruct.setSecUid(this.mSecUid);
        aVTextExtraStruct.setLineIndex(this.lineIndex);
        return aVTextExtraStruct;
    }

    public int hashCode() {
        int i;
        int i2;
        String str = this.userId;
        int i3 = 0;
        if (str != null) {
            i = str.hashCode();
        } else {
            i = 0;
        }
        int i4 = (((i + 0) * 31) + this.type + this.subType) * 31;
        String str2 = this.atUserType;
        if (str2 != null) {
            i2 = str2.hashCode();
        } else {
            i2 = 0;
        }
        int i5 = (i4 + i2) * 31;
        String str3 = this.hashTagName;
        if (str3 != null) {
            i3 = str3.hashCode();
        }
        return i5 + i3;
    }

    public String toString() {
        return "AVTextExtraStruct{isStarAtlasTag=" + this.isStarAtlasTag + ", start=" + this.start + ", end=" + this.end + ", userId='" + this.userId + '\'' + ", type=" + this.type + ", atUserType='" + this.atUserType + '\'' + ", hashTagName='" + this.hashTagName + '\'' + ", awemeId='" + this.awemeId + '\'' + ", subType=" + this.subType + ", mSecUid='" + this.mSecUid + '\'' + ", lineIndex=" + this.lineIndex + ", isDuet=" + this.isDuet + ", isTransient=" + this.isTransient + ", tagId='" + this.tagId + '\'' + ", cid='" + this.cid + '\'' + '}';
    }

    public void setAtUserType(String str) {
        this.atUserType = str;
    }

    public void setAwemeId(String str) {
        this.awemeId = str;
    }

    public void setCid(String str) {
        this.cid = str;
    }

    public void setDuet(boolean z) {
        this.isDuet = z;
    }

    public void setEnd(int i) {
        this.end = i;
    }

    public void setHashTagName(String str) {
        this.hashTagName = str;
    }

    public void setLineIndex(int i) {
        this.lineIndex = i;
    }

    public void setSecUid(String str) {
        this.mSecUid = str;
    }

    public void setStarAtlasTag(boolean z) {
        this.isStarAtlasTag = z;
    }

    public void setStart(int i) {
        this.start = i;
    }

    public void setSubType(int i) {
        this.subType = i;
    }

    public void setTagId(String str) {
        this.tagId = str;
    }

    public void setTransient(boolean z) {
        this.isTransient = z;
    }

    public void setType(int i) {
        this.type = i;
    }

    public void setUserId(String str) {
        this.userId = str;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof AVTextExtraStruct)) {
            return false;
        }
        AVTextExtraStruct aVTextExtraStruct = (AVTextExtraStruct) obj;
        if (this.type == aVTextExtraStruct.type && this.subType == aVTextExtraStruct.subType && Objects.equals(this.userId, aVTextExtraStruct.userId) && TextUtils.equals(this.hashTagName, aVTextExtraStruct.hashTagName)) {
            return Objects.equals(this.atUserType, aVTextExtraStruct.atUserType);
        }
        return false;
    }

    public AVTextExtraStruct(Parcel parcel) {
        boolean z;
        this.start = parcel.readInt();
        this.end = parcel.readInt();
        this.userId = parcel.readString();
        this.type = parcel.readInt();
        this.atUserType = parcel.readString();
        this.hashTagName = parcel.readString();
        this.awemeId = parcel.readString();
        this.subType = parcel.readInt();
        this.mSecUid = parcel.readString();
        this.lineIndex = parcel.readInt();
        this.tagId = parcel.readString();
        boolean z2 = false;
        if (parcel.readInt() == 1) {
            z = true;
        } else {
            z = false;
        }
        this.isTransient = z;
        this.isDuet = parcel.readInt() == 1 ? true : z2;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.start);
        parcel.writeInt(this.end);
        parcel.writeString(this.userId);
        parcel.writeInt(this.type);
        parcel.writeString(this.atUserType);
        parcel.writeString(this.hashTagName);
        parcel.writeString(this.awemeId);
        parcel.writeInt(this.subType);
        parcel.writeString(this.mSecUid);
        parcel.writeInt(this.lineIndex);
        parcel.writeString(this.tagId);
        parcel.writeInt(this.isTransient ? 1 : 0);
        parcel.writeInt(this.isDuet ? 1 : 0);
    }
}
