package nano;

import com.google.protobuf.nano.CodedInputByteBufferNano;
import com.google.protobuf.nano.CodedOutputByteBufferNano;
import com.google.protobuf.nano.InternalNano;
import com.google.protobuf.nano.InvalidProtocolBufferNanoException;
import com.google.protobuf.nano.MessageNano;
import com.google.protobuf.nano.WireFormatNano;
import java.io.IOException;

/* compiled from: TbsSdkJava */
public interface NorthCommon {

    /* compiled from: TbsSdkJava */
    public interface BlockType {

        public static final int Block = 1;

        public static final int Concept = 3;

        public static final int Industry = 2;

        public static final int NonBlock = 0;

        public static final int Region = 4;
    }

    /* compiled from: TbsSdkJava */
    public static final class SecurityInfo extends MessageNano {

        private static volatile SecurityInfo[] _emptyArray;

        private int bitField0_;

        private long category_;

        private String code_;

        private int exchange_;

        private int id_;

        private String name_;

        private int session_;

        public SecurityInfo() {
            clear();
        }

        public static SecurityInfo[] emptyArray() {
            if (_emptyArray == null) {
                synchronized (InternalNano.LAZY_INIT_LOCK) {
                    try {
                        if (_emptyArray == null) {
                            _emptyArray = new SecurityInfo[0];
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
            }
            return _emptyArray;
        }

        public static SecurityInfo parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException {
            return (SecurityInfo) MessageNano.mergeFrom(new SecurityInfo(), bArr);
        }

        public SecurityInfo clear() {
            this.bitField0_ = 0;
            this.id_ = 0;
            this.code_ = "";
            this.name_ = "";
            this.exchange_ = 0;
            this.category_ = 0;
            this.session_ = 0;
            this.cachedSize = -1;
            return this;
        }

        public SecurityInfo clearCategory() {
            this.category_ = 0;
            this.bitField0_ &= -17;
            return this;
        }

        public SecurityInfo clearCode() {
            this.code_ = "";
            this.bitField0_ &= -3;
            return this;
        }

        public SecurityInfo clearExchange() {
            this.exchange_ = 0;
            this.bitField0_ &= -9;
            return this;
        }

        public SecurityInfo clearId() {
            this.id_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public SecurityInfo clearName() {
            this.name_ = "";
            this.bitField0_ &= -5;
            return this;
        }

        public SecurityInfo clearSession() {
            this.session_ = 0;
            this.bitField0_ &= -33;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.id_);
            }
            if ((this.bitField0_ & 2) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(2, this.code_);
            }
            if ((this.bitField0_ & 4) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeStringSize(3, this.name_);
            }
            if ((this.bitField0_ & 8) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(4, this.exchange_);
            }
            if ((this.bitField0_ & 16) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt64Size(5, this.category_);
            }
            if ((this.bitField0_ & 32) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeUInt32Size(6, this.session_);
            }
            return computeSerializedSize;
        }

        public long getCategory() {
            return this.category_;
        }

        public String getCode() {
            return this.code_;
        }

        public int getExchange() {
            return this.exchange_;
        }

        public int getId() {
            return this.id_;
        }

        public String getName() {
            return this.name_;
        }

        public int getSession() {
            return this.session_;
        }

        public boolean hasCategory() {
            if ((this.bitField0_ & 16) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasCode() {
            if ((this.bitField0_ & 2) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasExchange() {
            if ((this.bitField0_ & 8) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasId() {
            if ((this.bitField0_ & 1) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasName() {
            if ((this.bitField0_ & 4) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasSession() {
            if ((this.bitField0_ & 32) != 0) {
                return true;
            }
            return false;
        }

        public SecurityInfo setCategory(long j10) {
            this.category_ = j10;
            this.bitField0_ |= 16;
            return this;
        }

        public SecurityInfo setCode(String str) {
            str.getClass();
            this.code_ = str;
            this.bitField0_ |= 2;
            return this;
        }

        public SecurityInfo setExchange(int i10) {
            this.exchange_ = i10;
            this.bitField0_ |= 8;
            return this;
        }

        public SecurityInfo setId(int i10) {
            this.id_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public SecurityInfo setName(String str) {
            str.getClass();
            this.name_ = str;
            this.bitField0_ |= 4;
            return this;
        }

        public SecurityInfo setSession(int i10) {
            this.session_ = i10;
            this.bitField0_ |= 32;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(1, this.id_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeString(2, this.code_);
            }
            if ((this.bitField0_ & 4) != 0) {
                codedOutputByteBufferNano.writeString(3, this.name_);
            }
            if ((this.bitField0_ & 8) != 0) {
                codedOutputByteBufferNano.writeUInt32(4, this.exchange_);
            }
            if ((this.bitField0_ & 16) != 0) {
                codedOutputByteBufferNano.writeUInt64(5, this.category_);
            }
            if ((this.bitField0_ & 32) != 0) {
                codedOutputByteBufferNano.writeUInt32(6, this.session_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

        public static SecurityInfo parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            return new SecurityInfo().mergeFrom(codedInputByteBufferNano);
        }

        public SecurityInfo mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.id_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 18) {
                    this.code_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 2;
                } else if (readTag == 26) {
                    this.name_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 4;
                } else if (readTag == 32) {
                    this.exchange_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 8;
                } else if (readTag == 40) {
                    this.category_ = codedInputByteBufferNano.readUInt64();
                    this.bitField0_ |= 16;
                } else if (readTag == 48) {
                    this.session_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 32;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }

    /* compiled from: TbsSdkJava */
    public static final class TradeDate extends MessageNano {

        private static volatile TradeDate[] _emptyArray;

        private int bitField0_;

        private int date_;

        private String desc_;

        public TradeDate() {
            clear();
        }

        public static TradeDate[] emptyArray() {
            if (_emptyArray == null) {
                synchronized (InternalNano.LAZY_INIT_LOCK) {
                    try {
                        if (_emptyArray == null) {
                            _emptyArray = new TradeDate[0];
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
            }
            return _emptyArray;
        }

        public static TradeDate parseFrom(byte[] bArr) throws InvalidProtocolBufferNanoException {
            return (TradeDate) MessageNano.mergeFrom(new TradeDate(), bArr);
        }

        public TradeDate clear() {
            this.bitField0_ = 0;
            this.date_ = 0;
            this.desc_ = "";
            this.cachedSize = -1;
            return this;
        }

        public TradeDate clearDate() {
            this.date_ = 0;
            this.bitField0_ &= -2;
            return this;
        }

        public TradeDate clearDesc() {
            this.desc_ = "";
            this.bitField0_ &= -3;
            return this;
        }

        /* access modifiers changed from: protected */
        public int computeSerializedSize() {
            int computeSerializedSize = super.computeSerializedSize();
            if ((this.bitField0_ & 1) != 0) {
                computeSerializedSize += CodedOutputByteBufferNano.computeUInt32Size(1, this.date_);
            }
            if ((this.bitField0_ & 2) != 0) {
                return computeSerializedSize + CodedOutputByteBufferNano.computeStringSize(2, this.desc_);
            }
            return computeSerializedSize;
        }

        public int getDate() {
            return this.date_;
        }

        public String getDesc() {
            return this.desc_;
        }

        public boolean hasDate() {
            if ((this.bitField0_ & 1) != 0) {
                return true;
            }
            return false;
        }

        public boolean hasDesc() {
            if ((this.bitField0_ & 2) != 0) {
                return true;
            }
            return false;
        }

        public TradeDate setDate(int i10) {
            this.date_ = i10;
            this.bitField0_ |= 1;
            return this;
        }

        public TradeDate setDesc(String str) {
            str.getClass();
            this.desc_ = str;
            this.bitField0_ |= 2;
            return this;
        }

        public void writeTo(CodedOutputByteBufferNano codedOutputByteBufferNano) throws IOException {
            if ((this.bitField0_ & 1) != 0) {
                codedOutputByteBufferNano.writeUInt32(1, this.date_);
            }
            if ((this.bitField0_ & 2) != 0) {
                codedOutputByteBufferNano.writeString(2, this.desc_);
            }
            super.writeTo(codedOutputByteBufferNano);
        }

        public static TradeDate parseFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            return new TradeDate().mergeFrom(codedInputByteBufferNano);
        }

        public TradeDate mergeFrom(CodedInputByteBufferNano codedInputByteBufferNano) throws IOException {
            while (true) {
                int readTag = codedInputByteBufferNano.readTag();
                if (readTag == 0) {
                    return this;
                }
                if (readTag == 8) {
                    this.date_ = codedInputByteBufferNano.readUInt32();
                    this.bitField0_ |= 1;
                } else if (readTag == 18) {
                    this.desc_ = codedInputByteBufferNano.readString();
                    this.bitField0_ |= 2;
                } else if (!WireFormatNano.parseUnknownField(codedInputByteBufferNano, readTag)) {
                    return this;
                }
            }
        }
    }
}
