package com.flurry.android;

import com.flurry.org.apache.avro.AvroRuntimeException;
import com.flurry.org.apache.avro.Schema;
import com.flurry.org.apache.avro.data.RecordBuilder;
import com.flurry.org.apache.avro.specific.SpecificRecord;
import com.flurry.org.apache.avro.specific.SpecificRecordBase;
import com.flurry.org.apache.avro.specific.SpecificRecordBuilderBase;
import java.util.List;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
public class Callback extends SpecificRecordBase implements SpecificRecord {
    public static final Schema SCHEMA$ = new Schema.Parser().parse("{\"type\":\"record\",\"name\":\"Callback\",\"namespace\":\"com.flurry.android\",\"fields\":[{\"name\":\"event\",\"type\":\"string\"},{\"name\":\"actions\",\"type\":{\"type\":\"array\",\"items\":\"string\"}}]}");
    public CharSequence a;
    public List<CharSequence> b;

    Callback() {
    }

    @Override // com.flurry.org.apache.avro.specific.SpecificRecordBase, com.flurry.org.apache.avro.generic.GenericContainer
    public Schema getSchema() {
        return SCHEMA$;
    }

    @Override // com.flurry.org.apache.avro.specific.SpecificRecordBase, com.flurry.org.apache.avro.generic.IndexedRecord
    public Object get(int i) {
        switch (i) {
            case 0:
                return this.a;
            case 1:
                return this.b;
            default:
                throw new AvroRuntimeException("Bad index");
        }
    }

    @Override // com.flurry.org.apache.avro.specific.SpecificRecordBase, com.flurry.org.apache.avro.generic.IndexedRecord
    public void put(int i, Object obj) {
        switch (i) {
            case 0:
                this.a = (CharSequence) obj;
                return;
            case 1:
                this.b = (List) obj;
                return;
            default:
                throw new AvroRuntimeException("Bad index");
        }
    }

    public final CharSequence a() {
        return this.a;
    }

    public final List<CharSequence> b() {
        return this.b;
    }

    /* loaded from: /storage/emulated/0/Documents/jadec/sources/com.UBI.A90.WW/dex-files/0.dex */
    public class Builder extends SpecificRecordBuilderBase<Callback> implements RecordBuilder<Callback> {
        private CharSequence a;
        private List<CharSequence> b;

        private Builder() {
            super(Callback.SCHEMA$);
        }

        public CharSequence getEvent() {
            return this.a;
        }

        public Builder setEvent(CharSequence charSequence) {
            validate(fields()[0], charSequence);
            this.a = charSequence;
            fieldSetFlags()[0] = true;
            return this;
        }

        public boolean hasEvent() {
            return fieldSetFlags()[0];
        }

        public Builder clearEvent() {
            this.a = null;
            fieldSetFlags()[0] = false;
            return this;
        }

        public List<CharSequence> getActions() {
            return this.b;
        }

        public Builder setActions(List<CharSequence> list) {
            validate(fields()[1], list);
            this.b = list;
            fieldSetFlags()[1] = true;
            return this;
        }

        public boolean hasActions() {
            return fieldSetFlags()[1];
        }

        public Builder clearActions() {
            this.b = null;
            fieldSetFlags()[1] = false;
            return this;
        }

        /* JADX WARN: Can't rename method to resolve collision */
        @Override // com.flurry.org.apache.avro.data.RecordBuilder
        public Callback build() {
            try {
                Callback callback = new Callback();
                callback.a = fieldSetFlags()[0] ? this.a : (CharSequence) defaultValue(fields()[0]);
                callback.b = fieldSetFlags()[1] ? this.b : (List) defaultValue(fields()[1]);
                return callback;
            } catch (Exception e) {
                throw new AvroRuntimeException(e);
            }
        }
    }
}
