package com.bytedance.geckox.settings.model;

import com.bytedance.covode.number.Covode;
import com.google.gson.a.c;
import java.util.List;
import java.util.Map;

public class GlobalConfigSettings {
    @c(LIZ = "settings_config")
    public GlobalConfig globalConfig;
    @c(LIZ = "req_meta")
    public ReqMeta reqMeta;
    @c(LIZ = "resource_meta")
    public ResourceMeta resourceMeta;
    @c(LIZ = "version")
    public int version;

    static {
        Covode.recordClassIndex(26579);
    }

    public static class AccessKeyMetaInfo {
        @c(LIZ = "channels")
        public Map<String, ChannelMetaInfo> channels;
        @c(LIZ = "config")
        public CurrentLevelConfig config;

        static {
            Covode.recordClassIndex(26580);
        }

        public Map<String, ChannelMetaInfo> getChannels() {
            return this.channels;
        }

        public CurrentLevelConfig getConfig() {
            return this.config;
        }
    }

    public static class CDNMultiVersion {
        @c(LIZ = "domains")
        public List<String> domains;

        static {
            Covode.recordClassIndex(26582);
        }

        public List<String> getDomains() {
            return this.domains;
        }
    }

    public static class ChannelMetaInfo {
        @c(LIZ = "config")
        public CurrentLevelConfig config;

        static {
            Covode.recordClassIndex(26583);
        }

        public CurrentLevelConfig getConfig() {
            return this.config;
        }
    }

    public static class CurrentLevelConfig {
        @c(LIZ = "cdn_fallback")
        public CDNFallBackConfig cdnFallback;
        @c(LIZ = "cdn_multi_version")
        public CDNMultiVersion cdnMultiVersion;
        @c(LIZ = "pipeline")
        public List<PipelineStep> pipeline;
        @c(LIZ = "prefix_2_ak")
        public Map<String, String> prefix2AccessKey;

        static {
            Covode.recordClassIndex(26584);
        }

        public CDNMultiVersion getCDNMultiVersion() {
            return this.cdnMultiVersion;
        }

        public CDNFallBackConfig getCdnFallback() {
            return this.cdnFallback;
        }

        public List<PipelineStep> getPipeline() {
            return this.pipeline;
        }

        public Map<String, String> getPrefix2AccessKey() {
            return this.prefix2AccessKey;
        }
    }

    public static class GeckoPollingConfig {
        @c(LIZ = "combine")
        public List<SyncItem> combine;
        @c(LIZ = "interval")
        public int interval;

        static {
            Covode.recordClassIndex(26585);
        }

        public List<SyncItem> getCombine() {
            return this.combine;
        }

        public int getInterval() {
            return this.interval;
        }
    }

    public static class GlobalConfig {
        @c(LIZ = "check_update")
        public SettingsPollingConfig checkUpdate;
        @c(LIZ = "host_app_id")
        public List<String> hostAppId;
        @c(LIZ = "poll_enable")
        public int pollEnable;

        static {
            Covode.recordClassIndex(26586);
        }

        public SettingsPollingConfig getCheckUpdate() {
            return this.checkUpdate;
        }

        public List<String> getHostAppId() {
            return this.hostAppId;
        }

        public int getPollEnable() {
            return this.pollEnable;
        }
    }

    public static class LazyItem {
        @c(LIZ = "channels")
        public List<String> channels;
        @c(LIZ = "groups")
        public List<String> groups;

        static {
            Covode.recordClassIndex(26587);
        }

        public List<String> getChannels() {
            return this.channels;
        }

        public List<String> getGroups() {
            return this.groups;
        }
    }

    public enum PipelineType {
        GECKO(1),
        CDN(2),
        BUILTIN(3);
        
        public int val;

        public final int getVal() {
            return this.val;
        }

        /* access modifiers changed from: public */
        PipelineType(int i) {
            this.val = i;
        }
    }

    public static class ReqMeta {
        @c(LIZ = "aks")
        public List<String> aks;
        @c(LIZ = "check_update")
        public Map<String, GeckoPollingConfig> checkUpdate;
        @c(LIZ = "enable")
        public int enable;
        @c(LIZ = "fre_control_enable")
        public int freControlEnable;
        @c(LIZ = "lazy")
        public Map<String, LazyItem> lazy;
        @c(LIZ = "poll_enable")
        public int pollEnable;
        @c(LIZ = "queue")
        public List<RequestConfig> queue;

        static {
            Covode.recordClassIndex(26590);
        }

        public List<String> getAks() {
            return this.aks;
        }

        public Map<String, GeckoPollingConfig> getCheckUpdate() {
            return this.checkUpdate;
        }

        public int getEnable() {
            return this.enable;
        }

        public int getFreControlEnable() {
            return this.freControlEnable;
        }

        public Map<String, LazyItem> getLazy() {
            return this.lazy;
        }

        public int getPollEnable() {
            return this.pollEnable;
        }

        public List<RequestConfig> getQueue() {
            return this.queue;
        }
    }

    public static class RequestConfig {
        @c(LIZ = "delay")
        public long delay;
        @c(LIZ = "sync")
        public List<SyncItem> sync;

        static {
            Covode.recordClassIndex(26591);
        }

        public long getDelay() {
            return this.delay;
        }

        public List<SyncItem> getSync() {
            return this.sync;
        }
    }

    public static class ResourceMeta {
        @c(LIZ = "access_keys")
        public Map<String, AccessKeyMetaInfo> accessKeys;
        @c(LIZ = "config")
        public CurrentLevelConfig config;

        static {
            Covode.recordClassIndex(26592);
        }

        public Map<String, AccessKeyMetaInfo> getAccessKeys() {
            return this.accessKeys;
        }

        public CurrentLevelConfig getConfig() {
            return this.config;
        }
    }

    public static class SettingsPollingConfig {
        @c(LIZ = "interval")
        public long interval;

        static {
            Covode.recordClassIndex(26593);
        }

        public long getInterval() {
            return this.interval;
        }
    }

    public static class SyncItem {
        @c(LIZ = "ak")
        public String ak;
        @c(LIZ = "group")
        public List<String> group;
        @c(LIZ = "target")
        public List<String> target;

        static {
            Covode.recordClassIndex(26594);
        }

        public SyncItem() {
        }

        public String getAccessKey() {
            return this.ak;
        }

        public List<String> getGroup() {
            return this.group;
        }

        public List<String> getTarget() {
            return this.target;
        }

        public SyncItem(String str, List<String> list, List<String> list2) {
            this.ak = str;
            this.group = list;
            this.target = list2;
        }
    }

    public GlobalConfig getGlobalConfig() {
        return this.globalConfig;
    }

    public ReqMeta getReqMeta() {
        return this.reqMeta;
    }

    public ResourceMeta getResourceMeta() {
        return this.resourceMeta;
    }

    public int getVersion() {
        return this.version;
    }
}
