// Code generated by the FlatBuffers compiler. DO NOT EDIT.

package dataprotocol

import (
	flatbuffers "github.com/google/flatbuffers/go"
)

type ComplexColumnTypeInfo struct {
	_tab flatbuffers.Table
}

func GetRootAsComplexColumnTypeInfo(buf []byte, offset flatbuffers.UOffsetT) *ComplexColumnTypeInfo {
	n := flatbuffers.GetUOffsetT(buf[offset:])
	x := &ComplexColumnTypeInfo{}
	x.Init(buf, n+offset)
	return x
}

func (rcv *ComplexColumnTypeInfo) Init(buf []byte, i flatbuffers.UOffsetT) {
	rcv._tab.Bytes = buf
	rcv._tab.Pos = i
}

func (rcv *ComplexColumnTypeInfo) Table() flatbuffers.Table {
	return rcv._tab
}

func (rcv *ComplexColumnTypeInfo) ColumnLogicType() LogicType {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(4))
	if o != 0 {
		return rcv._tab.GetInt8(o + rcv._tab.Pos)
	}
	return 0
}

func (rcv *ComplexColumnTypeInfo) MutateColumnLogicType(n LogicType) bool {
	return rcv._tab.MutateInt8Slot(4, n)
}

func (rcv *ComplexColumnTypeInfo) ColumnEncodeType() DataType {
	o := flatbuffers.UOffsetT(rcv._tab.Offset(6))
	if o != 0 {
		return rcv._tab.GetInt8(o + rcv._tab.Pos)
	}
	return 0
}

func (rcv *ComplexColumnTypeInfo) MutateColumnEncodeType(n DataType) bool {
	return rcv._tab.MutateInt8Slot(6, n)
}

func ComplexColumnTypeInfoStart(builder *flatbuffers.Builder) {
	builder.StartObject(2)
}
func ComplexColumnTypeInfoAddColumnLogicType(builder *flatbuffers.Builder, columnLogicType int8) {
	builder.PrependInt8Slot(0, columnLogicType, 0)
}
func ComplexColumnTypeInfoAddColumnEncodeType(builder *flatbuffers.Builder, columnEncodeType int8) {
	builder.PrependInt8Slot(1, columnEncodeType, 0)
}
func ComplexColumnTypeInfoEnd(builder *flatbuffers.Builder) flatbuffers.UOffsetT {
	return builder.EndObject()
}
