static int _s_set_Surrogate(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ProtoBuf.ProtoContractAttribute gen_to_be_invoked = (ProtoBuf.ProtoContractAttribute)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.Surrogate = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _s_set_EnumPassthru(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ProtoBuf.ProtoContractAttribute gen_to_be_invoked = (ProtoBuf.ProtoContractAttribute)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.EnumPassthru = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int _g_get_IsGroup(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ProtoBuf.ProtoContractAttribute gen_to_be_invoked = (ProtoBuf.ProtoContractAttribute)translator.FastGetCSObj(L, 1);
                LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsGroup);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static int _s_set_ImplicitFields(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                ProtoBuf.ProtoContractAttribute gen_to_be_invoked = (ProtoBuf.ProtoContractAttribute)translator.FastGetCSObj(L, 1);
                ProtoBuf.ImplicitFields         gen_value; translator.Get(L, 2, out gen_value);
                gen_to_be_invoked.ImplicitFields = gen_value;
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    ProtoBuf.ProtoContractAttribute gen_ret = new ProtoBuf.ProtoContractAttribute();
                    translator.Push(L, gen_ret);

                    return(1);
                }
            }
            catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(LuaAPI.luaL_error(L, "invalid arguments to ProtoBuf.ProtoContractAttribute constructor!"));
        }